:root {
  --primary: #8b1f35;
  --primary-dark: #641526;
  --accent: #f4b400;
  --surface: #ffffff;
  --surface-alt: #f7f8fb;
  --text: #1f2937;
  --muted: #5b6472;
  --border: #e6e8ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fdfdfe;
  padding-top: 84px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 18px rgba(22, 30, 45, 0.08);
}

.navbar-brand {
  gap: 0.75rem;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 31, 53, 0.2);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  margin-left: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  background: rgba(139, 31, 53, 0.09);
  color: var(--primary-dark);
}

.hero-section {
  background:
    linear-gradient(rgba(139, 31, 53, 0.68), rgba(100, 21, 38, 0.7)),
    url("hero.jpeg") center center / cover no-repeat;
  color: #fff;
  padding: 6rem 0 5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffe7ac;
}

.hero-section h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-section .lead {
  color: #f5f7ff;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.carousel-section {
  background: var(--surface-alt);
}

.carousel-section .carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.about-with-slider .carousel-item img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.carousel-title {
  text-align: center;
  color: var(--primary-dark);
  font-weight: 700;
}

.carousel-control-label {
  color: #fff;
  font-weight: 600;
  margin-left: 0.4rem;
  margin-right: 0.4rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.course-brief-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.course-brief-list li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero-actions .btn {
  margin-right: 0.7rem;
  margin-bottom: 0.6rem;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #2a1f03;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #ffca2f;
  border-color: #ffca2f;
  color: #2a1f03;
}

.btn-outline-light {
  border-width: 2px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  backdrop-filter: blur(4px);
}

.info-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.info-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.stats-section {
  margin-top: -2rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 10px 20px rgba(27, 38, 53, 0.06);
}

.stat-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.45rem;
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section {
  padding: 4.1rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 68ch;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(24, 34, 48, 0.05);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
  color: var(--primary);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.student-admission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.student-feature-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
}

.admission-steps-bullets {
  margin: 0;
  padding-left: 1.2rem;
}

.admission-steps-bullets li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.programme-table thead th {
  background: var(--primary);
  color: #fff;
  border: none;
}

.programme-table td,
.programme-table th {
  padding: 0.9rem;
  vertical-align: middle;
}

.table-section-row td {
  background: #eceef4;
  color: #2f3642;
  font-weight: 700;
}

.admissions-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.admissions-steps,
.admissions-help {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.2rem;
}

.admissions-steps h3,
.admissions-help h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.admissions-steps ol {
  padding-left: 1.2rem;
}

.principal-message {
  background: linear-gradient(135deg, #f7e8ec, #ffffff);
  border: 1px solid #edd5dc;
  border-radius: 0.9rem;
  padding: 1.8rem;
}

.principal-message h2 {
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.principal-message p {
  margin-bottom: 0.65rem;
}

.principal-photo {
  width: 100%;
  max-width: 180px;
  border-radius: 0.75rem;
  border: 3px solid rgba(139, 31, 53, 0.12);
}

.principal-signoff {
  font-weight: 700;
  color: var(--primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem;
}

.faq-item h3 {
  font-size: 1.02rem;
  color: var(--primary-dark);
  margin-bottom: 0.55rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
}

.contact-section .section-header h2,
.contact-section .section-header p {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  padding: 1rem;
  color: #fff;
}

.contact-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.contact-card p {
  margin-bottom: 0.45rem;
}

.contact-card a,
.contact-card a:hover {
  color: #ffe08a;
}

.whatsapp-link {
  font-weight: 700;
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
}

.whatsapp-float a {
  display: inline-block;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-float a:hover {
  color: #fff;
  opacity: 0.95;
}

.site-footer {
  background: #111827;
  color: #d9deea;
  padding: 1rem 0;
}

.site-footer p {
  margin: 0;
}

.back-to-top,
.back-to-top:hover {
  color: #ffe08a;
  text-decoration: none;
  font-weight: 600;
}

.page-hero {
  background: linear-gradient(135deg, #eef2fb, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
}

.breadcrumb-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.breadcrumb-text a {
  color: var(--primary);
}

.feature-card a {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-card a:hover {
  color: var(--primary-dark);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.navbar-light .navbar-nav .nav-link.active-page {
  background: rgba(139, 31, 53, 0.13);
  color: var(--primary-dark);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.85rem;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(24, 34, 48, 0.05);
}

.testimonial-card p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.testimonial-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.cta-section {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
}

.cta-box {
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 2rem 1.2rem;
}

.cta-box h2 {
  margin-bottom: 0.7rem;
}

.cta-box p {
  margin: 0 auto 1.25rem;
  max-width: 62ch;
  color: #f1f4ff;
}

.inquiry-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(24, 34, 48, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(139, 31, 53, 0.15);
}

@media (max-width: 991.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .faq-grid,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-admission-grid {
    grid-template-columns: 1fr;
  }

  .admissions-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .navbar-light .navbar-nav .nav-link {
    margin: 0.2rem 0;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 74px;
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .hero-section {
    padding: 4.8rem 0 3.8rem;
  }

  .stats-grid,
  .feature-grid,
  .faq-grid,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.1rem 0;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}
