:root {
  --hrn-blue: #103B6D;
  --hrn-blue-dark: #0A2947;
  --hrn-green: #2E9E5B;
  --hrn-orange: #F2994A;
  --hrn-light: #F7F9FB;
  --hrn-gray: #6C7A89;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #2A2E34;
  background-color: #ffffff;
}

/* ---------- Navbar ---------- */
.navbar-hrn {
  background-color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.navbar-hrn .navbar-brand {
  font-weight: 700;
  color: var(--hrn-blue) !important;
  letter-spacing: 0.3px;
}
.navbar-hrn .brand-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
.brand-logo-icon {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
}
.brand-logo-banner {
  height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .brand-logo-icon { height: 34px; width: 34px; }
  .brand-logo-banner { height: 34px; }
}

/* Projects nav dropdown opens on hover on desktop, tap on mobile */
@media (min-width: 992px) {
  .nav-hover-dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .nav-hover-dropdown .dropdown-toggle::after { vertical-align: 2px; }
  .nav-hover-dropdown .projects-mega-menu {
    width: 540px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 1.25rem !important;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(16, 59, 109, 0.18);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .mega-col-border {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
}
@media (max-width: 991.98px) {
  .projects-mega-menu {
    width: 100% !important;
    padding: 1rem !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    max-height: 80vh;
    overflow-y: auto;
  }
  .mega-col-border {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
}
.mega-scroll-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.mega-scroll-list::-webkit-scrollbar,
.projects-mega-menu::-webkit-scrollbar {
  width: 5px;
}
.mega-scroll-list::-webkit-scrollbar-track,
.projects-mega-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}
.mega-scroll-list::-webkit-scrollbar-thumb,
.projects-mega-menu::-webkit-scrollbar-thumb {
  background: rgba(16, 59, 109, 0.25);
  border-radius: 4px;
}
.mega-scroll-list::-webkit-scrollbar-thumb:hover,
.projects-mega-menu::-webkit-scrollbar-thumb:hover {
  background: var(--hrn-blue);
}
.mega-scroll-list,
.projects-mega-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 59, 109, 0.25) transparent;
}
.projects-mega-menu .mega-item-link {
  transition: all 0.2s ease;
  white-space: normal;
}
.projects-mega-menu .mega-item-link:hover {
  background: var(--hrn-light) !important;
  color: var(--hrn-blue) !important;
  transform: translateX(3px);
}
.projects-mega-menu .mega-item-link:hover .mega-item-icon {
  background: var(--hrn-green) !important;
  color: #ffffff !important;
}
.nav-hover-dropdown .dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(16,59,109,0.18);
  padding: 0.5rem;
}
.nav-hover-dropdown .dropdown-item {
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  color: var(--hrn-blue);
}
.nav-hover-dropdown .dropdown-item:hover {
  background: var(--hrn-light);
  color: var(--hrn-orange);
}
.navbar-hrn .nav-link {
  color: var(--hrn-blue) !important;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.5rem 0.8rem !important;
  transition: color 0.2s ease;
}
.navbar-hrn .nav-link:hover,
.navbar-hrn .nav-link.active {
  color: var(--hrn-orange) !important;
}
.navbar-hrn .navbar-toggler {
  border-color: var(--hrn-blue);
}
.navbar-hrn .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23103B6D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-donate-nav {
  background-color: var(--hrn-orange);
  color: #fff !important;
  border-radius: 30px;
  padding: 0.45rem 1.3rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(242, 153, 74, 0.3);
  transition: all 0.2s ease;
}
.btn-donate-nav:hover { background-color: #d97f34; color: #fff !important; transform: translateY(-1px); }

/* ---------- Hero (full page, optional background photo) ---------- */
.hero {
  background-color: var(--hrn-blue);
  background-image: linear-gradient(135deg, rgba(16,59,109,0.92) 0%, rgba(10,41,71,0.94) 100%), var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 260px; height: 260px;
  background: var(--hrn-green);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}
/* Transparent hero variant — background photo shows through with only a
   light bottom gradient so the text stays readable, no solid blue wash */
.hero.hero-transparent {
  background: var(--hrn-blue-dark);
}
.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--hrn-blue-dark);
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}
.hero-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 125%;
  min-height: 125%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, transform 4s ease-out;
  transform: scale(1.04);
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}
.hero-slide-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide-video {
  overflow: hidden;
  background: #000000;
}

/* Light transparent overlay so video & photos are bright, clear & visible */
.hero.hero-transparent::before,
.hero-transparent-overlay,
.hero-video-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 41, 71, 0.10) 0%, rgba(10, 41, 71, 0.20) 60%, rgba(10, 41, 71, 0.35) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero.hero-transparent .container { position: relative; z-index: 2; }
.hero.hero-transparent .scroll-cue { z-index: 2; }
.hero h1 {
  font-weight: 800;
  font-size: 3.2rem;
}
.hero .tagline {
  color: var(--hrn-orange);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.hero p.lead {
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  font-size: 1.2rem;
}
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
}
.hero-nav-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-nav-prev { left: 18px; }
.hero-nav-next { right: 18px; }
@media (max-width: 576px) {
  .hero-nav-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
  .hero-nav-prev { left: 10px; }
  .hero-nav-next { right: 10px; }
}
.hero .scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Logo ---------- */
.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: #fff;
}
.brand-logo-lg {
  height: 90px;
  width: 90px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

/* ---------- Buttons ---------- */
.btn-hrn-primary {
  background-color: var(--hrn-orange);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
}
.btn-hrn-primary:hover { background-color: #d97f34; color: #fff; }

.btn-hrn-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.7rem;
  border-radius: 30px;
  background: transparent;
}
.btn-hrn-outline:hover { background: #fff; color: var(--hrn-blue); }

.btn-hrn-green {
  background-color: var(--hrn-green);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
}
.btn-hrn-green:hover { background-color: #257f49; color: #fff; }

/* ---------- Section titles ---------- */
.section-title {
  font-weight: 800;
  color: var(--hrn-blue);
  margin-bottom: 0.5rem;
}
.section-title .accent { color: var(--hrn-orange); }
.section-subtitle {
  color: var(--hrn-gray);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ---------- Cards ---------- */
.card-hrn {
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(16, 59, 109, 0.08);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hrn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 59, 109, 0.14);
}
.card-hrn .card-img-top {
  height: 190px;
  object-fit: cover;
  background-color: var(--hrn-light);
}
.card-hrn .card-body { padding: 1.4rem; }

/* Progress bar for campaigns */
.progress-hrn {
  height: 10px;
  border-radius: 20px;
  background-color: #E7ECF1;
}
.progress-hrn .progress-bar { background-color: var(--hrn-green); }

.badge-hrn-orange {
  background-color: var(--hrn-orange);
  color: #fff;
}

/* ---------- Mission / About sections ---------- */
.bg-hrn-light { background-color: var(--hrn-light); }
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 158, 91, 0.12);
  color: var(--hrn-green);
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

/* ---------- Mission topics (small icon + name -> own detail page) ---------- */
.mission-topic-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16, 59, 109, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.mission-topic-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 59, 109, 0.15);
}
.mission-topic-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--hrn-light);
  color: var(--hrn-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.mission-topic-title {
  color: var(--hrn-blue);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Detail pages: text-left / photo-right content blocks
   (used by Mission topic pages, Blog posts, and Campaign write-ups) ---------- */
.content-block-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #EDF1F5;
}
.content-block-row:last-child { border-bottom: none; }
.content-block-text { flex: 1 1 320px; }
.content-block-text h5 { color: var(--hrn-blue); font-weight: 700; margin-bottom: 0.6rem; }
.content-block-text p { color: #4A5568; line-height: 1.75; margin-bottom: 0; white-space: pre-line; }
.content-block-image { flex: 1 1 320px; }
.content-block-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16,59,109,0.12);
  object-fit: cover;
  max-height: 340px;
}

/* ---------- Partner / association logo strip ---------- */
.partner-marquee-section {
  overflow: hidden;
}
.partner-ticker-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.partner-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: partnerSlideLeftRight 18s ease-in-out infinite alternate;
}
.partner-track:hover {
  animation-play-state: paused;
}

@keyframes partnerSlideLeftRight {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 4px 14px rgba(16, 59, 109, 0.08);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(16, 59, 109, 0.15);
}
.partner-item img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.partner-logo-placeholder {
  height: 60px; width: 60px;
  border-radius: 10px;
  background: var(--hrn-light);
  color: var(--hrn-gray);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 480px) {
  .partner-item img, .partner-logo-placeholder { height: 46px; }
  .partner-item { padding: 0.65rem 1rem; }
  .partner-track { gap: 1.2rem; animation-duration: 14s; }
}

/* ---------- Campaign cards (full background photo) ---------- */
.campaign-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  color: #fff;
  box-shadow: 0 10px 26px rgba(16,59,109,0.16);
  transition: transform 0.25s ease;
}
.campaign-card:hover { transform: translateY(-6px); }
.campaign-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.campaign-card:hover .campaign-card-bg { transform: scale(1.06); }
.campaign-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,41,71,0.15) 0%, rgba(10,41,71,0.55) 55%, rgba(10,41,71,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.campaign-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--hrn-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
}
.campaign-card h5 { font-weight: 700; margin-bottom: 0.4rem; }
.campaign-card p.campaign-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.campaign-card .progress-hrn { background-color: rgba(255,255,255,0.25); }
.campaign-card .progress-hrn .progress-bar { background-color: var(--hrn-green); }
.campaign-card .campaign-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  margin: 0.4rem 0 0.8rem;
}

/* ---------- Share buttons ---------- */
.share-buttons a,
a.share-fb,
a.share-whatsapp,
a.share-instagram,
a.share-twitter,
a.share-linkedin,
a.share-telegram,
a.share-email,
a.share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50% !important;
  color: #fff !important;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.share-buttons a:hover,
a.share-fb:hover,
a.share-whatsapp:hover,
a.share-instagram:hover,
a.share-twitter:hover,
a.share-linkedin:hover,
a.share-telegram:hover,
a.share-email:hover,
a.share-copy:hover {
  opacity: 0.92;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.share-fb { background-color: #1877F2; }
.share-whatsapp { background-color: #25D366; }
.share-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.share-twitter { background-color: #000000; }
.share-linkedin { background-color: #0A66C2; }
.share-telegram { background-color: #26A5E4; }
.share-email { background-color: var(--hrn-blue); }
.share-copy { background-color: var(--hrn-gray); }
.share-native { background-color: var(--hrn-orange); width: 40px; height: 40px; border-radius: 50% !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.share-native:hover { transform: translateY(-2px) scale(1.05); }

/* ---------- FAQ + WhatsApp floating buttons ---------- */
.faq-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  background: var(--hrn-orange);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-fab:hover { background-color: #d97f34; color: #fff; transform: translateY(-2px); }

.whatsapp-fab {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 1050;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-fab:hover { background-color: #1ebe57; color: #fff; transform: translateY(-2px); }

@media (max-width: 576px) {
  .faq-fab {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-fab {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
    bottom: 68px;
    right: 16px;
  }
}
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item .faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--hrn-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Auto-rotating image carousel (Our Vision) ---------- */
.vision-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 12px 30px rgba(16,59,109,0.18);
}
.vision-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.vision-carousel img.active { opacity: 1; }
.vision-carousel-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.vision-carousel-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
}
.vision-carousel-dots span.active { background: #fff; }

/* ---------- Team member cards (larger, admin-managed photos) ---------- */
.team-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(16, 59, 109, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
}
.team-card img.team-photo {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--hrn-light);
}
.team-card h6 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.team-card .team-role-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.team-card .team-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  margin: 0 4px;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ---------- Page Header Banners (Photo Backgrounds) ---------- */
.page-header-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.page-header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Light, colour-neutral gradient — just enough for the white heading
     text to stay readable, without tinting the photo. */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}
.page-header-banner.banner-maroon::before,
.page-header-banner.banner-orange::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.page-header-banner .container {
  position: relative;
  z-index: 1;
}
.page-header-banner h1 {
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.page-header-banner p.lead {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* ---------- About page theme (maroon / cream — used only on About Us) ---------- */
.about-theme {
  --about-primary: #7A1220;
  --about-primary-dark: #5C0D18;
  --about-cream: #F5ECDC;
  --about-gold: #E0A527;
}
.about-theme .bg-about-cream { background-color: var(--about-cream); }
.about-theme .section-title-maroon {
  font-weight: 800;
  color: var(--about-primary);
}
.about-theme .section-title-maroon .accent { color: var(--about-gold); }
.about-theme .about-stat {
  text-align: center;
}
.about-theme .about-stat .stat-icon {
  font-size: 1.8rem;
  color: var(--about-gold);
  margin-bottom: 0.4rem;
}
.about-theme .about-stat .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--about-primary);
}
.about-theme .about-stat .stat-label {
  font-size: 0.85rem;
  color: #6b5d4f;
}
.about-theme .team-card {
  background: #fff;
}
.about-theme .team-card .team-role-badge {
  background: var(--about-primary);
  color: #fff;
}
.about-theme .team-card .team-socials a.tel-link { background: var(--about-primary); color: #fff; }
.about-theme .team-card .team-socials a.linkedin-link { background: #0A66C2; color: #fff; }
.about-theme .team-card .team-socials a.email-link { background: var(--about-gold); color: #fff; }
.about-theme .btn-about-primary {
  background: var(--about-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.65rem 1.7rem;
}
.about-theme .btn-about-primary:hover { background: var(--about-primary-dark); color: #fff; }

/* ---------- Forms ---------- */
.form-hrn label { font-weight: 600; color: var(--hrn-blue); }
.form-hrn .form-control, .form-hrn .form-select {
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #D7DEE5;
}
.form-hrn .form-control:focus, .form-hrn .form-select:focus {
  border-color: var(--hrn-green);
  box-shadow: 0 0 0 0.2rem rgba(46, 158, 91, 0.15);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background-color: var(--hrn-blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
footer.site-footer h5 { color: #fff; font-weight: 700; }
footer.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer.site-footer a:hover { color: var(--hrn-orange); }

/* ---------- Admin ---------- */
.admin-sidebar {
  background-color: var(--hrn-blue-dark);
  min-height: 100vh;
}
.admin-sidebar a {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--hrn-orange);
}
.stat-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(16,59,109,0.08);
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--hrn-blue); }
.stat-card .stat-label { color: var(--hrn-gray); font-size: 0.9rem; }

/* ---------- Horizontal Mobile Slider for Active Campaigns & Blog ---------- */
@media (max-width: 767.98px) {
  .mobile-slider-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1.25rem !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  .mobile-slider-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .mobile-slider-row > [class*="col-"] {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .mobile-slider-row .campaign-card {
    height: 350px;
  }
  .slider-nav-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--hrn-orange);
    color: var(--hrn-orange);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .slider-nav-btn:hover, .slider-nav-btn:active {
    background: var(--hrn-orange);
    color: #fff;
  }
}

/* ---------- Campaign detail page photo gallery ---------- */
.campaign-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.campaign-gallery-main {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 340px;
  box-shadow: 0 10px 26px rgba(16,59,109,0.16);
}
.campaign-gallery-thumb {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 220px;
  box-shadow: 0 6px 18px rgba(16,59,109,0.1);
}

/* ---------- Bank transfer / QR details (Donate page) ---------- */
.bank-detail-list {
  border: 1px solid #E7ECF1;
  border-radius: 12px;
  overflow: hidden;
}
.bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E7ECF1;
}
.bank-detail-row:last-child { border-bottom: none; }
.bank-detail-row:nth-child(even) { background-color: var(--hrn-light); }
.bank-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--hrn-gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bank-detail-value {
  display: block;
  font-weight: 700;
  color: var(--hrn-blue);
  font-size: 1rem;
  word-break: break-word;
}
.btn-copy-detail {
  background: var(--hrn-green);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-detail:hover { background: #257f49; }

/* =====================================================================
   v8 — Story content (Blog posts, Campaign stories, Mission pages)
   Same styles are used inside the admin editor, so it's what-you-see-is-
   what-you-get.
   ===================================================================== */
.story-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #2D3748;
  overflow-wrap: break-word;
}
.story-content::after { content: ""; display: table; clear: both; }
.story-content p { margin: 0 0 1.15em; }
.story-content > p:first-child { font-size: 1.2rem; color: #1A202C; }
.story-content h2 {
  clear: both;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--hrn-blue);
  margin: 2.4rem 0 0.9rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--hrn-orange);
}
.story-content h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--hrn-blue);
  margin: 1.9rem 0 0.6rem;
}
.story-content h4 { font-size: 1.1rem; font-weight: 700; color: #2c3e50; margin: 1.5rem 0 0.5rem; }
.story-content > h2:first-child, .story-content > h3:first-child { margin-top: 0; }
.story-content a { color: var(--hrn-green); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.story-content a:hover { color: var(--hrn-orange); }
.story-content ul, .story-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.story-content li { margin-bottom: 0.4em; padding-left: 0.2rem; }
.story-content li::marker { color: var(--hrn-orange); font-weight: 700; }
.story-content blockquote {
  margin: 1.9rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--hrn-green);
  background: var(--hrn-light);
  border-radius: 0 14px 14px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #2c3e50;
}
.story-content blockquote p:last-child { margin-bottom: 0; }
.story-content hr {
  clear: both;
  width: 120px;
  margin: 2.6rem auto;
  border: 0;
  border-top: 3px solid var(--hrn-orange);
  opacity: 1;
}
.story-content figure { margin: 2rem 0; }
.story-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 59, 109, 0.12);
  background: var(--hrn-light);
}
.story-content figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--hrn-gray);
  text-align: center;
}
.story-content figure[data-size="small"] { max-width: 60%; margin-left: auto; margin-right: auto; }
.story-embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(16, 59, 109, 0.12);
}
.story-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) {
  .story-content figure[data-size="left"] { float: left; width: 46%; margin: 0.35rem 1.8rem 1rem 0; }
  .story-content figure[data-size="right"] { float: right; width: 46%; margin: 0.35rem 0 1rem 1.8rem; }
}
@media (min-width: 1200px) {
  .story-content figure[data-size="wide"] { margin-left: -9%; margin-right: -9%; }
}
@media (max-width: 575.98px) {
  .story-content { font-size: 1.05rem; line-height: 1.75; }
  .story-content > p:first-child { font-size: 1.1rem; }
  .story-content figure { margin: 1.5rem 0; }
  .story-content figure[data-size="small"] { max-width: 85%; }
  .story-content blockquote { padding: 0.9rem 1rem; font-size: 1.05rem; }
}

/* ---- Article page layout ---- */
.article-hero {
  background: linear-gradient(135deg, var(--hrn-blue) 0%, var(--hrn-blue-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-hero.has-image { padding: 5.5rem 0 3.5rem; background-size: cover; background-position: center; }
.article-hero.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 41, 71, 0.45) 0%, rgba(10, 41, 71, 0.85) 100%);
}
.article-hero .container { position: relative; }
.article-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); line-height: 1.2; margin: 0.75rem 0; }
.article-hero .article-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 680px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.article-meta i { margin-right: 0.3rem; }
.article-back { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; text-decoration: none; }
.article-back:hover { color: #fff; }
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-feature { margin-top: -1.5rem; position: relative; z-index: 2; }
.article-feature img, .article-feature .feature-video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 59, 109, 0.18);
}
.article-feature img { max-height: 520px; object-fit: cover; }
.feature-video { aspect-ratio: 16 / 9; overflow: hidden; background: #000; position: relative; }
.feature-video.is-vertical { aspect-ratio: 9 / 16; max-width: 380px; margin: 0 auto; }
.feature-video iframe, .feature-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--hrn-orange);
  z-index: 1100;
  pointer-events: none;
}

/* ---- Campaign detail page ---- */
.campaign-hero-gallery { display: grid; gap: 0.6rem; }
.campaign-hero-gallery .main-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(16, 59, 109, 0.16);
  background: var(--hrn-light);
  transition: opacity 0.25s ease;
}
.campaign-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.campaign-thumbs button {
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  scroll-snap-align: start;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.campaign-thumbs button.is-active, .campaign-thumbs button:hover { opacity: 1; border-color: var(--hrn-orange); }
.campaign-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.donate-sticky { position: sticky; top: 96px; }
.campaign-summary { font-size: 1.15rem; line-height: 1.75; color: #4A5568; }
.mobile-donate-bar { display: none; }
@media (max-width: 991.98px) {
  .donate-sticky { position: static; }
  .mobile-donate-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 18px rgba(16, 59, 109, 0.12);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .mobile-donate-bar.is-visible { transform: translateY(0); }
  .mobile-donate-bar .btn { width: 100%; }
  body.has-donate-bar .whatsapp-fab, body.has-donate-bar .faq-fab { transition: bottom 0.3s ease; }
  body.has-donate-bar.donate-bar-on .faq-fab { bottom: 84px; }
  body.has-donate-bar.donate-bar-on .whatsapp-fab { bottom: 136px; }
}

/* ---- "More stories" cards ---- */
.more-story-card { display: block; text-decoration: none; color: inherit; }
.more-story-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 0.7rem; background: var(--hrn-light); }
.more-story-card h6 { color: var(--hrn-blue); font-weight: 700; margin-bottom: 0.25rem; }
.more-story-card:hover h6 { color: var(--hrn-orange); }

/* =====================================================================
   v8 — Homepage hero video: fits any video shape on phones and laptops
   ===================================================================== */
.hero-video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--hrn-blue-dark);
}
.hero-video-backdrop {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.65) saturate(1.2);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video-stage.is-contain .hero-video-backdrop { opacity: 1; }
canvas.hero-video-backdrop { object-fit: cover; }
.hero-video-stage .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: none;
  object-fit: cover;
  object-position: center;
}
.hero-video-stage.is-contain .hero-bg-video { object-fit: contain; }
.hero-video-stage .hero-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
/* Before JS sizes the iframe: a sensible CSS-only "fill" for 16:9 */
.hero-video-stage:not(.is-sized) .hero-bg-iframe {
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
}
.hero-video-sound {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.hero-video-sound.is-shown { display: flex; }
@media (max-width: 576px) { .hero-video-sound { left: 12px; bottom: 16px; width: 38px; height: 38px; } }

/* =====================================================================
   v8 — Smoother experience on phones and laptops
   ===================================================================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body { overflow-x: clip; -webkit-tap-highlight-color: rgba(16, 59, 109, 0.08); text-rendering: optimizeLegibility; }
img { max-width: 100%; }
:target { scroll-margin-top: 90px; }
.btn, .nav-link, a, button { touch-action: manipulation; }

/* Hero: use the real visible screen height on phones (no jump when the
   browser address bar hides), and sensible text sizes. */
.hero { min-height: 100vh; min-height: 100svh; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem); line-height: 1.12; }
@media (max-width: 576px) {
  .hero { padding: 6rem 0 4.5rem; }
  .hero p.lead { font-size: 1.05rem; }
  .hero .tagline { font-size: 0.82rem; }
  .hero .btn-hrn-primary, .hero .btn-hrn-outline { padding: 0.65rem 1.4rem; }
}
.hero-slide-photo { will-change: opacity; }

/* Hover lift effects only on devices with a real mouse (avoids "stuck"
   hover states after tapping on phones). */
@media (hover: none) {
  .card-hrn:hover, .campaign-card:hover, .mission-topic-link:hover, .partner-item:hover { transform: none; }
  .campaign-card:hover .campaign-card-bg { transform: none; }
}

/* Mobile sliders: smooth swipe without the jerky forced stops */
@media (max-width: 767.98px) {
  .mobile-slider-row > [class*="col-"] { scroll-snap-stop: normal; }
  .section-title { font-size: 1.65rem; }
  .page-header-banner { padding: 3.5rem 0; }
  .page-header-banner h1 { font-size: 1.9rem; }
}

/* Mobile nav menu: comfortable tap targets, scroll if long */
@media (max-width: 991.98px) {
  .navbar-hrn .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0.75rem; }
  .navbar-hrn .nav-link { padding: 0.7rem 0.4rem !important; border-bottom: 1px solid #F1F4F8; }
  .btn-donate-nav { display: inline-block; margin-top: 0.75rem; }
}
.navbar-hrn.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }

/* Gentle fade-up as sections scroll into view (only when JS is running) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Lazy background images fade in */
[data-bg] { background-color: #DCE3EA; }
.campaign-card-bg { transition: transform 0.4s ease, opacity 0.4s ease; }

/* ---- Admin: responsive sidebar so the panel works on phones ---- */
.admin-topbar-mobile { display: none; }
@media (max-width: 991.98px) {
  .admin-shell { display: block !important; }
  .admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px !important;
    z-index: 1060;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .admin-shell.sidebar-open .admin-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
  .admin-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 1055; display: none; }
  .admin-shell.sidebar-open .admin-backdrop { display: block; }
  .admin-topbar-mobile {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1050;
    height: 56px;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: var(--hrn-blue-dark);
    color: #fff;
  }
  .admin-topbar-mobile button { background: none; border: none; color: #fff; font-size: 1.5rem; padding: 0; }
  .admin-page-header { padding: 0.9rem 1rem !important; }
  .admin-content { padding: 1rem !important; }
}
.admin-sidebar { min-height: 100vh; }
