header {
  background-color: var(--header-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  transition: background-color 0.3s;
  z-index: 1000;
}
:root {
  --primary-color: #5d0000;
  --header-bg-color: #5d0000;
  --footer-color: #5d0000;
  --heading-h1-color: #5d0000;
  --paragraph-color: #000;
  --heading-h2-color: #5d0000;
  --heading-h3-color: #5d0000;
  --read-more: #7c93c3;
  --white: #ffffff;
  --head-teacher-section: #fcfaee;
  --news-container: #ffffff;
  --news-card: #5d0000;
  --why-choose-us: #fcfaee;
  --container: #fcfaee;
  --news-card-p: #fcfaee;
  --contact-form: #ffffff;
  --image-background-color-about: rgba(0, 0, 0, 0.5);
  --main--content--background: #fcfaee;
  --footer-section-h: #fcfaee;
  --accent-color: #349ad5;
}
.logo img {
  width: 100px;
  height: auto;
}
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}
.hamburger-icon {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  z-index: 1001;
}

.hamburger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  min-width: 200px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);  /* Softer, more spread shadow */
  z-index: 1;
  border-radius: 8px;
  margin-top: 10px;
  padding: 8px 0;
  opacity: 0;  /* Start invisible for fade-in effect */
  transform: translateY(-10px);  /* Start slightly up for slide effect */
  transition: opacity 0.3s ease, transform 0.3s ease;  /* Smooth transitions */
  border: 1px solid rgba(255, 255, 255, 0.1);  /* Subtle border */
}

/* Add a small triangle pointer at the top of dropdown */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Show dropdown with animation */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--white);
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  text-align: left;
  margin: 4px 0;
  transition: all 0.2s ease;
  position: relative;  
  font-size: 0.95em;  
  letter-spacing: 0.3px; 
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 24px;  
}

.dropdown-content a:hover::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--white);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .dropdown-content {
    border: none;
    box-shadow: none;
    margin-top: 0;
    transform: none;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);  
  }

  .dropdown-content::before {
    display: none;  
  }

  .dropdown-content a {
    padding: 12px 30px;  /
    border-left: 2px solid transparent;  
  }

  .dropdown-content a:hover {
    border-left-color: var(--white); 
    padding-left: 35px;
  }
}

nav ul#nav-links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul#nav-links li a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s;
}

nav ul#nav-links li a:hover {
  color: var(--read-more);
}

@media (max-width: 768px) {
  .socialform p {
    display: none;
  }
  .logo img {
    width: 125px;
    height: auto;
  }
  .hamburger-icon {
    display: block;
  }
  nav ul#nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    gap: 40px;
    padding-top: 50px;
  }

  nav ul#nav-links.active {
    display: flex;
    transform: translateX(0);
  }
  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: none;
    padding-left: 20px;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content a {
    padding: 10px 20px;
  }
}
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
