/* =============================================
   INNER PAGES & SUPPLEMENTARY STYLES
   IABSCON 2027
   ============================================= */

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.card,
.theme-card,
.speaker-card,
.section-header,
.timeline-item,
.step,
.stat-box {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card.revealed,
.theme-card.revealed,
.speaker-card.revealed,
.section-header.revealed,
.timeline-item.revealed,
.step.revealed,
.stat-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MOBILE NAV HAMBURGER → X ANIMATION
   ============================================= */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   BLOG / INDEX LAYOUT
   ============================================= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
}

.post-card {
  padding: 0;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}
.post-card-body { padding: 2rem; }
.post-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.post-meta i { color: var(--teal); margin-right: 0.25rem; }
.post-card-title a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card-title a:hover { color: var(--teal); }
.post-card-excerpt { margin: 0.75rem 0 1.5rem; font-size: 0.9rem; }

/* =============================================
   SIDEBAR
   ============================================= */
.blog-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-widget { margin-bottom: 1.5rem; }
.sidebar-widget:last-child { margin-bottom: 0; }
.widget-title {
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: var(--navy) !important;
  margin-bottom: 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-dates { list-style: none; }
.sidebar-dates li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.82rem;
}
.sidebar-dates li:last-child { border-bottom: none; }
.sidebar-dates span { color: var(--text-muted); }
.sidebar-dates strong { color: var(--navy); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.375rem; }
.sidebar-links a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.sidebar-links a i { color: var(--teal); font-size: 0.82rem; width: 16px; }
.sidebar-links a:hover { color: var(--teal); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pagination-wrap .prev,
.pagination-wrap .next {
  width: auto;
  padding: 0 1rem;
}

/* =============================================
   SEARCH FORM
   ============================================= */
.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.625rem 0.875rem;
}
.search-form button,
.search-submit {
  padding: 0.625rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover,
.search-submit:hover { background: var(--teal); }

/* =============================================
   PAGE CONTENT (prose)
   ============================================= */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}
.page-content h2 { margin-top: 2.5rem; }
.page-content h3 { margin-top: 2rem; }
.page-content ul, .page-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}
.page-content li { margin-bottom: 0.375rem; }
.page-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.page-content table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
}
.page-content table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}
.page-content table tr:nth-child(even) td { background: var(--off-white); }

/* =============================================
   POST NAVIGATION
   ============================================= */
.post-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}
.post-nav a:hover { color: var(--navy); }
.post-nav .post-nav-item {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* =============================================
   FILE INPUT CUSTOM STYLE
   ============================================= */
.file-input-wrapper {
  position: relative;
}
.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.file-input-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--off-white);
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-mid);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.file-input-trigger:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}
.file-name-display {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* =============================================
   TABLE RESPONSIVE WRAPPER
   ============================================= */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { min-width: 600px; }

/* =============================================
   PRINT — HIDE UI CHROME
   ============================================= */
@media print {
  #topbar, #site-header, #site-footer,
  .nav-toggle, .btn, .sidebar-widget,
  .page-hero, .breadcrumb { display: none !important; }
  .blog-layout { grid-template-columns: 1fr; }
  .page-content { max-width: 100%; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
