/* =============================================================
   COLLEGE LIFE — college-life.css
   Matches site patterns: Open Sans, var(--theme_color) #D9000D,
   var(--text_color) #383746
   ============================================================= */

/* ===== SHARED SECTION HEADER ===== */
.cl-section-header {
    margin-bottom: 48px;
}

.cl-section-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme_color);
    margin-bottom: 8px;
}

.cl-section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text_color);
    margin: 0;
    line-height: 1.2;
}

.cl-section-bar {
    height: 3px;
    width: 44px;
    background-color: var(--theme_color);
    margin-top: 12px;
    border-radius: 2px;
}

/* ===== SECTION 1: CAMPUS PULSE ===== */
.campus-pulse {
    padding: 72px 0;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.pulse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pulse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 36px 24px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.pulse-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}

.pulse-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: var(--theme_color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.pulse-icon-wrap .iconify {
    width: 28px;
    height: 28px;
    color: #fff;
}

.pulse-count {
    font-family: 'Open Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--text_color);
    line-height: 1;
    margin-bottom: 8px;
}

.pulse-plus {
    color: var(--theme_color);
}

.pulse-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.4;
}

/* ===== SECTION 2: LIFE AT GYANDEEP ===== */
.life-at {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.life-at-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Left: content */
.life-at-content {
    padding-right: 8px;
}

.life-at-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text_color);
    margin: 8px 0 0;
    line-height: 1.25;
}

.life-at-bar {
    height: 3px;
    width: 44px;
    background-color: var(--theme_color);
    margin-top: 14px;
    margin-bottom: 24px;
    border-radius: 2px;
}

.life-at-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.85;
    margin: 0 0 16px;
}

.life-at-desc:last-of-type {
    margin-bottom: 0;
}

.life-at-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 28px;
    background-color: var(--theme_color);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.life-at-btn:hover {
    background-color: #b8000b;
    box-shadow: 0 6px 20px rgba(217, 0, 13, 0.28);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Right: photo collage */
.life-at-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 12px;
}

.collage-img {
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #e5e7eb;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.collage-img:hover {
    transform: scale(1.02);
}

/* First image spans both rows in the left column */
.collage-img--tall {
    grid-row: 1 / 3;
}

/* ===== SECTION 3: STUDENT ACTIVITIES ===== */
.activities {
    padding: 80px 0;
    background-color: #fff;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.activity-card {
    position: relative;
    height: 290px;
    border-radius: 12px;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #1a1a2e;
    cursor: default;
    user-select: none;
}

/* Dark gradient overlay — bottom to top */
.activity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 17, 28, 0.88) 0%,
        rgba(15, 17, 28, 0.42) 55%,
        rgba(15, 17, 28, 0.12) 100%
    );
    transition: background 0.32s ease;
    border-radius: inherit;
}

/* On hover — overlay turns red-tinted */
.activity-card:hover .activity-overlay {
    background: linear-gradient(
        to top,
        rgba(185, 0, 10, 0.90) 0%,
        rgba(185, 0, 10, 0.55) 55%,
        rgba(15, 17, 28, 0.18) 100%
    );
}

/* Icon badge — bottom-left, glass style */
.activity-icon-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background-color 0.28s ease;
    z-index: 2;
}

.activity-card:hover .activity-icon-badge {
    background-color: rgba(255, 255, 255, 0.26);
}

.activity-icon-badge .iconify {
    width: 22px;
    height: 22px;
    color: #fff;
}

/* Card body — text at bottom */
.activity-body {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 20px 20px;
    z-index: 2;
}

.activity-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.activity-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
    margin: 0;
    line-height: 1.55;
}

/* ===== SECTION 4: CAMPUS GALLERY ===== */
.cl-gallery {
    padding: 80px 0 88px;
    background-color: #f8f9fa;
}

/* Header row: label+title on left, link on right */
.cl-section-header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.cl-section-header-left {
    flex: 1;
}

.cl-gallery-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme_color);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    white-space: nowrap;
    margin-bottom: 4px;
}

.cl-gallery-link:hover {
    border-color: var(--theme_color);
    text-decoration: none;
    color: var(--theme_color);
}

/* Mosaic grid */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    gap: 12px;
    overflow: hidden;
}

.mosaic-item {
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #dde0e4;
    overflow: hidden;
    transition: transform 0.38s ease, box-shadow 0.38s ease;
    cursor: default;
}

.mosaic-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    z-index: 1;
    position: relative;
}

/* Wide item spans 2 columns */
.mosaic-item--wide {
    grid-column: span 2;
}

/* Tall item spans 2 rows */
.mosaic-item--tall {
    grid-row: span 2;
}

/* =============================================================
   CAMPUS TOUR VIDEO SECTION
   ============================================================= */
.campus-tour {
    background-color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    padding: 88px 0;
}

.campus-tour-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 52px;
}

.campus-tour-eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme_color);
    margin-bottom: 12px;
}

.campus-tour-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.campus-tour-bar {
    height: 3px;
    width: 44px;
    background-color: var(--theme_color);
    border-radius: 2px;
    margin: 14px auto 20px;
}

.campus-tour-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.75;
    margin: 0;
}

/* Player wrapper */
.campus-tour-player {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    background: #000;
}

/* Thumbnail state */
.ctp-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ctp-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    transition: transform 0.5s ease;
}

.ctp-thumb:hover .ctp-thumb-bg {
    transform: scale(1.03);
}

.ctp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.25) 0%,
        rgba(15, 23, 42, 0.65) 100%
    );
}

/* Play button */
.ctp-play-btn {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--theme_color);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(217, 0, 13, 0.55),
                0 0 0 8px rgba(217, 0, 13, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    margin-bottom: 16px;
}

.ctp-play-btn svg {
    margin-left: 4px;
}

.ctp-thumb:hover .ctp-play-btn {
    transform: scale(1.10);
    background: #c0000c;
    box-shadow: 0 12px 56px rgba(217, 0, 13, 0.70),
                0 0 0 12px rgba(217, 0, 13, 0.15);
}

.ctp-play-label {
    position: relative;
    z-index: 2;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.80);
}

/* Active state — hide thumbnail once a source is playing */
.campus-tour-player.playing .ctp-thumb {
    display: none;
}

/* YouTube iframe */
.campus-tour-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Uploaded video file */
.campus-tour-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    outline: none;
}


/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* --- Tablet: ≤991px --- */
@media (max-width: 991px) {

    .campus-tour {
        padding: 68px 0;
    }

    .campus-tour-title {
        font-size: 28px;
    }

    /* Pulse: 4→2 columns */
    .pulse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Life at: 2→1 column */
    .life-at-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .life-at-content {
        padding-right: 0;
    }

    .life-at-collage {
        grid-template-rows: 180px 180px;
    }

    /* Activities: 3→2 columns */
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery: 4→2 columns */
    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 180px 180px 180px;
    }

    .mosaic-item--wide {
        grid-column: span 2;
    }

    .mosaic-item--tall {
        grid-row: span 2;
    }

    .cl-section-title {
        font-size: 26px;
    }
}

/* --- Mobile: ≤767px --- */
@media (max-width: 767px) {

    .campus-pulse {
        padding: 56px 0;
    }

    .life-at,
    .activities,
    .cl-gallery {
        padding: 60px 0;
    }

    .life-at-title {
        font-size: 24px;
    }

    /* Keep collage 2-col on 768–600px range */
    .life-at-collage {
        grid-template-rows: 160px 160px;
        gap: 10px;
    }

    .cl-section-header--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .gallery-mosaic {
        grid-template-rows: 160px 160px 160px;
    }
}

/* --- Small mobile: ≤600px --- */
@media (max-width: 600px) {

    .campus-tour {
        padding: 56px 0;
    }

    .campus-tour-title {
        font-size: 24px;
    }

    .campus-tour-desc {
        font-size: 14px;
    }

    .ctp-play-btn {
        width: 64px;
        height: 64px;
        box-shadow: 0 6px 28px rgba(217, 0, 13, 0.50),
                    0 0 0 6px rgba(217, 0, 13, 0.15);
    }

    /* Pulse stays 2-col — readable at this width */

    /* Life at collage: stack to single column */
    .life-at-collage {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 160px 160px;
    }

    .collage-img--tall {
        grid-row: auto;
    }

    /* Activities: 2→1 column */
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        height: 260px;
    }

    /* Gallery: 2→1 column */
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px 140px 140px 140px;
    }

    .mosaic-item--wide {
        grid-column: 1 / -1;
    }

    .mosaic-item--tall {
        grid-row: span 1;
    }

    .cl-section-title {
        font-size: 22px;
    }

    .pulse-count {
        font-size: 30px;
    }

    .pulse-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .pulse-icon-wrap .iconify {
        width: 24px;
        height: 24px;
    }
}
