/* ================================================================
   UWA MUN — style.css
   United World Academy Model United Nations
   ----------------------------------------------------------------
   TABLE OF CONTENTS
   1.  CSS Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Utility Classes
   5.  Buttons
   6.  Navigation Bar
   7.  Hero Section
   8.  Gold Ticker (Signature Element)
   9.  Section Shared Styles
   10. About Section
   11. Secretary-General Section
   12. Committees Section
   13. Schedule Section
   14. FAQ Section
   15. CTA Banner
   16. Footer
   17. Back-to-Top Button
   18. Scroll Animations
   19. Page-Specific: committees.html
   20. Page-Specific: secretariat.html
   21. Page-Specific: registration.html
   22. Page-Specific: contact.html
   23. Responsive — Tablet (max 900px)
   24. Responsive — Mobile (max 600px)
   25. Reduced Motion Accessibility
================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   All colours, fonts, and spacing defined once here.
   Change a value here and it updates the whole site.
================================================================ */
:root {
  /* Colour Palette */
  --navy:        #0A2342;   /* Primary dark navy */
  --navy-deep:   #061629;   /* Deeper navy for hero/footer backgrounds */
  --navy-mid:    #0D2E55;   /* Mid-tone navy for cards on dark bg */
  --gold:        #D4AF37;   /* Primary gold accent */
  --gold-soft:   #F0D580;   /* Lighter gold for text on dark bg */
  --gold-dark:   #A8882A;   /* Darker gold for hover states */
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;   /* Section backgrounds (light) */
  --grey-light:  #E8ECF0;   /* Borders, dividers */
  --grey-mid:    #8A9BB0;   /* Secondary text on light bg */
  --grey-dark:   #3A4A5C;   /* Body text */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;   /* Headings */
  --font-body:    'Inter', system-ui, sans-serif;       /* Body text */

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.375rem;   /* 22px */
  --text-xl:   1.75rem;    /* 28px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3rem;       /* 48px */
  --text-4xl:  4rem;       /* 64px */

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1160px;
  --nav-height: 70px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(10, 35, 66, 0.08);
  --shadow-md:  0 6px 24px rgba(10, 35, 66, 0.14);
  --shadow-lg:  0 16px 48px rgba(10, 35, 66, 0.20);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--ease);
}


/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus ring — visible keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   3. TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  line-height: 1.75;
  color: var(--grey-dark);
}

/* Gold inline text utility */
.gold { color: var(--gold); }
.gold-link {
  color: var(--gold-dark);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.gold-link:hover { border-color: var(--gold-dark); }


/* ================================================================
   4. UTILITY CLASSES
================================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.text-center { text-align: center; }

/* Section shared spacing */
.section {
  padding-block: var(--space-2xl);
}

/* Alternating light background sections */
.section--alt {
  background-color: var(--off-white);
}

/* Section header block used across all sections */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: var(--text-md);
  color: var(--grey-mid);
  max-width: 560px;
  margin-inline: auto;
}

/* Gold ruled underline on section titles */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

/* When section title is left-aligned, align the underline too */
.section-header--left .section-title::after {
  margin-left: 0;
}
.section-header--left {
  text-align: left;
}


/* ================================================================
   5. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Primary: Gold fill */
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* Outline: White border, transparent bg — for use on dark backgrounds */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Nav CTA button */
.btn-nav {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}
.btn-nav:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Large button variant */
.btn-large {
  font-size: var(--text-base);
  padding: 1rem 2.25rem;
}

/* Navy fill button — for use on light backgrounds */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* ================================================================
   6. NAVIGATION BAR
   Transparent over hero; becomes solid navy on scroll (via JS class)
================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

/* JS adds .scrolled class when user scrolls past 80px */
.navbar.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Brand / Logo area */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation when .open is added by JS */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ================================================================
   7. HERO SECTION
   Full-viewport height banner with dark navy background.
   Set a real background image by replacing the CSS below.
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);

  /* Default gradient background — replace with:
     background-image: url('../assets/images/hero-bg.jpg');
     background-size: cover;
     background-position: center;
  */
  background:
    linear-gradient(
      160deg,
      var(--navy-deep) 0%,
      #0e2d55 45%,
      #143a6b 100%
    );
  overflow: hidden;
}

/* Subtle diagonal grid texture overlay — adds conference gravitas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.03) 0px,
      rgba(212, 175, 55, 0.03) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

/* Dark overlay — used when a real background image is set */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 41, 0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-inline: var(--space-lg);
}

/* Logo in hero */
.hero-logo-wrap {
  margin-bottom: var(--space-md);
}

.hero-logo {
  height: 100px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

/* Text fallback when logo image is missing */
.hero-logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  border: 3px solid var(--gold);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
}

/* Hide fallback if real logo loaded */
.hero-logo-wrap:has(.hero-logo[src]) .hero-logo-fallback {
  display: none;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-xs);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  /* Subtle gold text-shadow for depth */
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.18);
}

.hero-tagline {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-md);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero-tagline em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}

/* Date/location pill */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero-meta i { color: var(--gold); }
.hero-meta-divider { color: rgba(255,255,255,0.3); }

/* CTA button row */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Bouncing scroll arrow at bottom of hero */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}


/* ================================================================
   8. GOLD TICKER (SIGNATURE ELEMENT)
   Continuous scrolling ticker that separates hero from content.
   A nod to parliamentary press tickers seen in news coverage of the UN.
================================================================ */
.ticker-wrap {
  background: var(--gold);
  overflow: hidden;
  padding-block: 0.65rem;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-deep);
  padding-inline: 2rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}


/* ================================================================
   9. SECTION SHARED STYLES
   (see .section and .section-header utilities in section 4)
================================================================ */

/* Dark navy section variant */
.section--dark {
  background: var(--navy-deep);
}
.section--dark .section-title,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}
.section--dark p,
.section--dark .section-eyebrow {
  color: rgba(255,255,255,0.7);
}
.section--dark .section-eyebrow {
  color: var(--gold-soft);
}


/* ================================================================
   10. ABOUT SECTION
================================================================ */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text p {
  margin-bottom: var(--space-sm);
}

.about-lead {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
}

/* Animated counters row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--grey-light);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-left: 2px;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 0.25rem;
}

/* About image with gold offset frame */
.about-image-wrap {
  position: relative;
  padding: 1.25rem 0 0 1.25rem; /* space for the gold frame */
}

.about-img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease);
}

.about-img-placeholder:hover img {
  transform: scale(1.03);
}

/* Placeholder shown when image fails to load */
.about-img-placeholder.show-placeholder img {
  display: none;
}

.placeholder-text {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  color: var(--grey-mid);
  text-align: center;
  padding: var(--space-lg);
}

.about-img-placeholder.show-placeholder .placeholder-text {
  display: flex;
}

.placeholder-text i {
  font-size: 2.5rem;
  color: var(--grey-light);
}

.placeholder-text p { color: var(--grey-mid); font-weight: 500; }
.placeholder-text small { color: var(--grey-light); font-size: var(--text-xs); }

/* Gold accent frame behind image */
.about-img-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 1.25rem);
  height: calc(100% - 1.25rem);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.6;
}


/* ================================================================
   11. SECRETARY-GENERAL SECTION
================================================================ */
.sg-section {
  background: var(--off-white);
}

.sg-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
  max-width: 900px;
  margin-inline: auto;
}

/* SG photo */
.sg-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.sg-img-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--off-white);
  border: 4px solid var(--gold);
  flex-shrink: 0;
}

.sg-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-img-placeholder.show-placeholder img { display: none; }

.sg-img-placeholder.show-placeholder .placeholder-text {
  display: flex;
  height: 100%;
}

/* Large decorative quotation mark */
.sg-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.sg-quote {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--grey-dark);
  line-height: 1.75;
  border: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.sg-quote em {
  color: var(--navy);
  font-style: italic;
}

.sg-attribution {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--grey-light);
}

.sg-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--navy);
  font-style: normal;
}

.sg-title-label {
  font-size: var(--text-sm);
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 0.2rem;
}


/* ================================================================
   12. COMMITTEES SECTION
================================================================ */
.committees-section {
  background: var(--navy-deep);
}

.committees-section .section-title {
  color: var(--white);
}

.committees-section .section-eyebrow {
  color: var(--gold-soft);
}

.committees-section .section-desc {
  color: rgba(255,255,255,0.6);
}

.committees-section .section-title::after {
  background: var(--gold);
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Individual committee card */
.committee-card {
  background: var(--navy-mid);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: rgba(212, 175, 55, 0.5);
}

.committee-card-header {
  background: var(--gold);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.committee-abbr {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
}

.committee-card-body {
  padding: var(--space-md);
  flex: 1;
}

.committee-card-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.committee-card-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.committee-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  transition: background var(--transition), color var(--transition);
}

.committee-card-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-soft);
}

.committee-card-link i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.committee-card-link:hover i {
  transform: translateX(4px);
}


/* ================================================================
   13. SCHEDULE SECTION
================================================================ */
.schedule-section {
  background: var(--white);
}

/* Day selector tabs */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 0;
}

.schedule-tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-mid);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px; /* aligns with border-bottom of tabs container */
}

.schedule-tab:hover {
  color: var(--navy);
}

.schedule-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* Schedule day panels */
.schedule-panel {
  display: none;
  animation: fadeInUp 0.35s var(--ease);
}

.schedule-panel.active {
  display: block;
}

.schedule-date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--grey-light);
}

/* Individual schedule items */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--grey-light);
  align-items: start;
  transition: background var(--transition);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item:hover {
  background: var(--off-white);
  padding-inline: var(--space-sm);
  margin-inline: calc(-1 * var(--space-sm));
  border-radius: var(--radius-sm);
}

.schedule-time {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.schedule-details h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
}

.schedule-details p {
  font-size: var(--text-sm);
  color: var(--grey-mid);
  line-height: 1.5;
}


/* ================================================================
   14. FAQ SECTION
================================================================ */
.faq-section {
  background: var(--off-white);
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.faq-question:hover {
  background: var(--off-white);
  color: var(--navy);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold-dark);
  background: var(--off-white);
}

.faq-icon {
  font-size: var(--text-sm);
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Accordion answer — hidden by default, shown via JS */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease), padding 0.38s var(--ease);
  padding-inline: var(--space-lg);
}

.faq-answer.open {
  max-height: 400px;
  padding-block: var(--space-sm) var(--space-md);
}

.faq-answer p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--grey-dark);
}


/* ================================================================
   15. CTA BANNER
   Full-width dark navy call-to-action strip
================================================================ */
.cta-banner {
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, #102d56 100%);
  padding-block: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative gold glow behind CTA */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-lg);
  max-width: 520px;
  margin-inline: auto;
}

.cta-banner p + .btn {
  margin-top: 0;
}


/* ================================================================
   16. FOOTER
================================================================ */
.footer {
  background: var(--navy-deep);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--gold-soft);
  margin-bottom: var(--space-sm);
}

.footer-about-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: var(--space-md);
}

.footer-contact-list li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.footer-contact-list i {
  color: var(--gold);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Social icon row */
.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Copyright bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}


/* ================================================================
   17. BACK-TO-TOP BUTTON
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}


/* ================================================================
   18. SCROLL ANIMATIONS
   Elements with [data-animate] start invisible and slide in.
   JS adds .animated class when element enters viewport.
================================================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* Staggered delay for grid children */
[data-delay="0"]   { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }


/* ================================================================
   19. PAGE-SPECIFIC: committees.html
================================================================ */

/* Full committee listing page */
.committees-page-section {
  background: var(--off-white);
}

.committee-full-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: 200px 1fr;
  border-left: 5px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.committee-full-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.committee-full-side {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  gap: var(--space-xs);
}

.committee-full-abbr {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
}

.committee-full-body {
  padding: var(--space-lg);
}

.committee-full-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.committee-full-body .agenda-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
  margin-top: var(--space-sm);
}

.committee-full-body p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.committee-full-body .committee-meta-row {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--grey-light);
  flex-wrap: wrap;
}

.committee-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: var(--grey-mid);
  font-weight: 500;
}

.committee-meta-item i {
  color: var(--gold-dark);
}


/* ================================================================
   20. PAGE-SPECIFIC: secretariat.html
================================================================ */
.secretariat-section {
  background: var(--white);
}

.secretariat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.secretariat-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

.secretariat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.secretariat-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--off-white);
}

.secretariat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secretariat-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.secretariat-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
}

.secretariat-bio {
  font-size: var(--text-sm);
  color: var(--grey-mid);
  line-height: 1.65;
}


/* ================================================================
   21. PAGE-SPECIFIC: registration.html
================================================================ */
.registration-section {
  background: var(--off-white);
}

/* Registration form card */
.reg-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-dark);
  background: var(--off-white);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--grey-light);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Two column form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Fee tiers grid */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.fee-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  border: 2px solid var(--grey-light);
  transition: border-color var(--transition), transform var(--transition);
}

.fee-card.featured {
  border-color: var(--gold);
  position: relative;
}

.fee-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}

.fee-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
}

.fee-type {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
  margin-bottom: var(--space-xs);
}

.fee-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.fee-note {
  font-size: var(--text-xs);
  color: var(--grey-mid);
}


/* ================================================================
   22. PAGE-SPECIFIC: contact.html
================================================================ */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(212,175,55,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: var(--text-base);
}

.contact-info-text p:first-child {
  font-weight: 600;
  color: var(--white);
  font-size: var(--text-sm);
  margin-bottom: 0.2rem;
}

.contact-info-text p:last-child {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}


/* ================================================================
   23. RESPONSIVE — TABLET (max-width: 900px)
================================================================ */
@media (max-width: 900px) {

  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-lg);
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(212,175,55,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: var(--space-sm);
  }

  .nav-link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--text-base);
    border-bottom: none;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
  }

  .hamburger { display: flex; }

  /* About grid: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-image-wrap {
    order: -1; /* image on top on tablet */
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SG card: stack */
  .sg-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sg-photo-wrap { align-items: center; }

  /* Committees: 2 cols */
  .committees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Committee full cards: stack */
  .committee-full-card {
    grid-template-columns: 1fr;
  }
  .committee-full-side {
    padding: var(--space-md);
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-md);
  }

  /* Secretariat: 2 cols */
  .secretariat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 cols */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  /* Fee grid: stack */
  .fee-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  /* Contact grid: stack */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   24. RESPONSIVE — MOBILE (max-width: 600px)
================================================================ */
@media (max-width: 600px) {

  :root {
    --space-2xl: 4rem;
    --space-xl: 2.5rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .container {
    padding-inline: var(--space-sm);
  }

  /* Hero */
  .hero-logo { height: 72px; }
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: var(--text-base); }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Stats: 2 cols */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SG card padding */
  .sg-card { padding: var(--space-md); }

  /* Committees: 1 col */
  .committees-grid {
    grid-template-columns: 1fr;
  }

  /* Schedule tabs: scroll horizontally */
  .schedule-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  /* Schedule item: narrower time col */
  .schedule-item {
    grid-template-columns: 90px 1fr;
    gap: var(--space-sm);
  }

  /* Secretariat: 1 col */
  .secretariat-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: 1 col */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Form rows: stack */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* CTA banner */
  .cta-banner h2 { font-size: var(--text-xl); }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}


/* ================================================================
   25. REDUCED MOTION ACCESSIBILITY
   Disables all animations for users who prefer no motion.
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker-track { animation: none; }
  .scroll-indicator span { animation: none; }
}

.secretariat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; transition: .3s; } .secretariat-card:hover { transform: translateY(-8px); } .secretariat-image img { width: 100%; height: 300px; object-fit: cover; } .secretariat-body { padding: 1.5rem; } .secretariat-body span { display: block; color: var(--gold); margin-bottom: 1rem; } .quote-card { max-width: 850px; margin: auto; text-align: center; font-size: 1.1rem; line-height: 1.9; } @media(max-width:900px) { .executive-card { grid-template-columns: 1fr; } } .registration-form { max-width: 800px; margin: auto; display: grid; gap: 1.25rem; } .form-group { display: flex; flex-direction: column; gap: .5rem; } .form-group label { font-weight: 500; } .form-group input, .form-group select, .form-group textarea { padding: 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: white; } .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; } @media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }


/* =========================
   FIXES
========================= */

.contact-form-card,
.reg-form-card {
    background: white;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #d6dce3;
    background: white;
    color: #0A2342;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder {
    color: #8A9BB0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

/* Secretariat Images */

.secretariat-photo img,
.secretariat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Page */

.contact-form-card {
    box-shadow: var(--shadow-md);
}

.contact-info-card {
    min-height: 100%;
}

/* Committee Page */

.committee-full-card {
    margin-bottom: 2rem;
}

/* Fix accidental text overflow */

body {
    overflow-x: hidden;
}

