
:root{
  --primary-color:#16a34a;
  --surface:#ffffff;
  --surface-soft:#f6f8f7;
  --text:#17221b;
  --muted:#6b7280;
  --border:rgba(15,23,42,.09);
}
[data-bs-theme="dark"]{
  --surface:#111827;
  --surface-soft:#0b1220;
  --text:#f3f4f6;
  --muted:#aab2c0;
  --border:rgba(255,255,255,.1);
}
html{scroll-behavior:smooth}
body{
  background:var(--surface-soft);
  color:var(--text);
  transition:background .35s ease,color .35s ease;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
a{color:var(--primary-color)}
.btn-primary,.bg-primary{background-color:var(--primary-color)!important;border-color:var(--primary-color)!important}
.btn-outline-primary{color:var(--primary-color);border-color:var(--primary-color)}
.btn-outline-primary:hover{background:var(--primary-color);border-color:var(--primary-color)}
.text-primary{color:var(--primary-color)!important}
.glass-nav{background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}
.brand-logo{width:52px;height:52px;object-fit:contain;border-radius:14px;background:#fff;padding:4px}
.brand-placeholder{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--primary-color);color:#fff;font-size:1.5rem}
.rainbow-title{
  font-weight:900;font-size:clamp(1rem,2.2vw,1.45rem);line-height:1.1;
  background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#06b6d4,#3b82f6,#8b5cf6,#ec4899,#ef4444);
  background-size:300% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:rainbow-slide 8s linear infinite;
}
@keyframes rainbow-slide{to{background-position:300% 0}}
.accreditation-badge{background:color-mix(in srgb,var(--primary-color) 16%,transparent);color:var(--primary-color);font-size:.68rem}
.nav-link{font-weight:600}
.hero{position:relative;min-height:540px;overflow:hidden;background:#111}
.hero .carousel-item,.hero .carousel-item img,.hero .hero-fallback{height:540px}
.hero .carousel-item img{object-fit:cover;filter:brightness(.55)}
.hero-fallback{
  position:relative;
  background:
    radial-gradient(circle at 18% 25%,rgba(255,255,255,.20),transparent 28%),
    radial-gradient(circle at 82% 20%,rgba(255,255,255,.14),transparent 25%),
    linear-gradient(135deg,color-mix(in srgb,var(--primary-color) 82%,#052e16),#052e16 68%,#0f172a);
}
.hero-fallback::before{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:42px 42px;
}
.hero-caption{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#fff;padding:2rem}
.hero-caption .inner{max-width:850px}
.hero-caption h1{font-weight:900;font-size:clamp(2rem,6vw,4.7rem);text-shadow:0 5px 25px rgba(0,0,0,.35)}
.section{padding:80px 0}
.section-title{font-weight:900;letter-spacing:-.02em}
.card-clean{background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:0 10px 35px rgba(15,23,42,.05)}
.stat-card{padding:26px;text-align:center}
.stat-number{font-size:2.35rem;font-weight:900;color:var(--primary-color)}
.news-card img,.facility-card img{height:210px;object-fit:cover}
.rounded-5{border-radius:2rem!important}
.object-fit-cover{object-fit:cover}
.calendar-list .event{border-left:4px solid var(--primary-color);padding:.8rem 1rem;background:var(--surface);border-radius:0 14px 14px 0;margin-bottom:.7rem}
.footer-section{background:var(--surface);border-top:1px solid var(--border)}
.social-btn{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--primary-color);color:#fff;text-decoration:none}
.gallery-thumb{height:220px;object-fit:cover;width:100%;border-radius:18px}
.video-frame{border:0;width:100%;height:220px;border-radius:18px}
.admin-sidebar{min-height:100vh;background:#0f172a;color:#fff;position:sticky;top:0}
.admin-sidebar a{color:#cbd5e1;text-decoration:none;padding:.7rem .85rem;border-radius:.75rem;display:block}
.admin-sidebar a:hover{background:rgba(255,255,255,.09);color:#fff}
.admin-card{border:1px solid var(--border);border-radius:20px;background:var(--surface)}
.form-control,.form-select{background-color:var(--surface);color:var(--text);border-color:var(--border)}
.table{--bs-table-bg:transparent}
@media(max-width:991.98px){
  .hero,.hero .carousel-item,.hero .carousel-item img,.hero .hero-fallback{height:470px;min-height:470px}
  .admin-sidebar{min-height:auto;position:relative}
}
