/* =============================================================
   Focus Xpert Team – Main Stylesheet
   Colors: Navy #0A2540 | Gold #FFB800 | Teal #00C4B4 | White
   Fonts:  Poppins (body/UI) + Playfair Display (headings)
============================================================= */

/* ── Google Fonts loaded in header.php ──────────────────────
   Poppins: 400, 500, 600, 700, 800
   Playfair Display: 700, 900
   ─────────────────────────────────────────────────────────── */

:root {
  --navy:        #0A2540;
  --navy-dark:   #061929;
  --navy-mid:    #0e3158;
  --gold:        #FFB800;
  --gold-dark:   #e6a600;
  --teal:        #00C4B4;
  --teal-dark:   #009e90;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --text-muted:  #6b7a8d;
  --border:      #e3e8f0;

  --font-body:    'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;

  --shadow-sm:  0 2px 10px rgba(10,37,64,.06);
  --shadow-md:  0 6px 28px rgba(10,37,64,.12);
  --shadow-lg:  0 16px 48px rgba(10,37,64,.18);

  --transition: .22s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #1e2d3d;
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── Utilities ────────────────────────────────────────────── */
.text-gold   { color: var(--gold)  !important; }
.text-teal   { color: var(--teal)  !important; }
.text-navy   { color: var(--navy)  !important; }
.bg-navy     { background: var(--navy)  !important; }
.bg-gold     { background: var(--gold)  !important; }
.bg-teal     { background: var(--teal)  !important; }
.bg-off      { background: var(--off-white) !important; }

.section-py  { padding-top: 80px; padding-bottom: 80px; }
.section-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: .5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,184,0,.35);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); color: var(--white); }

/* ── TOP BAR ──────────────────────────────────────────────── */
.top-bar {
  background: var(--navy-dark);
  font-size: .8rem;
  font-family: var(--font-body);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.main-nav {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(10,37,64,.08);
  transition: box-shadow .3s;
}

.navbar-brand .brand-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.1;
  display: block;
}

.brand-sub {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy) !important;
  padding: .5rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--teal) !important;
  background: rgba(0,196,180,.08);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,196,180,.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(255,184,0,.08) 0%, transparent 60%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero background image support */
.hero.has-bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero.has-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.78);
  pointer-events: none;
}
.hero.has-bg-image .container { position: relative; z-index: 2; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,184,0,.15);
  border: 1px solid rgba(255,184,0,.3);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.hero h1 span { color: var(--gold); }

.hero-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-search {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 560px;
  backdrop-filter: blur(8px);
}
.hero-search input {
  background: transparent;
  border: none;
  color: var(--white);
  flex: 1;
  padding: .5rem .8rem;
  font-family: var(--font-body);
  font-size: .92rem;
  outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.4); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}
.hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .22rem .7rem;
  transition: background var(--transition);
}
.hero-badge:hover { background: rgba(255,255,255,.15); color: var(--white); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero image (right col) */
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(10px);
}
.hero-card + .hero-card { margin-top: .8rem; }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
.hero-card h6 { color: var(--white); font-family: var(--font-body); font-size: .85rem; margin-bottom: .2rem; }
.hero-card p  { color: rgba(255,255,255,.55); font-size: .78rem; margin: 0; font-family: var(--font-body); }
.hero-card .deadline { color: var(--gold); font-size: .74rem; font-weight: 700; font-family: var(--font-body); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 1.2rem 0;
}
.stat-item { text-align: center; padding: .5rem 1rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  color: rgba(10,37,64,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
  display: block;
}
.stat-divider { width: 1px; height: 40px; background: rgba(10,37,64,.15); }

/* ── SECTION TITLE ────────────────────────────────────────── */
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-title.light { color: var(--white); }

/* ── CARDS ────────────────────────────────────────────────── */
.card-fxt {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  overflow: hidden;
}
.card-fxt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.card-fxt .card-body { padding: 1.4rem; }

/* Grant / Tender cards */
.opp-card { position: relative; }
.opp-card .card-type-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.tag-grant    { background: rgba(0,196,180,.12); color: var(--teal-dark); }
.tag-tender   { background: rgba(10,37,64,.08);  color: var(--navy); }
.tag-featured { background: rgba(255,184,0,.15); color: #b37d00; }

.opp-donor {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .3rem;
}
.opp-title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opp-desc {
  font-family: var(--font-body);
  font-size: .83rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .8rem;
}
.opp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  margin-top: auto;
}
.opp-meta i { color: var(--teal); }
.opp-amount { font-weight: 700; color: var(--navy); font-size: .82rem; }

/* Service cards */
.svc-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card h5, .svc-card h6 { font-family: var(--font-body); font-weight: 700; }
.svc-card p { font-family: var(--font-body); font-size: .88rem; color: var(--text-muted); }
.svc-icon {
  width: 54px; height: 54px;
  background: rgba(0,196,180,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ── ABOUT SECTION IMAGE ─────────────────────────────────── */
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,37,64,.35), transparent);
  pointer-events: none;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.step-number {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,184,0,.35);
}
.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  margin: 0 .8rem;
  border-radius: 999px;
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-section { background: var(--navy); }
.testi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
}
.testi-quote {
  font-family: var(--font-body);
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.testi-quote::before { content: '"'; color: var(--gold); font-family: var(--font-display); font-size: 2.5rem; line-height: 0; vertical-align: -.5rem; margin-right: .2rem; }
.testi-name { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: .88rem; }
.testi-role { color: rgba(255,255,255,.5); font-family: var(--font-body); font-size: .78rem; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner h3 { font-family: var(--font-display); color: var(--white); }
.cta-banner p { font-family: var(--font-body); color: rgba(255,255,255,.78); }
.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: 20px; top: 20px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

/* ── NEWSLETTER STRIP ─────────────────────────────────────── */
.newsletter-strip { background: var(--navy-mid); }
.newsletter-strip label, .newsletter-strip p, .newsletter-strip h5 { font-family: var(--font-body); }

/* ── FOOTER ───────────────────────────────────────────────── */
.main-footer { background: var(--navy-dark); }

.footer-heading {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}

.footer-links { margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-family: var(--font-body);
  font-size: .86rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.55);
  font-family: var(--font-body);
  font-size: .86rem;
  margin-bottom: .6rem;
}
.footer-contact i { color: var(--teal); margin-top: .2rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--teal); }

.footer-divider { border-color: rgba(255,255,255,.08); }

.brand-icon-sm {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}

.social-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: background var(--transition), color var(--transition);
}
.social-icon:hover { background: var(--teal); color: var(--white); }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.filter-bar label { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.filter-bar .form-control, .filter-bar .form-select { font-family: var(--font-body); }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(0,196,180,.15) 0%, transparent 70%);
  padding: 60px 0 50px;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.7rem); font-family: var(--font-display); }
.page-hero p  { color: rgba(255,255,255,.65); font-family: var(--font-body); }
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.6); font-family: var(--font-body); font-size: .88rem; }
.breadcrumb-item.active { color: var(--gold); font-family: var(--font-body); font-size: .88rem; }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── DETAIL PAGE ──────────────────────────────────────────── */
.detail-sidebar .info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.info-row {
  display: flex;
  gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .88rem;
}
.info-row:last-child { border-bottom: none; }
.info-row i { color: var(--teal); width: 18px; text-align: center; flex-shrink: 0; margin-top: .15rem; }
.info-label { font-weight: 700; color: var(--navy); min-width: 110px; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-fxt .form-control, .form-fxt .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-fxt .form-control:focus, .form-fxt .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,180,.15);
}
.form-fxt label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.accordion-item { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; margin-bottom: .6rem; overflow: hidden; }
.accordion-button { font-family: var(--font-body); font-weight: 600; font-size: .93rem; color: var(--navy); background: var(--white) !important; }
.accordion-button:not(.collapsed) { color: var(--teal) !important; background: rgba(0,196,180,.05) !important; box-shadow: none !important; }

/* ── ADMIN ────────────────────────────────────────────────── */
.admin-sidebar {
  background: var(--navy);
  min-height: 100vh;
  width: 240px;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  transition: transform .3s;
  overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.admin-sidebar .sidebar-brand span { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.6) !important;
  padding: .65rem 1.4rem !important;
  border-radius: 0 !important;
  font-family: var(--font-body);
  font-size: .86rem !important;
  display: flex;
  align-items: center;
  gap: .7rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.06) !important;
  border-left-color: var(--gold);
}
.admin-sidebar .nav-link i { font-size: 1rem; width: 18px; text-align: center; }

.admin-main { margin-left: 240px; min-height: 100vh; background: #f4f6fa; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.admin-topbar h5, .admin-topbar span { font-family: var(--font-body); }
.admin-content { padding: 1.8rem; }

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-stat-icon { width: 50px; height: 50px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.admin-stat-value { font-family: var(--font-body); font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.admin-stat-label { font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.admin-table { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.admin-table table { margin: 0; }
.admin-table thead th { background: var(--navy); color: rgba(255,255,255,.8); font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border: none; padding: .9rem 1rem; }
.admin-table tbody td { padding: .85rem 1rem; vertical-align: middle; font-family: var(--font-body); font-size: .86rem; border-color: var(--border); }
.admin-table tbody tr:hover { background: var(--off-white); }

.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.admin-section-header h5 { margin: 0; font-family: var(--font-body); font-weight: 700; color: var(--navy); }

/* ── BADGES ───────────────────────────────────────────────── */
.badge { font-family: var(--font-body); font-weight: 600; font-size: .68rem; padding: .35em .65em; border-radius: 6px; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .55s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination .page-link {
  font-family: var(--font-body);
  font-size: .86rem;
  color: var(--navy);
  border-color: var(--border);
  padding: .5rem .85rem;
}
.pagination .page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pagination .page-link:hover { background: var(--off-white); color: var(--teal); }

/* ================================================================
   RESPONSIVE – COMPREHENSIVE MOBILE & TABLET OVERRIDES
================================================================ */

/* ── Large tablets (≤ 1199px) ────────────────────────────── */
@media (max-width: 1199px) {
  .hero { padding: 90px 0 70px; }
  .hero-card-stack { max-width: 320px; }
  .about-img-wrap img { height: 360px; }
}

/* ── Tablets (≤ 991px) ────────────────────────────────────── */
@media (max-width: 991px) {
  .section-py { padding-top: 64px; padding-bottom: 64px; }

  /* Admin sidebar collapses */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: .75rem 1rem; }

  /* Hero */
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
  .hero-lead { font-size: .95rem; }
  .hero-search { max-width: 100%; }
  .hero-card-stack { max-width: 100%; margin-top: 0; }

  /* About image */
  .about-img-wrap img { height: 320px; }

  /* Stats bar – wrap to 2×2 */
  .stats-bar .row { flex-wrap: wrap; }
  .stats-bar .col-auto { flex: 0 0 50%; max-width: 50%; }
  .stat-divider { display: none; }
  .stat-value { font-size: 1.7rem; }

  /* CTA banner */
  .cta-banner { padding: 2.5rem 1.8rem; }
  .cta-banner::before, .cta-banner::after { display: none; }

  /* Navbar */
  .navbar-collapse { padding: .75rem 0; }
  .navbar-nav .nav-link { padding: .6rem 1rem !important; }
  .main-nav .btn { margin-top: .5rem; width: 100%; text-align: center; }
}

/* ── Mobile (≤ 767px) ─────────────────────────────────────── */
@media (max-width: 767px) {
  .section-py { padding-top: 48px; padding-bottom: 48px; }

  /* Top bar – hide on small mobile */
  .top-bar { display: none !important; }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-lead { font-size: .9rem; max-width: 100%; }
  .hero-label { font-size: .7rem; }
  .hero-search { flex-wrap: wrap; gap: .4rem; }
  .hero-search input { width: 100%; }
  .hero-search .btn { width: 100%; }
  .hero-badges { gap: .4rem; }
  .hero-badge { font-size: .7rem; }
  .hero-card-stack { display: none; }
  .hero-img-wrap img { height: 240px; }

  /* Buttons – stack on mobile */
  .hero .d-flex.gap-3 { flex-direction: column; gap: .75rem !important; }
  .hero .d-flex.gap-3 .btn { width: 100%; text-align: center; }

  /* Stats bar – single column */
  .stats-bar .col-auto { flex: 0 0 100%; max-width: 100%; }
  .stats-bar .d-flex { flex-direction: column; align-items: center; gap: .5rem; }
  .stat-divider { display: none; }
  .stat-item { padding: .75rem 1rem; }
  .stat-value { font-size: 1.8rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Cards */
  .card-fxt .card-body { padding: 1.1rem; }
  .svc-card { padding: 1.3rem; }
  .testi-card { padding: 1.3rem; }
  .opp-meta { flex-direction: column; gap: .3rem; }

  /* Filter bar */
  .filter-bar { padding: .9rem; }
  .filter-bar .row { gap: .5rem; }
  .filter-bar .col-md-3, .filter-bar .col-md-4 { margin-bottom: .5rem; }

  /* Page hero */
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Detail page */
  .detail-sidebar { margin-top: 1.5rem; }
  .info-label { min-width: 90px; }

  /* CTA banner */
  .cta-banner { padding: 2rem 1.3rem; border-radius: var(--radius-md); }

  /* Footer */
  .main-footer .col-lg-3, .main-footer .col-md-6 { margin-bottom: 1.5rem; }
  .footer-heading { margin-bottom: .6rem; }

  /* HOW IT WORKS – hide connector lines */
  .step-line { display: none; }

  /* Admin stat cards */
  .admin-stat-card { flex-direction: column; text-align: center; gap: .6rem; }
  .admin-stat-icon { margin: 0 auto; }

  /* Tables – horizontal scroll */
  .admin-table { overflow-x: auto; }

  /* Forms */
  .form-fxt .row .col-md-6 { margin-bottom: .75rem; }

  /* Accordion */
  .accordion-button { font-size: .88rem; padding: .85rem 1rem; }
}

/* ── Small mobile (≤ 479px) ──────────────────────────────── */
@media (max-width: 479px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-lead { font-size: .875rem; }

  .stats-bar { padding: .75rem 0; }
  .stat-value { font-size: 1.6rem; }
  .stat-label { font-size: .68rem; }

  .section-title { font-size: 1.4rem; }

  .card-fxt .card-body { padding: 1rem; }
  .opp-title { font-size: .9rem; }
  .opp-desc { font-size: .8rem; }

  .cta-banner { padding: 1.6rem 1rem; }
  .cta-banner h2 { font-size: 1.5rem; }

  .btn-lg { padding: .65rem 1.2rem !important; font-size: .9rem !important; }

  .admin-content { padding: .75rem; }
  .admin-stat-value { font-size: 1.3rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .main-nav, .top-bar, .main-footer, .newsletter-strip,
  .admin-sidebar, .admin-topbar, .filter-bar { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-hero { background: #fff !important; color: #000 !important; padding: 1rem 0; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}
