/* ==========================================================
   GALLERY PAGE - WIDE DESKTOP-FIRST DESIGN SYSTEM
   ========================================================== */

/* Main Page Canvas & Base Typography */
.gallery-page-body {
    background-color: #ffffff !important;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Background Botanical Leaf Accents (Scaled for Wide Desktop) */
.gallery-botanical-topleft {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 340px;
    max-width: 25vw;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    transform: rotate(5deg);
    object-fit: contain;
}

.gallery-botanical-topright {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 340px;
    max-width: 25vw;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    transform: rotate(-5deg);
    object-fit: contain;
}

.gallery-botanical-midleft {
    position: absolute;
    top: 35%;
    left: -30px;
    width: 380px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.gallery-botanical-midright {
    position: absolute;
    top: 52%;
    right: -30px;
    width: 380px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.gallery-botanical-botleft {
    position: absolute;
    top: 74%;
    left: -40px;
    width: 360px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.60;
}

.gallery-botanical-botright {
    position: absolute;
    top: 86%;
    right: -40px;
    width: 360px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.60;
}

/* Main Outer Content Wrapper with Organic Watercolor Cutout Edges */
.gallery-main-wrapper {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

.gallery-main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('watercolor_frame_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.gallery-main-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   DESKTOP SECTION HEADER SYSTEM
   ========================================================== */
.gallery-section-header {
    text-align: center;
    max-width: 900px;
    margin: 65px auto 40px;
    padding: 0 20px;
    position: relative;
}

.gallery-section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    height: 100px;
    background-image: url('programs_futures_bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.gallery-section-header > * {
    position: relative;
    z-index: 1;
}

.gallery-section-header h1,
.gallery-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #0f172a;
    margin: 10px 0 14px;
    line-height: 1.15;
}

.gallery-section-header p {
    font-size: 18px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.section-badge-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #f97316;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.header-tag-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.header-line {
    width: 55px;
    height: 2px;
    background: #f97316;
    opacity: 0.65;
}

/* Primary Orange Action Buttons (Desktop Scale) */
.btn-primary-orange {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f97316;
    color: #ffffff !important;
    padding: 16px 38px;
    border-radius: 12px;
    font-size: 16.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.30);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary-orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.40);
}

/* ==========================================================
   SECTION 1: HERO SHOWCASE (WIDE DESKTOP COMPOSITION)
   ========================================================== */
.gallery-hero-showcase {
    max-width: 1420px;
    width: 95%;
    margin: 0 auto 60px;
    position: relative;
}

/* Main Featured Video Card (Wide Desktop Aspect Ratio) */
.gallery-hero-video-card {
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.16), 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 5px solid #ffffff;
    outline: 2px solid rgba(249, 115, 22, 0.4);
    margin-bottom: 36px;
    position: relative;
}

.gallery-hero-video-card video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* 3 Featured Highlight Cards Grid (Desktop 3-Column) */
.gallery-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.featured-card {
    position: relative;
    height: 270px;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    border: 4px solid #ffffff;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-card:hover img {
    transform: scale(1.06);
}

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 19, 37, 0) 25%, rgba(6, 19, 37, 0.82) 100%);
    padding: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: #ffffff;
}

.featured-card-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.featured-card-text p {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.45;
}

.play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding-left: 3px;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.featured-card:hover .play-btn-circle {
    transform: scale(1.12);
    background: #ea580c;
}

.card-purple-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
    letter-spacing: 0.3px;
}

/* ==========================================================
   SECTION 2: LIFE AT CAMPUS (MASONRY GALLERY WIDE DESKTOP)
   ========================================================== */
.gallery-masonry-section {
    max-width: 1420px;
    width: 95%;
    margin: 70px auto;
    position: relative;
    z-index: 1;
}

.gallery-masonry-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    max-width: 1440px;
    height: 96%;
    background-image: url('program cutout.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

.gallery-masonry-grid {
    column-count: 4;
    column-gap: 28px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.gallery-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    background: #ffffff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 4px solid #ffffff;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item.square-card {
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-item.square-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

/* ==========================================================
   SECTION 3: EXPLORE OUR CAMPUS (DESKTOP WIDE BANNER CARD)
   ========================================================== */
.gallery-tour-banner {
    max-width: 1420px;
    width: 95%;
    margin: 75px auto;
}

.tour-banner-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    border: 5px solid #ffffff;
}

.tour-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tour-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.50) 0%, rgba(15, 23, 42, 0.78) 100%);
    z-index: 1;
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.tour-banner-overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.tour-banner-overlay p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 760px;
    margin: 0 0 28px;
    line-height: 1.65;
}

/* ==========================================================
   SECTION 4: MEMORIES THAT INSPIRE (DESKTOP 3-COLUMN CARDS)
   ========================================================== */
.gallery-student-life {
    max-width: 1420px;
    width: 95%;
    margin: 70px auto;
}

.gallery-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.life-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.life-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.life-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.life-card:hover img {
    transform: scale(1.04);
}

.life-content {
    padding: 28px;
}

.life-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.life-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* ==========================================================
   SECTION 5: DESKTOP STATS COUNTER STRIP
   ========================================================== */
.gallery-stats-banner {
    max-width: 1420px;
    width: 95%;
    margin: 75px auto;
    background: #0f172a;
    border-radius: 26px;
    padding: 50px 40px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

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

.stat-box-card {
    text-align: center;
    color: #ffffff;
}

.stat-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 18px;
}

.stat-box-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.stat-box-card p {
    font-size: 15.5px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================
   SECTION 6: CALL TO ACTION BANNER
   ========================================================== */
.gallery-cta-section {
    max-width: 1000px;
    width: 92%;
    margin: 75px auto 45px;
    text-align: center;
}

.gallery-cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.gallery-cta-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin: 0 auto 34px;
    max-width: 780px;
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE REFLOW)
   ========================================================== */
@media (max-width: 1200px) {
    .gallery-hero-video-card video {
        height: 480px;
    }

    .gallery-masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .gallery-featured-grid,
    .gallery-life-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .gallery-masonry-grid {
        column-count: 2;
    }

    .gallery-section-header h1,
    .gallery-section-header h2 {
        font-size: 38px;
    }

    .tour-banner-overlay h2 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .gallery-masonry-grid {
        column-count: 1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-hero-video-card video {
        height: 280px;
    }

    .tour-banner-card {
        height: 280px;
    }
}