/* 
==========================================================================
   Campus Overview Section Styles
========================================================================== 
*/

.campus-overview-section {
    padding: 2rem 0 6rem 0;
    /* Uses the global primary teal gradient */
    background: linear-gradient(to bottom, var(--primary-teal), var(--primary-teal-dark));
    min-height: 80vh;
}

/* Section Header Styles */
.campus-overview-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.campus-overview-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.campus-overview-section .section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

.campus-overview-section .section-header p {
    font-size: 1.1rem;
    color: var(--off-white);
    line-height: 1.8;
    text-align: center;
}

/* 
==========================================================================
   Campus Gallery Grid Styles
========================================================================== 
*/

.campus-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-group {
    width: 100%;
}

.slide-container {
    display: grid;
    /* Desktop 4-column layout */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.campus-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.campus-img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

/* 
==========================================================================
   Responsive Design (Mobile Slideshow)
========================================================================== 
*/

@media (max-width: 900px) {
    .campus-overview-section .section-header h2 {
        font-size: 2rem;
    }

    /* Transform grid into a relative container for fading slideshow */
    .slide-container {
        display: block;
        position: relative;
        height: 300px;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        background-color: rgba(0, 0, 0, 0.2);
    }

    /* Stack images on top of each other for fade effect */
    .campus-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        border-radius: 0;
        box-shadow: none;
        transform: none !important;
    }

    /* Show only the active slide */
    .campus-img.active {
        opacity: 1;
        z-index: 10;
    }
}

/* 
==========================================================================
   Footer Wave Customization
========================================================================== 
*/

#footer .custom-shape-divider-top .shape-fill {
    fill: var(--primary-teal-dark);
}
