/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  /* Stack children vertically */
  justify-content: center;
  align-items: center;
}

.logo {
  margin-bottom: 20px;
  /* Space between logo and spinner */
}

.logo img {
  max-width: 360px;
  /* Adjust size as needed */
}

.spinner {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Custom CSS for dropdown animation */

.dropdown-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(-10px);
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.cover-photo {
  position: relative;
  height: 150px;
  background-image: url('../../img/cover-photos/educational.png');
  /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-cover {
  background-image: url('../../img/cover-photos/news.jpg');
  /* Replace with your image URL */
}

.events-cover {
  background-image: url('../../img/cover-photos/events.jpg');
  /* Replace with your image URL */
}

.downloads-cover {
  background-image: url('../../img/cover-photos/downloads.png');
  /* Replace with your image URL */
}

.gallery-cover {
  background-image: url('../../img/cover-photos/gallery.png');
  /* Replace with your image URL */
}

.about-cover {
  background-image: url('../../img/cover-photos/downloads.png');
  /* Replace with your image URL */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Black overlay with 70% opacity */
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: center;
}

.overlay h1 {
  color: white;
  font-size: 3rem;
}

/* Card Effect */
.card-effect {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-effect:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px var(--secondary-color);
}

/* Base styling for #director-message-title */
#director-message-title {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

#director-message-title::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  /* Change color as per your design */
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

#director-message:hover #director-message-title {
  color: var(--primary-color);
  /* Change color as per your design */
}

#director-message:hover #director-message-title::before {
  visibility: visible;
  transform: scaleX(1);
}

/* Base styling for #office-message-title */
#office-message-title {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

#office-message-title::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  /* Change color as per your design */
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

#office-message:hover #office-message-title {
  color: var(--primary-color);
  /* Change color as per your design */
}

#office-message:hover #office-message-title::before {
  visibility: visible;
  transform: scaleX(1);
}

/* News Slide show */
.text-shadow {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7)
}

#news-text {
  text-decoration: none;
  color: WHITE;
}

#news-dots span {
  width: 10px;
  height: 10px;
  background-color: WHITE;
  opacity: .5;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

#news-dots span.active {
  opacity: 1;
  background-color: #ffc107;
}