/* ================================================================
   REDOUND FOUNDATION — Design System & Styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1642;
  --accent: #e8a317;
  --accent-light: #f0b83a;
  --cta: #b71c1c;
  --cta-hover: #d32f2f;
  --bg: #ffffff;
  --bg-warm: #faf8f5;
  --bg-dark: #0d1642;
  --text: #212121;
  --text-light: #ffffff;
  --text-muted: #555555;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-warm);
}

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

/* ── Section Heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  color: var(--text);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 16px auto 0;
}

.section-heading-left {
  text-align: left;
}

.section-heading-left::after {
  margin: 16px 0 0;
}

.section-title {
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 16px auto 24px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}


/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  z-index: 1000;
  height: 90px;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar .nav-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-donate-btn {
  background-color: var(--cta);
  color: var(--text-light) !important;
  border-radius: 0;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
}

.nav-donate-btn::after {
  display: none !important;
}

.nav-donate-btn:hover {
  background-color: var(--cta-hover);
  transform: scale(1.05);
}

.nav-socials {
  display: none;
}

/* About Socials */
.about-socials {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 8px;
  align-items: flex-start;
}

.socials-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.socials-icons {
  display: flex;
  gap: 20px;
}

.socials-icons a {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.socials-icons a:hover {
  color: var(--text-light);
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: var(--text);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  height: calc(100vh - 90px);
  margin-top: 90px;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 22, 66, 0.55) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding: 0 24px;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-cta {
  background-color: var(--cta);
  color: var(--text-light);
  border-radius: 0;
  padding: 16px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: scale(1.03);
  background-color: var(--cta-hover);
  box-shadow: 0 6px 24px rgba(183, 28, 28, 0.35);
}


/* ================================================================
   PAGE HERO (About page)
   ================================================================ */
.page-hero {
  height: 50vh;
  min-height: 320px;
  margin-top: 90px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

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

.page-hero h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 12px;
}

.page-hero .subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}


/* ================================================================
   FULL-PAGE DONATE POPUP
   ================================================================ */
.donate-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, background 0.4s ease;
}

.donate-popup.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.75);
}

.donate-popup.closing {
  opacity: 0;
  visibility: visible;
}

.donate-popup.hidden {
  display: none;
}

.donate-popup-inner {
  background-color: var(--bg);
  max-width: 900px;
  width: 92%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.4s ease;
  max-height: 90vh;
  overflow: hidden;
}

.donate-popup.active .donate-popup-inner {
  transform: scale(1);
}

.donate-popup .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: background-color 0.3s;
  line-height: 1;
}

.donate-popup .close-btn:hover {
  background-color: var(--cta);
}

.donate-popup-image {
  overflow: hidden;
}

.donate-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-popup-content {
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donate-popup-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.donate-popup-content > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.qr-section {
  margin: 8px 0 24px;
}

.qr-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px !important;
}

.qr-code-box {
  width: 180px;
  height: 180px;
  border: 2px solid var(--border);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.donate-popup-btn {
  background-color: var(--cta);
  color: var(--text-light);
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  border-radius: 0;
  transition: background-color 0.3s, transform 0.2s;
}

.donate-popup-btn:hover {
  background-color: var(--cta-hover);
  transform: scale(1.02);
}

.popup-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ================================================================
   ABOUT SNIPPET (Home page)
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Visibility helper classes */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

.about-text p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0;
  margin-top: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}


/* ================================================================
   IMPACT STATS BAR
   ================================================================ */
.stats-bar {
  background-color: var(--primary);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
  color: var(--text-light);
}

.stat-number {
  font-size: 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  display: block;
  color: var(--text-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}


/* ================================================================
   INITIATIVES (3-column cards)
   ================================================================ */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.initiative-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.initiative-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.initiative-image img,
.initiative-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.initiative-content,
.initiative-info {
  padding: 24px;
}

.initiative-content h3,
.initiative-info h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.initiative-content p,
.initiative-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ================================================================
   ACTIVITIES GRID
   ================================================================ */
.activities-slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-arrow {
  display: none;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.activity-card {
  overflow: hidden;
  position: relative;
  background: var(--bg);
  border-radius: 0;
}

.activity-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.activity-card:hover img {
  transform: scale(1.05);
}

.activity-card:hover {
  box-shadow: var(--shadow-lg);
}


/* ================================================================
   CERTIFICATES GRID
   ================================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 0;
  transition: box-shadow 0.3s;
}

.cert-card:hover {
  box-shadow: var(--shadow);
}

.cert-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ================================================================
   DOWNLOAD REPORT SECTION
   ================================================================ */
.download-section {
  text-align: center;
}

.download-inner {
  max-width: 600px;
  margin: 0 auto;
}

.download-icon {
  color: var(--primary);
  margin-bottom: 24px;
}

.download-inner h2 {
  margin-bottom: 16px;
}

.download-inner p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.download-btn {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 0;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s, transform 0.2s;
}

.download-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}


/* ================================================================
   SPONSOR SECTION (Home page)
   ================================================================ */
.sponsor-section {
  border-top: 3px solid var(--accent);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.sponsor-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text);
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.sponsor-info h2 {
  margin-bottom: 24px;
}

.sponsor-logo-link {
  display: inline-block;
  margin-bottom: 24px;
}

.sponsor-logo {
  max-width: 280px;
  height: auto;
}

.sponsor-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sponsor-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 0;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 8px;
}

.sponsor-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.sponsor-quote {
  background-color: var(--bg-warm);
  padding: 40px;
  border-left: 4px solid var(--accent);
}

.sponsor-quote blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
}

.sponsor-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}


/* ================================================================
   DONATE CTA SECTION
   ================================================================ */
.donate-cta-section {
  background-color: var(--primary);
  text-align: center;
}

.donate-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.donate-cta-inner h2 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.donate-cta-inner > p {
  color: var(--text-light);
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.donate-cta-qr {
  display: inline-block;
  background: var(--bg);
  padding: 24px;
}

.donate-cta-qr img {
  margin: 0 auto;
}

.donate-cta-qr .qr-label {
  margin-top: 12px;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}


/* ================================================================
   SOCIAL BAR
   ================================================================ */
.social-bar {
  background-color: var(--primary);
  padding: 20px 0;
}

.social-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.social-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-icons a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.8;
  transform: scale(1.15);
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 65px;
  width: auto;
  margin-bottom: 20px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 24px;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-bottom a {
  display: inline;
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}


/* ================================================================
   FLOATING VIDEO WIDGET
   ================================================================ */
.video-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  width: 320px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease, opacity 0.5s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #000;
}

.video-widget video {
  width: 100%;
  border-radius: 0;
  display: block;
}

.video-widget .close-video {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: 2px solid var(--bg);
  transition: background 0.3s;
  line-height: 1;
  z-index: 10;
}

.video-widget .close-video:hover {
  background: var(--cta);
}

.video-widget.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}


/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   BRL SECTION (About page)
   ================================================================ */
.brl-section {
  padding: 80px 0;
}

.brl-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.brl-left {
  text-align: center;
  position: sticky;
  top: 96px;
}

.brl-logo {
  max-width: 260px;
  margin: 0 auto 24px;
}

.brl-right h2 {
  margin-bottom: 8px;
}

.brl-right .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.brl-right h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.brl-right p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.brl-philosophy {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 12px 0 24px;
}

/* Story section (About page) */
.story-section .story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-section .story-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

/* Initiatives section (About page) */
.initiatives-section {
  padding: 80px 0;
}

/* Gallery section (About page) */
.gallery-section {
  padding: 80px 0;
}

/* Certs section (About page) */
.certs-section {
  padding: 80px 0;
}


/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 1024px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .brl-layout {
    grid-template-columns: 1fr;
  }

  .brl-left {
    position: static;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }

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

  /* Hero */
  .hero {
    height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  /* Popup */
  .donate-popup-inner {
    grid-template-columns: 1fr;
    width: 90%;
    max-width: 380px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .donate-popup-image {
    width: 100%;
    height: auto;
    max-height: none;
    background-color: var(--bg);
    padding: 24px 20px 0 20px; /* White space above the photo */
    box-sizing: border-box;
  }

  .donate-popup-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
  }

  .donate-popup-content {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .donate-popup-content > p {
    display: none; /* Hide descriptions to fit in one frame */
  }

  .donate-popup-content .popup-note {
    display: block;
    font-size: 0.7rem;
    margin-top: 6px;
    color: var(--text-muted);
  }

  .donate-popup-content h2 {
    font-size: 1.2rem;
    margin: 4px 0;
  }

  .qr-section {
    margin: 4px 0 8px;
  }

  .qr-label {
    margin-bottom: 2px !important;
    font-size: 0.7rem;
  }

  .qr-code-box {
    width: 95px;
    height: 95px;
    padding: 3px;
  }

  .donate-popup-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    width: 80%;
    margin-top: 2px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .about-image img {
    height: 300px;
  }

  /* Stats */
  .stats-grid {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Initiatives */
  .initiatives-grid {
    grid-template-columns: 1fr;
  }

  /* Sponsor */
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-quote {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  /* Page hero */
  .page-hero h1 {
    font-size: 2.25rem;
  }

  /* Social bar */
  .social-bar .container {
    flex-direction: column;
    gap: 16px;
  }

  /* Video widget */
  .video-widget {
    width: 260px;
    bottom: 16px;
    right: 16px;
  }

  /* Make activities grid a carousel */
  .activities-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 20px 20px 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
  }

  .activities-grid .activity-card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
  }

  .slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }

  .slider-arrow:hover {
    background: var(--primary);
    color: var(--text-light);
  }

  .slider-arrow:active {
    transform: translateY(-50%) scale(0.92);
  }

  .prev-arrow {
    left: -4px;
  }

  .next-arrow {
    right: -4px;
  }
}

@media (max-width: 480px) {
  .activities-grid {
    margin: 0 -15px;
    padding: 10px 15px 20px 15px;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
  }

  .activities-grid .activity-card {
    flex: 0 0 88%;
    max-width: 88%;
    opacity: 1 !important;
    transform: none !important;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .donate-popup-content h2 {
    font-size: 1.5rem;
  }

  .qr-code-box {
    width: 140px;
    height: 140px;
  }

  .video-widget {
    width: 200px;
  }
}
