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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-logo img {
  margin-right: 10px;
  border-radius: 5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #60a5fa;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section with Carousel */
.hero {
  margin-top: 70px;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  height: 100%;
}

.carousel-container {
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.carousel-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: #60a5fa;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.cta-button:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 3;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1e3a8a;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #60a5fa);
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: #f8fafc;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: #60a5fa;
  margin-bottom: 15px;
}

.feature h4 {
  font-size: 1.2rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.9rem;
  color: #64748b;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Motto Section */
.motto {
  padding: 80px 0;
  background: #e0f2f7; /* A light, calming background color */
  text-align: center;
}

.motto .section-title {
  color: #1e3a8a;
  margin-bottom: 30px;
}

.motto-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d47a1; /* A darker blue for prominence */
  margin-bottom: 10px;
  font-family: 'Arial Unicode MS', 'Devanagari MT', sans-serif; /* Ensure Hindi font support */
}

.motto-translation {
  font-size: 1.2rem;
  color: #3f51b5; /* A slightly lighter blue */
  font-style: italic;
}

.mission-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 40px;
  margin-bottom: 15px;
}

.mission-text {
  font-size: 1.1rem;
  color: #3f51b5;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Notice Board */
.notice-board {
  padding: 100px 0;
  background: white;
}

.notice-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.notice-item {
  display: flex;
  background: #f8fafc;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.notice-item:hover {
  transform: translateY(-5px);
}

.notice-date {
  background: #1e3a8a;
  color: white;
  padding: 20px;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.notice-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.notice-content {
  padding: 20px;
  flex: 1;
}

.notice-content h3 {
  font-size: 1.2rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.notice-content p {
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.6;
}

.notice-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #60a5fa;
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Fees Section */
.fees {
  padding: 100px 0;
  background: #f8fafc;
}

.fees-content {
  display: block;
}

.fees-info h3 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.fees-info p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.8;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: #1e3a8a;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.fees-table {
  background: white;
  border-radius: 15px;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.fees-table table {
  width: 100%;
  border-collapse: collapse;
}

.fees-table th,
.fees-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.fees-table th {
  background: #1e3a8a;
  color: white;
  font-weight: 600;
}

.fees-table tr:hover {
  background: #f8fafc;
}

/* Faculty Section */
.faculty {
  padding: 100px 0;
  background: white;
}

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

.faculty-member {
  text-align: center;
  padding: 30px 20px;
  background: #f8fafc;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.faculty-member:hover {
  transform: translateY(-10px);
}

.faculty-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 5px solid #60a5fa;
}

.faculty-member h3 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 5px;
}

.faculty-member .designation {
  font-size: 1rem;
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 10px;
}

.faculty-member .qualification {
  font-size: 0.9rem;
  color: #64748b;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: #f8fafc;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.gallery-grid {
  column-count: 3;
  column-gap: 30px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  /* No transform here */
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30, 58, 138, 0.9));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* School Calendar Section */
.calendar {
  padding: 100px 0;
  background: white;
  text-align: center;
}

.calendar-content p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-image {
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  display: inline-block; /* To center the image container */
  max-width: 100%; /* Ensure it doesn't overflow */
}

.calendar-image img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below image */
}

/* Achievements Section */
.achievements {
  padding: 100px 0;
  background: #f8fafc;
}

.achievements-grid {
  column-count: 3;
  column-gap: 30px;
}

.achievement-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  /* No transform here */
}

.achievement-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.achievement-item:hover img {
  transform: scale(1.05);
}

.achievement-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30, 58, 138, 0.9));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.achievement-item:hover .achievement-overlay {
  transform: translateY(0);
}

.achievement-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background: #1e3a8a;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #60a5fa;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #60a5fa;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  word-break: break-all;
}

.contact-info i {
  color: #60a5fa;
  width: 20px;
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #60a5fa;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3b82f6;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #cbd5e1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #64748b;
}

.close:hover {
  color: #1e3a8a;
}

.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #1e3a8a;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
  }

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

  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text p {
    text-align: justify;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .fees-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faculty-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .gallery-grid {
    column-count: 2;
  }

  .achievements-grid {
    column-count: 2;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .carousel-content h1 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .carousel-btn {
    padding: 10px;
    font-size: 1.2rem;
  }

  .notice-container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }

  .achievements-grid {
    column-count: 1;
  }

  .gallery-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- HEADER HEIGHT AND LOGO/TITLE STYLES --- */
.navbar {
  height: 110px;
  min-height: 110px;
}

.nav-container {
  height: 110px;
  min-height: 110px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
}

.nav-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.school-main {
  font-size: 2.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.school-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: #60a5fa;
  margin-top: 2px;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .navbar,
  .nav-container {
    height: 80px;
    min-height: 80px;
  }
  .nav-logo img {
    width: 60px;
    height: 60px;
  }
  .school-main {
    font-size: 1.2rem;
  }
  .school-sub {
    font-size: 0.9rem;
  }
}
