/* All Eyes on Us Uganda — Complete Ugandan Flag Theme */
:root {
  --flag-black: #000000;
  --flag-dark: #121212;
  --flag-surface: #1e1e1e;
  --flag-yellow: #FCDC04;
  --flag-red: #D9232A;
  --flag-yellow-glow: rgba(252, 220, 4, 0.3);
  --flag-red-glow: rgba(217, 35, 42, 0.3);
  
  --deep: var(--flag-black);
  --deep2: var(--flag-dark);
  --deep3: var(--flag-surface);
  --lime: var(--flag-yellow);
  --lime-glow: var(--flag-yellow-glow);
  --gold: var(--flag-yellow);
  --red: var(--flag-red);
  --white: #ffffff;
  --muted: #cccccc;
  --line: rgba(252, 220, 4, 0.25);
  --container: 1340px;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Official Ugandan 6-Stripe Gradient Bar */
  --uganda-flag-stripes: linear-gradient(
    90deg, 
    #000 0% 16.66%, 
    #FCDC04 16.66% 33.33%, 
    #D9232A 33.33% 50%, 
    #000 50% 66.66%, 
    #FCDC04 66.66% 83.33%, 
    #D9232A 83.33% 100%
  );
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--flag-black);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }

/* --- UGANDAN STRIPE ACCENT BARS --- */
.site-header::before,
.donation-banner::before,
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
  background: var(--uganda-flag-stripes);
}

/* --- SITE HEADER --- */
.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--flag-yellow);
}
.nav-wrap {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh; /* Takes up most of the screen height */
  background: url('assets/breakfast.jpg') center/cover no-repeat; /* Sets background image */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

/* Dark Overlay to make yellow/white text pop clearly against the background image */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* 65% dark shade */
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2; /* Keeps text above the dark overlay */
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffcc00; /* Gold heading */
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}
.brand:hover { transform: scale(1.02); }
.brand-logo { width: 92px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(252, 220, 4, 0.2)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 23px; font-weight: 800; letter-spacing: -0.7px; white-space: nowrap; color: var(--white); }
.brand-copy b { font-size: 16px; letter-spacing: 3px; color: var(--flag-yellow); text-align: center; }
.brand-copy small { font-size: 12px; margin-top: 5px; white-space: nowrap; color: var(--flag-red); font-weight: 700; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 14px;
  font-weight: 700;
}
.main-nav > a, .dropdown-trigger {
  height: 44px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}
.main-nav > a:hover, .dropdown-trigger:hover { color: var(--flag-yellow); }
.main-nav .active { color: var(--flag-yellow); }
.main-nav .active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--flag-red);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--flag-red-glow);
}

.nav-dropdown { position: relative; }
.dropdown-trigger span { font-size: 18px; margin-left: 5px; color: var(--flag-yellow); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 42px;
  left: -12px;
  min-width: 150px;
  padding: 9px;
  background: var(--flag-surface);
  border: 1px solid var(--flag-yellow);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.dropdown-menu a { display: block; padding: 9px 11px; border-radius: 6px; }
.dropdown-menu a:hover { background: var(--flag-red); color: var(--white); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }

.nav-actions { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.login-btn, .donate-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 30px;
  font-weight: 700;
}
.login-btn { border: 1px solid var(--flag-yellow); color: var(--flag-yellow); background: transparent; }
.login-btn:hover { background: var(--flag-yellow); color: var(--flag-black); }
.donate-pill { background: var(--flag-red); color: var(--white); box-shadow: 0 4px 15px var(--flag-red-glow); }
.donate-pill:hover { background: #ff333b; transform: translateY(-2px); }
.donate-pill span { font-size: 20px; }
.menu-toggle { display: none; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 560px;
  height: min(74vh, 690px);
  max-height: 690px;
  overflow: hidden;
  background: var(--flag-black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 38%;
  filter: brightness(0.75);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(18,18,18,.85) 35%, rgba(0,0,0,.3) 70%), linear-gradient(0deg, rgba(0,0,0,.7), transparent 40%);
}
.hero-inner { position: relative; height: 100%; padding-top: 130px; }
.hero-copy { max-width: 505px; }
.eyebrow, .section-kicker { color: var(--flag-yellow); font-weight: 700; letter-spacing: 4px; font-size: 12px; margin: 0 0 10px; text-transform: uppercase; }
.eyebrow i { font-style: normal; padding: 0 5px; color: var(--flag-red); }
.hero h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.08; letter-spacing: -1.7px; margin: 0 0 12px; font-weight: 800; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--flag-yellow); text-shadow: 0 0 25px var(--flag-yellow-glow); }
.hero-description { font-size: 15px; line-height: 1.5; max-width: 460px; margin: 0 0 21px; color: var(--muted); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 40px;
  padding: 13px 21px;
  font-weight: 800;
  font-size: 13px;
  transition: var(--transition);
  cursor: pointer;
}
.button-lime { background: var(--flag-yellow); color: var(--flag-black); box-shadow: 0 4px 20px var(--flag-yellow-glow); }
.button-lime:hover { background: #ffe642; transform: translateY(-2px); }
.button-lime .arrow { font-size: 22px; }
.button-outline { border: 2px solid var(--flag-red); background: rgba(217, 35, 42, 0.15); color: var(--white); }
.button-outline:hover { background: var(--flag-red); }
.button-outline .play { font-size: 18px; color: var(--flag-yellow); }

.hero-pillars {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  gap: 4px;
  background: var(--flag-dark);
  border: 2px solid var(--flag-yellow);
  border-radius: 14px;
  padding: 6px;
}
.hero-pillars a {
  width: 110px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  padding: 8px;
  color: var(--muted);
  border-radius: 8px;
  transition: var(--transition);
}
.hero-pillars a:hover { background: var(--flag-red); color: var(--white); }
.pillar-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--flag-yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--flag-yellow);
  font-size: 22px;
  background: var(--flag-surface);
}
.hero-pillars a:hover .pillar-icon { border-color: var(--white); color: var(--white); }
.hero-pillars b { font-weight: 700; }

/* --- PROGRAMMES SECTION --- */
.section-dark { background: var(--flag-dark); border-bottom: 1px solid rgba(252, 220, 4, 0.12); }
.programmes { padding: 14px 0 20px; }
.programme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.programme-card {
  height: 185px;
  border: 2px solid var(--flag-surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--flag-black);
  transition: var(--transition);
}
.programme-card:hover { border-color: var(--flag-yellow); transform: translateY(-4px); }
.programme-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: brightness(0.85); }
.programme-card:hover > img { transform: scale(1.06); filter: brightness(1); }
.card-gradient { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(18,18,18,0.5) 42%, transparent 100%); z-index: 0; }
.program-icon {
  position: absolute;
  left: 17px;
  bottom: 61px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--flag-red);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}
.programme-card-copy { position: absolute; left: 18px; right: 40px; bottom: 12px; }
.programme-card h3 { margin: 0 0 3px; font-size: 16px; color: var(--flag-yellow); }
.programme-card p { margin: 0; font-size: 11px; color: var(--muted); }
.card-arrow { position: absolute; right: 17px; bottom: 13px; color: var(--flag-yellow); font-size: 23px; }

/* --- ABOUT SECTION --- */
.about-section { padding: 30px 0; }
.about-layout { display: grid; grid-template-columns: 1.13fr 1.08fr 1.08fr; gap: 18px; align-items: center; position: relative; padding-bottom: 25px; }
.about-copy { padding: 0 25px 0 0; }
.about-copy .section-kicker { text-decoration: underline; text-underline-offset: 5px; }
.about-copy h2 { font-size: 25px; line-height: 1.2; margin: 8px 0 0; }
.about-copy h3 { font-size: 22px; color: var(--flag-yellow); line-height: 1.15; margin: 1px 0 7px; }
.about-copy > p:not(.section-kicker) { font-size: 13px; line-height: 1.45; margin: 0 0 13px; color: var(--muted); }

.button-small { padding: 8px 16px; border: 2px solid var(--flag-yellow); font-size: 12px; gap: 20px; color: var(--flag-yellow); background: rgba(252, 220, 4, 0.05); }
.button-small:hover { background: var(--flag-yellow); color: var(--flag-black); }
.button-small span { font-size: 18px; color: var(--flag-yellow); }
.button-small:hover span { color: var(--flag-black); }

.info-panel {
  min-height: 151px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 2px solid var(--flag-yellow);
  border-radius: 14px;
  background: var(--flag-surface);
}
.vision-panel { border-color: var(--flag-red); }
.info-icon { font-size: 38px; line-height: 1; color: var(--flag-yellow); flex-shrink: 0; }
.vision-panel .info-icon { color: var(--flag-red); }
.info-panel h3 { font-size: 17px; margin: 0 0 4px; color: var(--flag-yellow); }
.vision-panel h3 { color: var(--flag-red); }
.info-panel p { font-size: 12px; line-height: 1.45; margin: 0; color: var(--muted); }

.signature { grid-column: 2/4; text-align: center; color: var(--flag-yellow); font-family: Kalam, cursive; font-size: 30px; line-height: 1.2; margin-top: -3px; }
.uganda-stroke {
  display: inline-block;
  width: 120px;
  height: 14px;
  margin-left: 10px;
  vertical-align: middle;
  background: linear-gradient(170deg, transparent 0 20%, #FCDC04 21% 39%, transparent 40% 48%, #D9232A 49% 67%, transparent 68% 75%, #000 76% 94%, transparent 95%);
  transform: skewX(-30deg);
}

/* --- STORY SECTION --- */
.story-section { background: var(--flag-surface); color: var(--white); padding: 0; }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 280px; }
.story-photo { position: relative; min-height: 280px; overflow: hidden; background: #000; }
.story-photo > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.story-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(18,18,18,.95) 42%, rgba(18,18,18,.8)); }
.story-text { position: relative; color: white; margin-left: 47%; padding: 28px 26px 25px 0; }
.story-text .section-kicker { color: var(--flag-yellow); }
.story-text h2 { font-size: 27px; line-height: 1.02; margin: 4px 0 9px; color: var(--white); }
.story-text > p:not(.section-kicker) { font-size: 11px; line-height: 1.45; margin: 0 0 14px; color: var(--muted); }

.button-gold { background: var(--flag-yellow); color: var(--flag-black); padding: 9px 17px; font-size: 12px; font-weight: 800; border-radius: 20px; }
.button-gold:hover { background: var(--white); }

.story-values {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px 35px;
  background: var(--flag-dark);
  border-left: 4px solid var(--flag-red);
}
.story-values article { display: flex; gap: 18px; position: relative; z-index: 1; max-width: 440px; }
.value-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--flag-red); color: #fff; display: grid; place-items: center; font-size: 24px; }
.story-values h3 { font-size: 16px; margin: 0 0 2px; color: var(--flag-yellow); }
.story-values p { font-size: 11px; line-height: 1.45; margin: 0; color: var(--muted); }
.watermark { position: absolute; right: 7%; top: 50%; transform: translateY(-50%) rotate(-5deg); font-family: Kalam, cursive; font-size: 37px; line-height: .95; color: var(--flag-yellow); opacity: 0.15; text-align: center; pointer-events: none; }
.watermark .uganda-stroke { display: block; width: 100px; margin: 8px auto; }

/* --- GALLERY SECTION --- */
.gallery-section { padding: 25px 0; background: var(--flag-black); }
.gallery-wrap {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 22px;
  background: var(--flag-surface);
  border: 2px solid var(--flag-red);
  border-radius: 16px;
  padding: 25px;
}
.gallery-intro h2 { font-size: 25px; line-height: 1.03; margin: 2px 0 5px; color: var(--flag-yellow); }
.gallery-intro > p:not(.section-kicker) { font-size: 11px; line-height: 1.35; margin: 0 0 9px; max-width: 210px; color: var(--muted); }
.gallery-images { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery-images img { height: 112px; width: 100%; object-fit: cover; border-radius: 8px; border: 2px solid var(--flag-yellow); transition: transform .2s; }
.gallery-images img:hover { transform: translateY(-3px); }

/* --- PEOPLE & HISTORY SECTION --- */
.people-section { padding: 35px 0; background: var(--flag-dark); }
.people-heading { text-align: center; max-width: 650px; margin: 0 auto 30px; }
.people-heading h2 { font-size: 30px; font-weight: 800; margin: 6px 0 10px; color: var(--flag-yellow); }
.people-heading p { color: var(--muted); font-size: 13px; }

.history-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--flag-surface);
  border: 2px solid var(--flag-yellow);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 25px;
}
.history-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--flag-red); color: #fff; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.history-card h3 { font-size: 18px; margin: 4px 0 8px; color: var(--flag-yellow); }
.history-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.established { font-size: 11px; color: var(--flag-red); font-weight: 700; margin-top: 8px; display: inline-block; }

.founder-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  background: var(--flag-surface);
  border: 2px solid var(--flag-red);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  align-items: center;
}
.founder-photo { height: 240px; border-radius: 12px; background: var(--flag-black); border: 2px solid var(--flag-yellow); display: grid; place-items: center; }
.photo-placeholder { text-align: center; color: var(--muted); }
.photo-placeholder span { font-size: 40px; color: var(--flag-yellow); display: block; margin-bottom: 6px; }
.photo-placeholder p { font-size: 12px; margin: 0; }
.founder-info h3 { font-size: 22px; font-weight: 800; margin: 4px 0 2px; color: var(--flag-yellow); }
.people-role { display: inline-block; font-size: 11px; font-weight: 700; color: var(--flag-black); background: var(--flag-yellow); padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.founder-info p:not(.section-kicker) {
   width: 100%;
   object-fit: cover;
   display: block;
   height: 100%;
   font-size: 13px;
    color: var(--muted);
     line-height: 1.5; margin: 0; }

.members-heading { text-align: center; margin-bottom: 20px; }
.members-heading h3 { font-size: 22px; font-weight: 800; margin: 4px 0 6px; color: var(--flag-yellow); }
.members-heading p { font-size: 12px; color: var(--muted); margin: 0; }

.members-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member-card { background: var(--flag-surface); border: 2px solid var(--flag-yellow); border-radius: 14px; padding: 20px; text-align: center; transition: var(--transition); }
.member-card:hover { border-color: var(--flag-red); transform: translateY(-3px); }
.member-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--flag-red); color: #fff; display: grid; place-items: center; font-size: 24px; margin: 0 auto 10px; }
.member-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--flag-yellow); }
.member-card p { font-size: 11px; color: var(--muted); margin: 0; }

/* --- DONATION SECTION --- */
.donation-section { padding: 0 0 20px; background: var(--flag-black); }
.donation-banner {
  min-height: 112px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 16px 28px;
  gap: 24px;
  background: var(--flag-surface);
  border: 2px solid var(--flag-red);
}
.donation-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.donation-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.1), rgba(18,18,18,.9) 35%, rgba(0,0,0,.95) 100%); }
.donation-copy { position: relative; z-index: 1; margin-left: 31%; max-width: 450px; }
.donation-copy .section-kicker { font-size: 9px; letter-spacing: 1px; margin: 0; color: var(--flag-yellow); }
.donation-copy h2 { font-size: 22px; margin: 0 0 2px; color: var(--flag-yellow); }
.donation-copy > p:last-child { font-size: 11px; line-height: 1.3; margin: 0; color: var(--muted); }
.donation-action { position: relative; z-index: 1; margin-left: auto; min-width: 190px; display: flex; align-items: center; flex-direction: column; gap: 8px; }
.payment-methods { display: flex; gap: 6px; }
.payment-methods span { background: var(--flag-dark); color: var(--flag-yellow); border-radius: 5px; padding: 3px 9px; font-size: 8px; line-height: 1.1; text-align: center; border: 1px solid var(--flag-yellow); font-weight: 600; }
.payment-methods b { font-size: 9px; color: var(--white); }

/* --- SITE FOOTER --- */
.site-footer { background: var(--flag-black); color: var(--muted); border-top: 2px solid var(--flag-yellow); }
.footer-main { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1.15fr 1fr; gap: 28px; padding-top: 24px; padding-bottom: 22px; }
.footer-brand .brand-logo { width: 70px; height: 61px; }
.footer-brand .brand-copy strong { font-size: 16px; color: var(--white); }
.footer-brand .brand-copy b { font-size: 12px; letter-spacing: 2px; color: var(--flag-yellow); }
.footer-brand .brand-copy small { font-size: 9px; color: var(--flag-red); }
.footer-links h4, .footer-contact h4, .footer-social h4 { font-size: 12px; margin: 0 0 7px; color: var(--flag-yellow); }
.footer-links > div { display: flex; flex-direction: column; gap: 2px; }
.footer-links a, .footer-contact p { font-size: 10px; margin: 0; line-height: 1.6; }
.footer-links a:hover { color: var(--flag-yellow); }
.footer-contact p { margin-bottom: 4px; color: var(--muted); }

.socials { display: flex; gap: 7px; flex-wrap: wrap; }
.social-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--flag-surface); color: var(--flag-yellow); border: 1px solid var(--flag-yellow); transition: var(--transition); }
.social-icon:hover { background: var(--flag-red); color: var(--white); border-color: var(--flag-red); transform: translateY(-2px); }
.social-icon svg { width: 14px; height: 14px; }

.footer-script { font-family: Kalam, cursive; color: var(--flag-yellow); font-size: 22px; line-height: .9; margin: 7px 0 0 12px; }
.footer-script .uganda-stroke { width: 60px; height: 8px; margin: 4px 0 0 18px; }
.footer-bottom { border-top: 1px solid rgba(252, 220, 4, 0.15); padding: 8px 0; font-size: 9px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom b { color: var(--flag-yellow); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media(max-width: 1180px) {
  .container { width: min(var(--container), calc(100% - 44px)); }
  .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { grid-template-columns: 1fr 1fr; }
  .about-copy { grid-column: span 2; }
  .signature { grid-column: span 2; }
  .footer-main { grid-template-columns: 1.2fr .7fr .7fr 1fr; }
  .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width: 900px) {
  .nav-wrap { min-height: 86px; }
  .main-nav { display: none; position: absolute; top: 78px; left: 22px; right: 22px; padding: 15px; background: var(--flag-dark); border: 2px solid var(--flag-yellow); border-radius: 14px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav > a, .dropdown-trigger { height: auto; padding: 12px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; order: 3; background: transparent; border: 2px solid var(--flag-yellow); border-radius: 9px; padding: 10px; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--flag-yellow); }
  .hero { height: auto; min-height: 650px; }
  .hero-pillars { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-text { margin-left: 0; padding: 25px; }
  .gallery-wrap { grid-template-columns: 1fr; }
  .founder-block { grid-template-columns: 1fr; }
  .donation-banner { flex-direction: column; align-items: flex-start; height: auto; padding: 20px; }
  .donation-copy { margin-left: 0; }
  .donation-action { margin-left: 0; width: 100%; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .members-grid { grid-template-columns: 1fr; }
}

@media(max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .programme-grid { grid-template-columns: 1fr; }
  .gallery-images { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
}
.card{
  overflow: hidden;
}
.members-avatar{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 15px;
}
.members-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}/* --- Horizontal Carousel Layout --- */
.team-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 30px 10px;
  align-items: center;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #ffcc00 #121212;
}

/* --- Square / Compact Card Base --- */
.member-card {
  flex: 0 0 200px !important;
  width: 200px;
  height: 220px; /* Near square proportion */
  background-color: #141414;
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.member-card:hover,
.member-card.active {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* --- Circular Image Avatar --- */
.members-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%; /* Perfect circle fit */
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.members-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fits photos perfectly inside circle */
  display: block;
}

.member-card h4 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.member-card p {
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
}

/* --- Color Variations --- */

/* Gold (Accent) */
.card-gold {
  border: 2px solid #ffcc00;
}
.card-gold .members-avatar {
  border-color: #ffcc00;
}
.card-gold p {
  color: #ffcc00;
}

/* Emerald Green */
.card-emerald {
  border: 2px solid #2ecc71;
}
.card-emerald .members-avatar {
  border-color: #2ecc71;
}
.card-emerald p {
  color: #2ecc71;
}

/* Cyan Blue */
.card-cyan {
  border: 2px solid #00d2d3;
}
.card-cyan .members-avatar {
  border-color: #00d2d3;
}
.card-cyan p {
  color: #00d2d3;
}

/* Purple */
.card-purple {
  border: 2px solid #9b59b6;
}
.card-purple .members-avatar {
  border-color: #9b59b6;
}
.card-purple p {
  color: #9b59b6;
}

/* Crimson Red */
.card-crimson {
  border: 2px solid #ff4757;
}
.card-crimson .members-avatar {
  border-color: #ff4757;
}
.card-crimson p {
  color: #ff4757;
}

/* Royal Blue */
.card-blue {
  border: 2px solid #3498db;
}
.card-blue .members-avatar {
  border-color: #3498db;
}
.card-blue p {
  color: #3498db;
}

/* Vibrant Orange */
.card-orange {
  border: 2px solid #e67e22;
}
.card-orange .members-avatar {
  border-color: #e67e22;
}
.card-orange p {
  color: #e67e22;
}
