/* =========================================================
   GLOBAL & BASE STYLES
   ========================================================= */
body {
  font-family: "Poppins", sans-serif;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   TOP BAR SECTION
   - Handles small header with contact info and links
   ========================================================= */
.top-bar {
  font-size: 0.9rem;
}

.top-bar a {
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: #dc3545; /* Bootstrap danger red on hover */
}

/* =========================================================
   NAVBAR STYLES
   - Main site navigation and branding
   ========================================================= */
.navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.navbar .nav-link {
  font-weight: 500;
  color: #333 !important;
  margin: 0 0.5rem;
  position: relative;
}

/* Underline effect on hover and active link */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #28a745;
  transition: width 0.3s;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Call-to-Action Button */
.btn-cta {
  background-color: #28a745;
  color: #fff;
  border-radius: 30px;
  padding: 0.5rem 1.3rem;
  font-weight: 600;
}

.btn-cta:hover {
  background-color: #218838;
  color: #fff;
}

/* =========================================================
   HERO SECTION
   - Fullscreen carousel or introductory banner
   ========================================================= */
#hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#hero .carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Hero text overlay styling */
.hero-layer {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-align: left;
  z-index: 10;
}

.hero-layer h1 {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-layer p {
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   ABOUT SECTION
   - Introduction and background of the school
   ========================================================= */
#about {
  background-color: #fff;
  padding: 5rem 0;
}

#about .lead.text-muted {
  font-size: 0.95rem;
  line-height: 1.7;
}

#about h2 {
  color: #198754;
}

#about ul li {
  margin-bottom: 0.5rem;
}

#about .btn-outline-primary:hover {
  background-color: #198754;
  color: #fff;
  border-color: #198754;
}

/* =========================================================
   SCHOOL OVERVIEW SECTION
   - About section on homepage with image and text
   ========================================================= */
#overview {
  font-size: 0.95rem;
}

#overview h2 {
  font-size: 1.8rem;
}

#overview .lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* =========================================================
   ACADEMICS SECTION
   - Displays academic programs or features
   ========================================================= */
#academics {
  padding: 5rem 0;
  background-color: #f9fff9;
}

#academics .card {
  transition: transform 0.3s, box-shadow 0.3s;
}

#academics .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   ADMISSIONS SECTION (CTA)
   - Encourages parents to apply or enroll
   ========================================================= */
#admissions {
  background-color: #f9fff9;
  padding: 4rem 0;
}

#admissions .btn-outline-light:hover {
  background-color: #fff;
  color: #198754;
}

/* =========================================================
   GALLERY SECTION
   - Displays school images or carousel
   ========================================================= */
#gallery {
  padding: 5rem 0;
}

#gallery .carousel-item img {
  border-radius: 8px;
  object-fit: cover;
  height: 400px;
}

#gallery .btn-outline-primary:hover {
  background-color: #198754;
  color: #fff;
  border-color: #198754;
}

/* =========================================================
   NEWS & EVENTS SECTION
   - Highlights recent activities and announcements
   ========================================================= */
#news {
  padding: 5rem 0;
}

#news .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#news .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   TESTIMONIALS SECTION
   - Parent or student feedback cards
   ========================================================= */
#testimonials {
  padding: 5rem 0;
  background-color: #f9fff9;
}

#testimonials .card {
  border-left: 5px solid #198754;
  max-width: 720px;
  margin: auto;
}

#testimonials p.fst-italic {
  color: #555;
}

/* =========================================================
   FOOTER SECTION
   - Site footer with links, contact, and social icons
   ========================================================= */
footer {
  background-color: #198754 !important;
  padding: 4rem 0 2rem 0;
  color: #fff;
}

footer h5 {
  font-weight: 600;
}

footer .text-muted {
  color: #dfe6e0 !important;
}

footer .btn-success {
  border-radius: 25px;
  padding: 0.3rem 1rem;
}

footer a {
  color: #fff;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffc107;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.3);
}

footer .small.text-muted {
  color: #e5e5e5 !important;
}

/* Footer social media icons */
footer .social-links a i {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover i {
  color: #ffc107;
}

footer .social-links a.text-success:hover i {
  color: #25d366;
}

/* Footer quick link hover effect */
footer ul li a:hover {
  color: #dc3545 !important;
}

/* =========================================================
   FLOATING ACTION BUTTONS
   - WhatsApp and Scroll-to-Top buttons
   ========================================================= */

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  padding: 15px;
  font-size: 22px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20b358;
  transform: scale(1.1);
}

/* Scroll-to-Top Button */
.scroll-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: red;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background-color: red;
  transform: scale(1.1);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   - Layout tweaks for mobile and tablet screens
   ========================================================= */
@media (max-width: 992px) {
  .hero-layer {
    text-align: center;
  }
  .hero-layer h1 {
    font-size: 2.3rem;
  }
  .hero-layer p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #gallery .carousel-item img {
    height: 250px;
  }
  .btn-cta {
    padding: 0.4rem 1rem;
  }
  footer {
    text-align: center;
  }
  footer .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}
