/* ==================================================
   IAGRG MAIN STYLESHEET
   --------------------------------------------------
   Purpose:
   Central stylesheet for the public-facing IAGRG site.

   Organization:
   1. Variables / Design Tokens
   2. Base / Global Elements
   3. Header + Navigation
   4. Hero Section
   5. Homepage Components
   6. Shared UI (Badges / Cards)
   7. News Page
   8. Single Post Page
   9. Footer
   10. Responsive Rules

   Notes:
   - Keep spacing rhythm consistent.
   - Reuse utility classes where possible.
   - Add new page-specific rules in their own section.
================================================== */



/* ==================================================
   1. DESIGN TOKENS / VARIABLES
   --------------------------------------------------
   Update these values first if rebranding colors,
   fonts, or spacing language later.
================================================== */

:root {
  /* Core Brand Colors */
  --brand-dark: #0a1128;
  --brand-accent: #fca311;

  /* Text */
  --text-main: #333333;
  --text-muted: #64748b;

  /* Surfaces */
  --bg-light: #f8fafc;
  --border: #e5e7eb;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}



/* ==================================================
   2. BASE / GLOBAL RESET
   --------------------------------------------------
   Shared defaults across entire site.
================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-main);
  background: #ffffff;
}

/* Images never overflow containers */
img {
  max-width: 100%;
  height: auto;
}

/* Links inherit color unless styled elsewhere */
a {
  color: inherit;
}

/* Shared heading system */
h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.2;
  color: var(--brand-dark);
  font-family: var(--font-heading);
}

/* Standard centered content wrapper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



/* ==================================================
   3. HEADER + NAVIGATION
   --------------------------------------------------
   Sticky navigation bar visible while scrolling.
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  /* Clip horizontal overflow (e.g. at 1280px Nest Hub Max) without
     creating a stacking context that traps dropdown menus.
     overflow-x:clip (unlike hidden) does not affect overflow-y. */
  overflow-x: clip;
}

/* Main navbar row:
   logo left, navigation right */
.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Prevent the nav from ever causing horizontal scroll
  min-width: 0; */
}



/* ----------------------------------
   Logo block
---------------------------------- */

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: white;

  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.site-logo img {
  height: 52px;
  width: auto;
}



/* ----------------------------------
   Right side of navbar
---------------------------------- */

.nav-right,
.nav-list,
.header-ctas {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  /* clamp: tight on mid-range, generous on wide screens */
  gap: clamp(16px, 3vw, 48px);
}

/* Primary nav links */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(10px, 1.8vw, 28px);
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 500;
  white-space: nowrap; /* Prevents "People ▾" from wrapping across two lines */
}

.nav-list a:hover {
  color: var(--brand-accent);
}



/* ----------------------------------
   Dropdown Menus
   Used for People / Activities
---------------------------------- */

.dropdown {
  position: relative;
  /* Anchor for submenu panel */
}

.dropbtn {
  display: inline-block;
}

/* Hidden submenu panel */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 240px;

  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-accent);

  border-radius: 12px 12px 12px 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);

  padding: 10px 0;
  z-index: 999;
}

/* Submenu links */
.dropdown-content a {
  display: block;
  padding: 11px 18px;

  color: #334155;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: var(--bg-light);
  color: var(--brand-dark);
}

/* Desktop hover interaction */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover>.dropbtn {
  color: var(--brand-accent);
}



/* ----------------------------------
   Header CTA Buttons
---------------------------------- */

.header-ctas {
  gap: 14px;
}

.btn-header-outline,
.btn-header-solid {
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-header-outline {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-header-solid {
  background: var(--brand-accent);
  color: var(--brand-dark);
}



/* ----------------------------------
   Hamburger Toggle Button
   Hidden on desktop, shown on mobile
---------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1200;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate three bars into an × when open */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) 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(-9px) rotate(-45deg);
}



/* ----------------------------------
   Dim overlay behind open drawer
---------------------------------- */
/* 
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
}

.nav-overlay.is-visible {
  display: block;
}

 */

/* ==================================================
   4. HERO SECTION
   --------------------------------------------------
   Homepage opening visual section.
================================================== */

.hero-immersive {
  height: 90vh;
  height: 90dvh;
  background-size: cover;
  background-position: center;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

/* Seamless bleed from hero into cosmic timeline */
.hero-immersive::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:220px;
  pointer-events:none;

  background:
    linear-gradient(
      to bottom,
      rgba(8,13,28,0) 0%,
      rgba(8,13,28,0.28) 35%,
      rgba(8,13,28,0.65) 68%,
      rgba(8,13,28,0.92) 88%,
      #08111f 100%
    );
}
/* Dark overlay improves text readability
   over image backgrounds */
.hero-gradient {
  /* Pure overlay only — covers the background image, no layout responsibility */
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      to right,
      rgba(10,17,40,0.92) 0%,
      rgba(10,17,40,0.58) 42%,
      rgba(10,17,40,0.20) 78%,
      rgba(10,17,40,0.05) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(8,10,18,0.08) 58%,
      rgba(8,12,24,0.30) 76%,
      rgba(8,13,28,0.62) 90%,
      rgba(8,13,28,0.88) 100%
    );
}

/* Layout container: only responsible for top padding + z-index.
   No flex-column needed — arrow is absolutely positioned like CTB. */
.hero-layout {
  position: relative;
  z-index: 1;
  /* Top padding clears sticky navbar (~68px) + breathing room */
  padding-top: clamp(80px, 13vh, 140px);
  height: 100%;
}

/* Hero content: left-aligned, max-width constrained */
.hero-content {
  color: white;
  max-width: 760px;
  width: 100%;
  padding: 0 clamp(16px, 5vw, 40px);
}

.hero-kicker {
  display: block;

  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;

  /* clamp: min 0.72rem on tiny phones, preferred 1.5vw, max 0.95rem on desktop */
  font-size: clamp(0.72rem, 2vw, 0.95rem);

  margin-bottom: 14px;
}

.hero-title {
  color: white;
  /* clamp: 1.8rem on tiny phones → 4rem on desktop */
  font-size: clamp(1.8rem, 6vw, 4rem);
  margin-bottom: 18px;
}

.hero-subtitle {
  /* clamp: 0.95rem on tiny phones → 1.2rem on desktop */
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  margin-bottom: 28px;
}

/* Hero buttons row */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-solid,
.btn-outline-light {
  padding: 14px 28px;
  border-radius: 4px;

  text-decoration: none;
  font-weight: 600;
}

.btn-solid {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
}



/* ==================================================
   5. HOMEPAGE SECTIONS
================================================== */

.updates-strip,
.home-main-section {
  padding: 60px 20px;
}

.updates-strip {
  background: white;
}

/* Section heading row:
   title left, action link right */
.updates-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
  flex-wrap: wrap;

  margin-bottom: 24px;
}



/* ----------------------------------
   Shared Card Grids
---------------------------------- */

.updates-grid,
.update-cards,
.news-feed {
  display: grid;
  gap: 18px;
}

/* Recent Opportunities card internal spacing */
.update-card .badge {
  display: inline-block;
  margin-bottom: 12px;
}

.update-card h4 {
  margin: 0 0 12px;
  line-height: 1.35;
}

/* ----------------------------------
   Two-column homepage layout
   Main content + sidebar
---------------------------------- */

.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 42px;
}

.bg-light {
  background: var(--bg-light);
}

.lead-text {
  font-size: 1.08rem;
  color: #475569;
}

/* ----------------------------------
   LEFT COLUMN STACK:
   Mission section + compact updates
---------------------------------- */

.mission-column {
  display: grid;
  gap: 34px;
}


/* ----------------------------------
   Compact Latest Updates Card
   Sits below mission content
---------------------------------- */

.mini-updates {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}


/* Vertical list of latest news items */

.mini-updates-list {
  display: grid;
  gap: 14px;
}


/* Individual compact update row */

.mini-update-item {
  display: block;
  text-decoration: none;
  color: inherit;

  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}


/* Remove divider from final item */

.mini-update-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==================================================
   6. SHARED UI COMPONENTS
================================================== */

/* ----------------------------------
   Generic Card Style
---------------------------------- */

.update-item,
.update-card,
.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;

  padding: 22px;

  text-decoration: none;
  color: inherit;

  transition: 0.2s ease;
}

/* Hover lift effect gives click affordance */
.update-item:hover,
.update-card:hover,
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Shared metadata text */
.update-date,
.news-date {
  display: block;

  font-size: 0.9rem;
  color: var(--text-muted);

  margin-bottom: 8px;
}

.update-title {
  font-weight: 600;
}

.read-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}



/* ----------------------------------
   Category Badges
---------------------------------- */

.badge {
  display: inline-block;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
}

/* Job postings */
.badge-job {
  background: #e8f5eb;
  color: #1f6a34;
}

/* Conferences */
.badge-conference {
  background: #e9f5f7;
  color: #0f6170;
}

/* General news */
.badge-news {
  background: #fff6df;
  color: #8b6a00;
}

.badge-wgg {
  background: #f1edff;
  color: #5b3cc4; 
}


/* ==================================================
   7. NEWS PAGE
================================================== */

.news-page {
  padding: 80px 20px 50px;
}

.news-header {
  margin-bottom: 34px;
}

.news-subtitle {
  max-width: 720px;
  color: #5d6775;
}



/* ----------------------------------
   Filter Tabs
---------------------------------- */

.filter-tabs {
  display: flex;
  gap: 24px;

  flex-wrap: wrap;

  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.filter-tab {
  position: relative;

  border: none;
  background: none;
  cursor: pointer;

  padding: 0 0 10px;

  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

.filter-tab.active {
  color: var(--brand-dark);
}

/* Underline for active tab */
.filter-tab.active::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -13px;

  width: 100%;
  height: 2px;

  background: var(--brand-dark);
}



/* ----------------------------------
   News Cards
---------------------------------- */

.news-title a {
  text-decoration: none;
  color: #1f3558;
}

.news-meta {
  display: flex;
  justify-content: space-between;

  gap: 10px;
  flex-wrap: wrap;

  margin-bottom: 12px;
}



/* ==================================================
   8. SINGLE POST PAGE
================================================== */

.post-page {
  padding: 60px 20px;
}

.post-card {
  max-width: 900px;
  margin: 0 auto;

  background: white;
  border-radius: 14px;
  padding: 50px;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.post-header {
  border-bottom: 1px solid var(--border);

  margin-bottom: 28px;
  padding-bottom: 20px;
}

/* Date + badge row */
.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  margin-bottom: 14px;
}

.post-title {
  font-size: 2.4rem;
}

.post-content {
  line-height: 1.85;
}

.back-link {
  display: inline-block;
  margin-top: 36px;

  text-decoration: none;
  font-weight: 600;
}

/* Metadata row: date + category */
.post-meta {
  display: flex;
  align-items: center;
  /* fixes vertical alignment */
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Dedicated badge for post pages */
.post-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 12px;
  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* Optional: date refinement */
.post-date {
  font-size: 1rem;
  color: #475569;
}

/* ==================================================
   9. FOOTER
   --------------------------------------------------
   Partner institutions intentionally appear first
   as trust / affiliation signal.
================================================== */

.site-footer {
  margin-top: 70px;

  background: #0f172a;
  color: #cbd5e1;
}

.footer-credit {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-credit a:hover {
  text-decoration: underline;
  color: var(--brand-accent);
}

/* ----------------------------------
   Partner Institutions
---------------------------------- */

.partners-footer {
  padding: 42px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-footer h3 {
  text-align: center;
  color: white;

  margin-bottom: 26px;
  font-size: 1.35rem;
}

/* Wrap logos nicely on smaller screens */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 34px;
  flex-wrap: wrap;
}

/* Bright logos as requested */
.partner-logos img {
  height: 58px;
  width: auto;

  opacity: 1;
  filter: none;

  transition: transform 0.2s ease;
}

.partner-logos a:hover img {
  transform: translateY(-2px);
}



/* ----------------------------------
   Footer Columns
---------------------------------- */

.footer-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 70px;
  padding: 55px 20px;
  align-items: start;
}

.footer-col h4 {
  color: white;
  margin: 0 0 18px;
  line-height: 1.2;
}

.footer-col p,
.footer-col li {
  color: #94a3b8;
}

.footer-col p {
  max-width: 420px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: white;
}

/* Mobile */

@media (max-width: 900px) {

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 45px 20px;
  }

  .footer-col p {
    max-width: 100%;
  }

}


/* ----------------------------------
   Bottom Legal Bar
---------------------------------- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;
  padding: 18px 20px;

  font-size: 0.92rem;
}



/* ==================================================
   10. RESPONSIVE RULES
================================================== */

@media (max-width: 1024px) {

  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Collapse homepage columns */
  .grid-layout {
    grid-template-columns: 1fr;
  }

  /* hero-title font-size now handled globally by clamp() */

  .post-card {
    padding: 28px;
  }

  /* -----------------------------------------------
     MOBILE NAV DRAWER
     Slides in from the right as an off-canvas panel
  ----------------------------------------------- */

  .nav-right {
    /* Override desktop flex — make it a vertical drawer */
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);

    background: var(--brand-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 24px 40px;
    overflow-y: auto;

    z-index: 1100;

    /* Start off-screen to the right */
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Slide in when open */
  .nav-right.nav-open {
    transform: translateX(0);
  }

  /* Nav links become a vertical stacked list */
  .site-nav {
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-list>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-list>li>a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    color: white;
  }

  /* -----------------------------------------------
     MOBILE DROPDOWNS
     Expand inline (no floating panel) on tap
  ----------------------------------------------- */

  /* Disable desktop hover-based dropdown */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown-content {
    display: none;
    position: static;
    /* no longer absolute */
    min-width: unset;
    width: 100%;

    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: none;
    border-radius: 8px;
    box-shadow: none;

    padding: 4px 0 10px 12px;
    margin-bottom: 4px;
  }

  /* Show when parent li has .open class (toggled by JS) */
  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    color: #cbd5e1;
    font-size: 0.92rem;
    padding: 9px 10px;
    white-space: normal;
  }

  .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
  }

  /* Rotate the ▾ arrow when dropdown is open */
  .dropdown.open>a {
    color: var(--brand-accent);
  }

  /* -----------------------------------------------
     CTA BUTTONS
     Stack vertically at bottom of drawer
  ----------------------------------------------- */

  .header-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 28px;
    gap: 10px;
  }

  .btn-header-outline,
  .btn-header-solid {
    text-align: center;
    padding: 13px 18px;
    font-size: 0.9rem;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {

  /* hero-title font-size now handled by clamp() — no override needed */

  .nav-container {
    padding: 10px 16px;
  }

  .site-logo a {
    font-size: 1.4rem;
  }

  .site-logo img {
    height: 40px;
  }
}

/* ======================================
   VAIDYA–RAYCHAUDHURI ARCHIVE
====================================== */

.vr-archive {
  margin-top: 40px;
}

.vr-archive details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.vr-archive summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 28px;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--bg-light);
  color: var(--brand-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vr-archive summary::-webkit-details-marker {
  display: none;
}

.vr-archive summary::after {
  content: "+";
  font-size: 1.7rem;
  color: var(--brand-accent);
}

.vr-archive details[open] summary::after {
  content: "−";
}

.vr-details-content {
  padding: 30px;
}

.vr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.vr-card {
  display: flex;
  flex-direction: column;
  height: 100%;

  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-accent);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.vr-number {
  position: absolute;
  top: -14px;
  right: 18px;
  background: var(--brand-accent);
  color: var(--brand-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
}

.vr-card h3 {
  min-height: 48px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.vr-meta {
  min-height: 96px;
  /* increase from old smaller value */
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.vr-title {
  flex-grow: 1;
  line-height: 1.55;
}

.vr-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ======================================
   AWARD ARCHIVES
====================================== */

.award-badge {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.thesis-title {
  font-style: italic;
  line-height: 1.55;
  margin: 14px 0;
  flex-grow: 1;
}

.submitted-to {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.citation-text {
  margin-top: 14px;
  line-height: 1.65;
  font-style: italic;
  color: #475569;
  flex-grow: 1;
}

/* ======================================
   COUNCIL PAGE
====================================== */

.page-header {
  background-color: var(--brand-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
  border-bottom: 4px solid var(--brand-accent);
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 50px 0 30px;
  color: var(--brand-dark);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.leader-card {
  background: white;
  border-top: 4px solid var(--brand-accent);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.leader-role {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.leader-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.leader-email {
  font-size: 0.9rem;
  color: var(--brand-accent);
  font-weight: 500;
  text-decoration: none;
}

.leader-email:hover {
  text-decoration: underline;
}

.archive-container {
  max-width: 900px;
  margin: 0 auto 80px;
}

.archive-container details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.archive-container summary {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding: 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}

.archive-container summary::-webkit-details-marker {
  display: none;
}

.archive-container summary::after {
  content: "+";
  color: var(--brand-accent);
  font-size: 1.5rem;
}

.archive-container details[open] summary::after {
  content: "−";
}

.term-content {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.term-leadership {
  display: flex;
  gap: 40px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}

.term-members {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  columns: 2;
}

.council-members-card {
  text-align: left;
}

.council-members-card .leader-role {
  text-align: center;
  margin-bottom: 24px;
}

.council-members-card .term-members {
  columns: 2;
  column-gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.council-members-card .term-members li {
  break-inside: avoid;
  margin-bottom: 14px;
  line-height: 1.55;
  color: var(--text-main);
}

.council-members-card .term-members strong {
  display: block;
  color: var(--brand-dark);
  font-weight: 700;
}

.members-heading {
  text-align: center;
  margin: 10px 0 24px;
  font-size: 1.3rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.member-mini-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-accent);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.member-mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.member-mini-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.member-mini-card em {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ======================================
   CONTACT PAGE
====================================== */

.contact-page {
  max-width: 950px;
  margin: 55px auto 80px;
  display: grid;
  gap: 28px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-accent);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--brand-dark);
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 10px;
}

.contact-card p {
  margin: 0 0 14px;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-card strong {
  color: var(--text-main);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Horizontal Swipeable Timeline Ribbon
   ========================================================================== */
/* ======================================
   COSMIC TIMELINE BRIDGE
   Replaces old timeline-ribbon-section
====================================== */

#ctb {
  background: linear-gradient(180deg,#050b1a 0%,#0a1535 40%,#0d1e42 70%,#10243a 100%);
  padding: 64px 0 48px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  z-index: 2;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
  scroll-snap-align: start;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#ctb.visible{
  opacity:1;
  transform:translateY(0);
}

#stars {position:absolute;inset:0;
  pointer-events:none
}

.star {position:absolute;
  background:#fff;
  border-radius:50%;
  animation:twinkle var(--d,3s) ease-in-out infinite var(--delay,0s);
  opacity:0
}

@keyframes twinkle {
  0%,100%{opacity:0}50%{opacity:var(--op,0.5)}
}

.ctb-inner {
  max-width:1200px;
  margin:0 auto;
  padding:0 24px
}

.ctb-head{
  text-align:center;
  margin-bottom:14px;
}

.ctb-eyebrow {display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
  color:#fca311;margin-bottom:14px
}

.ctb-title {
  font-size:3rem;
  font-weight:300;
  color:#e8eef8;
  line-height:1.15;
  margin:0 0 14px;
  font-family:var(--font-heading);
}

.ctb-sub {
  font-size:0.97rem;
  color:#8da0bc;
  max-width:600px;
  margin:0 auto;
  line-height:1.75
}

.ctb-scroll{
  overflow-x:auto;
  overflow-y:visible;
  padding:0 0 8px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.ctb-scroll::-webkit-scrollbar {
  display:none
}

.ctb-svg{
  display:block;
  min-width:1020px;
  overflow:visible;
  margin-top:-58px;
}

.tl-path {
  fill:none;
  stroke:url(#tlgrd);
  stroke-width:2.5;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:3200;
  stroke-dashoffset:3200;
  animation:drawPath 2.6s cubic-bezier(.4,0,.2,1) .3s forwards
}

@keyframes drawPath {
  to{stroke-dashoffset:0}
}

.tl-node {
  cursor:pointer
}

.tl-halo {
  fill:none;
  stroke:#fca311;
  stroke-width:10;
  opacity:0;
  transition:opacity .3s
}

.tl-node:hover .tl-halo {
  opacity:0.15
}

.tl-dot {
  fill:#0a1535;
  stroke:#fca311;
  stroke-width:2.5;
  transition:all .25s ease;
  filter:drop-shadow(0 0 5px rgba(252,163,17,0.5))
}

.tl-node:hover .tl-dot {
  fill:#fca311;
  stroke:#fff;
  filter:drop-shadow(0 0 14px rgba(252,163,17,0.9))
}

.tl-year {
  text-anchor:middle;
  font-size:11px;
  font-weight:700;
  letter-spacing:.5px;fill:#6e89a8;
  transition:fill .25s
}

.tl-node:hover .tl-year {
  fill:#fca311
}

.tl-tip {
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease
}

.tl-node:hover .tl-tip {
  opacity:1
}

.tl-tip-bg {
  fill:rgba(8,15,40,0.97);
  stroke:rgba(252,163,17,0.3);
  stroke-width:1
}

.tl-tip-bar {
  fill:#fca311
}

.tl-tip-yr {
  fill:#fca311;
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px
}

.tl-tip-tx {
  fill:#b8cce0;
  font-size:11px;
  font-weight:500
}

.ctb-cta {
  text-align:center;
  margin-top:24px
}

.ctb-btn {
  display:inline-block;
  border:1px solid rgba(252,163,17,0.35);
  color:#fca311;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;padding:11px 28px;
  border-radius:4px;
  text-decoration:none;
  transition:all .2s;
  background:transparent;
  cursor:pointer
}

.ctb-btn:hover {
  background:rgba(252,163,17,0.08);
  border-color:rgba(252,163,17,0.65)
}
/* Mobile */
/* ── ADD this replacement block ── */
@media (max-width: 768px){

  #ctb {
    min-height: auto;
    display: block;        /* slightly shorter on mobile — less dead space */
    padding: 40px 0 30px;
  }

  .ctb-title {
    font-size: 2rem;         /* was 3rem — too large on small screens */
  }

  .ctb-sub {
    font-size: 0.88rem;
    padding: 0 8px;          /* prevents text touching screen edge */
  }

  .ctb-scroll {
    /* Add top padding so tooltip boxes (which extend above the path)
       are not clipped — the SVG viewBox starts at y=-90 */
    padding: 70px 0 24px;
    /* Keep horizontal scroll but ensure vertical clip doesn't cut tooltips */
    overflow-x: auto;
    overflow-y: visible;
  }

  .ctb-svg {
    /* Scale down from 1020px to fit mobile while still scrollable */
    min-width: 768px;
  }

  .tl-tip {
    /* Keep tooltips on mobile but make them smaller */
    display: block;
  }

  .tl-tip-bg {
    /* Slightly transparent on mobile to show the path beneath */
    fill: rgba(8,15,40,0.92);
  }

  .ctb-head {
    margin-bottom: 0;        /* remove gap — padding on .ctb-scroll handles it */
    padding: 0 16px;
  }

  .ctb-eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .ctb-cta {
    margin-top: 16px;
    padding: 0 16px;
    padding-bottom: 46px;
  }

  .ctb-scroll-hint{
  bottom: 10px !important;
  right: 14px !important;
  transform: scale(0.88);
}
}

/* ── Very small phones ── */
@media (max-width: 400px) {
  .ctb-svg {
    min-width: 780px;
  }
  .ctb-title {
    font-size: 1.75rem;
  }
}

/* ── Ultra-tiny phones (JioPhone 2 etc, ≤340px wide) ── */
@media (max-width: 340px) {
  .hero-immersive {
    height: auto;
    min-height: 0;   /* let content define height, no forced min */
    overflow: visible;
  }

  .hero-layout {
    height: auto;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
  }

  /* On auto-height sections, absolute bottom:X is relative to content bottom
     which causes overlap. Switch arrow to in-flow so it stacks below buttons. */
  .hero-scroll-hint {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    align-self: center;
    margin: 20px auto 0;
  }

  .hero-gradient {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .hero-kicker {
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-solid,
  .btn-outline-light {
    padding: 11px 18px;
    font-size: 0.9rem;
    text-align: center;
  }
}
/* Responsive */

@media (max-width: 768px) {
  .contact-page {
    margin: 40px auto 60px;
    gap: 20px;
  }

  .contact-card {
    padding: 22px;
  }

  .contact-card h2 {
    font-size: 1.18rem;
  }

  .contact-card p {
    font-size: 0.96rem;
  }
}

@media (max-width: 1150px){

/* clamp() on gap/font-size handles most scaling automatically.
   At this breakpoint we only need to tighten CTAs and logo. */

.site-logo a{
  font-size: 1.3rem;
}

.site-logo img{
  height: 42px;
}

.header-ctas{
  gap: 8px;
}

.btn-header-outline,
.btn-header-solid {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* Do NOT add overflow:hidden on nav-container — it hides dropdown menus */

}
/* ==================================================
   SCROLL HINTS — shared base + per-section overrides
================================================== */

/* Shared base for both hints */
.hero-scroll-hint,
.ctb-scroll-hint {
  /* CTB hint stays absolute; hero hint is now in-flow (see below) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  cursor: pointer;
  text-decoration: none;
  user-select: none;
  z-index: 3;

  /* Smooth fade in/out */
  opacity: 1;
  transition: color 0.2s ease, opacity 0.4s ease;

  animation: hintFloat 2.2s ease-in-out infinite;
}

/* Hero hint — CTB pattern: absolute, anchored to section bottom.
   Independent of content height. Always at the bottom edge. */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  animation: hintFloat 2.2s ease-in-out infinite;
}
.hero-scroll-hint:hover {
  color: #fca311;
}

/* JioPhone 2 / ultra-small: must come AFTER the base .hero-scroll-hint rule
   above so cascade order doesn't revert it to position:absolute.
   Targets only narrow + short viewports — no impact on any other device. */
@media (max-width: 340px) {
  .hero-scroll-hint {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    align-self: center;
    margin: 20px auto 0;
  }
}

/* CTB hint stays absolute-positioned over its dark section */
.ctb-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(252, 163, 17, 0.6);
}
.ctb-scroll-hint:hover {
  color: rgba(252, 163, 17, 1);
}

.hint-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hint-arrow {
  display: block;
}

@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Hidden state — used by JS to fade hints in/out */
.hint-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ==================================================
   RESPONSIVE — simplify hint on very small phones
================================================== */
@media (max-width: 480px) {
  .hint-label {
    display: none; /* just the arrow on very small screens */
  }

  /* Extra breathing room on small phones */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-solid,
  .btn-outline-light {
    text-align: center;
  }
}

/* ==================================================
   Additional Fixes due to the Ipad UI bug
================================================== */

/* ── 1025px–1280px: desktop nav visible but viewport is narrow ── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .btn-header-outline,
  .btn-header-solid {
    padding: 7px 11px;
    font-size: 0.77rem;
  }
  .header-ctas {
    gap: 6px;
  }
}

/* ── Retained: 960–901px band for iPad landscape ── */
@media (max-width: 960px) and (min-width: 901px) {
  /* iPad landscape and similar — tighten nav before hamburger triggers */
  .nav-right {
    gap: 24px;
  }
  .nav-list {
    gap: 14px;
  }
  .nav-list a {
    font-size: 0.82rem;
  }
  .header-ctas {
    gap: 8px;
  }
  .btn-header-outline,
  .btn-header-solid {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}
/* ── iPad Air Portrait / Similar 820px Devices ── */
@media (min-width: 801px) and (max-width: 860px){

  #ctb{
    min-height:auto;
    display:block;
    padding:48px 0 34px;
  }

  .ctb-title{
    font-size:2.4rem;
    text-align:center;
  }

  .ctb-sub{
    font-size:0.94rem;
    padding:0 18px;
    text-align:center;
  }

  .ctb-scroll{
    padding:78px 0 26px;
    overflow-x:auto;
    overflow-y:visible;
  }

  .ctb-svg{
    min-width:880px;
  }

  .tl-tip{
    display:block;
  }

  .tl-tip-bg{
    fill:rgba(8,15,40,0.93);
  }

  .ctb-head{
    margin-bottom:0;
    padding:0 22px;
    text-align:center;
  }

  .ctb-eyebrow{
    font-size:10px;
    letter-spacing:2.8px;
    text-align:center;
  }

  .ctb-cta{
    margin-top:18px;
    padding:0 22px;
    padding-bottom:48px;
    text-align:center;
  }

  .ctb-scroll-hint{
    bottom:12px !important;
    right:16px !important;
    transform:scale(0.92);
  }

}

/* ── Surface Pro 7 Portrait / Similar 912px Devices ── */
@media (min-width: 890px) and (max-width: 940px){

  #ctb{
    min-height:auto;
    display:block;
    padding:50px 0 36px;
  }

  .ctb-title{
    font-size:2.55rem;
    text-align:center;
  }

  .ctb-sub{
    font-size:0.98rem;
    padding:0 22px;
    text-align:center;
  }

  .ctb-scroll{
    padding:82px 0 28px;
    overflow-x:auto;
    overflow-y:visible;
  }

  .ctb-svg{
    min-width:940px;
  }

  .tl-tip{
    display:block;
  }

  .tl-tip-bg{
    fill:rgba(8,15,40,0.93);
  }

  .ctb-head{
    margin-bottom:0;
    padding:0 26px;
    text-align:center;
  }

  .ctb-eyebrow{
    font-size:10px;
    letter-spacing:3px;
    text-align:center;
  }

  .ctb-cta{
    margin-top:18px;
    padding:0 26px;
    padding-bottom:50px;
    text-align:center;
  }

  .ctb-scroll-hint{
    bottom:12px !important;
    right:18px !important;
    transform:scale(0.95);
  }

}