/* =====================================================================
   CRID — Custom Stylesheet
   Loaded AFTER bootstrap.min.css — intentionally overrides Bootstrap
   defaults (colors, fonts, navbar, buttons, forms, cards) to apply the
   CRID brand, then adds bespoke components Bootstrap doesn't provide
   (hero, marquee, specimen/service cards, floating form card, etc).
   ===================================================================== */

/* ---------- 1. Brand tokens ---------- */
:root{
  --navy: #10241A;        /* dark ink text */
  --navy-deep: #071F14;   /* deep section background (hero/cta/footer) */
  --green: #00A651;       /* brand primary (from CRID logo ring) */
  --green-dark: #00833F;
  --orange: #F26522;      /* brand accent (from CRID logo sunburst) */
  --orange-dark: #D6551A;
  --bg-light: #F3FAF6;
  --border: #DCEDE3;
  --text-gray: #5B6B62;

  --font-display: 'Jost', sans-serif;
  --font-accent: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  /* Re-point Bootstrap's own CSS variables at the CRID palette so any
     unstyled Bootstrap component (badges, alerts, focus rings, etc.)
     inherits the brand instead of Bootstrap's default blue. */
  --bs-primary: var(--green);
  --bs-primary-rgb: 0, 166, 81;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--navy);
  --bs-link-color: var(--green);
  --bs-link-hover-color: var(--green-dark);
}

html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
a{ text-decoration: none; }
img{ max-width: 100%; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
::selection{ background: var(--green); color: #fff; }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--green); outline-offset: 3px; }

.italic{ font-family: var(--font-accent); font-style: italic; color: var(--orange); font-weight: 400; }

.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }


/* ---------- 2. Buttons (override Bootstrap .btn-primary look) ---------- */
.btn-brand-2{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .3px; padding: 12px 22px;
  background: var(--orange-dark); color: #fff; border: 1px solid var(--orange-dark);
  transition: transform .2s ease, background .2s ease;
}
.btn-brand-2:hover{ background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.btn-brand .arrow-dot{
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-outline-light{ font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.btn-outline-light:hover{ background: #fff; color: var(--navy); }

/* ---------- 3. Buttons (override Bootstrap .btn-primary look) ---------- */
.btn-brand{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .3px; padding: 12px 22px;
  background: var(--green); color: #fff; border: 1px solid var(--green);
  transition: transform .2s ease, background .2s ease;
}
.btn-brand:hover{ background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-brand .arrow-dot{
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-outline-light{ font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.btn-outline-light:hover{ background: #fff; color: var(--navy); }

/* ---------- 3. Navbar ---------- */
.site-navbar{
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-top: 14px; padding-bottom: 14px;
}
.logo-mark{ display: flex; align-items: center; gap: 12px; }
.logo-badge{
  width: 46px; height: 46px; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 5px;
  box-shadow: 0 2px 10px rgba(16,36,26,.12);
}
.logo-badge img{ width: 100%; height: 100%; object-fit: contain; }
.logo-word{ font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .5px; color: var(--navy); line-height: 1.15; }
.logo-word small{ display: block; font-family: var(--font-body); font-weight: 500; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-gray); }
.logo-mark.on-dark .logo-word{ color: #fff; }
.logo-mark.on-dark .logo-word small{ color: #8FA898; }

.site-navbar .nav-link{
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  letter-spacing: .6px; text-transform: uppercase; color: var(--navy);
  position: relative; padding: 6px 0; margin: 0 4px;
}
.site-navbar .nav-link::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-navbar .nav-link:hover::after{ transform: scaleX(1); }
.site-navbar .nav-link:hover{ color: var(--navy); }

.header-contact .icon-circle{
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-contact-text{ font-size: 11.5px; color: var(--text-gray); line-height: 1.4; }
.header-contact-text strong{ display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--navy); }

.navbar-toggler{ border-color: var(--border); }
.navbar-toggler:focus{ box-shadow: 0 0 0 .2rem rgba(0,166,81,.25); }

/* ---------- 4. Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  margin-top: 78px;
  padding: 70px 0;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(7,31,20,.94) 0%, rgba(7,31,20,.74) 42%, rgba(7,31,20,.15) 68%),
    url('https://images.unsplash.com/photo-1758206523826-a65d4cf070aa?fm=jpg&q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}
.hero-content{ max-width: 640px; }
.hero-tag{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,166,81,.18); border: 1px solid rgba(0,166,81,.45);
  color: #8FE3B4; font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
  opacity: 0; animation: rise .8s ease forwards .1s;
}
.hero-tag-badge{ color: #fff; background: var(--green); padding: 3px 9px; border-radius: 100px; font-size: 10.5px; }
h1.hero-title{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  line-height: 1.08; color: #fff; margin-bottom: 24px; letter-spacing: -.5px;
  opacity: 0; animation: rise .9s ease forwards .25s;
}
.hero-sub{
  font-size: 16px; line-height: 1.75; color: #CBE4D5; max-width: 480px; margin-bottom: 36px;
  opacity: 0; animation: rise .9s ease forwards .4s;
}
.hero-ctas{ opacity: 0; animation: rise .9s ease forwards .55s; }
@keyframes rise{ from{ opacity: 0; transform: translateY(18px); } to{ opacity: 1; transform: translateY(0); } }

.hero-scroll-rail{
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 2;
  flex-direction: column; gap: 10px;
}
.hero-scroll-rail button{
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.hero-scroll-rail button:hover{ background: var(--green); border-color: var(--green); }

.fab{
  position: fixed; right: 28px; bottom: 28px; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; border: none;
  box-shadow: 0 10px 24px rgba(0,166,81,.35); transition: transform .2s ease, opacity .3s ease;
  opacity: 0; pointer-events: none;
}
.fab.show{ opacity: 1; pointer-events: auto; }
.fab:hover{ transform: translateY(-3px); }

/* ---------- 5. Section shell ---------- */
section{ padding: 110px 0; }
.section-tag{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--green); margin-bottom: 18px;
}
.section-tag::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.section-tag.on-dark{ color: #8FADFF; }
.section-tag.on-dark::before{ background: var(--orange); }
h2.section-title{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.16; color: var(--navy); letter-spacing: -.5px;
}

/* ---------- 6. Feature cards (Bootstrap .card override) ---------- */
.features{ padding-top: 0; margin-top: -86px; position: relative; z-index: 10; }
.feature-card{
  border: none; border-radius: 16px; box-shadow: 0 20px 50px rgba(14,27,61,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 60px rgba(14,27,61,.16); }
.feature-card .card-body{ padding: 34px 30px; position: relative; }
.feature-index{
  position: absolute; top: 26px; right: 26px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--text-gray);
}
.feature-card .card-title{
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--navy);
  margin: 4px 60px 16px 0; line-height: 1.3;
}
.feature-card .rule{ width: 38px; height: 2px; background: var(--green); margin-bottom: 16px; }
.feature-card .card-text{ font-size: 14px; line-height: 1.7; color: var(--text-gray); max-width: 75%; margin-bottom: 44px; }
.feature-icon{ position: absolute; bottom: 26px; right: 28px; width: 44px; height: 44px; color: var(--green); opacity: .9; }

/* ---------- 7. About ---------- */
.about-copy p{ font-size: 15.5px; line-height: 1.8; color: var(--text-gray); margin: 20px 0 32px; max-width: 460px; }
.about-copy strong{ color: var(--navy); font-weight: 600; }

.about-visual{ position: relative; }
.about-images{ position: relative; height: 400px; }
.about-img-main{
  position: absolute; left: 0; top: 20px; width: 72%; height: 340px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(14,27,61,.18);
}
.about-img-main img{ width: 100%; height: 100%; object-fit: cover; }
.about-img-sub{
  position: absolute; right: 0; bottom: 0; width: 52%; height: 200px; border-radius: 16px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 20px 44px rgba(14,27,61,.2);
}
.about-img-sub img{ width: 100%; height: 100%; object-fit: cover; }

.facts-card{
  position: absolute; top: -30px; right: 6%; z-index: 3;
  background: var(--green); color: #fff; border-radius: 14px; padding: 22px 26px;
  width: 230px; box-shadow: 0 20px 40px rgba(0,166,81,.3);
}
.facts-card p.label{ font-family: var(--font-display); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.facts-row{ display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.22); }
.facts-row:first-of-type{ border-top: none; }
.facts-row span:first-child{ color: rgba(255,255,255,.8); }
.facts-row span:last-child{ font-weight: 600; }

.stat-block{ position: absolute; left: -10px; bottom: -40px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.stat-number{ font-family: var(--font-display); font-weight: 700; font-size: 62px; color: var(--navy); line-height: 1; display: flex; align-items: baseline; }
.stat-number span{ color: var(--green); }
.stat-caption{ font-size: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: .6px; color: var(--text-gray); text-transform: uppercase; max-width: 110px; line-height: 1.5; }

/* ---------- 8. Marquee ---------- */
.marquee{ background: var(--bg-light); padding: 44px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track{ display: flex; gap: 60px; white-space: nowrap; width: max-content; animation: scroll-left 28s linear infinite; }
.marquee-track span{ font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6.5vw, 4.4rem); color: var(--navy); letter-spacing: 1px; display: flex; align-items: center; gap: 60px; }
.marquee-track span em{ font-style: italic; font-family: var(--font-accent); color: var(--orange); font-weight: 400; }
.marquee-track .sep{ width: 34px; height: 34px; flex-shrink: 0; color: var(--green); }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- 9. Research / service cards ---------- */
.services-head{ max-width: 640px; margin: 0 auto 60px; }
.service-card{
  position: relative; display: block; border-radius: 18px; overflow: hidden; height: 400px;
  box-shadow: 0 16px 40px rgba(14,27,61,.12); transition: transform .35s ease;
}
.service-card:hover{ transform: translateY(-6px); }
.service-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover img{ transform: scale(1.06); }
.service-card::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,31,20,0) 40%, rgba(7,31,20,.85) 100%); }
.service-badge{
  position: absolute; top: 20px; left: 20px; z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(0,166,81,.4);
}
.service-badge svg{ width: 24px; height: 24px; }
.service-info{ position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 3; }
.service-cat{ font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #8FE3B4; margin-bottom: 8px; }
.service-title{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; line-height: 1.3; }
.service-arrow{
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s ease;
}
.service-card:hover .service-arrow{ background: var(--orange-dark); border-color:var(--orange-dark); }

.service-dots{ display: flex; justify-content: center; gap: 9px; margin-top: 44px; }
.service-dots button{ width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; transition: background .2s ease, width .2s ease; }
.service-dots button.active{ background: var(--green); width: 22px; border-radius: 6px; }

#serviceCarousel .service-card{ height: 340px; }

/* ---------- 10. CTA / contact ---------- */
.cta{ background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.cta::before{
  content: ""; position: absolute; top: -140px; right: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,.25), transparent 70%);
}
.cta-heading{ font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 20px; color: #fff; }
.cta-lead{ font-size: 15px; line-height: 1.8; color: #B7D6C2; max-width: 420px; margin-bottom: 38px; }
.cta-feature{ padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 2; }
.cta-feature:last-child{ border-bottom: 1px solid rgba(255,255,255,.12); }
.cta-feature .icon-box{
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.cta-feature h4{ font-family: var(--font-display); font-weight: 600; font-size: 15.5px; margin-bottom: 6px; color: #fff; }
.cta-feature p{ font-size: 13.5px; line-height: 1.6; color: #A9CBB6; margin-bottom: 0; }

.form-card{
  position: relative; z-index: 2;
  background: #fff; border-radius: 20px; padding: 44px 40px; color: var(--navy);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.form-card h3{ font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; margin-bottom: 26px; color: var(--navy); }
.form-card .form-control,
.form-card .form-select{
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-size: 14px;
  background: var(--bg-light); color: var(--navy);
}
.form-card .form-control:focus,
.form-card .form-select:focus{ border-color: var(--green); background: #fff; box-shadow: 0 0 0 .2rem rgba(0,166,81,.15); }
.form-submit{ margin-top: 6px; }

/* ---------- 10b. Simple centered CTA banner (single-facility.php) ---------- */
.cta-banner{
  background: var(--navy-deep); color: #fff; position: relative; overflow: hidden;
  border-radius: 24px; padding: 60px 40px; text-align: center;
}
.cta-banner::before{
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,.25), transparent 70%);
}
.cta-banner-inner{ position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-banner-tag{ font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.cta-banner h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; margin-bottom: 14px; }
.cta-banner p{ font-size: 14.5px; line-height: 1.8; color: #B7D6C2; margin-bottom: 30px; }

/* ---------- 10c. Scientific staff profile page (single-scientific-staff.php) ---------- */
/* Deliberately different from the dark image-hero used on research/project/
   facility detail pages: a light, editorial profile header instead. */
.staff-profile-hero{
  background: var(--bg-light); border-radius: 28px; padding: 50px 44px;
  position: relative; overflow: hidden;
}
.staff-profile-hero::before{
  content: ""; position: absolute; top: -100px; right: -100px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,.12), transparent 70%);
}
.staff-photo-wrap{ position: relative; z-index: 2; }
.staff-photo{
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px;
  box-shadow: 0 20px 45px rgba(14,27,61,.14); border: 6px solid #fff;
}
.staff-category-badge{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--green-dark);
  background: rgba(0,166,81,.1); padding: 7px 16px; border-radius: 100px; margin-bottom: 16px;
}
.staff-name{ font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 6px; }
.staff-specialization{ font-family: var(--font-accent); font-style: italic; font-size: 18px; color: var(--orange-dark); margin-bottom: 20px; }
.staff-socials{ display: flex; gap: 12px; margin-top: 22px; }
.staff-socials a{
  width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center;
  justify-content: center; color: var(--green-dark); box-shadow: 0 8px 20px rgba(14,27,61,.08); transition: all .2s ease;
}
.staff-socials a:hover{ background: var(--green); color: #fff; }
.staff-bio-card{
  border-left: 3px solid var(--green); padding-left: 26px; margin-top: 44px;
}
.staff-bio-card h4{ font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-gray); margin-bottom: 14px; }
.staff-other-card{
  background: var(--bg-light); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 14px;
  text-decoration: none; margin-bottom: 12px; transition: transform .2s ease;
}
.staff-other-card:hover{ transform: translateX(4px); }
.staff-other-card img{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.staff-other-card .name{ font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.staff-other-card .cat{ font-size: 11.5px; color: var(--text-gray); }



/* ---------- 11. Footer ---------- */
.site-footer{ background: var(--navy-deep); color: #fff; }
.footer-top{ padding: 70px 0 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top p{ font-size: 13.5px; line-height: 1.8; color: #8FA898; max-width: 280px; }
.footer-top h5{ font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 20px; color: #fff; }
.footer-top a:not(.logo-mark){ display: block; font-size: 13.5px; color: #8FA898; margin-bottom: 12px; transition: color .2s ease; }
.footer-top a:not(.logo-mark):hover{ color: var(--green); }
.footer-quote{ font-family: var(--font-accent); font-style: italic; font-size: 16px; line-height: 1.7; color: #BFE0CC; }
.footer-bottom{ padding: 26px 0; }
.footer-bottom p{ font-size: 12.5px; color: #6E8A78; }
.footer-bottom a.site-url{ font-size: 12.5px; color: var(--green); }

/* card-bounce */
.card-bounce {
    transition: transform 0.3s ease;
}

.card-bounce:hover {
    animation: cardBounce 0.6s ease;
}

@keyframes cardBounce {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
    }
}

.card-bounce {
    transition: box-shadow 0.3s ease;
}

.card-bounce:hover {
    animation: cardBounce 0.6s ease;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

@keyframes cardBounce {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
    }
}

.bg-orange {
  background-color:#D6551A;
  color:white;
}


.hero-card {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}


/* ---------- 11b. Footer (site-footer) ---------- */
.footer-top .icon-circle{
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.footer-top .icon-circle:hover{ background: var(--green); border-color: var(--green); }
.footer-top li{ font-size: 13.5px; color: #8FA898; }
.footer-top li span{ line-height: 1.6; }

/* ---------- 13. Hero carousel ---------- */
.hero-carousel{ position: relative; min-height: 92vh; margin-top: 78px; overflow: hidden; }
.hero-carousel .carousel-item{ min-height: 92vh; }
.hero-carousel .hero-slide{
  min-height: 92vh; display: flex; align-items: center; padding: 70px 0; background-size: cover; background-position: center;
}
.hero-carousel .hero-slide::before{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,31,20,.94) 0%, rgba(7,31,20,.74) 42%, rgba(7,31,20,.15) 68%);
}
.hero-carousel .hero-content{ position: relative; z-index: 2; max-width: 640px; }
.hero-carousel .carousel-indicators{ bottom: 34px; }
.hero-carousel .carousel-indicators [data-bs-target]{
  width: 9px; height: 9px; border-radius: 50%; background-color: rgba(255,255,255,.45); border: none; opacity: 1; margin: 0 5px;
}
.hero-carousel .carousel-indicators .active{ background-color: var(--green); width: 24px; border-radius: 6px; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{ width: 64px; opacity: 0; transition: opacity .2s ease; }
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next{ opacity: 1; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{
  width: 42px; height: 42px; border-radius: 50%; background-color: rgba(255,255,255,.12);
  background-size: 18px; border: 1px solid rgba(255,255,255,.3);
}

/* ---------- 14. Projects (status + progress) ---------- */
.project-card{
  background: #fff; border-radius: 18px; padding: 30px 28px; height: 100%;
  box-shadow: 0 16px 40px rgba(14,27,61,.08); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover{ transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14,27,61,.14); }
.project-status{
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600;
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.project-status::before{ content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.project-status.status-planned{ background: rgba(143,173,255,.15); color: #5C7CD6; }
.project-status.status-ongoing{ background: rgba(242,101,34,.12); color: var(--orange-dark); }
.project-status.status-completed{ background: rgba(0,166,81,.12); color: var(--green-dark); }
.project-status.status-on-hold{ background: rgba(91,107,98,.12); color: var(--text-gray); }

/* ---------- 14b. Project filter tabs (archive-projects.php) ---------- */
.project-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:34px; }
.project-filter-btn{
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing:.3px;
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border);
  background: #fff; color: var(--text-gray); cursor: pointer; transition: all .25s ease;
}
.project-filter-btn:hover{ border-color: var(--green); color: var(--green-dark); }
.project-filter-btn.active{ background: var(--green); border-color: var(--green); color: #fff; }
.project-grid .col.is-hidden{ display:none; }

.project-card h4{ font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.project-card p.project-excerpt{ font-size: 13.5px; line-height: 1.7; color: var(--text-gray); margin-bottom: 22px; min-height: 66px; }
.project-progress-row{ display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--navy); margin-bottom: 8px; }
.project-progress{ height: 8px; border-radius: 100px; background: var(--bg-light); overflow: hidden; }
.project-progress-bar{ height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--green), var(--green-dark)); }

/* ---------- 15. Inner page hero / breadcrumb ---------- */
.page-hero{ margin-top: 78px; }
.page-hero .breadcrumb-item a{ color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active{ color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before{ color: rgba(255,255,255,.5); }

/* ---------- 16. Research / job cards ---------- */
.research-card-img{ height: 210px; overflow: hidden; border-radius: 1.5rem; }
.research-card-img img{ width: 100%; height: 100%; object-fit: cover; }

.job-card{
  background: #fff; border-radius: 18px; padding: 28px; border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(14,27,61,.06); transition: box-shadow .25s ease, transform .25s ease;
}
.job-card:hover{ box-shadow: 0 20px 44px rgba(14,27,61,.12); transform: translateY(-4px); }
.job-meta-pill{
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--text-gray); background: var(--bg-light); border-radius: 100px; padding: 5px 12px; margin: 3px 6px 3px 0;
}

/* ---------- 17. Contact page ---------- */
.contact-info-card{
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; height: 100%; box-shadow: 0 10px 26px rgba(14,27,61,.06);
}
.contact-info-card .icon-box{
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-light); color: var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-card h5{ font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.contact-info-card p{ font-size: 13.5px; color: var(--text-gray); margin-bottom: 0; }
.map-frame{ border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(14,27,61,.12); border: none; width: 100%; height: 420px; }
.contact-alert{ border-radius: 12px; font-size: 14px; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 991.98px){
  .facts-card{ position: static; margin-bottom: 20px; width: 100%; }
  .about-images{ height: 340px; }
  .stat-block{ position: static; margin-top: 24px; }
}
@media (max-width: 767.98px){
  section{ padding: 76px 0; }
  .header-contact{ display: none !important; }
}



/* ---------- 21. Project card as a link (project details) ---------- */
a.project-card-link{ display:block; text-decoration:none; color:inherit; }
a.project-card-link:hover{ text-decoration:none; color:inherit; }
.project-view-link{
  display:inline-flex; align-items:center; gap:8px; margin-top:8px;
  font-family: var(--font-display); font-weight:600; font-size:12.5px;
  color: var(--green-dark, #00A651); text-transform:uppercase; letter-spacing:.5px;
}
a.project-card-link:hover .project-view-link{ color: var(--orange, #F26522); }

/* ---------- 22. Partner / Funder logo grid ---------- */
.logos-section .logo-tile{ display:flex; align-items:center; justify-content:center; height:100%; }
.logo-tile-img{
  max-height: 180px; width:auto; margin:0 auto; filter: grayscale(100%); opacity:.75;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.logo-tile-img:hover{ filter:grayscale(0%); opacity:1; transform: translateY(-3px); }
.logo-tile-fallback{
  display:block; font-family: var(--font-display); font-weight:600; font-size:14px;
  color: var(--navy); text-align:center; padding: 10px 6px; border:1px dashed var(--border); border-radius:10px;
}

/* ---------- 23. Board of Directors / Team card tweaks ---------- */
.feature-card .card-img-top{ height: 220px; object-fit: cover; }
