.campus-life-section {
    position: relative;
    padding: 40px 0;
    background: linear-gradient(90deg, #B64A5A 0%, #A85570 25%, #7B5B8C 50%, #5A7BA8 75%, #3B8FC4 100%);
    color: white;
    overflow: hidden;
}

@media (min-width: 992px) {
    .campus-life-section {
        padding: 80px 0;
    }
}

.campus-life-bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-top-left,
.decoration-top-right,
.decoration-bottom-right {
    position: absolute;
    opacity: 0.08;
    display: none;
}

@media (min-width: 992px) {
    .decoration-top-left,
    .decoration-top-right,
    .decoration-bottom-right {
        display: block;
    }
}

.decoration-top-left {
    top: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
}

.decoration-top-right {
    top: 100px;
    right: 50px;
    width: 200px;
    height: 50px;
    border-top: 3px dashed white;
    border-radius: 50%;
    transform: rotate(30deg);
}

.decoration-bottom-right {
    bottom: 50px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.campus-life-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .campus-life-header {
        margin-bottom: 50px;
    }
}

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

.campus-life-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .campus-life-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

.campus-life-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white;
    line-height: 1.2;
}

@media (min-width: 576px) {
    .campus-life-title {
        font-size: 32px;
        margin: 0 0 14px 0;
    }
}

@media (min-width: 992px) {
    .campus-life-title {
        font-size: 32px;
        margin: 0 0 18px 0;
    }
}

.campus-life-description {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

@media (min-width: 576px) {
    .campus-life-description {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (min-width: 992px) {
    .campus-life-description {
        font-size: 16px;
        max-width: 600px;
    }
}

/* STATIC 3-COLUMN GRID */
.campus-life-static-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .campus-life-static-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 992px) {
    .campus-life-static-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* CARD CONTAINER - NO WHITE BACKGROUND */
.campus-life-static-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    
    display: flex;
    flex-direction: column;
}

.campus-life-static-card:hover {
    transform: translateY(-8px);
    
}

/* IMAGE WRAPPER */
.static-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
}

@media (min-width: 576px) {
    .static-card-image-wrapper {
        height: 260px;
    }
}

@media (min-width: 992px) {
    .static-card-image-wrapper {
        height: 280px;
    }
}

.static-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.campus-life-static-card:hover .static-card-image {
    transform: scale(1.08);
}

/* TEXT CONTENT - TRANSPARENT BACKGROUND */
.static-card-content {
    padding: 24px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

@media (min-width: 576px) {
    .static-card-content {
            padding: 24px 0;

    }
}

@media (min-width: 992px) {
    .static-card-content {
    padding: 24px 0;
    }
}

/* WHITE TEXT TITLE */
.static-card-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .static-card-title {
        font-size: 18px;
        margin: 0 0 12px 0;
    }
}

@media (min-width: 992px) {
    .static-card-title {
        font-size: 18px;
        line-height: 1.3;
    }
}

/* WHITE TEXT DESCRIPTION */
.static-card-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 14px 0;
    line-height: 1.6;
    flex: 1;
}

@media (min-width: 576px) {
    .static-card-desc {
        font-size: 15px;
        margin: 0 0 16px 0;
        line-height: 1.7;
    }
}

@media (min-width: 992px) {
    .static-card-desc {
        font-size: 15px;
        margin: 0 0 14px 0;
    }
}

/* WHITE LINK */
.static-card-link {
    display: inline-block;
    color: white;
    font-size: 13px;
    font-weight: 600;
    
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.static-card-link:hover {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* HIDE CAROUSEL ELEMENTS */
.campus-life-carousel-wrapper,
.campus-life-btn,
.campus-life-dots {
    display: none !important;
}

        /* ============================================
           GALLERY MODAL
           ============================================ */

        #homeCampusGalleryModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }

        #homeCampusGalleryModal.active {
            display: block;
        }

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

        #homeCampusGalleryModal .gallery-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            cursor: pointer;
        }

        #homeCampusGalleryModal .gallery-modal-box {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 95%;
            max-width: 900px;
            background: #000;
            border-radius: 12px;
            padding: 16px;
            z-index: 2001;
            box-shadow: 0 10px 80px rgba(0, 0, 0, 0.8);
            animation: slideUp 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
        }

        @media (min-width: 576px) {
            #homeCampusGalleryModal .gallery-modal-box {
                border-radius: 16px;
                padding: 24px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-modal-box {
                width: 90%;
                padding: 32px;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        #homeCampusGalleryModal .gallery-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        @media (min-width: 576px) {
            #homeCampusGalleryModal .gallery-close-btn {
                top: 16px;
                right: 16px;
                width: 44px;
                height: 44px;
                font-size: 1.4rem;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-close-btn {
                top: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
        }

        #homeCampusGalleryModal .gallery-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        #homeCampusGalleryModal .gallery-header {
            text-align: center;
            margin-bottom: 16px;
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-header {
                margin-bottom: 20px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-header {
                margin-bottom: 24px;
            }
        }

        #homeCampusGalleryModal .gallery-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: white;
            margin: 0;
            background: linear-gradient(90deg, #C1495C 0%, #8B7AA8 50%, #4B9AC8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @media (min-width: 576px) {
            #homeCampusGalleryModal .gallery-header h2 {
                font-size: 24px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-header h2 {
                font-size: 28px;
            }
        }

        #homeCampusGalleryModal .gallery-main-container {
            position: relative;
            width: 100%;
            height: 300px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 12px;
            background: #111;
        }

        @media (min-width: 576px) {
            #homeCampusGalleryModal .gallery-main-container {
                height: 350px;
                margin-bottom: 14px;
            }
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-main-container {
                height: 400px;
                margin-bottom: 16px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-main-container {
                height: 500px;
                margin-bottom: 18px;
            }
        }

        #homeCampusGalleryModal .gallery-main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        #homeCampusGalleryModal .gallery-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: rgba(193, 73, 92, 0.6);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            color: white;
            font-size: 0.9rem;
            cursor: pointer;
            z-index: 20;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-nav-btn {
                width: 44px;
                height: 44px;
                font-size: 1rem;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-nav-btn {
                width: 55px;
                height: 55px;
                font-size: 1.2rem;
            }
        }

        #homeCampusGalleryModal .gallery-nav-btn:hover {
            background: rgba(193, 73, 92, 0.9);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-50%) scale(1.1);
        }

        #homeCampusGalleryModal .gallery-nav-prev {
            left: 8px;
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-nav-prev {
                left: 16px;
            }
        }

        #homeCampusGalleryModal .gallery-nav-next {
            right: 8px;
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-nav-next {
                right: 16px;
            }
        }

        #homeCampusGalleryModal .gallery-counter {
            text-align: center;
            margin-bottom: 12px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-counter {
                font-size: 13px;
                margin-bottom: 14px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-counter {
                font-size: 14px;
                margin-bottom: 16px;
            }
        }

        #homeCampusGalleryModal .gallery-thumbnails {
            display: flex;
            gap: 8px;
            justify-content: center;
            overflow-x: auto;
            padding: 8px 0;
            scroll-behavior: smooth;
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-thumbnails {
                gap: 10px;
                padding: 10px 0;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-thumbnails {
                gap: 12px;
                padding: 12px 0;
            }
        }

        #homeCampusGalleryModal .gallery-thumbnail {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            cursor: pointer;
            overflow: hidden;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            #homeCampusGalleryModal .gallery-thumbnail {
                width: 70px;
                height: 70px;
            }
        }

        @media (min-width: 992px) {
            #homeCampusGalleryModal .gallery-thumbnail {
                width: 80px;
                height: 80px;
            }
        }

        #homeCampusGalleryModal .gallery-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        #homeCampusGalleryModal .gallery-thumbnail:hover {
            border-color: rgba(193, 73, 92, 0.6);
            transform: scale(1.05);
        }

        #homeCampusGalleryModal .gallery-thumbnail.active {
            border-color: #C1495C;
            box-shadow: 0 0 15px rgba(193, 73, 92, 0.5);
        }
        /* Homepage Campus Life — first image focal point */
.home-new .campus-life-static-card:first-child .static-card-image {
    object-fit: cover;
    object-position: center 35%;
}


/* ============================================
   CAMPUS LIFE — SMOOTH HOVER FIX
   ============================================ */

/* Keep card stationary to prevent hover flickering */
.home-new .campus-life-static-card {
    transition: none;
    transform: none;
}

/* Disable vertical card movement */
.home-new .campus-life-static-card:hover {
    transform: none;
}

/* Smooth image zoom */
.home-new .campus-life-static-card .static-card-image {
    transition: transform 0.35s ease-out;
    transform: scale(1);
    will-change: transform;
}

/* Subtle zoom on hover */
.home-new .campus-life-static-card:hover .static-card-image {
    transform: scale(1.04);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .home-new .campus-life-static-card .static-card-image {
        transition: none;
        transform: none;
    }

    .home-new .campus-life-static-card:hover .static-card-image {
        transform: none;
    }
}

