
        :root {
            --primary: #4a89dc;
            --secondary: #ffce54;
            --accent: #fc6e51;
            --light: #f5f7fa;
            --dark: #434a54;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color:white;
            color: black;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background-color:#8c0000;
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: white;
            padding: 5px;
            margin-right: 15px;
        }
        
        .school-name {
            display: flex;
            flex-direction: column;
        }
        
        .school-name h1 {
            font-size: 24px;
            font-weight: 700;
        }
        
        .school-name p {
            font-size: 14px;
            opacity: 0.9;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 20px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        
        nav ul li a:hover {
            background-color: rgba(255,255,255,0.2);
        }
        
        /* Hero Section */
        .hero {
            height: auto;
            background-color: black;
            position: relative;
            overflow: hidden;
           
            align-items: center;
            justify-content: center;
        }
        .hero::before 
        {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;  
    width: 100%;
    height: 100%;
    background-image: url('bg.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* 20% opacity */
    z-index: 0;
}
        .hero-content {
            text-align: center;
            color: white;
            z-index: 1;
            padding: 20px;
        }
        
        
        /* Features Section */
        .features {
            padding: 80px 0;
        }
        .school-head-title h2
        {
        font-size: 25px;
            color:black;
            font-family:Uroob;
            position: centre;
            display: inline-block;
            padding-bottom: 15px;
             text-decoration:underline;
             display:flex;
            }
            
            .school-head{
            margin-left:80px;
            padding-top: 80px 0;
           padding-bottom: 20px;
           
            }
            
            .school-head img {
            height: 200px;
            background-color: #e6e9ed;
            display: flex;
            align-items: center;
            justify-content: center;
          border: 1px solid black;
          display:flex;
        }
        
            
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-title h2 {
            font-size: 32px;
            color: var(--primary);
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }
        
        .section-title h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--secondary);
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .feature-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        
        .feature-img {
            height: 200px;
            background-color: #e6e9ed;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .feature-content {
            padding: 20px;
        }
        
        .feature-content h3 {
            font-size: 22px;
            margin-bottom: 15px;
            color: var(--primary);
        }
        
        /* About Section */
        .about {
            background-color: #f0f3f5;
            padding: 80px 0;
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-text h2 {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .about-text p {
            margin-bottom: 15px;
        }
        
        .about-image {
            flex: 1;
            display: flex;
            justify-content: center;
        }
        
        .about-image-container {
            position: relative;
            width: 400px;
            height: 500px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        
        /* News Section */
        .news {
            padding: 80px 0;
        }
        
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .news-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .news-content {
            padding: 20px;
        }
        
        .news-date {
            display: inline-block;
            background-color: var(--secondary);
            color: var(--dark);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            margin-bottom: 10px;
        }
        
        .news-content h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--primary);
        }
        
        .read-more {
            display: inline-block;
            color: var(--accent);
            font-weight: 600;
            margin-top: 10px;
            text-decoration: none;
        }
        
        /* Contact Section */
        .contact {
            background-color: #f0f3f5;
            padding: 80px 0;
        }
        
        .contact-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 50px;
        }
        
        .contact-info h3 {
            font-size: 24px;
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .contact-details {
            margin-bottom: 20px;
        }
        
        .contact-details p {
            
            align-items: center;
            margin-bottom: 10px;
        }
        
        .contact-details i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        
        .contact-form textarea {
            height: 150px;
            resize: vertical;
        }
        
        .map-container {
            height: 400px;
            border-radius: 10px;
            overflow: hidden;
            background-color: #e6e9ed;
        }
        
        /* Footer */
        footer {
            background-color: #003366;
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            font-size: 18px;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--secondary);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 10px;
        }
        
        .footer-column ul li a {
            color: #aeb5bc;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-column ul li a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 14px;
            color: #aeb5bc;
        }
        
        /* For mobile responsiveness */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                text-align: center;
            }
            
            .logo {
                margin-bottom: 15px;
            }
            
            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            nav ul li {
                margin: 5px;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .about-image-container {
                width: 100%;
                height: 100%;
            }
        }
         .gallery-container {
      max-width: 1800px;
      margin: 0 auto;
    }
    
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      grid-gap: 0.5rem;
    }
    
    .gallery-item {
      overflow: hidden;
      position: relative;
      aspect-ratio: 1 / 1;
    }
    
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }
    
    .gallery-item:hover img {
      transform: scale(1.05);
    }
    
    .load-more {
      text-align: center;
      margin: 2rem 0;
    }
/* Teachers grid - 4 per row */
.teachers {
    background: #f8fbff;
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

.section-title h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f3b70;
    margin-bottom: 60px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.teacher-card {
        width: 250px;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (hover: hover) {
  .teacher-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.02);
  }
}

.teacher-card.flipped .card-inner {
  transform: rotateY(180deg) scale(1.02);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-front h3, .card-back h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #222;
}

.card-front p, .card-back p {
  font-size: 0.95rem;
  color: #666;
}

.card-back {
  transform: rotateY(180deg);
}
     .containers {
            max-width: 1000px;
            width: 100%;
            margin: 0 auto;
            padding: 0 20px;
            align-items: center;
            
        }
        
        .slider-container {
            padding-top:20px;
            position: relative;
            width: 100%;
            align-items: center;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }
        
        .slider {
          
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 400px;
            width: 100%;
        }
        
        .slide {
            min-width: 100%;
            position: relative;
        }
        
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .slide-content {
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            color: white;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
            max-width: 500px;
        }
        
        .slide-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .slide-content p {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }
        
        .btn {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }
        
        .btn:hover {
            background-color: #2980b9;
        }
        
        .slide-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.3);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            z-index: 10;
        }
        
        .slide-arrow:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }
        
        .prev {
            left: 20px;
        }
        
        .next {
            right: 20px;
        }
        
        .slider-dots {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }
        
        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #ccc;
            margin: 0 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .dot.active {
            background-color: #3498db;
        }
        
        @media (max-width: 768px) {
            .slider {
                height: 320px;
            }
            
            .slide-content {
                left: 5%;
                right: 5%;
            }
            
            .slide-content h2 {
                font-size: 1.8rem;
            }
        }
.year-tabs {
  text-align: center;
  margin-bottom: 20px;
}
.tab-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
  background-color: #007BFF;
  color: white;
}
.gallery-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gallery-item {
  width: 220px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hidden {
  display: none;
}
