/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

/* Hide the images by default */
.mySlides {
  display:flex;
}

/* Slide images */
.mySlides img {
  width: 100%;
  filter: brightness(50%);
  height: auto;
  max-height: 500px; /* Adjust as needed */
  object-fit: cover;
}

/* Caption text */
.slide-caption {
        position: absolute;
        width: auto;
        font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        bottom: 300px;
        left: 50%;
        transform: translateX(-50%);
        color: rgb(243, 242, 242);
        font-size: 45px;
        font-weight: bold;
        font-weight: 750;
        text-shadow: 30px 30px 50px rgba(244, 236, 236, 0.905);
        padding: 10px 20px;
        border-radius: 5px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #e74c3c; /* Use your theme color */
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
/* ===== ABOUT MIT SECTION ===== */
/* ===== ABOUT MIT SECTION ===== */
.about-mit {
  background-color: #f8f9fa;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

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

.fade-left {
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-right {
  animation: fadeInRight 1s ease-out forwards;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About Text Section */


/* Principal Message Section */

/* Courses Slider Section */
.courses-slider {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.section-title {
    text-align: center;
    color: #1a3e72;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e74c3c;
}

.courses-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.course-card {
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.course-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
    display: flex;
}

.course-image {
    height: 250px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    color: #1a3e72;
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(231, 76, 60, 0.3);
}

.course-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    flex: 1;
}

.know-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid #e74c3c;
}

.know-more-btn:hover {
    background-color: transparent;
    color: #e74c3c;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.slider-controls button {
    background: #1a3e72;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.dots-containerr {
    display: flex;
    gap: 10px;
}

.dott {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dott.active {
    background: #e74c3c;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .course-card {
        flex-direction: column;
    }
    
    .course-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .course-content {
        padding: 25px;
    }
    
    .course-card h3 {
        font-size: 1.5rem;
    }
    
    .course-card p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .courses-slider {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .slider-controls {
        gap: 15px;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
    }
    
    .course-image {
        height: 180px;
    }
}
/* Gallery Section */
.image-gallery {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  color: #1a3e72;
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #e74c3c;
}

.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 62, 114, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 1.1rem;
}

/* Navigation buttons */
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(231, 76, 60, 0.7);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
  background-color: #e74c3c;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

/* Dots navigation */
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dots .dot.active {
  background-color: #e74c3c;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-slide img {
    height: 400px;
  }
  
  .gallery-prev, .gallery-next {
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .image-gallery {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .gallery-slide img {
    height: 300px;
  }
  
  .image-caption {
    font-size: 1rem;
    padding: 10px;
  }
}