/* ══════════════════════════════════════════
   DHR-CEG  |  Main Stylesheet
   ══════════════════════════════════════════ */

:root {
  --blue:  #0B3D91;
  --blue2: #0d4db3;
  --red:   #D62828;
  --red2:  #a51d1d;
  --dark:  #0f0f0f;
  --gray:  #f5f6fa;
  --gold:  #e8a400;
  --text:  #333344;
  --boxed-width: min(1360px, calc(100% - 32px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(11,61,145,.12), transparent 30%),
    radial-gradient(circle at top right, rgba(214,40,40,.10), transparent 24%),
    linear-gradient(180deg, #eef2f8 0%, #dde5f0 100%);
  padding: 16px 0 24px;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

body > nav.site-nav,
body > #heroCarousel,
body > .stats-strip,
body > .cta-banner,
body > .page-hero,
body > section,
body > footer.site-footer {
  width: var(--boxed-width);
  margin-inline: auto;
}

body > #heroCarousel,
body > .stats-strip,
body > .cta-banner,
body > .page-hero,
body > section,
body > footer.site-footer {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  margin-bottom: 18px;
}

body > section {
  background: #fff;
}

body > section.bg-gray {
  background: var(--gray);
}

/* ── NAVBAR ── */
.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  right: auto;
  width: var(--boxed-width);
  transform: translateX(-50%);
  z-index: 1050;
  padding: 14px 0;
  background: transparent;
  border-radius: 18px;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-nav.scrolled {
  background: var(--dark);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.site-nav .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-nav .navbar-brand span { color: var(--gold); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-tagline {
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .9;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
/* ── DROPDOWN ── */
.site-nav .nav-item.dropdown { position: relative; }
.site-nav .dropdown-menu {
  background: var(--blue);
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 0;
  top: 100%;
  left: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  min-width: 180px;
  display: none;
  position: absolute;
  z-index: 9999;
}
.site-nav .nav-item.dropdown:hover .dropdown-menu,
.site-nav .nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
}
.site-nav .dropdown-menu .dropdown-item {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 9px 20px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav .dropdown-menu .dropdown-item:hover,
.site-nav .dropdown-menu .dropdown-item:focus {
  background: rgba(255,255,255,.12);
  color: var(--gold);
}
.site-nav .dropdown-toggle::after { display: none; }
.site-nav .dropdown-toggle .fa-chevron-down {
  font-size: .6rem;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform .2s;
}
.site-nav .nav-item.dropdown:hover .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}
.site-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 14px !important;
  transition: color .2s;
  position: relative;
}
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff !important; }
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  border-radius: 4px;
  padding: 6px 18px !important;
  margin-left: 8px;
}
.nav-cta::after { display: none !important; }
.nav-careers { }
.nav-donate {
  background: var(--gold);
  color: var(--dark) !important;
  border-radius: 4px;
  padding: 6px 18px !important;
  margin-left: 4px;
  font-weight: 700 !important;
}
.nav-donate:hover { background: #c98f00 !important; color: var(--dark) !important; }
.nav-donate::after { display: none !important; }

/* ── HERO CAROUSEL ── */
#heroCarousel { margin-top: 0; }

.hero-slide {
  height: 70vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,61,145,.82) 0%,
    rgba(11,61,145,.55) 50%,
    rgba(0,0,0,.65) 100%);
}
.hero-slide-1 { background-image: url('images/slider.jpeg'); }
.hero-slide-2 { background-image: url('images/slider2.jpeg'); }
.hero-slide-3 { background-image: url('images/slider3.jpeg'); }
.hero-slide-4 { background-image: url('images/slider4.jpeg'); }
.hero-slide-5 { background-image: url('images/slider5.jpeg'); }

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner { text-align: center; color: #fff; padding: 0 20px; max-width: 820px; }

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero-inner h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 18px;
}
.hero-inner p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: .92;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--gold) !important;
  opacity: 1 !important;
  margin-bottom: 10px !important;
}
.hero-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  margin: 6px;
  transition: background .25s, transform .2s;
}
.hero-btn:hover { background: var(--red2); color: #fff; transform: translateY(-2px); }
.hero-btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.75);
}
.hero-btn.outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  opacity: .6;
  transition: opacity .3s, background .3s;
}
.carousel-indicators .active { background: var(--gold); border-color: var(--gold); opacity: 1; }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}
.scroll-indicator a { color: rgba(255,255,255,.7); font-size: 1.6rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(11,61,145,.4); }
  50%       { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(11,61,145,0); }
}
@keyframes icon-wobble {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(-12deg); }
  40%       { transform: rotate(10deg); }
  60%       { transform: rotate(-6deg); }
  80%       { transform: rotate(4deg); }
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes icon-spin-pop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
@keyframes icon-ping {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.35); opacity: .3; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── SECTIONS ── */
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-gray    { background: var(--gray); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 620px;
  margin: 0 auto 50px;
  line-height: 1.8;
}
.divider {
  width: 60px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px auto 20px;
}
.divider.left { margin-left: 0; }

/* ── STATS STRIP ── */
.stats-strip { background: var(--blue); color: #fff; padding: 40px 0; }
.stat-item   { text-align: center; padding: 10px; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: .88rem; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }

/* ── ABOUT ── */
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-align: center;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(214,40,40,.35);
}
.about-badge span { font-size: 2rem; display: block; }
.about-badge small { font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; }

/* ── THEME CARDS ── */
.theme-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
  border-top: 4px solid var(--blue);
}
.theme-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(11,61,145,.15); }
.theme-card .icon-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 1.6rem;
  transition: transform .3s, box-shadow .3s;
}
.theme-card:hover .icon-wrap { animation: icon-pulse .7s ease forwards; }
.theme-card h5 { font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.theme-card p  { font-size: .93rem; color: #666; line-height: 1.7; margin: 0; }

/* ── PROGRAM CARDS ── */
.program-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
}
.program-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.program-card-body {
  padding: 30px;
}
.program-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bg-blue-gradient {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}
.bg-red-gradient {
  background: linear-gradient(135deg, var(--red), var(--red2));
}
.program-card-copy {
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}
.program-card-list {
  color: #555;
  line-height: 2;
  padding-left: 20px;
  margin: 0;
}

/* ── WHAT WE DO ── */
.wwd-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.wwd-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.wwd-text h6 { font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.wwd-text p  { font-size: .92rem; color: #666; margin: 0; line-height: 1.65; }
.wwd-img img { width: 100%; border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.14); }

/* ── COUNTY PILLS ── */
.county-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 30px;
  margin: 6px;
  transition: background .2s, color .2s;
  cursor: default;
}
.county-pill:hover { background: var(--blue); color: #fff; }

/* ── PARTNER CARDS ── */
.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.13); }
.partner-card .p-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
  font-size: 1.4rem;
  transition: transform .3s;
}
.partner-card:hover .p-icon { animation: icon-spin-pop .6s ease forwards; }
.partner-card h6 { font-weight: 700; color: var(--text); font-size: .95rem; margin: 0; }

/* ── GET INVOLVED ── */
.involve-card {
  background: #fff;
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  height: 100%;
  transition: transform .3s;
}
.involve-card:hover { transform: translateY(-6px); }
.involve-card .involve-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--red);
  display: inline-block;
  transition: transform .3s;
}
.involve-card:hover .involve-icon { animation: icon-wobble .7s ease forwards; }
.involve-card h5 { font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.involve-card p  { font-size: .92rem; color: #666; line-height: 1.7; margin-bottom: 20px; }

/* ── NEWS CARDS ── */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 24px; }
.news-tag {
  display: inline-block;
  background: rgba(11,61,145,.1);
  color: var(--blue);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.news-body h6 { font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.45; }
.news-body p  { font-size: .9rem; color: #666; margin: 0; }
.news-meta  { font-size: .8rem; color: #999; margin-top: 14px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #05246e 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p  { font-size: 1.1rem; opacity: .88; margin-bottom: 32px; }

/* ── CONTACT ── */
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  text-align: center;
  height: 100%;
}
.contact-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: icon-float 3s ease-in-out infinite;
}
.contact-card h6 { font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: .95rem; color: #555; text-decoration: none; }
.contact-card a:hover { color: var(--red); }

/* ── SOCIAL LINKS ── */
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  margin: 4px;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.social-link:hover { background: var(--red); color: #fff; animation: icon-ping .5s ease forwards; }

/* ── BUTTONS ── */
.btn-red {
  background: var(--red); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  letter-spacing: .5px; border: none;
  padding: 12px 30px; border-radius: 4px;
  transition: background .2s, transform .2s;
  text-decoration: none; display: inline-block;
}
.btn-red:hover { background: var(--red2); color: #fff; transform: translateY(-2px); }

.btn-blue {
  background: var(--blue); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  letter-spacing: .5px; border: none;
  padding: 12px 30px; border-radius: 4px;
  transition: background .2s, transform .2s;
  text-decoration: none; display: inline-block;
}
.btn-blue:hover { background: #082f75; color: #fff; transform: translateY(-2px); }

.btn-outline-red {
  border: 2px solid var(--red); color: var(--red);
  background: transparent;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  padding: 10px 28px; border-radius: 4px;
  transition: background .2s, color .2s;
  text-decoration: none; display: inline-block;
}
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand span { color: var(--gold); }
.footer-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-tagline { font-style: italic; color: var(--gold); font-size: .9rem; margin-bottom: 18px; }
.site-footer h6 {
  color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  background: rgba(0,0,0,.3);
  margin-top: 50px; padding: 18px 0;
  text-align: center; font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --boxed-width: min(1360px, calc(100% - 16px)); }

  body {
    padding: 8px 0 16px;
  }

  body > #heroCarousel,
  body > .stats-strip,
  body > .cta-banner,
  body > .page-hero,
  body > section,
  body > footer.site-footer,
  .site-nav {
    border-radius: 18px;
  }

  .about-badge { bottom: -10px; right: 10px; padding: 14px 16px; }
  .about-badge span { font-size: 1.4rem; }
  .program-card-image { height: 220px; }
  .program-card-body { padding: 24px; }
  .brand-logo { width: 36px; height: 36px; }
  .footer-logo { width: 42px; height: 42px; }
}

/* ── INNER PAGE HERO ── */
.page-hero {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--blue) 0%, #05246e 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { font-size: 1.1rem; opacity: .85; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.breadcrumb-item a { color: var(--gold); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.75); }
