﻿/* ==========================================================================
   PREMIUM CAMPUS ENVIRONMENT SECTION
   ========================================================================== */
.campus-section {
    position: relative;
    background: linear-gradient(180deg, #030712 0%, #0a1128 50%, #030712 100%);
    overflow: hidden;
}

/* --- Decorative Background --- */
.campus-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.campus-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.campus-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: campusOrbFloat 12s ease-in-out infinite alternate;
}

.campus-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 120, 255, 0.15) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: campusOrbFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes campusOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.15); }
}

.campus-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* --- Section Header --- */
.campus-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.campus-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 165, 0, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #FFD700;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    animation: campusBadgePulse 3s ease-in-out infinite;
}

.campus-badge i {
    font-size: 0.9rem;
}

@keyframes campusBadgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.25); }
}

.campus-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.campus-title-highlight {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: campusTitleShine 4s ease-in-out infinite;
}

@keyframes campusTitleShine {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.campus-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(180, 200, 230, 0.8);
    max-width: 580px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-weight: 400;
}

.campus-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ctl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ctl-bar {
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* --- Premium Gallery Grid --- */
.campus-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Featured card spans 1 col, 2 rows */
.campus-card-featured {
    grid-row: 1 / 3;
    grid-column: 1;
}

/* Small cards stack right-top */
.campus-card-sm:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.campus-card-sm:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
}

/* Wide card spans bottom 2 cols */
.campus-card-wide {
    grid-row: 2;
    grid-column: 2 / 4;
}

/* --- Card Styling --- */
.campus-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.campus-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.campus-card:hover .campus-card-inner {
    transform: scale(1.02);
}

.campus-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.campus-card:hover .campus-card-img {
    transform: scale(1.1);
    filter: brightness(0.6) saturate(1.2);
}

/* Gradient Overlay */
.campus-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 30%,
        rgba(3, 7, 18, 0.4) 60%,
        rgba(3, 7, 18, 0.92) 100%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.5s ease;
}

.campus-card:hover .campus-card-overlay {
    background: linear-gradient(180deg,
        rgba(3, 7, 18, 0.1) 0%,
        rgba(3, 7, 18, 0.3) 30%,
        rgba(3, 7, 18, 0.6) 60%,
        rgba(3, 7, 18, 0.95) 100%);
}

/* Shimmer Effect */
.campus-card-shimmer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    transition: none;
}

.campus-card:hover .campus-card-shimmer {
    animation: campusShimmer 1.2s ease forwards;
}

@keyframes campusShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

/* Animated Border */
.campus-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
}

.campus-card:hover .campus-card-border {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.06), 0 0 40px rgba(255, 215, 0, 0.08);
}

/* --- Card Label --- */
.campus-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(8px);
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.campus-card:hover .campus-card-label {
    transform: translateY(0);
    opacity: 1;
}

.ccl-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFD700;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.campus-card:hover .ccl-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35) 0%, rgba(255, 165, 0, 0.2) 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.ccl-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ccl-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.campus-card:hover .ccl-name {
    color: #FFD700;
}

.ccl-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(200, 215, 240, 0.7);
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.campus-card:hover .ccl-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Campus Highlights Bar --- */
.campus-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
    padding: 24px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.campus-highlights::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.03) 25%,
        rgba(0, 120, 255, 0.03) 50%,
        rgba(255, 215, 0, 0.03) 75%,
        transparent 100%);
    pointer-events: none;
}

.ch-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 30px;
    flex: 1;
    justify-content: center;
}

.ch-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #FFD700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ch-item:hover .ch-icon {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.ch-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}

.ch-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(180, 200, 230, 0.7);
    letter-spacing: 0.3px;
}

.ch-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.25) 50%, transparent 100%);
    flex-shrink: 0;
}

/* ==========================================================================
   CAMPUS SECTION RESPONSIVE
   ========================================================================== */

/* --- LARGE TABLET (max 1200px) --- */
@media (max-width: 1200px) {
    .campus-title { font-size: 2.5rem; }
    .campus-gallery {
        grid-template-rows: 260px 260px;
        gap: 16px;
    }
    .ch-item { padding: 8px 20px; }
}

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    .campus-title { font-size: 2.2rem; }
    .campus-subtitle { font-size: 1rem; }
    .campus-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 240px 240px;
        gap: 14px;
    }
    .campus-card-featured {
        grid-row: 1;
        grid-column: 1 / 3;
    }
    .campus-card-sm:nth-child(2) {
        grid-row: 2;
        grid-column: 1;
    }
    .campus-card-sm:nth-child(3) {
        grid-row: 2;
        grid-column: 2;
    }
    .campus-card-wide {
        grid-row: 3;
        grid-column: 1 / 3;
    }
    .campus-highlights { padding: 20px 16px; }
    .ch-item { padding: 6px 14px; gap: 10px; }
    .ch-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
    .ch-val { font-size: 0.9rem; }
    .ch-label { font-size: 0.72rem; }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
    .campus-header { margin-bottom: 30px; }
    .campus-badge { font-size: 0.7rem; padding: 6px 16px; letter-spacing: 1px; }
    .campus-title { font-size: 1.8rem; }
    .campus-subtitle { font-size: 0.9rem; margin-bottom: 14px; }
    .ctl-bar { width: 40px; }
    .ctl-dot { width: 6px; height: 6px; }

    .campus-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 14px;
    }
    .campus-card-featured { grid-row: auto; grid-column: auto; }
    .campus-card-sm:nth-child(2) { grid-row: auto; grid-column: auto; }
    .campus-card-sm:nth-child(3) { grid-row: auto; grid-column: auto; }
    .campus-card-wide { grid-row: auto; grid-column: auto; }

    .campus-card { height: 220px; }
    .campus-card-inner, .campus-card-border { border-radius: 16px; }

    .campus-card-label { padding: 16px 18px; gap: 12px; }
    .ccl-icon { width: 38px; height: 38px; min-width: 38px; font-size: 1rem; border-radius: 10px; }
    .ccl-name { font-size: 1.05rem; }
    .ccl-desc { font-size: 0.75rem; }

    .campus-highlights {
        flex-wrap: wrap;
        gap: 0;
        padding: 16px 12px;
        border-radius: 16px;
        margin-top: 24px;
    }
    .ch-item { flex: 0 0 50%; padding: 10px 8px; justify-content: flex-start; }
    .ch-divider { display: none; }
    .ch-icon { width: 34px; height: 34px; min-width: 34px; font-size: 0.85rem; border-radius: 10px; }
    .ch-val { font-size: 0.85rem; }
    .ch-label { font-size: 0.7rem; }

    .campus-orb-1 { width: 250px; height: 250px; }
    .campus-orb-2 { width: 200px; height: 200px; }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
    .campus-section { padding-top: 40px; padding-bottom: 40px; }
    .campus-header { margin-bottom: 24px; }
    .campus-badge { font-size: 0.6rem; padding: 5px 12px; gap: 6px; margin-bottom: 14px; }
    .campus-title { font-size: 1.5rem; }
    .campus-subtitle { font-size: 0.82rem; line-height: 1.5; }

    .campus-gallery { gap: 12px; }
    .campus-card { height: 200px; }
    .campus-card-inner, .campus-card-border { border-radius: 14px; }

    .campus-card-label { padding: 14px 14px; gap: 10px; }
    .ccl-icon { width: 34px; height: 34px; min-width: 34px; font-size: 0.9rem; border-radius: 8px; }
    .ccl-name { font-size: 0.95rem; }
    .ccl-desc { font-size: 0.7rem; }

    .campus-highlights { padding: 12px 8px; margin-top: 20px; border-radius: 14px; }
    .ch-item { padding: 8px 6px; gap: 8px; }
    .ch-icon { width: 30px; height: 30px; min-width: 30px; font-size: 0.8rem; border-radius: 8px; }
    .ch-val { font-size: 0.8rem; }
    .ch-label { font-size: 0.65rem; }
}
