/* General Styles */
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Secondary Header */
.secondary-header {
  background: #003366;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  position: relative;
  z-index: 1100;
  transition: top 0.3s ease;
}

.quick-links,
.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.social-media a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-bar input {
  padding: 5px 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-bar a {
  background: #0077cc;
  color: white;
  padding: 5px 10px;
  border-radius: 0 4px 4px 0;
  text-decoration: none;
}

.social-media a {
  width: 30px;
  height: 30px;
  background: #ff6600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 70px;
}

.logo h2 {
  color: #004080;
  font-size: 1.5rem;
}

/* Desktop Navigation */
.desktop-menu {
  display: flex;
  list-style: none;
  gap: 5px;
}

.desktop-menu>li {
  position: relative;
}

.desktop-menu a {
  color: #003366;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.desktop-menu a:hover {
  background: #f0f8ff;
}

.desktop-menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.desktop-menu li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 10px 20px;
  color: #333;
}

.submenu a:hover {
  background: #e6f2ff;
  color: #004080;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #003366;
  cursor: pointer;
}



.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1200;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}



.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #09549e;
  cursor: pointer;
}

.mobile-nav {
  list-style: none;
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 10px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav .submenu-trigger {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.mobile-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 15px;
}

.mobile-submenu.active {
  max-height: 1000px;
}

.mobile-submenu a {
  padding: 10px 0;
  color: #555;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active {
  opacity: 2;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .logo h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .secondary-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .quick-links,
  .social-media {
    justify-content: center;
    width: 100%;
  }

  .search-bar {
    width: 100%;
    justify-content: center;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo h2 {
    font-size: 1.5rem;
  }
}


/* Animated Text  FOR HEADER Styles */
.animated-text-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  background: #252839;
}

.animated-text {
  position: relative;
  font-size: 5vw;
  color: #252839;
  -webkit-text-stroke: 0.3vw #383d52;
  text-transform: uppercase;
}

.animated-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: #01fe87;
  -webkit-text-stroke: 0vw #383d52;
  border-right: 2px solid #01fe87;
  overflow: hidden;
  animation: animateText 6s linear infinite;
}

/* Base style */
.animated-text {
  font-size: 5rem;
  /* Adjust as needed for desktop */
  font-weight: bold;
  text-align: center;
  /* any existing animation styles */
}

/* Mobile view: increase font size */
@media (max-width: 768px) {
  .animated-text {
    font-size: 3rem;
    /* Increase font size on mobile */
  }
}

@keyframes animateText {

  0%,
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}



.container {
  display: flex;
  gap: 20px;
}

.main-content {
  flex: 2;
}

.sidebar {
  flex: 1;
  border-left: 1px solid #ccc;
  padding-left: 20px;
}

.recent-posts li {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  margin-right: 10px;
}

.news-article img {
  display: block;
  margin: 0 auto;
  /* Center the image horizontally */
  width: 100%;
  /* Adjust as needed */
  max-width: 600px;
  border-radius: 20px;
  /* Rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add to your CSS */
#news-image.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#news-image {
  transition: opacity 0.5s ease;
}


.news-article h2 {
  text-align: center;
}

.news-article,
date p {
  padding-left: 20px;
  padding-bottom: 80%;
}

/* Animation on hover */
.news-article img:hover {
  transform: scale(1.05);
  /* Slight zoom */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  /* Soft shadow */
}

/* Timeline container */
.timeline {
  margin-top: 30px;
  position: relative;
  padding-left: 32px;
  border-left: 3px solid #007bff;
}

/* Individual block */
.timeline-block {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

/* Timeline icon */
.timeline-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 40px;
  height: 40px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  box-shadow: 0 0 0 4px #fff;
  z-index: 1;
}

/* Content styling */
.timeline-content h3,
.timeline-content h4 {
  margin: 0 0 5px;
  color: #0056b3;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Special styling for the "Key Features" section */
.timeline-feature-header .timeline-icon {
  background-color: #28a745;
}

.timeline-feature-header h3 {
  color: #28a745;
}

/* Hidden state */
.timeline-block {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
  will-change: transform, opacity;
}

/* Visible state */
.timeline-block.visible {
  opacity: 1;
  transform: translateX(0);
}





.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  background: url('background.jpg') center/cover no-repeat;
  padding: 20px 0;
  border-radius: 10px;
}

.gallery-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-item {
  flex: 0 0 33.33%;
  padding: 5px;
  box-sizing: border-box;
}


.gallery-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.view-more-container {
  text-align: center;
  margin-top: 20px;
}

.view-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.view-more-btn:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 0 33.33%;
  }
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 50%;
  }

  .prev,
  .next {
    padding: 10px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .prev,
  .next {
    padding: 8px;
    font-size: 16px;
  }
}

/* Style for Scroll-to-Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 50px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
}

#scrollTopBtn:hover {
  background-color: #0056b3;
}



/* FOOTER*/
.footer-area {
  margin-top: 100px;
  padding: 100px 0;
  background: #062f68;

  color: #fff;
  position: relative;
  text-align: left;
  /* Center align content for smaller screens */
}

.main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;

}

.footer {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}


.single-footer {
  width: 230px;
}

.single-footer:first-child {
  width: 400px;
}

.single-footer h4 {

  font-size: 22px;
  margin-bottom: 20px;

}

.footer-social a {
  color: #fff;
  border: 1px solid #fff;
  width: 40px;
  height: 40px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}



.single-footer ul {
  list-style: none;
  padding: 0;
}

.single-footer ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.single-footer ul li a {
  color: #fff;
  text-transform: capitalize;
  text-decoration: none;
  position: relative;
  /* Add this line */
  padding-left: 20px;
  /* Add this to make space for the icon */
}


.single-footer ul li a:hover {
  text-decoration: underline;
}


/* Style for the powered by text */
.copy .powered-by {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.copy .powered-by a {
  color: #ffab00;
  /* Customize the link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.copy .powered-by a:hover {
  color: #f39c12;
  /* Hover effect color */
}

.copy {
  text-align: center;
  text-transform: capitalize;
  margin-top: 50px;
}


/* Center the school logo */
.logo-footer {
  width: 230px;
  /* Same width as other sections */
  text-align: center;
  margin: 0 auto;
  /* Centers the logo horizontally */
}

.footer-logo {
  max-width: 180px;
  /* Adjust the size if needed */
  width: 100%;
  height: auto;
}

/* Center the social media icons */
.footer-social-container {
  display: flex;
  justify-content: center;
  /* Center the social media icons */
  align-items: center;
  margin-top: 30px;
  /* Add margin for spacing if needed */
}

.footer-social {
  text-align: center;
  /* Ensures social icons are centered inside the container */
}

/* Mobile View Adjustments */
@media (max-width: 992px) {
  .footer {
    flex-direction: column;
    align-items: center;
    /* Center all footer content */
  }

  .single-footer {
    width: 100%;
    text-align: left;
    /* Center the text on mobile */
  }

  /* Center the logo and social icons on mobile */
  .logo-footer,
  .footer-social-container {
    width: 100%;
    /* Take full width on mobile */
    text-align: center;
    /* Align content to the center */
  }

  .footer-logo {
    max-width: 150px;
    /* Make logo smaller on mobile */
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  /* Shift h4 to the right on mobile */
  .single-footer h4 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-left: 50px;
    /* Add padding to shift h4 slightly to the right */
    text-align: left;
    /* Ensure text aligns left */
  }
}


/* Optional: Logo size adjustment for smaller screens */
@media (max-width: 576px) {
  .footer-logo {
    max-width: 120px;
    /* Even smaller logo on extra small screens */
  }
}

/* Style for the logo image with a round circle */
.logo-footer img {
  width: 150px;
  /* Adjust the size of the logo */
  height: 150px;
  /* Keep the height equal to width for a perfect circle */
  object-fit: cover;
  /* Ensure the image fits within the circle */
  border-radius: 50%;
  /* Creates the circular shape */
  border: 5px solid #fff;
  /* Add a white border around the logo */
  padding: 10px;
  /* Optional: Adds space between the logo and the border */
  transition: all 0.3s ease;
  /* Smooth transition for hover effect */
}

/* Hover effect for the logo */
.logo-footer img:hover {
  transform: scale(1.1);
  /* Slightly enlarge the logo on hover */
  border-color: #ffab00;
  /* Change border color on hover (you can customize the color) */
}

/* Mobile View Adjustments */
@media (max-width: 992px) {
  .logo-footer img {
    width: 120px;
    /* Adjust logo size for mobile */
    height: 120px;
    /* Keep it square for a perfect circle */
    padding: 8px;
    /* Adjust padding for mobile */
  }

  .footer-social-container {
    flex-direction: column;
    /* Stack the social icons vertically on mobile */
    margin-top: 15px;
    /* Add space between logo and icons */
  }

  .footer-social a {
    width: 35px;
    /* Adjust icon size */
    height: 35px;
    line-height: 35px;
  }
}



/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Image Banner Styles */
.image-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 40px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.banner-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-overlay p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 800px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  color: #1e5799;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.info-item i {
  margin-right: 15px;
  color: #207cca;
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  color: #1e5799;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #207cca;
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background: #1e5799;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #207cca;
}

/* Map Section */
.map-section {
  margin-bottom: 60px;
}

.map-section h2 {
  color: #1e5799;
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }

  .image-banner {
    height: 50vh;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .image-banner {
    height: 40vh;
    min-height: 300px;
  }

  .contact-info,
  .contact-form {
    padding: 20px;
  }
}