:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 80px;
  color: #333;
  line-height: 1.6;
}

/* Navigation Styles */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: white;
  backdrop-filter: blur(10px);
}

.navbar-brand-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 500px) {
  .navbar-brand-logo span {
    font-weight: 600;
    font-size: 1rem;
  }

  .navbar-brand-logo img {
    width: 50px;
  }
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 0;
  align-items: center;
}

.navbar-brand-logo:hover {
  color: rgba(44, 62, 80, 0.8) !important;
}

.navbar-brand-logo i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(44, 62, 80, 0.8) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

/* Change text color when hovered */
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--accent-color) !important; /* red */
  background-color: transparent;
}

/* Keep the red color on active link */
.nav-link.active {
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  color: var(--dark-color);
  border-color: rgba(44, 62, 80, 0.5);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
  background-color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 10px;
}

.navbar .dropdown-item {
  color: var(--dark-color);
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

/* Dropdown item hover effect  */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  color: var(--accent-color) !important; /* red text */
  background-color: rgba(231, 76, 60, 0.1); /* light red background */
}

/* Dropdown arrow animation */
.navbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.3s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}
/* Hero Slider Styles */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  height: calc(100vh - 80px);
  min-height: 500px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  max-width: 800px;
  background-color: rgba(44, 62, 80, 0.8);
  color: white;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  z-index: 1000;
  animation: fadeInUp 1s ease;
}

.slide h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.slide p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-hero {
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  border: none;
}

.btn-hero:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Slider Controls*/
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
  gap: 12px;
}

.slider-dot {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: white;
  transform: scaleX(0.5);
  transform: scaleY(0.3);
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }

  .slide h1 {
    font-size: 1.8rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .slide-content {
    padding: 20px;
  }

  .slider-controls {
    bottom: 20px;
    gap: 8px;
  }

  .slider-dot {
    width: 20px;
    height: 3px;
  }

  .slider-dot.active {
    transform: scaleX(0.5) scaleY(0.3);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-link {
    color: white !important;
    margin: 5px 0;
    padding: 2px 15px;
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link.active {
    color: var(--accent-color) !important;
  }

  .nav-link.active:after {
    bottom: 9px;
    left: 7px;
    width: 4px;
    height: calc(100% - 20px);
  }

  .slide h1 {
    font-size: 2.5rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .slide-content {
    padding: 20px;
  }

  .navbar-collapse .dropdown-menu {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .navbar-collapse .dropdown-item {
    color: white !important;
    padding: 8px 15px 8px 30px !important;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
  }

  .navbar-collapse .dropdown-item:before {
    content: "→";
    position: absolute;
    left: 15px;
    color: var(--accent-color);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-collapse .dropdown-item:hover:before,
  .navbar-collapse .dropdown-item:focus:before {
    opacity: 1;
    left: 20px;
  }

  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item:focus,
  .navbar-collapse .dropdown-item.active {
    padding-left: 35px !important;
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .navbar-collapse .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider {
    height: 70vh;
  }

  .slide h1 {
    font-size: 2rem;
  }
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
}

.section-light {
  background-color: #f8f9fa;
}

/* Founder Section */
.founder-section {
  background-color: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.founder-section:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1588072432836-e10032774350?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.founder-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin: 30px 0;
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.founder-signature {
  font-family: "Brush Script MT", cursive;
  font-size: 2rem;
  color: var(--accent-color);
  margin-top: 20px;
}

/* Mission */

/* Mission Section */
.mission-section {
  background-color: var(--light-color);
  padding: 80px 0;
  text-align: center;
}

.mission-statement {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

.mission-statement p {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
}

/* Calendar Section */
.calendar-section {
  padding: 80px 0;
  background-color: white;
}

.calendar-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.calendar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.calendar-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.btn-download {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-download:hover {
  background-color: #2980b9;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Vision Section */
.vision-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vision-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Gallery Section */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.btn-show-more {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.btn-show-more:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Upcoming Events Section */
.events-section {
  background-color: white;
}

.event-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.event-day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-content {
  padding: 25px;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.event-meta i {
  margin-right: 5px;
  color: var(--accent-color);
}

.event-description {
  color: #555;
  margin-bottom: 20px;
}

.btn-event {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-event:hover {
  background-color: #2980b9;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.btn-view-all {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .event-card {
    margin-bottom: 30px;
  }

  .event-image {
    height: 180px;
  }

  .event-content {
    padding: 20px;
  }
}

/* Blog Section */
.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.blog-card-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.blog-card-excerpt {
  margin-bottom: 20px;
}

.blog-card-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

/* Contact Section */
.section-divider {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.section-divider h2 {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: #f8f9fa;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--secondary-color);
  z-index: 0;
}

.about-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card img {
  display: block;
  margin-left: auto;   
  margin-right: auto;
  padding-left: 20px;  
  max-width: 95%;      
  border-radius: 12px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
}

.school-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.school-badge i {
  margin-right: 10px;
  font-size: 1rem;
}

.enquiry-form {
  max-width: 500px;
  margin: 0 auto;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .about-card .row > div {
    order: initial !important;
  }

  .about-card img {
    border-radius: 0 !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
  }
}

@media (max-width: 767.98px) {
  .section-divider h2 {
    font-size: 1.8rem;
  }
}
/* Footer */
.footer {
  background-color: #222;
  color: #aaa;
  padding: 60px 0 20px;
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .founder-section:before {
    width: 100%;
    opacity: 0.1;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 60px 0;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }
}
