  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    background: #f0f8ff;
    color: #333;
  }

.topbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1); /* soft transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* soft border */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 999;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

  .school-name {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .school-info h1 {
    font-size: 16px;
    color: #1e3a8a;
    margin-bottom: 2px;
  }

  .school-info p {
    font-size: 12px;
    color: #475569;
    margin: 0;
  }

  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: #1e3a8a;
    z-index: 10001;
    margin-left: auto;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    z-index: 10000;
  }

  .menu a {
    color: #1e3a8a;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .menu.active {
    display: flex;
  }

  @media (min-width: 768px) {
    .hamburger {
      display: block;
    }

    .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 20px;
      background: white;
      border-radius: 10px;
      padding: 10px 15px;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
      z-index: 10000;
    }

    .menu.active {
      display: flex !important;
    }

    .school-logo {
      width: 50px;
      height: 50px;
    }
  }

  @media (max-width: 768px) {
    .topbar {
      padding: 12px 16px;
    }

    .menu {
      width: 150px;
      top: 60px;
      right: 20px;
    }

    .school-name {
      flex-direction: row;
      justify-content: flex-start;
    }

    .school-name h1 {
      font-size: 16px;
    }

    .school-name p {
      font-size: 12px;
    }
  }

  .school-info h1 {
    font-size: 16px;
  }

  .school-info p {
    font-size: 12px;
  }
  
  .welcome-section {
    position: relative;
    background-image: url('school-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 40vh; /* पहले fixed 33vh था, अब minimum height दी */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    flex-direction: column; /* ✅ ये ज़रूरी है mobile में content नीचे रहे */
    padding: 1.5rem 1rem; /* ✅ अंदर थोड़ी padding बढ़ा दी */
    box-sizing: border-box;
  }
  @media (orientation: landscape) and (max-width: 768px) {
    .welcome-section {
      min-height: 60vh; /* landscape में ज़्यादा height दें ताकि text आराम से आ जाए */
      padding: 2rem 1rem;
    }
  }
  .welcome-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  .welcome-content p {
    font-size: 0.9rem;
    max-width: 90%;
  }
  .welcome-content {
    position: relative;
    z-index: 2; /* ✅ Content should be on top of overlay */
    padding: 1rem;
  }
  
  .welcome-content h2, .welcome-content p {
    margin: 10px 0;
    line-height: 1.4;
  }
  
  .welcome-content p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
    .welcome-content h2 {
      font-size: 2.5rem;
    }
  
    .welcome-content p {
      font-size: 1.1rem;
    }
  
  
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1e3a8a;
    color: white;
    border-radius: 5px;
    text-decoration: none;
  }
  
  section {
    padding: 40px 20px;
    text-align: center;
  }
  
  .notice-board li {
    font-weight: 500;
    margin: 10px 0;
  }
  
  .teacher-card {
    display: inline-block;
    width: 250px;
    margin: 20px;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .teacher-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  @media (max-width: 768px) {
    .menu {
      width: 150px;
      top: 60px;
      right: 20px;
    }
    
    .school-name {
      flex-direction: row;
      justify-content: flex-start;
    }
    
    .school-name h1 {
      font-size: 16px;
    }
    
    .school-name p {
      font-size: 12px;
    }
  }
  .notice-board {
    max-width: 700px;
    margin: 50px auto;
    padding: 25px 30px;
    background: linear-gradient(135deg, #e0f7fa, #fff);
    border: 2px solid whitesmoke;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease-in-out;
  }
  
  .notice-board h2 {
    font-size: 26px;
    color: darkblue;
    margin-bottom: 15px;
    border-bottom: 2px dashed darkblue;
    padding-bottom: 8px;
  }
  
  .notice-board ul {
    list-style: none;
  }
  
  .notice-board li {
    font-size: 17px;
    font-weight: 500;
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    color: darkblue;
    line-height: 1.6;
  }
  
  .notice-board li::before {
    content: "🔔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    color: darkblue;
  }
  .notice-board {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInNotice 1s ease forwards;
  }
  
  @keyframes fadeInNotice {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .principal-desk {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, white, white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
  }
  
  .principal-desk h2 {
    font-size: 26px;
    color: darkblue;
    margin-bottom: 20px;
    border-bottom: 2px dashed black;
    padding-bottom: 8px;
  }
  
  .principal-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .principal-content img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
  }
  
  .principal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: black;
  }
  
  .principal-name {
    margin-top: 10px;
    font-weight: bold;
    color: #311b92;
  }
  
  
  
  
  .director-desk {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, white, white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
  }
  
  .director-desk h2 {
    font-size: 26px;
    color: darkblue;
    margin-bottom: 20px;
    border-bottom: 2px dashed black;
    padding-bottom: 8px;
  }
  
  .director-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .director-content img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
  }
  
  .director-content p {
    font-size: 16px;
    line-height: 1.7;
    color: black;
  }
  
  .director-name {
    margin-top: 10px;
    font-weight: bold;
    color: #311b92;
  }
  
  
  
  .contact-section {
    background: #eaf6ff;
    padding: 40px 20px;
    text-align: center;
    padding-bottom: 5px; /* या इससे कम */
  }
  
  .contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
  }
  
  .contact-form button {
    padding: 12px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .contact-details {
    margin-top: 30px;
  }
  
  .location-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .location-block img {
    width: 30px;
    height: 30px;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
  }
  
  .info-item img {
    width: 20px;
    height: 20px;
  }
  
  .social-icons {
    margin-top: 20px;
  }
  
  .social-icons a {
    margin: 0 10px;
  }
  
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  
  .footer {
    margin-top: 30px;
    font-size: 14px;
    color: #444;
    padding-bottom: 10px;
  }
  .social-icons img:hover {
    transform: scale(1.2);
  }
  
  .welcome-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .welcome-content .btn {
    padding: 10px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
  }
  
  
  
  .photo-gallery {
    padding: 20px;
    text-align: center;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
  }
  
  .gallery-grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.05);
  }
  
  /* Lightbox Styles */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px;
    left: 0; top: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
  }
  
  .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }
  
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
  }
  
  .prev { left: 10px; }
  .next { right: 10px; }
  
  
  .notice-section {
    padding: 2rem 1rem;
    background: #f2f6fc;
    text-align: center;
  }
  
  .notice-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  .notice-box {
    background: #ffffff;
    max-width: 600px;
    margin: auto;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 300px;
  }
  
  #notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #notice-list li {
    background-color: #eaf0fb;
    color: #333;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 5px solid #007bff;
    text-align: left;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 6px;
    transition: background 0.3s;
  }
  
  #notice-list li:hover {
    background-color: #d4e3f8;
  }
  @media (max-width: 600px) {
    .notice-box {
      max-width: 90%;
      padding: 1rem;
    }
  
    #notice-list li {
      font-size: 0.95rem;
    }
  }
  .teachers-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    box-sizing: border-box;
    justify-items: center;
  }
  
  .teacher-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .teacher-card:hover {
    transform: translateY(-5px);
  }
  
  .teacher-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
  }
  
  .teacher-card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #1e3a8a;
  }
  
  .teacher-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
  }
  @media (max-width: 600px) {
    .teachers-section {
      padding: 10px;
      gap: 15px;
    }
  
    .teacher-card {
      padding: 15px;
    }
  
    .teacher-card h3 {
      font-size: 16px;
    }
  
    .teacher-card p {
      font-size: 13px;
    }
  }
  .contact-container {
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
  }
  
  .contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .contact-form .form-group {
    margin-bottom: 15px;
  }
  
  .contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #007BFF;
  }
  
  .contact-form button {
    width: 100%;
    padding: 12px;
    background: #007BFF;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .contact-form button:hover {
    background: #0056b3;
  }
  
  .logo-topbar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo-welcome {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /
}

@media (min-width: 768px) {
  .logo-welcome {
    width: 140px;
  }
}

#video-gallery {
  padding: 2rem;
  background: #f0f8ff;
  text-align: center;
}

#video-gallery h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.video-item {
  width: 30%;
  min-width: 200px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.video-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Popup */
#video-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup-video {
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.nav-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.nav-buttons button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#location {
  padding: 40px 20px;
  background: #f0f8ff;
  text-align: center;
}

.map-container {
  max-width: 800px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.map-link {
  display: block;
  position: relative;
}

.map-link iframe {
  pointer-events: none;
}