/* =========================================================
   Ludzi Girls' Secondary School — Main Stylesheet
   Palette pulled from the school building: forest green roof
   trim, sage soffit, slate grey-blue lower wall, terracotta
   brick pillars.
   Bootstrap 5 based school website template
   ========================================================= */

:root {
  --bw-navy: #2E5D3A;      /* forest green — roof trim */
  --bw-navy-dark: #23472C; /* darker shade for depth/hover */
  --bw-blue: #7C8894;      /* slate grey-blue — lower wall */
  --bw-gold: #A05A34;      /* terracotta brick — sparing accent */
  --bw-gold-dark: #874a2a;
  --bw-sage: #9DC48F;      /* sage/mint — soffit & upper wall */
  --bw-light: #F5F3EC;     /* warm off-white — page background */
  --bw-gray: #6b6255;
  --bw-white: #ffffff;
  --bw-text: #2B2620;      /* deep brown-charcoal — body text, echoes the wood door */
  --bw-font: "Nunito", "Segoe UI", sans-serif;
  --bw-heading-font: "Poppins", "Segoe UI", sans-serif;
}

body {
  font-family: var(--bw-font);
  color: var(--bw-text);
  background-color: var(--bw-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bw-heading-font);
  color: var(--bw-navy);
}

a {
  text-decoration: none;
}

.text-gold { color: var(--bw-gold) !important; }
.bg-navy { background-color: var(--bw-navy) !important; }
.bg-light-soft { background-color: var(--bw-light) !important; }

.btn-gold {
  background-color: var(--bw-gold);
  border-color: var(--bw-gold);
  color: var(--bw-navy-dark);
  font-weight: 700;
}
.btn-gold:hover {
  background-color: var(--bw-gold-dark);
  border-color: var(--bw-gold-dark);
  color: var(--bw-navy-dark);
}

.btn-outline-navy {
  border-color: var(--bw-navy);
  color: var(--bw-navy);
  font-weight: 700;
}
.btn-outline-navy:hover {
  background-color: var(--bw-navy);
  color: #fff;
}

.btn-slate {
  background-color: var(--bw-blue);
  border-color: var(--bw-blue);
  color: #fff;
  font-weight: 700;
}
.btn-slate:hover {
  background-color: #6b7680;
  border-color: #6b7680;
  color: #fff;
}

.section-pad {
  padding: 90px 0;
}

@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
}

.section-tag {
  display: inline-block;
  color: var(--bw-gold-dark);
  background: rgba(160, 90, 52, 0.12);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .8rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-weight: 800;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--bw-gray);
  max-width: 720px;
}

/* ============ Top bar ============ */
.topbar {
  background-color: var(--bw-navy-dark);
  color: #C7D6C8;
  font-size: .875rem;
  padding: 8px 0;
}
.topbar a {
  color: #C7D6C8;
}
.topbar .topbar-social a {
  color: #C7D6C8;
  margin-left: 14px;
  font-size: 1rem;
}
.topbar .topbar-social a:hover { color: var(--bw-gold); }

/* ============ Navbar ============ */
.navbar-school {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(46, 93, 58, 0.08);
  padding: 14px 0;
  transition: all .3s ease;
}

.navbar-brand-school {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bw-heading-font);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--bw-navy) !important;
}
.navbar-brand-school .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bw-navy), var(--bw-blue));
  color: var(--bw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.navbar-brand-school small {
  display: block;
  font-size: .65rem;
  color: var(--bw-gray);
  font-weight: 600;
  letter-spacing: 1px;
}

.navbar-school .nav-link {
  font-weight: 700;
  color: var(--bw-navy) !important;
  padding: 10px 16px !important;
  border-radius: 30px;
  position: relative;
  transition: background-color .2s ease;
}
.navbar-school .nav-link.active,
.navbar-school .nav-link:hover {
  color: var(--bw-navy-dark) !important;
  background-color: rgba(157, 196, 143, .28);
}
.navbar-school .nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--bw-gold);
}

.navbar-school .dropdown-menu {
  border: 1px solid #E7E1D3;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(46,93,58,.15);
  padding: 8px;
  margin-top: 10px;
}
.navbar-school .dropdown-item {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--bw-navy);
}
.navbar-school .dropdown-item:hover,
.navbar-school .dropdown-item:focus {
  background-color: rgba(157, 196, 143, .28);
  color: var(--bw-navy-dark);
}
.navbar-school .dropdown-item.active {
  background-color: var(--bw-navy);
  color: #fff;
}
.navbar-school .dropdown-toggle::after {
  vertical-align: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(35,71,44,.93), rgba(46,93,58,.85)), url('../img/campus-courtyard.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 150px 0 110px;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.2;
}
.hero p.lead {
  color: #D9E4D3;
  font-size: 1.15rem;
}
.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(160,90,52,.15);
  border: 1px solid rgba(160,90,52,.5);
  color: var(--bw-gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 20px;
}
.hero-shape {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero-stats-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(46,93,58,.15);
  padding: 24px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(120deg, rgba(35,71,44,.92), rgba(46,93,58,.88)), url('../img/school-hall-front.jpeg') center/cover no-repeat;
  padding: 120px 0 70px;
  color: #fff;
  text-align: center;
}
.page-header h1 { color: #fff; font-weight: 800; }
.breadcrumb-school {
  display: inline-flex;
  gap: 8px;
  background: rgba(255,255,255,.12);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .9rem;
}
.breadcrumb-school a { color: #fff; opacity: .85; }
.breadcrumb-school span { color: var(--bw-gold); }

/* ============ Stat counters ============ */
.stat-box {
  text-align: center;
  padding: 10px;
}
.stat-box .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(160,90,52,.12);
  color: var(--bw-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
}
.stat-box h3 {
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.stat-box p {
  color: var(--bw-gray);
  margin: 0;
  font-weight: 600;
}

/* ============ Feature / Why choose us ============ */
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 26px;
  height: 100%;
  border: 1px solid #E7E1D3;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,93,58,.1);
}
.feature-card .feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--bw-navy);
  color: var(--bw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* ============ Program / Academics cards ============ */
.program-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E7E1D3;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,93,58,.12);
}
.program-card img { height: 210px; object-fit: cover; width: 100%; }
.program-card .program-body { padding: 22px; }
.program-card .program-level {
  display: inline-block;
  background: rgba(160,90,52,.12);
  color: var(--bw-gold-dark);
  font-weight: 700;
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.program-card .program-meta {
  border-top: 1px solid #E7E1D3;
  margin-top: 14px;
  padding-top: 14px;
  font-size: .875rem;
  color: var(--bw-gray);
  display: flex;
  justify-content: space-between;
}

/* ============ Teacher cards ============ */
.teacher-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E7E1D3;
  text-align: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,93,58,.12);
}
.teacher-card img { height: 260px; object-fit: cover; width: 100%; }
.teacher-card .teacher-body { padding: 20px; }
.teacher-card h5 { margin-bottom: 2px; }
.teacher-card .teacher-role {
  color: var(--bw-gold-dark);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.teacher-card .teacher-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bw-light);
  color: var(--bw-navy);
  margin: 4px;
}
.teacher-card .teacher-social a:hover {
  background: var(--bw-navy);
  color: #fff;
}

/* ============ Testimonials ============ */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  border: 1px solid #E7E1D3;
  height: 100%;
}
.testimonial-card .quote-icon {
  color: rgba(160,90,52,.4);
  font-size: 2rem;
}
.testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .stars { color: var(--bw-gold); font-size: .9rem; }

/* ============ Events / News ============ */
.event-card, .news-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E7E1D3;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.event-card:hover, .news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,93,58,.12);
}
.event-card img, .news-card img { height: 200px; object-fit: cover; width: 100%; }
.event-date-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  color: var(--bw-navy);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.event-date-badge span {
  display: block;
  font-size: .7rem;
  color: var(--bw-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
}
.event-body, .news-body { padding: 20px; }
.event-meta, .news-meta {
  font-size: .82rem;
  color: var(--bw-gray);
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(120deg, var(--bw-navy-dark), var(--bw-blue));
  color: #fff;
  border-radius: 20px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: #C7D6C8; }

/* ============ Gallery ============ */
.gallery-filters {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-filters li {
  padding: 8px 20px;
  border-radius: 30px;
  background: var(--bw-light);
  color: var(--bw-navy);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
}
.gallery-filters li.active,
.gallery-filters li:hover {
  background: var(--bw-navy);
  color: #fff;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin-bottom: 24px;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,26,51,.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h6 { color: #fff; margin: 0; }
.gallery-overlay small { color: var(--bw-gold); }
.gallery-item.hidden { display: none; }

/* ============ Admissions ============ */
.step-card {
  text-align: center;
  padding: 20px;
  position: relative;
}
.step-card .step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bw-navy);
  color: var(--bw-gold);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pricing-card {
  background: #fff;
  border: 1px solid #E7E1D3;
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card.featured {
  border: 2px solid var(--bw-gold);
  transform: scale(1.03);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card .price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--bw-navy);
}
.pricing-card .price small {
  font-size: 1rem;
  color: var(--bw-gray);
  font-weight: 600;
}
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px dashed #E7E1D3; }
.pricing-card ul li i { color: var(--bw-gold-dark); margin-right: 8px; }

/* ============ Contact ============ */
.contact-info-card {
  background: #fff;
  border: 1px solid #E7E1D3;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
}
.contact-info-card .icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: var(--bw-navy);
  color: var(--bw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid #E7E1D3;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(46,93,58,.06);
}
.form-control, .form-select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #DDD3C0;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bw-navy);
  box-shadow: 0 0 0 .2rem rgba(46,93,58,.1);
}
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid #E7E1D3;
}

/* ============ Footer ============ */
.footer {
  background: var(--bw-navy-dark);
  color: #C7D6C8;
  padding-top: 70px;
}
.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer a { color: #C7D6C8; }
.footer a:hover { color: var(--bw-gold); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li i { color: var(--bw-gold); margin-right: 8px; }
.footer .social-icons a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  margin-right: 8px;
}
.footer .social-icons a:hover { background: var(--bw-gold); color: var(--bw-navy-dark); }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .875rem;
}
.footer .newsletter-form {
  display: flex;
  gap: 0;
}
.footer .newsletter-form input {
  border-radius: 8px 0 0 8px;
  border: none;
  padding: 12px 14px;
  flex: 1;
}
.footer .newsletter-form button {
  border-radius: 0 8px 8px 0;
  padding: 0 20px;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bw-navy);
  color: var(--bw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--bw-gold); color: var(--bw-navy-dark); }

/* ============ Preloader ============ */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  width: 50px;
  height: 50px;
  border: 5px solid #E7E1D3;
  border-top-color: var(--bw-navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Utilities ============ */
.divider-gold {
  width: 60px;
  height: 4px;
  background: var(--bw-gold);
  border-radius: 4px;
  margin-bottom: 20px;
}
.rounded-xl { border-radius: 18px; }
.shadow-soft { box-shadow: 0 20px 50px rgba(46,93,58,.1); }
