/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f3f4f6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.school-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.school-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.school-location {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: #3498db;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #2563eb;
}

.nav-link.active::after {
  width: 100%;
}

.admission-btn {
  padding: 0.6rem 1.5rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.admission-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger {
  width: 28px;
  height: 3px;
  background: #1f2937;
  border-radius: 3px;
  transition: all 0.3s;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: #1f2937;
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

/* Hamburger Active State */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Large Desktop - 1200px and above */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Desktop - 992px to 1199px */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet - 768px to 991px */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 576px to 767px */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 20px;
  }
  
  /* Navbar Mobile */
  .nav-toggle {
    display: flex;
  }

  .logo-wrapper {
    gap: 0.5rem;
  }

  .logo-img {
    height: 45px;
    width: 45px;
    flex-shrink: 0;
  }

  .school-info {
    display: flex;
    flex-direction: column;
  }

  .school-name {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .school-location {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .nav-container {
    height: 65px;
    padding: 0 15px;
  }

  .nav-right {
    position: fixed;
    left: -100%;
    top: 65px;
    flex-direction: column;
    background: #fff;
    width: 100%;
    padding: 2rem 0;
    transition: left 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    gap: 0;
    height: calc(100vh - 65px);
    overflow-y: auto;
  }

  .nav-right.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  .nav-link::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .admission-btn {
    margin: 1rem 1.5rem;
  }
  
  /* Hero Section */
  .hero {
    height: 60vh;
    padding-bottom: 2rem;
    align-items: center;
  }

  .hero-title {
    font-size: 1.4rem;
    padding: 0 10px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    max-width: 100%;
  }
  
  /* Page Hero */
  .page-hero {
    height: 250px;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-hero-breadcrumb {
    font-size: 0.85rem;
  }
  
  /* Typography */
  .section-title {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
  
  /* Sections Padding */
  .why-choose,
  .principal-section,
  .facilities-section,
  .activities-section,
  .gallery-preview,
  .contact-location {
    padding: 3rem 1.5rem;
  }
  
  .admission-banner {
    padding: 2.5rem 1.5rem;
  }
  
  /* Grids - 2 Columns */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .preview-item {
    aspect-ratio: 1/1;
  }
  
  /* Cards */
  .card {
    padding: 1.5rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }
  
  /* Banner */
  .banner-content h2 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 0.95rem;
  }

  .btn-banner {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  /* Principal Section */
  .principal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .principal-image img {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto;
    display: block;
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Contact Grid */
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info {
    width: 100%;
  }
  
  .inquiry-form-container {
    width: 100%;
  }
  
  /* Footer */
  .footer-main {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col:nth-child(1) {
    grid-column: 1 / -1;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
  
  /* Floating Buttons */
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* Small Mobile - 575px and below */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Hero */
  .hero {
    height: 50vh;
  }
  
  .hero-title {
    font-size: 1.1rem;
  }
  
  /* Page Hero */
  .page-hero {
    height: 200px;
  }
  
  .page-hero-title {
    font-size: 1.5rem;
  }
  
  /* Typography */
  .section-title {
    font-size: 1.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }
  
  /* All Grids - 1 Column */
  .cards-grid,
  .facilities-grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-col:nth-child(1),
  .footer-col:nth-child(4) {
    grid-column: 1;
  }
  
  /* Floating Buttons */
  .floating-buttons {
    bottom: 15px;
    right: 15px;
  }

  .float-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  /* Banner */
  .banner-content h2 {
    font-size: 1.3rem;
  }

  .banner-content p {
    font-size: 0.85rem;
  }

  .btn-banner {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Map Mobile Optimization */
  .map-container {
    padding-bottom: 75%;
  }
}

/* ===== MOBILE PERFORMANCE & UX OPTIMIZATIONS ===== */

/* 480px Breakpoint - Small Mobile Optimization */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 12px;
  }
  
  /* Hero Section - Better Height & Readability */
  .hero {
    height: 55vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 0 15px;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  /* Page Hero */
  .page-hero {
    height: 220px;
  }
  
  .page-hero-title {
    font-size: 1.6rem;
  }
  
  /* Typography - Better Readability */
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  
  .banner-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .banner-content p {
    font-size: 0.9rem;
  }
  
  /* All Grids - Force Single Column */
  .cards-grid,
  .facilities-grid,
  .activities-grid,
  .preview-grid,
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }
  
  /* Cards - Better Spacing */
  .card,
  .facility-card,
  .activity-card {
    padding: 1.5rem 1.2rem;
  }
  
  .card p,
  .facility-card p,
  .activity-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Floating Buttons - Prevent Overlap */
  .floating-buttons {
    bottom: 20px;
    right: 12px;
    z-index: 998;
  }
  
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Ensure floating buttons stay below mobile menu */
  .nav-right.active ~ .floating-buttons {
    z-index: 998;
  }
  
  /* Footer - Better Spacing */
  .footer-container {
    gap: 1.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  
  /* Social Icons - Slightly Smaller */
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Map Container */
  .map-container {
    padding-bottom: 80%;
  }
  
  /* Lightbox Controls */
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
}

/* 360px - Extra Small Mobile */
@media (max-width: 360px) {
  /* Hero */
  .hero {
    min-height: 380px;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
  
  /* Navbar */
  .nav-container {
    padding: 0 10px;
  }
  
  .school-name {
    font-size: 0.85rem;
  }
  
  /* Section Padding */
  .why-choose,
  .principal-section,
  .facilities-section,
  .activities-section,
  .gallery-preview,
  .contact-location {
    padding: 2.5rem 1rem;
  }
  
  /* Typography */
  .section-title {
    font-size: 1.4rem;
  }
  
  /* Cards */
  .card,
  .facility-card,
  .activity-card {
    padding: 1.2rem 1rem;
  }
  
  /* Floating Buttons */
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .floating-buttons {
    right: 10px;
    bottom: 18px;
  }
}

/* ===== HOMEPAGE STYLES ===== */

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 35s infinite;
}

.hero-slide:nth-child(1) {
  background-image: url('../images/hero/hero.jpg');
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  background-image: none;
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  background-image: none;
  animation-delay: 10s;
}

.hero-slide:nth-child(4) {
  background-image: none;
  animation-delay: 15s;
}

.hero-slide:nth-child(5) {
  background-image: none;
  animation-delay: 20s;
}

.hero-slide:nth-child(6) {
  background-image: none;
  animation-delay: 25s;
}

.hero-slide:nth-child(7) {
  background-image: none;
  animation-delay: 30s;
}

@keyframes slideShow {
  0% { opacity: 0; }
  7% { opacity: 1; }
  14% { opacity: 1; }
  21% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 800px;
  padding: 0 20px;
  margin-right: auto;
  margin-left: 5%;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  animation: wordSlideUp 0.8s ease-out forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0s; }
.hero-title span:nth-child(2) { animation-delay: 0.1s; }
.hero-title span:nth-child(3) { animation-delay: 0.2s; }
.hero-title span:nth-child(4) { animation-delay: 0.3s; }
.hero-title span:nth-child(5) { animation-delay: 0.4s; }
.hero-title span:nth-child(6) { animation-delay: 0.5s; }
.hero-title span:nth-child(7) { animation-delay: 0.6s; }
.hero-title span:nth-child(8) { animation-delay: 0.7s; }
.hero-title span:nth-child(9) { animation-delay: 0.8s; }
.hero-title span:nth-child(10) { animation-delay: 0.9s; }
.hero-title span:nth-child(11) { animation-delay: 1s; }
.hero-title span:nth-child(12) { animation-delay: 1.1s; }
.hero-title span:nth-child(13) { animation-delay: 1.2s; }

@keyframes wordSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #f59e0b;
  color: #fff;
}

.btn-secondary:hover {
  background: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

/* Why Choose Us Section */
.why-choose {
  padding: 5rem 2rem;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #2563eb;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 3rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.card p {
  color: #555;
  line-height: 1.8;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}



/* Page Hero Header */
.page-hero {
  position: relative;
  height: 300px;
  background: linear-gradient(rgba(30, 58, 138, 0.75), rgba(30, 58, 138, 0.75)), url('../images/hero/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.75);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-breadcrumb {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 1px;
}



/* Activities Content */
.activities-content {
  padding: 4rem 2rem;
}

/* Gallery Section */
.gallery-section h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #eff6ff;
}

.filter-btn.active {
  background: #2563eb;
  color: #fff;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: all 0.3s;
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}



/* ===== FOOTER STYLES ===== */

.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #e5e7eb;
}

.footer-main {
  padding: 3rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-col p {
  line-height: 1.8;
  color: #9ca3af;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li,
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact li {
  margin-bottom: 0.6rem;
}

.footer-contact i {
  margin-top: 0.2rem;
  color: #2563eb;
}

.footer-links a,
.footer-contact a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #2563eb;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.3rem;
  border: 2px solid transparent;
}

.social-icon:nth-child(1) {
  background: #1877f2;
}

.social-icon:nth-child(1):hover {
  background: #145dbf;
  box-shadow: 0 5px 20px rgba(24, 119, 242, 0.5);
}

.social-icon:nth-child(2) {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon:nth-child(2):hover {
  box-shadow: 0 5px 20px rgba(225, 48, 108, 0.5);
}

.social-icon:nth-child(3) {
  background: #ff0000;
}

.social-icon:nth-child(3):hover {
  background: #cc0000;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.social-icon:nth-child(4) {
  background: #25d366;
}

.social-icon:nth-child(4):hover {
  background: #20ba5a;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.admission-footer-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.7rem 1.5rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
}

.admission-footer-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  padding: 1.2rem 2rem;
  text-align: center;
  display: block;
  clear: both;
}

.footer-bottom p {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-bottom a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #93c5fd;
  text-decoration: underline;
}



/* ===== FLOATING ACTION BUTTONS ===== */

.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}

.call-btn {
  background: #2563eb;
}

.call-btn:hover {
  background: #1d4ed8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.whatsapp-float-btn {
  background: #25d366;
}

.whatsapp-float-btn:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}



/* ===== NEW HOME PAGE SECTIONS ===== */

/* Admission Banner */
.admission-banner {
  background: #2563eb;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn-banner {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #f59e0b;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.btn-banner:hover {
  background: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Principal Section */
.principal-section {
  padding: 5rem 2rem;
  background: #f3f4f6;
}

.principal-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.principal-image img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.principal-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.read-more-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Facilities Section */
.facilities-section {
  padding: 5rem 2rem;
  background: #fff;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.facility-card {
  background: #f8fafc;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.facility-card:hover {
  background: #fff;
  border-color: #2563eb;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.facility-card i {
  font-size: 3rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.facility-card h3 {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.facility-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Activities Section */
.activities-section {
  padding: 5rem 2rem;
  background: #f3f4f6;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activity-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-card i {
  font-size: 2.5rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.activity-card h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.activity-card p {
  font-size: 0.9rem;
  color: #6b7280;
}

.text-center {
  text-align: center;
  margin-top: 3rem;
}

.view-more-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.view-more-btn:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Gallery Preview */
.gallery-preview {
  padding: 5rem 2rem;
  background: #fff;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.preview-item:hover img {
  transform: scale(1.1);
}

.view-gallery-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #f59e0b;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.view-gallery-btn:hover {
  background: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Contact Location */
.contact-location {
  padding: 5rem 2rem;
  background: #f3f4f6;
}

.contact-grid {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex-shrink: 0;
  width: 420px;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 2rem;
  color: #2563eb;
  margin-top: 0.3rem;
}

.info-item h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #6b7280;
  line-height: 1.6;
}

.info-item a {
  color: #2563eb;
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

/* Inquiry Form */
.inquiry-form-container {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.inquiry-form-title {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.inquiry-submit-btn {
  padding: 0.75rem 1.5rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  margin-top: 0.3rem;
}

.inquiry-submit-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.inquiry-submit-btn i {
  font-size: 1.2rem;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}



/* ===== MOBILE UX LAYOUT CORRECTIONS ===== */

/* Mobile-Only Layout Fixes - 600px and below */
@media (max-width: 600px) {
  /* Hero Section - Bottom Aligned with Better Overlay */
  .hero {
    height: 65vh;
    align-items: flex-end;
    justify-content: center;
  }
  
  .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
  }
  
  .hero-content {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    padding: 0 20px 3rem;
    max-width: 90%;
  }
  
  .hero-title {
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Hero Images - Better Face Positioning */
  .hero-slide {
    background-position: center 30%;
  }
  
  /* Section Spacing - Reduced Gaps */
  .why-choose,
  .principal-section,
  .facilities-section,
  .activities-section,
  .gallery-preview,
  .contact-location {
    padding: 2.5rem 1.5rem;
  }
  
  .admission-banner {
    padding: 2rem 1.5rem;
  }
  
  /* Principal Section - Vertical Stack */
  .principal-section {
    padding: 2.5rem 1.5rem;
  }
  
  .principal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .principal-image {
    width: 100%;
    max-width: 280px;
    order: 1;
  }
  
  .principal-image img {
    width: 100%;
    max-height: 280px;
    margin: 0 auto;
  }
  
  .principal-image p {
    text-align: center !important;
  }
  
  .principal-text {
    order: 2;
    text-align: center;
  }
  
  .principal-text p {
    text-align: center;
  }
  
  /* Principal Message - Collapsible */
  .principal-text p:not(:first-child) {
    display: none;
  }
  
  .principal-text.expanded p {
    display: block;
  }
  
  .principal-text p:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 1rem;
  }
  
  .principal-text.expanded p:first-child {
    display: block;
    -webkit-line-clamp: unset;
  }
  
  .read-more-btn {
    display: block;
    text-align: center;
    margin: 1rem auto 0;
  }
  
  /* Testimonials - Better Card Layout */
  .testimonials-grid .card {
    padding: 1.2rem;
    height: auto;
  }
  
  .testimonials-grid .card p[style*="italic"] {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Footer - Single Column Centered */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2.5rem;
  }
  
  .footer-col {
    grid-column: 1 !important;
  }
  
  .footer-col:nth-child(1),
  .footer-col:nth-child(4) {
    grid-column: 1 !important;
  }
  
  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links li,
  .footer-contact li {
    justify-content: center;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  /* Floating Buttons - Higher Position */
  .floating-buttons {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 998;
  }
  
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  
  /* Prevent overlap with footer */
  .site-footer {
    padding-bottom: 100px;
  }
  
  /* Contact Grid - Vertical Stack */
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info {
    width: 100%;
    order: 1;
  }
  
  .inquiry-form-container {
    order: 2;
  }
  
  /* Board Affiliation - Better Mobile Layout */
  section[style*="background: #f0f9ff"] {
    padding: 2rem 1.5rem !important;
  }
  
  section[style*="background: #f0f9ff"] div[style*="max-width: 700px"] {
    max-width: 100% !important;
    font-size: 1rem !important;
  }
}

/* Extra Small Mobile - 400px and below */
@media (max-width: 400px) {
  .hero {
    height: 60vh;
  }
  
  .hero-content {
    padding: 0 15px 2.5rem;
    max-width: 95%;
  }
  
  .principal-image {
    max-width: 240px;
  }
  
  .principal-image img {
    max-height: 240px;
  }
  
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .floating-buttons {
    bottom: 75px;
    right: 12px;
  }
  
  /* Section Spacing */
  .why-choose,
  .principal-section,
  .facilities-section,
  .activities-section,
  .gallery-preview,
  .contact-location {
    padding: 2rem 1rem;
  }
}

/* ===== WHATSAPP ADMISSION POPUP ===== */

.whatsapp-popup {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 997;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

.whatsapp-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.whatsapp-popup-header {
  background: #25d366;
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-popup-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.whatsapp-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.whatsapp-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-popup-body {
  padding: 1.2rem;
}

.whatsapp-popup-message {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.whatsapp-popup-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}

.whatsapp-popup-input:focus {
  outline: none;
  border-color: #25d366;
}

.whatsapp-popup-button {
  width: 100%;
  padding: 0.8rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.whatsapp-popup-button:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-popup-button i {
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .whatsapp-popup {
    width: 90%;
    max-width: 340px;
    right: 5%;
    bottom: 140px;
  }
}

@media (max-width: 400px) {
  .whatsapp-popup {
    bottom: 130px;
  }
}
