/* Global Styles */
:root {
  --primary-color: #003366;
  --secondary-color: #990000;
  --accent-color: #FFD700;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333333;
  --text-light: #6c757d;
  --background-light: #f5f8fa;
  --border-color: #dee2e6;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header Styles */
.site-header {
  position: relative;
  z-index: 1000;
}

.top-bar {
  font-size: 0.9rem;
}

.navbar {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-brand img {
  /* transition: height 0.3s ease; */
  min-height: 50%!important;
}

.navbar .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  padding: 1rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--secondary-color);
}

.navbar .nav-item.active .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
  position: relative;
}

.carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 20%;
  left: 15%;
  right: 15%;
  text-align: center;
}

.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}

.carousel-caption p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .btn {
  animation: fadeIn 1.5s ease-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 auto 2rem;
}

/* Courses Cards */
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1) !important;
}

.course-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .card-img-top {
  transform: scale(1.05);
}

/* News Cards */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Event Cards */
.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
  position: relative;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1) !important;
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .card-img-top {
  transform: scale(1.05);
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-time, .event-location {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('https://images.pexels.com/photos/207692/pexels-photo-207692.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stat-item {
  padding: 30px 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h5 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: white;
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(153, 0, 0, 0.9) 100%), url('https://images.pexels.com/photos/267885/pexels-photo-267885.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .carousel-item {
    height: 450px;
  }

  .carousel-caption {
    bottom: 15%;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 350px;
  }

  .carousel-caption {
    bottom: 10%;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
    display: none;
  }

  .carousel-caption .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 300px;
  }

  .carousel-caption h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

section.testimonial-wrap.py-1 {
    max-height: 400px;
}