/* ============================================================
   ECP DAY 2026 — style.css
   Mobile-first. Single stylesheet. No frameworks.
   ============================================================ */

/* ---- Variables ---- */
:root {
  --dark:   #2C5F7C;
  --darker: #1F4D66;
  --mid:    #5B9BAD;
  --teal:   #6BA3A0;
  --light:  #EEF5F0;
  --sand:   #F7F4F0;
  --white:  #FFFFFF;
  --green:  #3A8A5C;
  --amber:  #C4833A;
  --pad-x:  20px;
  --pad-y:  48px;
}

@media (min-width: 768px)  { :root { --pad-x: 48px; --pad-y: 64px; } }
@media (min-width: 1024px) { :root { --pad-x: 80px; --pad-y: 80px; } }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #333;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; padding: 0; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--pad-y) 0; }
.section-sand   { background: var(--sand); }
.section-white  { background: var(--white); }
.section-light  { background: var(--light); }
.section-darker { background: var(--darker); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: 56px;
}
@media (min-width: 1024px) { .site-nav { height: 68px; } }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--pad-x);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

/* Desktop links */
.nav-links { display: none; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  padding: 4px 0 2px;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--white); }
.nav-link.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}
.nav-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 12px;
  font-size: 17px;
  user-select: none;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
}
.nav-drawer.is-open { display: block; }
@media (min-width: 1024px) { .nav-drawer { display: none !important; } }

.nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.nav-drawer-links {
  position: relative;
  background: var(--dark);
  z-index: 1;
}
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.drawer-link:last-child { border-bottom: none; }
.drawer-link.active { color: var(--white); font-weight: 700; }
.drawer-link:hover { background: rgba(255,255,255,0.05); }
.drawer-chevron { font-size: 16px; color: rgba(255,255,255,0.35); }

/* ============================================================
   HERO — HOME
   ============================================================ */

.hero-home {
  position: relative;
  background: var(--dark);
  min-height: 420px;
  overflow: hidden;
  padding: 60px 0 100px;
}
@media (min-width: 768px) { .hero-home { min-height: 480px; padding: 72px 0 110px; } }

/* Faded background photo — add img/hero-home.jpg to activate */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-home.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-home > .container {
  position: relative;
  z-index: 2;
}

/* Decorative rings */
.hero-rings {
  position: absolute;
  top: 0; right: 0;
  pointer-events: none;
  z-index: 1;
  display: none;
}
@media (min-width: 768px) { .hero-rings { display: block; } }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(107,163,160,0.2);
  background: transparent;
}
.ring-outer { width: 380px; height: 380px; right: -80px; top: -80px; }
.ring-inner { width: 250px; height: 250px; right: -30px; top: -30px; }

/* Pill */
.hero-pill {
  display: inline-block;
  background: rgba(107,163,160,0.25);
  border: 1px solid rgba(107,163,160,0.4);
  color: #CCE9EC;
  font-size: 10px;
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .hero-pill { font-size: 12px; } }

/* H1 */
.hero-home h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.02;
  margin-bottom: 16px;
}
@media (min-width: 768px)  { .hero-home h1 { font-size: 62px; letter-spacing: -2px; } }
@media (min-width: 1024px) { .hero-home h1 { font-size: 72px; letter-spacing: -3px; } }

.hero-subtitle {
  font-style: italic;
  font-size: 17px;
  color: #A8D4DC;
  margin-bottom: 10px;
}
@media (min-width: 768px)  { .hero-subtitle { font-size: 20px; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 24px; } }

.hero-date {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}
@media (min-width: 768px)  { .hero-date { font-size: 14px; } }
@media (min-width: 1024px) { .hero-date { font-size: 15px; } }

/* CTA buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) { .hero-buttons { flex-direction: row; gap: 14px; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--white); color: var(--dark); }
.btn-outline  { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }

@media (max-width: 767px) { .btn { width: 100%; } }

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  width: 100%;
}
.hero-wave svg { display: block; width: 100%; height: 55px; }
@media (min-width: 768px) { .hero-wave svg { height: 75px; } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.hero-page {
  position: relative;
  background: var(--dark);
  padding: 52px 0 80px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero-page { padding: 72px 0 90px; } }

/* Photo background — add per-page class with background-image to activate */
.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-page > .container { position: relative; z-index: 2; }

.hero-page h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
@media (min-width: 768px)  { .hero-page h1 { font-size: 36px; } }
@media (min-width: 1024px) { .hero-page h1 { font-size: 42px; } }

.hero-page-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 6px;
}
@media (min-width: 768px) { .hero-page-sub { font-size: 15px; } }

/* ============================================================
   COUNTDOWN TIMER (Hero)
   ============================================================ */

.hero-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 28px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 64px;
}
@media (min-width: 768px) { .countdown-item { min-width: 80px; padding: 12px 18px; } }

.countdown-num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
@media (min-width: 768px) { .countdown-num { font-size: 36px; } }

.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
@media (min-width: 768px) { .countdown-label { font-size: 11px; } }

.countdown-sep {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .countdown-sep { font-size: 30px; } }

/* ============================================================
   GETTING THERE (Home)
   ============================================================ */

.getting-there-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 1024px) { .getting-there-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.transport-card {
  background: var(--sand);
  border-radius: 14px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transport-icon {
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transport-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
@media (min-width: 768px) { .transport-card h3 { font-size: 16px; } }

.transport-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
@media (min-width: 768px) { .transport-card p { font-size: 14px; } }
.transport-card p strong { color: var(--dark); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
@media (min-width: 768px)  { .section-title { font-size: 24px; } }
@media (min-width: 1024px) { .section-title { font-size: 28px; } }

.section-sub {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 28px;
}

/* ============================================================
   THEME CARDS (Home)
   ============================================================ */

.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 1024px) { .themes-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.theme-card {
  background: #EEF5F8;
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.theme-card--nature        { border-top: 4px solid var(--green); }
.theme-card--heritage      { border-top: 4px solid var(--amber); }
.theme-card--wellness      { border-top: 4px solid var(--mid); }
.theme-card--sustainability { border-top: 4px solid var(--teal); }

.theme-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.theme-icon--nature        { background: #E8F5EE; }
.theme-icon--heritage      { background: #FBF0E4; }
.theme-icon--wellness      { background: #E8F2F5; }
.theme-icon--sustainability { background: #EEF5F0; }

.theme-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 1024px) { .theme-card h3 { font-size: 13px; } }

.theme-card--nature h3        { color: var(--green); }
.theme-card--heritage h3      { color: var(--amber); }
.theme-card--wellness h3      { color: var(--mid); }
.theme-card--sustainability h3 { color: var(--teal); }

/* ============================================================
   STATS (Home)
   ============================================================ */

.stats-label {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--darker);
  border: 2px solid var(--darker);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--darker);
}
@media (min-width: 768px) {
  .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.12); }
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-label-text { font-size: 13px; color: var(--teal); }

/* ============================================================
   ABOUT (Home)
   ============================================================ */

.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.about-heading-wrap {
  border-left: none;
  padding-left: 0;
  margin-bottom: 24px;
}
.about-heading-wrap h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
@media (min-width: 1024px) { .about-heading-wrap h2 { font-size: 32px; } }
.about-heading-wrap p { font-size: 15px; color: #555; line-height: 1.8; }
@media (min-width: 1024px) { .about-heading-wrap p { font-size: 16px; } }

.about-body { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 14px; }
@media (min-width: 1024px) { .about-body { font-size: 16px; } }
.about-body:last-child { margin-bottom: 0; }
.about-body strong { color: var(--mid); font-weight: 700; }

/* ============================================================
   ORGANISING COMMITTEE (Home)
   ============================================================ */

.committee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
@media (min-width: 768px) { .committee-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.committee-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(91,155,173,0.2);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 100px;
}

.committee-card .org-logo {
  width: 100%;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   LOGO PLACEHOLDER
   ============================================================ */

.org-logo {
  object-fit: contain;
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-placeholder {
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  background: #E8F2F5;
}
.logo-placeholder--lg { width: 120px; height: 60px; }
.logo-placeholder--md { width: 72px;  height: 50px; }
.logo-placeholder--sm { width: 80px;  height: 40px; background: #EEF5F0; }

.logo-placeholder::before,
.logo-placeholder::after {
  content: '';
  display: block;
  background: var(--mid);
  border-radius: 2px;
  opacity: 0.3;
}
.logo-placeholder::before { width: 55%; height: 3px; }
.logo-placeholder::after  { width: 38%; height: 3px; }

.org-name {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}
.org-url { font-size: 11px; color: var(--mid); word-break: break-word; }

/* ============================================================
   EVENT DETAILS (Home)
   ============================================================ */

.event-card {
  background: none;
  border-radius: 0;
  border: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
}

.event-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  text-align: center;
}
@media (min-width: 768px) { .event-card h2 { font-size: 38px; } }

.event-rows {
  width: fit-content;
  margin: 0 auto;
  min-width: min(100%, 580px);
}

.event-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 24px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91,155,173,0.15);
  align-items: start;
}
@media (min-width: 768px) { .event-row { grid-template-columns: 170px 1fr; } }
.event-row:last-child { border-bottom: none; padding-bottom: 0; }

.event-key {
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 4px;
}
@media (min-width: 768px) { .event-key { font-size: 14px; } }
.event-value { font-size: 17px; color: #333; }
@media (min-width: 768px) { .event-value { font-size: 19px; } }

/* Event details section — waves top & bottom */
.event-details-section {
  position: relative;
  padding: 64px 0 120px;
  overflow: hidden;
}
@media (min-width: 768px) { .event-details-section { padding: 80px 0 140px; } }

.event-details-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
  width: 100%;
}
.event-details-wave svg { display: block; width: 100%; height: 55px; }
@media (min-width: 768px) { .event-details-wave svg { height: 75px; } }

/* Reusable bottom wave for section transitions */
.has-bottom-wave {
  position: relative;
  overflow: hidden;
  padding-bottom: calc(var(--pad-y) + 55px) !important;
}
@media (min-width: 768px) { .has-bottom-wave { padding-bottom: calc(var(--pad-y) + 75px) !important; } }

.bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
  width: 100%;
}
.bottom-wave svg { display: block; width: 100%; height: 55px; }
@media (min-width: 768px) { .bottom-wave svg { height: 75px; } }

/* ============================================================
   PARTNERS PAGE
   ============================================================ */

/* FoECP grid */
.foecp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px)  { .foecp-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .foecp-grid { grid-template-columns: repeat(3, 1fr); } }

/* Partner card: horizontal on mobile, vertical on desktop */
.partner-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(91,155,173,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  transition: box-shadow 0.2s;
}
.partner-card:hover { box-shadow: 0 4px 14px rgba(44,95,124,0.09); }

.partner-card .org-logo {
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
}

.partner-card-info { flex: 1; min-width: 0; }
.partner-card-info .org-name { margin-bottom: 3px; }

@media (min-width: 768px) {
  .partner-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 12px;
  }
  .partner-card-info { text-align: center; flex: none; }
}

/* Community grid */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 768px)  { .community-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1024px) { .community-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.community-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(91,155,173,0.2);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 90px;
}

.community-card .org-logo {
  width: 100%;
  height: 52px;
  object-fit: contain;
  display: block;
}

.community-card .org-name { font-size: 12px; color: var(--mid); }

.partners-note {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* ============================================================
   WHAT'S ON PAGE
   ============================================================ */

.theme-block { margin-bottom: 32px; }
.theme-block:last-child { margin-bottom: 0; }

.theme-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
@media (min-width: 768px) { .theme-header { font-size: 15px; } }

.theme-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.theme-header--nature        { background: #E8F5EE; color: var(--green); }
.theme-header--heritage      { background: #FBF0E4; color: var(--amber); }
.theme-header--wellness      { background: #E8F2F5; color: var(--mid); }
.theme-header--sustainability { background: #EEF5F0; color: var(--teal); }
.theme-header--community     { background: #E8EEF2; color: var(--dark); }

.programme-cards { display: flex; flex-direction: column; gap: 8px; }

.programme-card {
  background: var(--white);
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.07);
  padding: 14px 16px 14px 18px;
}
.programme-card--nature        { border-left: 4px solid var(--green); }
.programme-card--heritage      { border-left: 4px solid var(--amber); }
.programme-card--wellness      { border-left: 4px solid var(--mid); }
.programme-card--sustainability { border-left: 4px solid var(--teal); }
.programme-card--community     { border-left: 4px solid var(--dark); }

.prog-org {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.programme-card--nature .prog-org        { color: var(--green); }
.programme-card--heritage .prog-org      { color: var(--amber); }
.programme-card--wellness .prog-org      { color: var(--mid); }
.programme-card--sustainability .prog-org { color: var(--teal); }
.programme-card--community .prog-org     { color: var(--dark); }

.prog-title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 5px; }
.prog-desc  { font-size: 14px; color: #555; line-height: 1.7; }

.tbc-badge {
  display: inline-block;
  background: var(--sand);
  color: #999;
  font-size: 10px;
  border-radius: 10px;
  padding: 3px 10px;
  font-weight: 500;
  max-width: 100%;
}

/* ============================================================
   FURTHER READING PAGE
   ============================================================ */

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .resource-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

a.resource-card { display: block; }

.resource-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(91,155,173,0.2);
  padding: 24px 28px;
  transition: box-shadow 0.2s;
  height: 100%;
}
.resource-card:hover { box-shadow: 0 4px 14px rgba(44,95,124,0.09); }

.resource-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-bottom: 8px;
}
.resource-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.resource-card p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.resource-link { font-size: 11px; font-weight: 700; color: var(--mid); word-break: break-word; }

.about-ecp-block {
  background: var(--light);
  border-radius: 12px;
  padding: 32px 24px;
}
@media (min-width: 768px) { .about-ecp-block { padding: 36px; } }

.about-ecp-block h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
@media (min-width: 1024px) { .about-ecp-block h2 { font-size: 24px; } }

.about-ecp-block p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 14px; }
@media (min-width: 1024px) { .about-ecp-block p { font-size: 16px; } }

.cta-link { font-size: 14px; font-weight: 600; color: var(--mid); }
.cta-link:hover { text-decoration: underline; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-section > .container {
  max-width: 1400px;
  padding: 0 16px;
}
@media (min-width: 768px)  { .gallery-section > .container { padding: 0 24px; } }
@media (min-width: 1024px) { .gallery-section > .container { padding: 0 32px; } }

.gallery-section {
  padding-top: 20px;
}

.gallery-intro {
  text-align: center;
  padding-bottom: 24px;
}

.hero-pill--dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  font-size: 14px;
  padding: 6px 18px;
  margin-bottom: 6px;
}
@media (min-width: 768px) { .hero-pill--dark { font-size: 16px; } }

.gallery-intro-title {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--dark);
  margin: 4px 0 0;
}

.gallery-hint {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

.gallery-credit {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: #999;
  font-style: italic;
}
@media (min-width: 768px)  { .gallery-intro-title { font-size: 44px; } }
@media (min-width: 1024px) { .gallery-intro-title { font-size: 54px; } }

.gallery-intro-sub {
  font-size: 14px;
  color: #777;
  margin: 0;
}
@media (min-width: 768px) { .gallery-intro-sub { font-size: 15px; } }

.gallery-grid {
  columns: 2;
  column-gap: 10px;
}
@media (min-width: 768px)  { .gallery-grid { columns: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .gallery-grid { columns: 5; column-gap: 14px; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
}
@media (min-width: 1024px) { .gallery-item { margin-bottom: 14px; } }

/* Gallery hero photo banner */
.gallery-hero-banner {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--darker);
}
@media (min-width: 768px)  { .gallery-hero-banner { height: 440px; } }
@media (min-width: 1024px) { .gallery-hero-banner { height: 520px; } }

.gallery-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.gallery-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31,77,102,0.52) 0%, rgba(31,77,102,0.25) 50%, rgba(31,77,102,0.55) 100%);
  pointer-events: none;
}

.gallery-hero-banner .hero-wave {
  bottom: -1px;
}

.gallery-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.18s ease;
}

.gallery-item:hover .gallery-tile {
  transform: scale(1.02);
}

.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Heights — mobile */
.gallery-item:nth-child(8n+1) .gallery-tile { height: 175px; background: #D4E8EC; }
.gallery-item:nth-child(8n+2) .gallery-tile { height: 148px; background: #C8E0D8; }
.gallery-item:nth-child(8n+3) .gallery-tile { height: 210px; background: #BDD8E4; }
.gallery-item:nth-child(8n+4) .gallery-tile { height: 135px; background: #CDE8E0; }
.gallery-item:nth-child(8n+5) .gallery-tile { height: 170px; background: #D0E4EC; }
.gallery-item:nth-child(8n+6) .gallery-tile { height: 158px; background: #C4DCD8; }
.gallery-item:nth-child(8n+7) .gallery-tile { height: 200px; background: #C8E0EC; }
.gallery-item:nth-child(8n+0) .gallery-tile { height: 142px; background: #D8ECE0; }

/* Heights — tablet/desktop */
@media (min-width: 768px) {
  .gallery-item:nth-child(8n+1) .gallery-tile { height: 290px; }
  .gallery-item:nth-child(8n+2) .gallery-tile { height: 240px; }
  .gallery-item:nth-child(8n+3) .gallery-tile { height: 345px; }
  .gallery-item:nth-child(8n+4) .gallery-tile { height: 215px; }
  .gallery-item:nth-child(8n+5) .gallery-tile { height: 270px; }
  .gallery-item:nth-child(8n+6) .gallery-tile { height: 258px; }
  .gallery-item:nth-child(8n+7) .gallery-tile { height: 325px; }
  .gallery-item:nth-child(8n+0) .gallery-tile { height: 228px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }

.lb-overlay { position: absolute; inset: 0; cursor: pointer; }

.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 767px) { .lb-img { max-width: 95vw; max-height: 80vh; } }

.lb-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 22px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s;
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 32px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s;
  line-height: 1;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Mobile: arrows at bottom */
@media (max-width: 767px) {
  .lb-prev, .lb-next { top: auto; transform: none; bottom: 28px; }
  .lb-prev { left: calc(50% - 80px); }
  .lb-next { right: calc(50% - 80px); }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--dark);
  padding: 22px var(--pad-x);
  text-align: center;
}
.site-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}
