/* Navbar Styles */
.navbar {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;

}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  width: 5rem;
  height: 5rem;
}

.school-name {
  font-size: 2.25rem;
  line-height: 2.5 rem;
  font-weight: bolder;
  color: #be923b;
}

.desktop-nav {
  display: none;
}

.desktop-nav .nav-link {
  margin: 0 1rem;
  text-decoration: none;
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.desktop-nav .nav-link:hover {
  color: #E4A900;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: #4A4A4A;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  z-index: 40;
}

.mobile-nav.hidden {
  display: none;
}

.mobile-nav .nav-link {
  margin-bottom: 1rem;
  text-decoration: none;
  color: #4A4A4A;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-nav .nav-link:hover {
  color: #E4A900;
  background-color: #f9f9f9;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Mobile navbar styles moved to bottom of file */

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefcf9;
  /* Cream background */
  color: #333;

}



/* Main Content */
main {
  padding: 20px 80px;
  /* Restricts the width */
  margin: 0 auto;
  /* Centers the content */
}

/* Reduce padding for mobile devices */
@media (max-width: 768px) {
  main {
    padding: 20px 30px; /* Decrease side padding for smaller screens */
  }
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  width: 400%;
  /* 4 images x 100% */
  height: 100%;
  transition: transform 0.5s ease-in-out;
  animation: carousel 20s linear infinite;
}

.carousel-track img {
  width: 25%;
  /* 100% ÷ 4 images = 25% */
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  /* Prevent images from shrinking */
}

@keyframes carousel {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-25%);
  }

  45% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-50%);
  }

  70% {
    transform: translateX(-50%);
  }

  75% {
    transform: translateX(-75%);
  }

  95% {
    transform: translateX(-75%);
  }

  100% {
    transform: translateX(0);
  }
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Welcome Section */
.welcome {
  background: #ffffff;
  /* White background */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.welcome h2 {
  color: #be923b;
  /* Golden */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.welcome p {
  font-size: 1rem;
  margin: 10px 0;
  color: #555;
  /* Subtle text color */
}

.welcome a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #be923b;
  /* Golden button */
  color: #ffffff;
  /* White text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.welcome a:hover {
  background-color: #b8860b;
  /* Slightly darker golden */
}

/* Notice Board */
.notice-board {
  background: #ffffff;
  /* White background */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.notice-board h2 {
  color: #be923b;
  /* Golden */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.notices {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.notices li {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #555;
}

.notices li:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  background-color: #F0EFE8;
  color: #4A4A4A;
  padding: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-contact {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.logo-contact-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer .logo {
  width: 6rem;
  height: 6rem;
}

.footer .school-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #be923b;
}

.contact-details {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.quick-links {
  margin-bottom: 1rem;
}

.quick-links h4 {
  font-size: 1rem;
  font-weight: 600;
}

.link {
  display: block;
  margin: 0.5rem 0;
  color: #4A4A4A;
  text-decoration: none;
  transition: color 0.3s;
}

.link:hover {
  color: #FFD700;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon img {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s;
}

.social-icon:hover img {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #7D7D7D;
}

.map-section {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-top: 2px solid #e5e5e5;
}

.map-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #333;
}

.map-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.map-description {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.map-container {
  border: 2px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Add these new styles and animations to your existing CSS */

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}



/* Enhanced Carousel */
.carousel {
  position: relative;
}

.carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.carousel-track {
  animation: carousel 25s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
  transition: transform 0.3s ease;
  filter: brightness(0.95);
}

.carousel:hover .carousel-track img {
  filter: brightness(1.05);
}

/* Welcome Section Animation */
.welcome {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Notice Board Enhancements */
.notices li {
  position: relative;
  padding-left: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.notices li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #DBAE3F;
}

.notices li:hover {
  transform: translateX(10px);
  background-color: rgba(219, 174, 63, 0.1);
}

/* Map Section */
.map-section {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-top: 2px solid #e5e5e5;
}

.map-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.map-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.map-description {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.map-container {
  border: 2px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Enhancements */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #DBAE3F, transparent);
}

.social-icon {
  position: relative;
  overflow: hidden;
}

.social-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(219,174,63,0.2) 0%, transparent 70%);
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::after {
  opacity: 1;
}
/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .footer-logo-contact {
      align-items: center;
      text-align: center;
  }

  .logo-contact-wrapper {
      flex-direction: column;
      align-items: center;
  }

  .footer-links {
      margin-top: 1rem;
  }

  .social-links {
      justify-content: center;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.logo-link,
.info-card a,
.contact-info1 a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .navbar-container {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  
  .logo {
    width: 15rem;
    height: 15rem;
  }
  
  .school-name {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .mobile-nav {
    padding: 0.75rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .mobile-nav .nav-link {
    padding: 0.6rem 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
  }

  .mobile-nav .nav-link:hover,
  .mobile-nav .nav-link:active {
    background-color: #f5f5f5;
    transform: translateX(5px);
    color: #DBAE3F;
  }

  .menu-icon {
    width: 22px;
    height: 22px;
  }
  
  .menu-toggle {
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
  }
  
  .menu-toggle:hover,
  .menu-toggle:focus {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
  }
  
  /* Improve logo and container alignment */
  .logo-container {
    gap: 0.6rem;
  }
  
  .logo-link {
    align-items: center;
  }
}

/* Additional mobile menu animations and behavior */
@media (max-width: 768px) {
  /* Add smooth transitions for the mobile menu */
  .mobile-nav {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
  }
  
  .mobile-nav.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
  }
  
  .mobile-nav:not(.hidden) {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Improve tap targets for better mobile accessibility */
  .nav-link, 
  .menu-toggle,
  .logo-link {
    touch-action: manipulation;
  }
  
  .menu-toggle:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  /* Prevent text selection on menu items */
  .nav-link {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

