#masterclass-hero {
    height: 60vh;
    color: white;
}

#masterclass-hero .overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.content-section {
    padding: 60px 0;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #dc3545;
}

#info-cards .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

#info-cards .card:hover {
    transform: translateY(-5px);
}

#countdown {
    font-size: 2.5rem;
    font-weight: bold;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #dc3545;
    border-radius: 50%;
}

#faculty .row {
    display: flex;
    flex-wrap: wrap;
}

#faculty .row .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#faculty .row .col-md-4 .ratio {
    margin-top: auto;
}

#faculty .row .col-md-4 img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Gallery Swiper Styles */
#gallery .swiper-container {
    position: relative;
    padding-bottom: 40px; /* Space for pagination */
    overflow: hidden; /* This is the key fix */
}

#gallery .swiper-slide {
    height: auto; /* Let aspect ratio define height */
}

#gallery .swiper-slide a {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    border-radius: .25rem;
}

#gallery .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

#gallery .swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
}

#testimonials .carousel-inner {
    padding: 0 50px; /* Adds space for arrows */
}

#testimonials .blockquote-footer {
    margin-top: 1rem; /* Adds space above the author */
}

.dark-mode #faq .accordion-body {
    color: #ffffff;
}
