/* =====================================================================
   IDEA Pakistan CMS - Frontend theme
   File: assets/css/theme.css
   Original responsive design (mobile-first, lightweight, no external CSS).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  --c-primary:        #0f6e3f;   /* deep green */
  --c-primary-dark:   #0a4d2c;
  --c-primary-light:  #e7f4ec;
  --c-accent:         #680E3F;
  --c-accent-dark:    #CC1C7C;
  --c-text:           #1f2a37;
  --c-muted:          #6b7280;
  --c-border:         #e5e7eb;
  --c-bg:             #ffffff;
  --c-bg-soft:        #f7f9fc;
  --c-bg-dark:        #0f172a;
  --c-bg-dark-2:      #111827;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.06);
  --shadow:     0 6px 20px rgba(15,23,42,.08);
  --shadow-lg:  0 18px 40px rgba(15,23,42,.10);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  18px;
  --container:  1200px;
  --t-fast: 180ms ease;
}

/* ---------------------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Inter','Segoe UI','Helvetica Neue',Arial,sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; font-weight: 700; line-height: 1.25; color: var(--c-text); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul,ol { margin: 0 0 1em; padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 32px 0; }
small { color: var(--c-muted); }
.muted { color: var(--c-muted); }
.skip-link {
  position:absolute; left:-9999px; top:0; background:#000; color:#fff; padding:8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 9999; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }

/* ---------------------------------------------------------------------
   3. Top bar / header / nav
   --------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff;
               box-shadow: var(--shadow-sm); }
.topbar { background: var(--c-primary-dark); color: #d2e9d9; font-size: .88rem; }
.topbar a { color: #d2e9d9; }
.topbar a:hover { color: #fff; }
.topbar-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
              padding: 8px 0; justify-content: space-between; }
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 8px; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Search form inside the dark green topbar (right side). */
.topbar .topbar-search {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  padding: 2px 4px 2px 10px;
  margin: 0;
}
.topbar .topbar-search .nav-ico-search {
  background-color: #d2e9d9;
  opacity: .9;
}
.topbar .topbar-search input {
  color: #fff;
  font-size: .82rem;
  min-width: 130px;
  max-width: 180px;
}
.topbar .topbar-search input::placeholder { color: rgba(255,255,255,.7); }
.topbar .topbar-search input:focus { outline: none; }
.topbar .topbar-search button {
  background: var(--c-accent);
  color: #fff;
}
.topbar .topbar-search button:hover { background: var(--c-accent-dark); }
.topbar .topbar-search:focus-within {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
}
.topbar .soc { background: rgba(255,255,255,.16); }
.topbar .soc:hover { background: rgba(255,255,255,.32); }

@media (max-width: 720px) {
  .topbar-row { gap: 6px 14px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar .topbar-search input { max-width: none; flex: 1; }
}

.navbar {
  background: #fff;
  border-top: 1px solid rgba(15,23,42,.04);
  position: relative;
}
.navbar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 18px;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--c-text); font-weight: 800;
  transition: transform var(--t-fast);
}
.brand:hover { color: var(--c-primary); transform: translateY(-1px); }
.navbar .brand .brand-logo-img {
  max-height: var(--navbar-logo-height, 52px);
  max-width: min(100%, 320px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #176f8a 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(15,110,63,.28);
}
.brand-name { font-size: 1.18rem; letter-spacing: .01em; line-height: 1.1; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px;
              cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--c-text); margin: 6px 0;
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Only the top-level list is flex — nested .sub-menu uls must NOT match this
   selector or they inherit display:flex and override .sub-menu{display:none}. */
.primary-nav > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: stretch;
  gap: 2px; flex-wrap: wrap; justify-content: flex-end;
}
.primary-nav li { position: relative; }

.primary-nav .nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 14px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #1f2a37;
  border-radius: 10px;
  line-height: 1.2;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav .nav-link::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
  opacity: 0;
}
.primary-nav .nav-link:hover {
  color: var(--c-primary);
  background: var(--c-primary-light);
}
.primary-nav .nav-link:hover::after,
.primary-nav .nav-link.active::after,
.primary-nav .has-sub.open > .nav-link::after {
  transform: scaleX(1); opacity: 1;
}
.primary-nav .nav-link.active {
  color: var(--c-primary);
  background: var(--c-primary-light);
}
.primary-nav .has-sub.open > .nav-link {
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.primary-nav .nav-text {
  white-space: nowrap;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icons: masks defined in nav-icons.css */
.nav-ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: .82;
  vertical-align: middle;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.primary-nav .nav-link:hover .nav-ico,
.primary-nav .nav-link.active .nav-ico,
.primary-nav .has-sub.open > .nav-link .nav-ico {
  opacity: 1;
  transform: translateY(-1px) scale(1.06);
}

.nav-ico-sm {
  width: 14px;
  height: 14px;
  opacity: 0.78;
}
.sub-menu a:hover .nav-ico-sm { opacity: 1; transform: translateX(2px); }

.caret {
  width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform var(--t-fast);
}

/* Sub-menu (mega-style card) */
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.06);
  list-style: none; margin: 0;
  padding: 8px;
  display: none; flex-direction: column; gap: 2px;
  z-index: 60;
  border: 1px solid rgba(15, 23, 42, 0.06);
  /* Top accent stripe */
  background-image: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: top left;
  padding-top: 11px;
  animation: subMenuIn .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes subMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Click-to-toggle: a sub-menu is only visible when its parent has .open.
   We deliberately do NOT use :hover to avoid stuck-hover on touch screens
   (tablets / hybrid laptops) where two dropdowns can stay open at once. */
.has-sub.open > .sub-menu { display: flex; }
.has-sub.open > .nav-link > .caret { transform: rotate(180deg); }
.sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 8px;
  transition: background var(--t-fast), color var(--t-fast), padding var(--t-fast);
}
.sub-menu a .nav-ico-sm { transition: transform var(--t-fast), opacity var(--t-fast); }
.sub-menu a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
  padding-left: 16px;
}

.nav-search-form {
  display: flex; align-items: center; gap: 6px;
  background: var(--c-bg-soft);
  border-radius: 999px;
  padding: 3px 4px 3px 10px;
  margin-left: 6px;
  border: 1px solid var(--c-border);
}
.nav-search-form .nav-ico-search {
  opacity: 0.45;
  flex-shrink: 0;
}
.nav-search-form input {
  background: transparent; border: 0; outline: none;
  padding: 5px 4px;
  font-size: .78rem;
  min-width: 98px;
  max-width: 140px;
  color: var(--c-text);
}
.nav-search-form button {
  background: var(--c-primary); color: #fff; border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
}
.nav-search-form button:hover { background: var(--c-primary-dark); }
.nav-search-btn-inner { position: relative; top: 0; }

/* mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--c-border); display: none; padding: 14px 18px;
    max-height: calc(100vh - 100px); overflow: auto;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav .nav-link {
    padding: 13px 12px;
    font-size: .96rem;
    border-radius: 8px;
    border: 0;
    border-bottom: 1px solid var(--c-border);
  }
  .primary-nav .nav-link::after { display: none; }
  .primary-nav .nav-link:hover,
  .primary-nav .nav-link.active { border-bottom-color: var(--c-primary-light); }
  .primary-nav .nav-text { max-width: none; }
  .sub-menu {
    position: static; box-shadow: none; padding: 4px 0 8px 26px;
    display: none; border: 0;
    background: transparent; animation: none;
  }
  .has-sub.open > .sub-menu { display: flex; }
  .sub-menu a { padding: 9px 10px; font-size: .9rem; }
  .nav-search-form { margin: 12px 0 0; max-width: none; }
  .nav-search-form input { max-width: none; flex: 1; min-width: 0; }
}

/* ---------------------------------------------------------------------
   4. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; min-height: 480px; color: #fff;
  background: linear-gradient(135deg, #0f6e3f 0%, #134f88 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 80% 0%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(700px 600px at 0% 100%, rgba(255,138,61,.18), transparent 60%);
  pointer-events: none;
}

/* Full-viewport slide (one image + text + buttons per slide) */
.hero--fullscreen {
  min-height: clamp(520px, 92vh, 100vh);
  padding: 0;
  background: #0f172a;
}
.hero--fullscreen::before { display: none; }
.hero--fullscreen .hero-inner {
  min-height: inherit;
  display: flex;
  flex-direction: column;
}
.hero--fullscreen .hero-slides {
  flex: 1;
  min-height: inherit;
}
.hero--fullscreen .slide-panel {
  position: relative;
  min-height: clamp(520px, 92vh, 100vh);
  display: flex;
  align-items: center;
  color: #fff;
}
.hero--fullscreen .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--fullscreen .slide-bg img {
  /*
  width: 100%;
  height: 100%; */ 
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero--fullscreen .slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 20, 14, 0.55) 0%, rgba(10, 18, 32, 0.82) 100%);
  pointer-events: none;
}
.hero--fullscreen .slide-content {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 12vh, 120px) 0 clamp(64px, 10vh, 96px);
  max-width: 920px;
}
.hero--fullscreen .slide-headline {
  color: #fff;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
}
.hero--fullscreen .slide-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  max-width: 42ch;
  margin: 0 0 0.5em;
  opacity: 0.95;
}
.hero--fullscreen .slide-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0.75em 0 0;
  opacity: 0.9;
}
.hero--fullscreen .slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 32px);
}
.hero--fullscreen .hero-dots {
  bottom: clamp(16px, 3vh, 28px);
}

/* Full-width photo hero (image from Site Settings + adjustable scrim) */
.hero--full-photo {
  min-height: 520px;
  min-height: clamp(420px, 52vh, 720px);
  background: #0f172a;
}
.hero--full-photo::before { display: none; }
.hero-photo-layer {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo-layer img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(12, 74, 44, 0.97) 0%, rgba(15, 23, 42, 0.92) 45%, rgba(17, 79, 120, 0.94) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

.hero-row { position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
            gap: 40px; align-items: center; padding: 80px 0; }
.hero-row--text-only {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.hero p  { font-size: 1.1rem; max-width: 56ch; opacity: .95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; padding: 20px; backdrop-filter: blur(4px);
  transform: rotate(-1.5deg);
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.hero-art:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
}
.hero-art img {
  border-radius: 16px; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero-art:hover img { transform: scale(1.05); }
.hero .badge-pill {
  display: inline-block; padding: 6px 14px; background: rgba(255,255,255,.18);
  border-radius: 999px; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 18px;
}

@media (max-width: 880px) {
  .hero-row { grid-template-columns: 1fr; padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-art { transform: none; }
}

/* slider dots */
.hero-slides { position: relative; }
.hero-slides .slide { display: none; }
.hero-slides .slide.active { display: block; animation: fade .6s ease; }
.hero--fullscreen .hero-slides .slide.active { display: flex; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
             display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px;
                    background: rgba(255,255,255,.45); border: 0; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   5. Buttons / chips / badges
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all var(--t-fast);
  text-decoration: none;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent  { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-light   { background: #fff; color: var(--c-text); border-color: var(--c-border); }
.btn-light:hover { background: var(--c-bg-soft); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-block; background: var(--c-bg-soft); color: var(--c-muted);
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
}
.chip-primary { background: var(--c-primary-light); color: var(--c-primary-dark); }

/* ---------------------------------------------------------------------
   6. Sections / cards
   --------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-title .eyebrow {
  display: inline-block; color: var(--c-primary); letter-spacing: .12em;
  font-weight: 700; font-size: .82rem; text-transform: uppercase;
}
.section-title h2 { margin: 8px 0 8px; }
.section-title p  { color: var(--c-muted); }
.section-title--on-dark .eyebrow { color: var(--c-accent); }
.section-title--on-dark h2 { color: #fff; }
.section-title--on-dark p  { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card-tile {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s cubic-bezier(.2,.7,.2,1),
              border-color .35s ease;
  display: flex; flex-direction: column;
}
.card-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary-light);
}
.card-tile .thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--c-bg-soft);
  overflow: hidden;
  isolation: isolate;
}
.card-tile .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1),
              filter .5s ease;
  will-change: transform;
}
.card-tile:hover .thumb img {
  transform: scale(1.08);
  filter: saturate(1.08);
}
/* Soft dark gradient that fades in from the bottom on hover */
.card-tile .thumb::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 70%;
  background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 100%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1;
}
.card-tile:hover .thumb::after { opacity: 1; }
/* Diagonal "shine" sweep across the image */
.card-tile .thumb::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%;
  left: -80%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
  pointer-events: none; z-index: 2;
  transition: left .8s cubic-bezier(.2,.7,.2,1);
}
.card-tile:hover .thumb::before { left: 130%; }
.card-tile .body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.card-tile h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-tile h3 a { color: inherit; }
.card-tile h3 a:hover { color: var(--c-primary); }
.card-tile p  { color: var(--c-muted); font-size: .94rem; }
.card-tile .meta { color: var(--c-muted); font-size: .82rem; margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.card-tile .more { margin-top: auto; padding-top: 10px; font-weight: 600; }

/* feature row */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-light);
  color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}

/* ---------------------------------------------------------------------
   7. Page header / breadcrumbs
   --------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(120deg, #0f6e3f 0%, #176f8a 100%);
  color: #fff; padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 60%);
}
.page-header h1 { color: #fff; font-size: 2.1rem; margin: 0; }
.page-header p  { opacity: .9; max-width: 70ch; margin-top: 8px; }
.breadcrumb-wrap { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.breadcrumb {
  list-style: none; padding: 12px 0; margin: 0; display: flex; flex-wrap: wrap;
  gap: 6px; font-size: .9rem; color: var(--c-muted);
}
.breadcrumb-item + .breadcrumb-item::before { content: '/'; padding: 0 6px; opacity: .6; }
.breadcrumb-item.active { color: var(--c-text); }

/* ---------------------------------------------------------------------
   8. Forms / alerts
   --------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--c-border);
  border-radius: 10px; font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--c-text); transition: border-color var(--t-fast);
}
.form-control:focus { outline: none; border-color: var(--c-primary);
                      box-shadow: 0 0 0 3px rgba(15,110,63,.18); }
textarea.form-control { resize: vertical; min-height: 120px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .94rem; }
.alert-info    { background: #e7f0fb; color: #1c4980; border: 1px solid #c4d8f3; }
.alert-success { background: #e7f6ee; color: #135f33; border: 1px solid #b6e0c5; }
.alert-warning { background: #fff5e0; color: #8a4d12; border: 1px solid #ffd99d; }
.alert-danger  { background: #fde7e7; color: #8a1c1c; border: 1px solid #f5b9b9; }

/* ---------------------------------------------------------------------
   9. Pagination
   --------------------------------------------------------------------- */
.pagination { list-style: none; margin: 30px 0 0; padding: 0;
              display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-item .page-link {
  display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--c-border);
  background: #fff; color: var(--c-text);
}
.page-item.active .page-link { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.page-link:hover { background: var(--c-primary-light); }

/* ---------------------------------------------------------------------
  10. Specific UI: gallery, team, partners, posts
   --------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid a {
  position: relative;
  aspect-ratio: 1/1; overflow: hidden;
  border-radius: 12px; background: #eee;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s ease, transform .35s ease;
}
.gallery-grid a:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  will-change: transform;
}
.gallery-grid a:hover img { transform: scale(1.1); filter: brightness(1.05); }
/* Dark overlay that fades in */
.gallery-grid a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,.10) 50%, rgba(15,23,42,0) 100%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none; z-index: 1;
}
.gallery-grid a:hover::after { opacity: 1; }
/* Plus-icon that scales in on hover */
.gallery-grid a::before {
  content: '+';
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 300; line-height: 1;
  opacity: 0; transform: scale(.6);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
  pointer-events: none; z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.gallery-grid a:hover::before { opacity: 1; transform: scale(1); }

.team-card {
  text-align: center; padding: 22px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-primary-light);
}
.team-card img {
  width: 120px; height: 120px; border-radius: 999px; object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--c-primary-light);
  transition: transform .45s cubic-bezier(.2,.7,.2,1),
              border-color .35s ease,
              box-shadow .35s ease;
  will-change: transform;
}
.team-card:hover img {
  transform: scale(1.06) rotate(-1.5deg);
  border-color: var(--c-primary);
  box-shadow: 0 8px 24px rgba(15,110,63,.25);
}
.team-card h4 { margin: 0; }
.team-card .role { color: var(--c-primary); font-size: .9rem; }
.team-card .bio  { color: var(--c-muted); font-size: .92rem; margin-top: 8px; }
.team-card .socials { margin-top: 10px; display: flex; gap: 8px; justify-content: center; }

/* ---------------------------------------------------------------------
   Homepage feature team grid (larger, bolder than .team-card)
   --------------------------------------------------------------------- */
.section-team {
  background:
    radial-gradient(900px 600px at 90% 0%, rgba(15,110,63,.06), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,138,61,.06), transparent 60%),
    var(--c-bg-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: 1fr; } }

.team-feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  display: flex; flex-direction: column;
}
.team-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary-light);
}

.team-feature-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c-primary-light) 0%, #fff 100%);
  overflow: hidden;
}
.team-feature-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.team-feature:hover .team-feature-photo img { transform: scale(1.06); }

/* Subtle gradient overlay so the white socials read on any photo */
.team-feature-photo::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 100%);
  opacity: 0; transition: opacity var(--t-fast);
  pointer-events: none;
}
.team-feature:hover .team-feature-photo::after { opacity: 1; }

.team-feature-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-primary); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.team-feature-socials {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.team-feature:hover .team-feature-socials { opacity: 1; transform: translateY(0); }
.team-feature-socials a {
  width: 36px; height: 36px; border-radius: 999px;
  background: #fff; color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.team-feature-socials a:hover {
  background: var(--c-primary); color: #fff; transform: translateY(-2px);
}

.team-feature-body {
  padding: 22px 22px 24px;
  text-align: center;
}
.team-feature-body h4 {
  font-size: 1.18rem; margin: 0 0 4px;
  color: var(--c-text);
}
.team-feature-role {
  display: inline-block;
  color: var(--c-primary); font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
}
.team-feature-role::after {
  content: ''; display: block; width: 30px; height: 2px;
  background: var(--c-accent); margin: 10px auto 0; border-radius: 2px;
}
.team-feature-bio {
  color: var(--c-muted); font-size: .94rem;
  margin: 12px 0 0; line-height: 1.55;
}

.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-tile {
  position: relative;
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  padding: 14px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.partner-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-primary-light);
}
.partner-tile img {
  max-height: 80%; max-width: 80%; object-fit: contain;
  filter: grayscale(.6) opacity(.85);
  transition: filter .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.partner-tile:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.06);
}
/* subtle accent ring that fades in */
.partner-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(15,110,63,0);
  transition: box-shadow .4s ease; pointer-events: none;
}
.partner-tile:hover::after { box-shadow: inset 0 0 0 2px rgba(15,110,63,.18); }

.post-content { font-size: 1.02rem; }
.post-content img {
  border-radius: 10px; margin: 16px 0;
  box-shadow: var(--shadow-sm);
  transition: transform .6s cubic-bezier(.2,.7,.2,1),
              box-shadow .4s ease,
              filter .4s ease;
  will-change: transform;
}
.post-content img:hover {
  transform: scale(1.015) translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.05);
}
.post-meta { display: flex; gap: 14px; color: var(--c-muted); font-size: .88rem;
             margin-bottom: 18px; flex-wrap: wrap; }

/* video card */
.video-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary-light);
}
.video-card .ratio { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-card .ratio iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.video-card:hover .ratio iframe { transform: scale(1.03); }
.video-card .body { padding: 14px 18px; }

/* Homepage video strip (index.php — data from CMS videos table) */
.section-home-videos {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  color: #e8eef5;
}
.section-home-videos__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #071018 0%, #0d4d30 42%, #0c1828 100%);
}
.section-home-videos__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 420px at 18% -10%, rgba(255,138,61,.14), transparent 55%),
    radial-gradient(ellipse 700px 380px at 92% 108%, rgba(15,110,63,.35), transparent 50%);
  pointer-events: none;
}
.section-home-videos__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23fff'%3E%3Cpath d='M40 0l2 38 38 2-38 2-2 38-2-38-38-2 38-2z' opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.home-video-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .home-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-video-card--lead {
    grid-column: 1 / -1;
  }
}

.home-video-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.home-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0,0,0,.38);
  border-color: rgba(255,255,255,.22);
}

.home-video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.home-video-card--lead .home-video-poster {
  aspect-ratio: 21 / 9;
  max-height: 380px;
}
.home-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.home-video-card:hover .home-video-poster img {
  transform: scale(1.05);
  filter: brightness(1.06);
}
.home-video-poster__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75) 0%, rgba(15,23,42,.15) 45%, rgba(15,23,42,.25) 100%);
  pointer-events: none;
  transition: opacity .35s ease;
}
.home-video-card:hover .home-video-poster__scrim { opacity: .92; }

.home-video-poster__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,110,63,.92);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.home-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  transition: transform .25s ease;
}
.home-video-card--lead .home-video-play {
  width: 88px;
  height: 88px;
}
.home-video-play:hover,
.home-video-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}
.home-video-play:focus-visible .home-video-play__ring {
  box-shadow: 0 0 0 3px rgba(255,255,255,.45), 0 12px 28px rgba(0,0,0,.45);
}
.home-video-play__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.75));
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  transition: box-shadow .25s ease;
}
.home-video-play__tri {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin-left: 4px;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--c-primary-dark);
}
.home-video-card--lead .home-video-play__tri {
  border-width: 17px 0 17px 26px;
  margin-left: 5px;
}

.home-video-card__body {
  padding: 18px 20px 22px;
  background: rgba(7,12,18,.55);
}
.home-video-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.35;
}
.home-video-card--lead .home-video-card__body h3 {
  font-size: 1.28rem;
}
.home-video-card__excerpt {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(226,235,245,.85);
}

.home-video-iframe-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.home-video-card--lead .home-video-iframe-inner {
  aspect-ratio: 21 / 9;
  max-height: 380px;
}
.home-video-iframe-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 719px) {
  .home-video-card--lead .home-video-poster { aspect-ratio: 16 / 9; max-height: none; }
}

/* download list */
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
}
.dl-item h4 { margin: 0 0 2px; font-size: 1rem; }
.dl-item small { color: var(--c-muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--c-primary); color: #fff; padding: 28px; border-radius: var(--radius); }
.contact-info a { color: #fff; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { display: flex; gap: 10px; margin-bottom: 10px; }

/* donate */
.donate-card { background: #fff; border: 1px solid var(--c-border);
               border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.donate-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.donate-card dt { color: var(--c-muted); }
.donate-card dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------------
  11. Footer (matches header top-bar greens)
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--c-primary-dark);
  color: #d2e9d9;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px;
  padding: 60px 0 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col a  { color: #d2e9d9; }
.footer-col a:hover { color: #fff; }
.footer-about-text,
.footer-about-text p {
  color: #d2e9d9;
  font-size: .94rem;
  line-height: 1.65;
}
.footer-about-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-about-text a:hover { color: var(--c-accent); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { padding: 4px 0; }
.footer-contact li { display: flex; gap: 8px; }
.footer-bar {
  background: #063822;
  padding: 16px 0;
  font-size: .88rem;
  color: rgba(210,233,217,.85);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bar a { color: #d2e9d9; }
.footer-bar a:hover { color: #fff; }
.footer-bar-row { display: flex; flex-wrap: wrap; gap: 8px;
                  justify-content: space-between; align-items: center; }

.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.soc {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.14); display: inline-block;
  position: relative;
  transition: background var(--t-fast), transform var(--t-fast);
}
.soc:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.soc::before {
  content: ''; position: absolute; inset: 0; background-position: center; background-repeat: no-repeat;
  background-size: 16px;
}
.soc-facebook::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M13 22v-8h3l1-4h-4V7c0-1.1.4-2 2-2h2V1.2C16.4 1 15 1 14 1c-3 0-5 2-5 5v4H6v4h3v8h4z'/%3E%3C/svg%3E"); }
.soc-twitter::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.7 3H21l-7 8 8.2 10H16l-5-6.5L5 21H2l7.5-8.5L1.5 3H8l4.4 5.9L17.7 3z'/%3E%3C/svg%3E"); }
.soc-linkedin::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 3a2 2 0 110 4 2 2 0 010-4zm-2 6h4v12H2zm6 0h4v2c.6-1 2-2 4-2 4 0 4 3 4 6v6h-4v-6c0-2-1-3-2-3s-2 1-2 3v6H8z'/%3E%3C/svg%3E"); }
.soc-youtube::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M22 12s0-3.5-.5-5c-.3-1-1-1.7-2-2C18 4.5 12 4.5 12 4.5s-6 0-7.5.5c-1 .3-1.7 1-2 2C2 8.5 2 12 2 12s0 3.5.5 5c.3 1 1 1.7 2 2 1.5.5 7.5.5 7.5.5s6 0 7.5-.5c1-.3 1.7-1 2-2 .5-1.5.5-5 .5-5zM10 15.5v-7l6 3.5-6 3.5z'/%3E%3C/svg%3E"); }
.soc-instagram::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='%23fff'/%3E%3C/svg%3E"); }

/* small inline icons (phone/mail/pin)
   Implemented as CSS masks so the icon takes the parent's text color
   via `background-color: currentColor`. This works on dark backgrounds
   (topbar, footer, contact card, etc.) where the surrounding text is white. */
[class^="i-"] {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;    mask-size: contain;
}
.i-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15.5 15.5 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3a12.4 12.4 0 003.9.6c.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A18 18 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.4.2 2.7.6 3.9.1.4 0 .8-.3 1.1l-2.2 1.8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15.5 15.5 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3a12.4 12.4 0 003.9.6c.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A18 18 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.4.2 2.7.6 3.9.1.4 0 .8-.3 1.1l-2.2 1.8z'/%3E%3C/svg%3E");
}
.i-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 6h18a1 1 0 011 1v10a2 2 0 01-2 2H4a2 2 0 01-2-2V7a1 1 0 011-1zm9 8L4 8v8h16V8l-8 6z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 6h18a1 1 0 011 1v10a2 2 0 01-2 2H4a2 2 0 01-2-2V7a1 1 0 011-1zm9 8L4 8v8h16V8l-8 6z'/%3E%3C/svg%3E");
}
.i-pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8 2 5 5 5 9c0 5.5 7 13 7 13s7-7.5 7-13c0-4-3-7-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8 2 5 5 5 9c0 5.5 7 13 7 13s7-7.5 7-13c0-4-3-7-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/%3E%3C/svg%3E");
}

/* back to top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px;
  border-radius: 999px; background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity var(--t-fast); pointer-events: none; z-index: 40;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: .95; pointer-events: auto; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; }

/* responsive iframe utility */
.ratio-16x9 { position: relative; aspect-ratio: 16/9; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------
   12. Image hover utilities (drop-in classes for any image)
   --------------------------------------------------------------------- */
/* Wrapper class: gives a clean rounded frame with zoom + dim overlay. */
.img-hover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease;
  isolation: isolate;
}
.img-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.img-hover img,
.img-hover > picture > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.2,.7,.2,1),
              filter .4s ease;
  will-change: transform;
}
.img-hover:hover img { transform: scale(1.06); filter: saturate(1.06); }
/* Soft dark gradient that fades in on hover. */
.img-hover::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(to top, rgba(15,23,42,.45) 0%, rgba(15,23,42,0) 100%);
  opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 1;
}
.img-hover:hover::after { opacity: 1; }

/* Variant: shine sweep (use class .img-hover.img-hover--shine). */
.img-hover--shine::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%;
  left: -80%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
  pointer-events: none; z-index: 2;
  transition: left .8s cubic-bezier(.2,.7,.2,1);
}
.img-hover--shine:hover::before { left: 130%; }

/* Variant: zoom-only (no overlay). */
.img-hover--zoom::after { display: none; }

/* Variant: tilt (3D feel) on hover. */
.img-hover--tilt {
  perspective: 800px;
}
.img-hover--tilt:hover img {
  transform: scale(1.06) rotateX(2deg) rotateY(-2deg);
}

/* Plain inline image utility – just zoom + lift, no wrapper required. */
img.img-zoom {
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  will-change: transform;
}
img.img-zoom:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------------
   13. Reduced-motion: honour user preference
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card-tile:hover,
  .card-tile:hover .thumb img,
  .gallery-grid a:hover,
  .gallery-grid a:hover img,
  .partner-tile:hover,
  .partner-tile:hover img,
  .team-card:hover,
  .team-card:hover img,
  .team-feature:hover,
  .team-feature:hover .team-feature-photo img,
  .video-card:hover,
  .video-card:hover .ratio iframe,
  .home-video-card:hover,
  .home-video-card:hover .home-video-poster img,
  .hero-art:hover,
  .hero-art:hover img,
  .img-hover:hover,
  .img-hover:hover img,
  img.img-zoom:hover,
  .post-content img:hover {
    transform: none !important;
    filter: none !important;
  }
}
