/* =========================================================
   Digital Fiji Forum 2026 — Stylesheet
   Theme: Deep navy + light blue, Pacific business/tech summit
   ========================================================= */

:root {
  /* This site has no dark theme; stop mobile browsers (Samsung Internet's
     auto-dark/night mode in particular) from auto-inverting images/colors,
     which can render the logo and other PNGs invisible. */
  color-scheme: light only;

  /* Color tokens */
  --navy-deep: #0a1b33;      /* primary dark surface */
  --navy-deepest: #060f1f;   /* footer / darkest surface */
  --navy-mid: #12305a;       /* secondary panels, borders on dark */
  --blue-accent: #2fa4e7;    /* primary interactive accent */
  --blue-accent-light: #8fd3ff; /* glow / secondary highlight */
  --bg-light: #f4f8fc;       /* light section background */
  --white: #ffffff;
  --text-dark: #12233f;
  --text-muted: #5f7896;
  --text-on-dark-muted: #a9bcd6;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Safety net: no plain <img>/<svg> can force horizontal overflow on
   narrow screens. Elements that need a fixed/explicit size (logo,
   speaker photos, etc.) all do so via a class, which overrides this
   lower-specificity element rule. */
img, svg, video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

p { color: var(--text-muted); line-height: 1.7; }

a { text-decoration: none; }

.section-pad { padding: 5.5rem 0; }

@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
}

.container-narrow { max-width: 640px; }

/* Section kicker — small label above headings, used sparingly and only
   where it marks an actual coordinate/wayfinding conceit, not decoration */
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  /*color: var(--blue-accent);*/
  color:#000;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-accent);
  display: inline-block;
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 100px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.35s ease;
}
.main-navbar.is-scrolled .brand-logo { height: 42px; }
.brand-logo--footer { height: 58px; }

/* Tablet/small-laptop range: the 150px desktop logo makes the fixed
   navbar disproportionately tall once it no longer sits beside a
   full desktop nav (navbar-expand-lg collapses below 992px). This
   must come before the 575.98px rule below so phones still win the
   cascade (equal specificity resolves by source order, not by which
   query is narrower). */
@media (max-width: 991.98px) {
  .brand-logo { height: 90px; }
}

@media (max-width: 575.98px) {
  .brand-logo { height: 40px; }
  .main-navbar.is-scrolled .brand-logo { height: 36px; }
}

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1.1rem 0;
  background: var(--navy-deep);
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.main-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%238fd3ff' stroke-width='1'%3E%3Cline x1='10' y1='15' x2='60' y2='40'/%3E%3Cline x1='60' y1='40' x2='110' y2='20'/%3E%3Cline x1='60' y1='40' x2='40' y2='90'/%3E%3Cline x1='40' y1='90' x2='100' y2='110'/%3E%3Cline x1='100' y1='110' x2='130' y2='70'/%3E%3Cline x1='110' y1='20' x2='130' y2='70'/%3E%3C/g%3E%3Cg fill='%238fd3ff'%3E%3Ccircle cx='10' cy='15' r='3'/%3E%3Ccircle cx='60' cy='40' r='3'/%3E%3Ccircle cx='110' cy='20' r='3'/%3E%3Ccircle cx='40' cy='90' r='3'/%3E%3Ccircle cx='100' cy='110' r='3'/%3E%3Ccircle cx='130' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}

.main-navbar .container {
  position: relative;
  z-index: 1;
}

.main-navbar.is-scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 6px 24px rgba(6, 15, 31, 0.15);
}

.main-navbar .nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.65rem;
  padding: 0.4rem 0.1rem !important;
  position: relative;
  opacity: 0.8;
}

.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: width 0.25s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--white);
  opacity: 1;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  color: var(--white);
  padding: 0.45rem 0.6rem;
}
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    background: var(--navy-deep);
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
  }
  .main-navbar .nav-link { margin: 0.15rem 0; }
  .main-navbar .navbar-collapse .nav-link {
    color: var(--white);
    opacity: 0.88;
    display: block;
    padding: 0.7rem 0.25rem !important;
  }
  .main-navbar .navbar-collapse .nav-link:hover,
  .main-navbar .navbar-collapse .nav-link.active {
    color: var(--white);
    opacity: 1;
  }
}

/* =========================================================
   Hero / Image-slideshow banner
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding-top: 12rem;
}

@media (max-width: 575.98px) {
  .hero { padding-top: 6rem; }
}

/* Background image slideshow — crossfading layers */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s ease; transform: none; }
  .hero-slide.is-active { transform: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 31, 0.78) 0%, rgba(10, 27, 51, 0.72) 55%, rgba(6, 15, 31, 0.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 5rem;
}

.hero-content .section-kicker {
  position: relative;
  z-index: 3;
  color: #000;
  background: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.hero-content .section-kicker::before { background: #000; }

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--white);
  max-width: 820px;
}

.hero-logo-heading {
  display: block;
  height: 400px;
  width: auto;
  max-width: 90%;
  margin: 0 auto 1.25rem;
}

@media (max-width: 767.98px) {
  .hero-logo-heading { height: 200px; }
}

@media (max-width: 575.98px) {
  .hero-logo-heading { height: 110px; margin-bottom: 0.75rem; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  max-width: 1000px;
  margin: 0 auto 2.25rem;
  padding: 0;
}

.hero-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  backdrop-filter: blur(2px);
}

.hero-pillar-bullet {
  flex-shrink: 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--blue-accent-light);
  box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.18);
}

.hero-pillar-text {
  color: var(--text-on-dark-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .hero-pillars { grid-template-columns: 1fr; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 640px;
}

/* Centered hero variant */
.hero--centered .section-kicker { justify-content: center; }
.hero--centered .hero-heading,
.hero--centered .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.hero--centered .hero-meta {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-meta div { color: var(--text-on-dark-muted); font-size: 0.9rem; }
.hero-meta strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* Buttons */
.btn-accent {
  background-color: var(--blue-accent);
  border: 1px solid var(--blue-accent);
  color: var(--navy-deepest);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow .2s ease;
}
.btn-accent:hover {
  background-color: #4fb6f2;
  color: var(--navy-deepest);
  box-shadow: 0 8px 20px rgba(47, 164, 231, 0.35);
}

.btn-outline-light-custom {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  color: var(--white);
}

.btn-navy {
  background-color: var(--navy-deep);
  border: 1px solid var(--navy-deep);
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-navy:hover {
  background-color: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-on-dark-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--blue-accent-light), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* =========================================================
   Hero — white banner variant. Keeps the same crossfading photo
   slideshow, just lightens the overlay/colors instead of the dark
   navy treatment above. Toggle by adding/removing the .hero--light
   class on the <section class="hero ..."> element in home.php —
   the original dark rules above are untouched, so removing the
   class reverts to the dark banner.
   ========================================================= */
.hero--light { background: var(--white); }
.hero--light::before { background: var(--white); }
.hero--light .hero-overlay { background: rgba(255,255,255,0.9); }
.hero--light .hero-heading { color: var(--text-dark); }
.hero--light .hero-sub { color: var(--text-muted); }
.hero--light .hero-pillar {
  background: var(--navy-deep);
  border: 1px solid var(--navy-mid);
  backdrop-filter: none;
}
.hero--light .hero-pillar-bullet {
  background: var(--blue-accent-light);
  box-shadow: 0 0 0 4px rgba(143,211,255,0.25);
}
.hero--light .hero-pillar-text { color: var(--text-on-dark-muted); }
.hero--light .hero-meta { border-top: 1px solid rgba(18,48,90,0.14); }
.hero--light .hero-meta div { color: var(--text-muted); }
.hero--light .hero-meta strong { color: var(--navy-deep); }
.hero--light .scroll-cue { color: var(--text-muted); }
.hero--light .scroll-cue .line { background: linear-gradient(var(--blue-accent), transparent); }

/* =========================================================
   About section
   ========================================================= */
.about-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(10, 27, 51, 0.18);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 340px;
}
.about-media-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(6, 15, 31, 0.82);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.about-media-badge strong { color: var(--blue-accent-light); font-family: var(--font-display); }

.about-text h2 { margin-bottom: 1.1rem; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.02rem; }

.about-stats {
  display: flex;
  gap: 2.25rem;
  margin: 1.75rem 0 2rem;
  flex-wrap: wrap;
}
.about-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-deep);
}
.about-stats div span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   Speakers section
   ========================================================= */
.speakers-section {
  background-color: var(--navy-deep);
  position: relative;
}

.speakers-section .section-heading-block { color: var(--white); }
.speakers-section .section-heading-block p { color: var(--text-on-dark-muted); }
.speakers-section .section-kicker { color: var(--blue-accent-light); }
.speakers-section .section-kicker::before { background: var(--blue-accent-light); }

.speaker-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  background: var(--navy-mid);
  cursor: pointer;
}

.speaker-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.speaker-card:hover .speaker-photo,
.speaker-card.is-active .speaker-photo {
  transform: scale(1.06);
  opacity: 0.32;
}

.speaker-default-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(6,15,31,0) 0%, rgba(6,15,31,0.88) 75%);
  color: var(--white);
  transition: opacity 0.3s ease;
}
.speaker-default-label h5 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 0.15rem;
}
.speaker-default-label span {
  font-size: 0.82rem;
  color: var(--blue-accent-light);
}

.speaker-card:hover .speaker-default-label,
.speaker-card.is-active .speaker-default-label { opacity: 0; }

.speaker-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,27,51,0.75) 0%, rgba(6,15,31,0.94) 100%);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.speaker-card:hover .speaker-overlay,
.speaker-card.is-active .speaker-overlay { opacity: 1; }

.speaker-overlay h5 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}
.speaker-overlay .designation {
  color: var(--blue-accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.speaker-overlay .experience {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.55;
}
.speaker-overlay .experience-tag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--blue-accent-light);
  border: 1px solid rgba(143, 211, 255, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

@media (max-width: 767.98px) {
  .speaker-default-label span { display: none; }
  .speaker-card:hover .speaker-photo,
  .speaker-card.is-active .speaker-photo {
    transform: none;
    opacity: 1;
  }
  .speaker-card:hover .speaker-default-label,
  .speaker-card.is-active .speaker-default-label {
    opacity: 1;
  }
  .speaker-card:hover .speaker-overlay,
  .speaker-card.is-active .speaker-overlay {
    opacity: 0;
  }
}

/* =========================================================
   Program schedule teaser
   ========================================================= */
.schedule-tabs {
  flex-wrap: wrap;
}
.schedule-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-display);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0.25rem;
  margin-right: 2rem;
}
.schedule-tabs .nav-link.active {
  color: var(--navy-deep);
  border-bottom-color: var(--blue-accent);
  background: transparent;
}

.schedule-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e3ebf3;
  align-items: baseline;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  min-width: 105px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.schedule-detail h6 { margin-bottom: 0.2rem; font-family: var(--font-body); font-weight: 700;}
.schedule-detail span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Sponsors
   ========================================================= */
.sponsor-tier-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
}
.sponsor-box {
  border: 1px solid #dfe8f2;
  border-radius: 6px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sponsor-box--platinum { height: 155px; padding: 1.3rem 1.6rem; }
.sponsor-box--gold { height: 122px; padding: 1rem 1.3rem; }
.sponsor-box:hover { border-color: var(--blue-accent); color: var(--navy-deep); box-shadow: 0 6px 16px rgba(10, 40, 80, 0.08); }
.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.sponsor-box:hover .sponsor-logo { transform: scale(1.05); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deepest);
  color: var(--text-on-dark-muted);
  padding: 4.5rem 0 1.75rem;
}
.site-footer h6 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}
.site-footer a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--blue-accent-light); }
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  max-width: 320px;
}
.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: var(--white);
}
.social-row a:hover { border-color: var(--blue-accent); background: rgba(47,164,231,0.12); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #6d84a4;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .line { animation: none; }
  .speaker-photo, .speaker-overlay, .speaker-default-label { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 2px;
}

/* =========================================================
   Hero video fallback (navy gradient shows if the mp4 is missing)
   ========================================================= */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(47,164,231,0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(18,48,90,0.9), transparent 55%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-deepest));
}

/* =========================================================
   Inner-page header (solid navbar + page hero banner)
   ========================================================= */
.main-navbar.is-solid {
  position: sticky;
  background-color: var(--navy-deep);
  padding: 0.75rem 0;
  box-shadow: 0 6px 24px rgba(6, 15, 31, 0.35);
}
.main-navbar.is-solid.is-scrolled { padding: 0.6rem 0; }

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(47,164,231,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-deepest));
  color: var(--white);
  padding-top: 14rem;
  padding-bottom: 6rem;
  overflow: hidden;
}
.page-hero .section-kicker { color: var(--blue-accent-light); }
.page-hero .section-kicker::before { background: var(--blue-accent-light); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 0 auto 0.9rem;
  max-width: 780px;
}
.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* White/no-gradient variant for inner-page hero banners. Toggle by
   adding/removing .page-hero--light on the <section class="page-hero ...">
   element — the original dark gradient rules above are untouched, so
   removing the class reverts to the dark banner. */
.page-hero--light { background: var(--white); }
.page-hero--light .section-kicker { color: var(--blue-accent); }
.page-hero--light .section-kicker::before { background: var(--blue-accent); }
.page-hero--light h1 { color: var(--text-dark); }
.page-hero--light p { color: var(--text-muted); }

/* =========================================================
   Inner-page hero — logo + heading two-column layout (schedule,
   contact, attendance). Stacks to a single centered column below
   768px so the logo never competes with the heading for width.
   ========================================================= */
.page-hero-grid {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: left;
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
}
.page-hero-logo {
  display: flex;
  justify-content: center;
}
.page-hero-logo-img {
  height: 190px;
  width: auto;
  max-width: 100%;
  display: block;
}
.page-hero-text { max-width: 480px; }
.page-hero-grid .page-hero-text h1,
.page-hero-grid .page-hero-text p {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767.98px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .page-hero-text { max-width: 100%; }
  .page-hero-grid .page-hero-text h1,
  .page-hero-grid .page-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-logo-img { height: 120px; }
}

@media (max-width: 575.98px) {
  .page-hero-logo-img { height: 90px; }
}

.breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid #e3ebf3;
  font-size: 0.85rem;
}
.breadcrumb-bar .container { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--blue-accent); }
.breadcrumb-bar .sep { color: #c2d0e0; margin: 0 0.6rem; }
.breadcrumb-bar .current { color: var(--navy-deep); font-weight: 600; }

/* =========================================================
   Generic content helpers
   ========================================================= */
.lead-text { font-size: 1.15rem; color: var(--text-dark); line-height: 1.75; }

.info-card {
  height: 100%;
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  padding: 1.75rem;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 27, 51, 0.12);
  border-color: var(--blue-accent);
}
.info-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--blue-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.info-card h5 { margin-bottom: 0.5rem; }
.info-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Timeline (About) */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px; bottom: 4px;
  width: 2px;
  background: #dbe6f1;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.72rem; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-accent);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
}
.timeline-item p { margin-bottom: 0; }

/* Committee / team */
.person-tile { text-align: center; }
.person-tile img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 3px solid var(--bg-light);
}
.person-tile h6 { margin-bottom: 0.15rem; }
.person-tile span { font-size: 0.82rem; color: var(--text-muted); }

/* =========================================================
   Schedules page
   ========================================================= */
.schedule-row--side {
  background: #eaf5fd;
  margin: 0 -1rem;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  border-bottom: 1px solid #d7ebf7;
}
.schedule-badge-side {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: var(--blue-accent);
  color: #fff;
}

/* Pillars legend box */
.pillars-legend {
  background: var(--bg-light);
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.pillars-legend-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-deep);
  margin-bottom: 0.9rem;
}
.pillars-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem 1.5rem;
}
.pillar-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.3;
}
.pillar-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 30px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.pillar-p1 { background: var(--navy-deep); }
.pillar-p2 { background: #d97a2e; }
.pillar-p3 { background: #6b45a5; }
.pillar-p4 { background: #1f6b3a; }
.pillar-p5, .pillar-all { background: #b5202f; }

/* Schedule table — mirrors the official printed agenda */
.schedule-table {
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  overflow: hidden;
}
.schedule-table-head {
  display: grid;
  grid-template-columns: 110px 1fr 100px 170px;
  background: #1894a8;
  color: #fff;
}
.schedule-table-head .st-col {
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.schedule-table-row {
  display: grid;
  grid-template-columns: 110px 1fr 100px 170px;
  border-top: 1px solid #e3ebf3;
}
.schedule-table-row:nth-child(even) { background: var(--bg-light); }
.schedule-table-row .st-col { padding: 1rem; }
.st-col-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-deep);
}
.st-col-session h6 { margin-bottom: 0.3rem; font-family: var(--font-body); font-weight: 700; }
.st-col-session p { margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }
.st-col-session .session-speakers { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.st-col-session .session-speakers div { margin-bottom: 0.1rem; }
.speaker-name { font-weight: 600; font-style: normal; color: var(--text-dark); }
.st-col-pillar { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.st-col-venue { font-size: 0.85rem; color: var(--text-muted); }

/* Break rows (Morning Tea, Lunch, Afternoon Tea) — solid teal bar */
.schedule-table-row--break {
  background: #1894a8 !important;
  align-items: center;
}
.schedule-table-row--break .st-col-time,
.schedule-table-row--break .st-col-session h6 {
  color: #fff;
}
.schedule-table-row--break .st-col-session { grid-column: 2 / 4; }
.schedule-table-row--break .st-col-session h6 { margin-bottom: 0; }
.schedule-table-row--break .st-col-venue { color: #fff; opacity: 0.9; }

/* Side-session rows — light blue tint + badge, same treatment as before */
.schedule-table-row--side { background: #eaf5fd !important; }
.schedule-table-row--side .schedule-badge-side { margin-left: 0.6rem; }

@media (max-width: 991.98px) {
  .schedule-table-head { display: none; }
  .schedule-table-row {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.5rem;
  }
  .schedule-table-row .st-col { padding: 0; }
  .st-col-time { order: 1; }
  .st-col-pillar { order: 2; flex-direction: row; flex-wrap: wrap; }
  .st-col-session { order: 3; }
  .st-col-venue { order: 4; font-weight: 600; color: var(--navy-deep); }
  .schedule-table-row--break .st-col-session { grid-column: auto; }
  .speaker-role { display: none; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-form .form-control {
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem; /* iOS Safari auto-zooms focused inputs under 16px */
}
.contact-form .form-control:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(47, 164, 231, 0.15);
}
.contact-form label { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--text-dark); }

.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e3ebf3;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .bi {
  font-size: 1.3rem;
  color: var(--blue-accent);
  flex-shrink: 0;
}
.contact-detail h6 { margin-bottom: 0.15rem; }
.contact-detail p { margin-bottom: 0; font-size: 0.92rem; }

.map-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 10px;
  filter: grayscale(0.2);
}

.accordion-button:not(.collapsed) {
  color: var(--navy-deep);
  background: var(--bg-light);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(47, 164, 231, 0.15); }

/* =========================================================
   Resources page
   ========================================================= */
.resource-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.resource-row:hover { border-color: var(--blue-accent); box-shadow: 0 12px 30px rgba(10,27,51,0.10); }
.resource-row .file-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--blue-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.resource-row .meta { flex: 1; }
.resource-row h6 { margin-bottom: 0.15rem; }
.resource-row span { font-size: 0.82rem; color: var(--text-muted); }

.cta-strip {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(47,164,231,0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-deepest));
  color: var(--white);
  border-radius: 14px;
  padding: 3rem;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-strip p { color: var(--text-on-dark-muted); max-width: 520px; margin: 0 auto 1.75rem; }
.qr-code {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .cta-strip { padding: 2rem 1.25rem; }
  .resource-row { flex-wrap: wrap; }
}

/* =========================================================
   Home page — mobile responsiveness refinements
   ========================================================= */
@media (max-width: 767.98px) {
  /* Hero banner: breathing room so the scroll cue and stats
     row don't crowd the bottom edge of the banner background */
  .hero { padding-bottom: 5.5rem; }
  .hero-content { padding-top: 0.5rem; padding-bottom: 1.5rem; }
  .hero-meta { margin-top: 2.25rem; margin-bottom: 1.5rem; }

  /* About section */
  .about-media { margin-bottom: 1.75rem; }
  .about-stats { margin: 1.5rem 0 1.75rem; gap: 1.5rem; }

  /* Speakers / Team section */
  .speaker-card { margin-bottom: 0.5rem; }

  /* Program / Schedule section */
  .schedule-row { flex-direction: column; align-items: flex-start; padding: 1rem 0; gap: 0.35rem; }
  .schedule-row--side { padding: 1rem 0.75rem; }
  .schedule-time { margin-bottom: 0.15rem; }
  #schedule .mt-5 { margin-top: 2rem; text-align: center; }

  /* Partners & Sponsors — more room between tiers/rows so logos
     have proper margin and don't feel cramped at col-6 width */
  .sponsor-tier-label { margin-top: 1.5rem; }
  .sponsor-box { padding: 0.9rem; min-width: 0; }
  .sponsor-box--platinum { height: 110px; padding: 1rem 1.1rem; }
  .sponsor-box--gold { height: 100px; padding: 0.9rem 1rem; }
  .sponsor-logo { min-width: 0; max-width: 85%; max-height: 85%; }

  /* Schedule & Contact pages */
  .page-hero { padding-bottom: 3.5rem; }

  .contact-form.row { margin-bottom: 0.5rem; }
  .map-embed { min-height: 240px; }
}

@media (max-width: 575.98px) {
  .page-hero { padding-top: 7.5rem; }
  .hero-pillars { gap: 0.45rem; margin-bottom: 1.25rem; }
  .hero-pillar { padding: 0.55rem 0.75rem; }
  .hero-pillar-text { font-size: 0.78rem; line-height: 1.35; }
  .hero .btn-accent { padding: 0.65rem 1.6rem; }

  .sponsor-box { height: 88px; }
  .sponsor-box--platinum { height: 110px; }
  .sponsor-box--gold { height: 96px; }
}
