:root {
  /* Official Logo Palette: Forest/Emerald Green & Warm Vibrant Saffron/Orange */
  --primary: #0b6638;           /* Deep Forest Green (matching Kotpad banner & wreath) */
  --primary-dark: #074726;      /* Dark Green */
  --primary-light: #12884c;     /* Vibrant Green */
  --secondary: #e26d14;         /* Rich Warm Orange (matching Asha Public School arc & book) */
  --secondary-hover: #c45708;   /* Deep Orange */
  --accent-gold: #f59e0b;       /* Golden accent */
  --accent-light: #fff7ed;      /* Soft warm cream */
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8faf9;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Top Notification Banner */
.top-notice-bar {
  background: linear-gradient(90deg, #0b6638, #0e7a43);
  color: #ffffff;
  padding: 9px 0;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid #e26d14;
}

.top-notice-bar a {
  color: #fef08a;
  text-decoration: underline;
  margin-left: 8px;
}

/* Header Top Contacts */
.header-top {
  background-color: #f8faf8;
  font-size: 0.85rem;
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-top a {
  color: #334155;
}

.header-top a:hover {
  color: var(--primary);
}

/* Main Navigation */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand .school-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: #1e293b !important;
  font-size: 0.95rem;
  padding: 10px 14px !important;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

.dropdown-menu {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 8px;
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #eaf5ee;
  color: var(--primary);
  transform: translateX(4px);
}

/* Buttons */
.btn-school-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-school-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(11, 102, 56, 0.35);
}

.btn-school-secondary {
  background-color: var(--secondary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid var(--secondary);
  transition: all 0.3s ease;
}

.btn-school-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  box-shadow: 0 4px 14px rgba(226, 109, 20, 0.35);
}

.btn-school-outline {
  background-color: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid var(--primary);
}

.btn-school-outline:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

/* Section styling */
.section-padding {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

/* Hero Carousel / Banner - Prominent & Big */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 180px 0 160px;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7, 71, 38, 0.90) 0%, rgba(11, 102, 56, 0.78) 50%, rgba(226, 109, 20, 0.70) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.85rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(254, 243, 199, 0.25);
  color: #fef08a;
  border: 1px solid rgba(254, 243, 199, 0.5);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
}

/* Stat Cards */
.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid var(--secondary);
  transition: transform 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature & Facility Cards */
.facility-card, .news-card, .event-card, .teacher-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.facility-card:hover, .news-card:hover, .event-card:hover, .teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #0b6638;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .card-img-wrap img,
.news-card:hover .card-img-wrap img,
.event-card:hover .card-img-wrap img,
.teacher-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body-custom {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Teacher Card specifics */
.teacher-img-wrap {
  height: 260px;
}

.teacher-role {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.teacher-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.teacher-badge {
  background: #f1f5f9;
  color: #0b6638;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.quote-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

/* Footer */
.school-footer {
  background: #082415;
  color: #94a3b8;
  padding-top: 70px;
  border-top: 4px solid var(--secondary);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-bottom {
  background: #04140b;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Badges and tags */
.badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Notice List Style */
.notice-item {
  padding: 18px 20px;
  border-left: 4px solid var(--secondary);
  background: #f8faf9;
  border-radius: 6px;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.notice-item:hover {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transform: translateX(4px);
  border-left-color: var(--primary);
}

.notice-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Comprehensive Responsive Media Queries */
@media (max-width: 991px) {
  .hero-section {
    padding: 110px 0 80px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .section-padding {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .navbar-collapse {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-item {
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-item:last-child {
    border-bottom: none;
  }
  .nav-link {
    padding: 10px 8px !important;
  }
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: #f8fafc;
    padding-left: 10px;
  }
  .school-logo-img {
    height: 48px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 90px 0 60px;
    text-align: center;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }
  .hero-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  .hero-content .lead {
    font-size: 1rem !important;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .d-flex {
    justify-content: center;
  }
  .btn-school-primary, .btn-school-secondary, .btn-school-outline {
    width: 100%;
    text-align: center;
    padding: 11px 18px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.8rem;
  }
  .stat-card {
    padding: 18px 12px;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .card-img-wrap {
    height: 180px;
  }
  .teacher-img-wrap {
    height: 220px;
  }
  .footer-heading {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .footer-bottom {
    margin-top: 35px;
    padding: 15px 0;
  }
  .navbar-brand .school-logo-img {
    height: 44px;
  }
  .navbar-brand span {
    font-size: 1.05rem !important;
  }
  .top-notice-bar {
    font-size: 0.8rem;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .section-padding {
    padding: 40px 0;
  }
}
