/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

    /* HEADER WRAPPER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100; /* stays on top */
}

/* Top Contact Bar */
.contact-bar {
background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  padding: 5px 50px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999; /* Below navbar */
  
}

.contact-bar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
}

.contact-info {
  display: flex;
  gap: 80px;
}

.contact-item i {
  margin-right: 6px;
  color: orange;
  gap: 80px;
}

.opening-hours {
  display: flex;
  align-items: center;
  gap: 80px;
}

.social-icons i {
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.social-icons i:hover {
  color: orange;
}
/* ================= IMPROVED NAVBAR ================= */
nav {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content:flex-start;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  top: 30px; /* Height of contact bar */
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 50px;
}
body {
  padding-top: 140px; /* Combined height of both bars */
}
/* Navbar scroll effect */
nav.scrolled {
  background: rgba(106, 27, 154, 0.9);
  padding: 10px 50px;
  top: 0; /* When scrolled, navbar moves to top */
}

nav .logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

nav .logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

nav img {
  height: 50px;
  margin-right: 10px;
  transition: transform 0.5s ease;
}

nav img:hover {
  animation: bounce 0.8s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

/* Rainbow hover effect */
nav ul li:nth-child(1) a:hover { background: rgba(255, 0, 0, 0.3); }
nav ul li:nth-child(2) a:hover { background: rgba(255, 165, 0, 0.3); }
nav ul li:nth-child(3) a:hover { background: rgba(255, 255, 0, 0.3); }
nav ul li:nth-child(4) a:hover { background: rgba(0, 128, 0, 0.3); }
nav ul li:nth-child(5) a:hover { background: rgba(0, 0, 255, 0.3); }
nav ul li:nth-child(6) a:hover { background: rgba(75, 0, 130, 0.3); }

/* Underline animation */
nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD700; /* Gold color */
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 80%;
}

/* Icon animations */
nav ul li a i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

nav ul li a:hover i {
  transform: rotate(15deg) scale(1.2);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(106, 27, 154, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
    z-index: 999;
  }
  
  nav ul.active {
    left: 0;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  nav ul li a {
    font-size: 1.5rem;
    padding: 12px 20px;
  }
  
  /* Rainbow hover effect for mobile */
  nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  nav ul li a::after {
    display: none;
  }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #f59e0b);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}
.page-hero {
  height: 60vh;
  background: url('photos/school-building.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #2563eb;
    transform: rotate(15deg);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-icon i {
    font-size: 2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* Goals Section */
.goals {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.goal-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.goal-card:hover .goal-icon {
    transform: scale(1.1) rotate(15deg);
}

.goal-icon.yellow {
    background-color: #facc15;
}

.goal-icon.blue {
    background-color: #2563eb;
}

.goal-icon i {
    font-size: 2rem;
    color: white;
}

.goal-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.goal-card p {
    color: #6b7280;
    line-height: 1.8;
    font-size: 1rem;
}
/* Testimonials */
.testimonials {
  background-color: #f8fafc;
  padding: 4rem 0;
}

/* Events */
.events {
  padding: 4rem 0;
}
.event-card {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Gallery Preview */
.gallery-preview {
  padding: 4rem 0;
  background-color: #f8fafc;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

/* Quick Facts */
.quick-facts {
  background-color: #fef3c7;
  padding: 3rem 0;
  text-align: center;
}
.fact-item {
  display: inline-block;
  padding: 0 2rem;
}
.fact-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  color: #1e3a8a;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid, .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .goal-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about, .goals {
        padding: 3rem 0;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .feature-icon, .goal-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i, .goal-icon i {
        font-size: 1.5rem;
    }
}