/* ==========================================================================
   SB Abuja — public site design system
   Palette: deep emerald green + refined gold, warm cream neutrals.
   Fonts:   Poppins (headings) + Inter (body) — loaded in layouts/site.php.
   ========================================================================== */

:root {
  --sb-green-dark:  #06381F;
  --sb-green:        #0B6B3A;
  --sb-green-mid:    #128C4C;
  --sb-green-tint:   #EAF6EE;
  --sb-gold:         #D6A72C;
  --sb-gold-dark:    #B4881A;
  --sb-gold-tint:    #FBF1D6;
  --sb-cream:        #FBF9F3;
  --sb-white:        #FFFFFF;
  --sb-text:         #1E2A22;
  --sb-text-muted:   #5C6B60;
  --sb-border:       #E7E4D9;
  --sb-radius-sm:    10px;
  --sb-radius:       16px;
  --sb-radius-lg:    22px;
  --sb-shadow-sm:    0 4px 14px rgba(6, 56, 31, 0.08);
  --sb-shadow-md:    0 10px 30px rgba(6, 56, 31, 0.12);
  --sb-shadow-lg:    0 20px 50px rgba(6, 56, 31, 0.18);
  --sb-font-head:    'Poppins', 'Segoe UI', sans-serif;
  --sb-font-body:    'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--sb-font-body);
  color: var(--sb-text);
  background: var(--sb-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--sb-font-head); }

a { color: var(--sb-green); }
a:hover { color: var(--sb-green-dark); }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--sb-green-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 7px 15px;
  letter-spacing: .2px;
}
.top-bar i { color: var(--sb-gold); margin-right: 4px; }
.top-bar #hijriDate { color: var(--sb-gold-tint); }
.social-icons a { color: var(--sb-gold); margin: 0 5px; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--sb-green);
  padding: .55rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.navbar-brand { padding: 0; white-space: normal; }
.navbar-brand img { height: 46px; margin-right: 10px; border-radius: 6px; }
.navbar-brand span { color: var(--sb-gold); font-weight: 700; font-family: var(--sb-font-head); font-size: 1.05rem; }
.navbar-brand .brand-tagline { color: rgba(255,255,255,.75); font-weight: 400; font-size: .72rem; letter-spacing: .2px; }
.navbar-nav .nav-link { color: rgba(255,255,255,.92); font-weight: 500; transition: color .2s; padding: .55rem .9rem; }
.navbar-nav .nav-link:hover { color: var(--sb-gold); }

.donate-btn {
  background: var(--sb-gold);
  color: var(--sb-green-dark) !important;
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .9rem;
  transition: all .2s;
  border: 2px solid var(--sb-gold);
}
.donate-btn:hover { background: transparent; color: var(--sb-gold) !important; }
.donate-btn.donate-btn-outline {
  background: transparent; color: var(--sb-white) !important; border: 2px solid rgba(255,255,255,.55);
}
.donate-btn.donate-btn-outline:hover { border-color: var(--sb-gold); color: var(--sb-gold) !important; }

/* ---------- Generic section rhythm ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--sb-white); }
.section-eyebrow {
  display: inline-block; color: var(--sb-gold-dark); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: .78rem; margin-bottom: .5rem;
}
h2.section-title {
  color: var(--sb-green-dark); font-weight: 700; margin-bottom: .6rem; font-size: 2rem;
}
.section-sub { color: var(--sb-text-muted); max-width: 640px; }
.section-heading { margin-bottom: 2.75rem; }
.section-heading.text-center .section-sub { margin-left: auto; margin-right: auto; }
.divider-gold {
  width: 56px; height: 4px; background: var(--sb-gold); border-radius: 3px; margin: .9rem 0 0;
}
.section-heading.text-center .divider-gold { margin-left: auto; margin-right: auto; }

/* legacy alias still used by a couple of older view fallbacks */
h2 { color: var(--sb-green-dark); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--sb-green); border-color: var(--sb-green); color: #fff;
  border-radius: 30px; font-weight: 600; padding: .65rem 1.6rem;
}
.btn-brand:hover { background: var(--sb-green-dark); border-color: var(--sb-green-dark); color: #fff; }
.btn-brand-gold {
  background: var(--sb-gold); border-color: var(--sb-gold); color: var(--sb-green-dark);
  border-radius: 30px; font-weight: 700; padding: .65rem 1.6rem;
}
.btn-brand-gold:hover { background: var(--sb-gold-dark); border-color: var(--sb-gold-dark); color: var(--sb-green-dark); }
.btn-brand-outline {
  background: transparent; border: 2px solid var(--sb-white); color: var(--sb-white);
  border-radius: 30px; font-weight: 600; padding: .6rem 1.5rem;
}
.btn-brand-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero .item { position: relative; }
.hero .item img { width: 100%; height: 560px; object-fit: cover; filter: brightness(.9); }
.hero .item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,56,31,.15) 0%, rgba(6,56,31,.35) 55%, rgba(6,56,31,.82) 100%);
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 3rem 0 3.5rem; text-align: center;
}
.hero-caption .container { max-width: 780px; }
.hero-caption h2 {
  color: #fff; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-caption p { color: rgba(255,255,255,.92); font-size: 1.05rem; margin-bottom: 1.4rem; }
.hero-caption .hero-eyebrow {
  display: inline-block; background: rgba(214,167,44,.92); color: var(--sb-green-dark); font-weight: 700;
  font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; padding: .35rem 1rem; border-radius: 30px;
  margin-bottom: 1rem;
}
.owl-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3; }
.owl-theme .owl-dots .owl-dot span { background: rgba(255,255,255,.55); }
.owl-theme .owl-dots .owl-dot.active span { background: var(--sb-gold); }

/* ---------- Value cards (Mission / Vision) ---------- */
.value-card {
  border-radius: var(--sb-radius); padding: 2.2rem; height: 100%; position: relative; overflow: hidden;
  box-shadow: var(--sb-shadow-md); color: #fff;
  background: linear-gradient(135deg, var(--sb-green) 0%, var(--sb-green-dark) 100%);
}
.value-card.value-card-gold { background: linear-gradient(135deg, var(--sb-gold) 0%, var(--sb-gold-dark) 100%); color: var(--sb-green-dark); }
.value-card .value-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); font-size: 1.4rem; margin-bottom: 1.1rem;
}
.value-card.value-card-gold .value-icon { background: rgba(6,56,31,.12); color: var(--sb-green-dark); }
.value-card h3 { font-weight: 700; margin-bottom: .7rem; }
.value-card p { margin: 0; opacity: .95; line-height: 1.65; }

/* ---------- About ---------- */
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--sb-radius); box-shadow: var(--sb-shadow-md); }
.about-inset-card {
  position: absolute; left: -1.25rem; bottom: -1.25rem; max-width: 230px;
  background: #fff; border-radius: var(--sb-radius-sm); box-shadow: var(--sb-shadow-lg);
  padding: .6rem; display: flex; align-items: center; gap: .7rem;
}
.about-inset-card img { border-radius: 8px; width: 58px; height: 58px; object-fit: cover; box-shadow: none; }
.about-inset-card strong { display: block; font-size: .82rem; color: var(--sb-green-dark); line-height: 1.25; }
.about-inset-card small { color: var(--sb-text-muted); font-size: .72rem; }
@media (max-width: 767.98px) { .about-inset-card { display: none; } }

.about-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.about-points li { display: flex; gap: .7rem; margin-bottom: .8rem; color: var(--sb-text); }
.about-points li i { color: var(--sb-white); background: var(--sb-green); border-radius: 50%; width: 22px; height: 22px; min-width: 22px; display: flex; align-items: center; justify-content: center; font-size: .68rem; margin-top: .18rem; }

/* ---------- Programmes ---------- */
.programme-card {
  border-radius: var(--sb-radius); overflow: hidden; height: 100%; background: #fff;
  box-shadow: var(--sb-shadow-sm); border: 1px solid var(--sb-border); transition: transform .25s, box-shadow .25s;
}
.programme-card:hover { transform: translateY(-6px); box-shadow: var(--sb-shadow-md); }
.programme-card .programme-media { height: 150px; overflow: hidden; position: relative; }
.programme-card .programme-media img { width: 100%; height: 100%; object-fit: cover; }
.programme-card .programme-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,56,31,0) 40%, rgba(6,56,31,.55) 100%); }
.programme-card .programme-media .programme-badge {
  position: absolute; left: .9rem; bottom: .7rem; color: #fff; font-weight: 700; font-family: var(--sb-font-head);
  font-size: 1rem; z-index: 1;
}
.programme-card .card-body { padding: 1.4rem; }
.program-list { text-align: left; padding-left: 0; margin: 0; list-style: none; }
.program-list li {
  margin-bottom: .6rem; font-size: .92rem; color: var(--sb-text); padding-left: 1.4rem; position: relative;
}
.program-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--sb-gold-dark);
  position: absolute; left: 0; top: .1rem; font-size: .75rem;
}

.upcoming-card { border-radius: var(--sb-radius-sm); overflow: hidden; box-shadow: var(--sb-shadow-sm); transition: transform .2s, box-shadow .2s; height: 100%; border: 1px solid var(--sb-border); }
.upcoming-card:hover { transform: translateY(-4px); box-shadow: var(--sb-shadow-md); }

/* ---------- HIC / Camp CTA ---------- */
.hic-cta { position: relative; overflow: hidden; }
.hic-cta .hic-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hic-cta .hic-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,56,31,.94) 0%, rgba(11,107,58,.88) 60%, rgba(6,56,31,.7) 100%); }
.hic-cta .container { position: relative; z-index: 1; }
.hic-cta .fee-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 30px; padding: .5rem 1.2rem; display: inline-block; }

/* ---------- Custom tabs / accordion (FAQ) ---------- */
.custom-tabs .nav-link { color: #555; font-weight: 600; border: none; border-bottom: 3px solid transparent; }
.custom-tabs .nav-link.active { color: var(--sb-green) !important; border-bottom: 3px solid var(--sb-gold); }

.colorful-faq .accordion-item { border: none; border-radius: var(--sb-radius-sm) !important; overflow: hidden; margin-bottom: .8rem; box-shadow: var(--sb-shadow-sm); }
.colorful-faq .accordion-button {
  background: #fff; color: var(--sb-green-dark); font-weight: 600; font-family: var(--sb-font-head); font-size: .96rem;
}
.colorful-faq .accordion-button:not(.collapsed) { background: var(--sb-green); color: #fff; box-shadow: none; }
.colorful-faq .accordion-button:focus { box-shadow: none; }
.colorful-faq .accordion-button::after { filter: none; }

/* ---------- Cards: news / events / resources ---------- */
.event-card, .news-card, .resource-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm);
}
.event-card:hover, .news-card:hover { transform: translateY(-8px); box-shadow: var(--sb-shadow-md); }
.resource-card:hover { transform: translateY(-8px); box-shadow: var(--sb-shadow-md); }
.news-card .card-img-top { height: 190px; object-fit: cover; }
.news-title:hover { color: var(--sb-green); }
.badge-soft-green { background: var(--sb-green-tint); color: var(--sb-green-dark); font-weight: 600; padding: .4rem .8rem; border-radius: 30px; font-size: .76rem; }

/* ---------- Sisters' circle ---------- */
.sisters-media img { border-radius: var(--sb-radius); box-shadow: var(--sb-shadow-md); width: 100%; }

/* ---------- Resources section ---------- */
.resources-section { background: linear-gradient(135deg, var(--sb-green-dark) 0%, var(--sb-green) 100%); color: #fff; }
.resources-section .resource-card { background: #fff; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--sb-text-muted); }
.empty-state i { font-size: 2.4rem; color: var(--sb-border); margin-bottom: 1rem; display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative; padding: 4.5rem 0 3.5rem; background: linear-gradient(120deg, var(--sb-green-dark), var(--sb-green));
  color: #fff; overflow: hidden;
}
.page-header .page-header-pattern { position: absolute; inset: 0; opacity: .12; background-size: cover; background-position: center; }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-weight: 800; margin-bottom: .4rem; }
.page-header .breadcrumb-link { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; font-size: .9rem; }
.page-header .breadcrumb-link:hover { color: var(--sb-gold); }
.page-header .breadcrumb-link i { margin-right: .3rem; }
.page-header p.lead { color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 0; }

.content-card { background: #fff; border-radius: var(--sb-radius); box-shadow: var(--sb-shadow-sm); padding: 2rem; }

/* ---------- Footer ---------- */
footer { background: var(--sb-green-dark); color: rgba(255,255,255,.85); padding: 56px 0 0; position: relative; }
footer .footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
footer .footer-brand img { height: 42px; border-radius: 6px; }
footer .footer-brand span { color: var(--sb-gold); font-weight: 700; font-family: var(--sb-font-head); }
footer h5 { color: var(--sb-gold); font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .3px; }
footer p { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.6; }
.footer-link { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; display: block; margin-bottom: .55rem; transition: color .2s; }
.footer-link:hover { color: var(--sb-gold); text-decoration: none; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; margin: 0 6px 6px 0; transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--sb-gold); color: var(--sb-green-dark); }
footer hr { border-color: rgba(255,255,255,.14); margin-top: 2.2rem; }
.copyright { color: rgba(255,255,255,.55); font-size: 13px; }
.copyright a { color: rgba(255,255,255,.7); }

#topBtn { background: var(--sb-gold); color: var(--sb-green-dark); border: none; box-shadow: var(--sb-shadow-md); width: 46px; height: 46px; z-index: 999; }
#topBtn:hover { background: var(--sb-gold-dark); }

/* ---------- Forms shared across camp/registration pages ---------- */
.passport-preview { max-height:150px; max-width:100%; display:none; border-radius:8px; }
.required:after { content:" *"; color: #d33; }

.camp-card { max-width: 720px; margin: 40px auto; border-radius: var(--sb-radius); border: none; box-shadow: var(--sb-shadow-md); }

.reg-form-card { max-width: 900px; border-radius: var(--sb-radius); border: none; box-shadow: var(--sb-shadow-md); }
.reg-section { border: 0; padding: 0; margin-top: 0; }
.reg-section + .reg-section { border-top: 1px solid var(--sb-border); padding-top: 1.5rem; }
.reg-section-title {
  width: auto; padding: 0 .1rem .5rem; margin-bottom: 1rem; font-size: 1rem; font-weight: 700;
  color: var(--sb-green); border-bottom: 3px solid var(--sb-gold); display: inline-block;
}
.reg-section .form-label { font-weight: 600; font-size: .92rem; color: #333; margin-bottom: .35rem; }
.reg-section .form-control, .reg-section .form-select { border-radius: 8px; }
.reg-section .form-control-lg, .reg-section .form-select-lg { font-size: 1rem; padding: .55rem .8rem; }

@media (max-width: 575.98px) {
  .reg-form-card { border-radius: 10px; }
  .reg-section-title { font-size: .95rem; }
  .camp-card { margin: 16px auto; }
}

/* ---------- Whole-site mobile pass ---------- */
@media (max-width: 767.98px) {
  .hero .item img { height: 340px; }
  section { padding: 44px 0; }
  h2.section-title { font-size: 1.55rem; }
  .top-bar { font-size: 12px; padding: 6px 10px; flex-wrap: wrap; gap: 4px; }
  .navbar-brand img { height: 38px; }
  .navbar-brand span { font-size: .82rem; line-height: 1.15; }
  .navbar-brand .brand-tagline { font-size: .64rem; }
  .navbar .container { flex-wrap: wrap; row-gap: .5rem; }
  footer { padding-top: 40px; }
  footer .row > div.border-end { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 1.4rem; }
  .page-header { padding: 3rem 0 2.2rem; }
}

@media (max-width: 575.98px) {
  .hero .item img { height: 280px; }
  .hero-caption { padding: 1.6rem 0 2rem; }
}

/* ---------- Admin login ---------- */
.admin-login-page { min-height: 100vh; background: var(--sb-cream); font-family: var(--sb-font-body); }
.admin-login-split { min-height: 100vh; display: flex; }
.admin-login-brand {
  flex: 1 1 46%; position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--sb-green-dark) 0%, var(--sb-green) 70%);
}
.admin-login-brand .pattern-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.admin-login-brand .brand-inner { position: relative; z-index: 1; max-width: 420px; }
.admin-login-brand img.brand-logo { height: 64px; margin-bottom: 2rem; border-radius: 10px; background: rgba(255,255,255,.9); padding: 6px; }
.admin-login-brand h1 { font-weight: 800; font-size: 1.9rem; margin-bottom: 1rem; }
.admin-login-brand p { color: rgba(255,255,255,.85); font-size: 1.02rem; line-height: 1.7; }
.admin-login-brand .brand-foot { position: relative; z-index: 1; margin-top: 3rem; color: rgba(255,255,255,.6); font-size: .82rem; }

.admin-login-form-side { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.admin-login-form-wrap { width: 100%; max-width: 400px; }
.admin-login-form-wrap .login-eyebrow { color: var(--sb-gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: .78rem; }
.admin-login-form-wrap h2 { font-weight: 800; color: var(--sb-green-dark); margin-bottom: .3rem; }
.admin-login-form-wrap .sub { color: var(--sb-text-muted); margin-bottom: 2rem; }
.login-input-group { position: relative; margin-bottom: 1.2rem; }
.login-input-group i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sb-text-muted); }
.login-input-group input { padding-left: 2.6rem; border-radius: 10px; border: 1px solid var(--sb-border); padding-top: .65rem; padding-bottom: .65rem; }
.login-input-group input:focus { border-color: var(--sb-green); box-shadow: 0 0 0 .2rem rgba(11,107,58,.15); }
.admin-login-form-wrap .btn-login { width: 100%; background: var(--sb-green); border-color: var(--sb-green); border-radius: 10px; font-weight: 700; padding: .7rem; }
.admin-login-form-wrap .btn-login:hover { background: var(--sb-green-dark); border-color: var(--sb-green-dark); }
.admin-login-form-wrap .back-home { display: inline-flex; align-items: center; gap: .4rem; color: var(--sb-text-muted); font-size: .88rem; margin-top: 1.6rem; text-decoration: none; }
.admin-login-form-wrap .back-home:hover { color: var(--sb-green); }

@media (max-width: 900px) {
  .admin-login-split { flex-direction: column; }
  .admin-login-brand { flex: 0 0 auto; padding: 2.4rem 1.6rem; text-align: center; align-items: center; }
  .admin-login-brand .brand-inner { max-width: none; }
  .admin-login-brand .brand-foot { display: none; }
  .admin-login-form-side { padding: 2rem 1.4rem 3rem; }
}
