/* ================================================================
   GNIT — Campus Life Page Styles
   Path: /gnit-assets/css/campus-life.css
   Depends on: inner-pages.css (must be loaded first)
================================================================ */

/* ----------------------------------------------------------------
   SECTION WRAPPER
---------------------------------------------------------------- */
.cl-section {
    padding: 60px 0 80px;
    background: #f7f9fc;
    min-height: 60vh;
}

/* ================================================================
   TAB NAVIGATION
================================================================ */
.cl-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(10, 36, 99, .08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.cl-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--gnit-gray, #6b7a9a);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .18s ease;
    white-space: nowrap;
    letter-spacing: .15px;
    position: relative;
}

.cl-tab-btn i {
    font-size: 13px;
    flex-shrink: 0;
    transition: transform .22s ease;
}

.cl-tab-btn:hover {
    background: var(--gnit-light, #eef2fb);
    color: var(--gnit-navy, #0a2463);
}

.cl-tab-btn:hover i {
    transform: scale(1.15);
}

.cl-tab-btn.active {
    background: linear-gradient(135deg, var(--gnit-navy, #0a2463), var(--gnit-blue, #1a56c4));
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 86, 196, .30);
    transform: translateY(-1px);
}

.cl-tab-btn.active i {
    transform: none;
}

/* ================================================================
   TAB PANELS
================================================================ */
.cl-tab-content {
    position: relative;
}

.cl-tab-panel {
    display: none;
    animation: cl-fadeIn .35s ease forwards;
}

.cl-tab-panel.active {
    display: block;
}

@keyframes cl-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PANEL HEADER
================================================================ */
.cl-panel-header {
    margin-bottom: 36px;
}

.cl-panel-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--gnit-gold, #f4a226);
    margin-bottom: 10px;
}

.cl-panel-header .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gnit-gold, #f4a226);
    border-radius: 2px;
}

.cl-panel-header h2 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--gnit-navy, #0a2463);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.cl-panel-header p {
    font-size: 15.5px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.8;
}

/* ================================================================
   INFO CARD GRID  (Extracurricular, KRITI, NSS, NPTEL, etc.)
================================================================ */
.cl-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 8px 0 32px;
}

.cl-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 22px;
    border-top: 3px solid var(--gnit-blue, #1a56c4);
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.cl-info-card:hover {
    box-shadow: 0 8px 28px rgba(10, 36, 99, .13);
    transform: translateY(-4px);
    border-top-color: var(--gnit-gold, #f4a226);
}

.cl-info-icon {
    width: 48px;
    height: 48px;
    background: var(--gnit-light, #eef2fb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gnit-blue, #1a56c4);
    font-size: 19px;
    margin-bottom: 14px;
    transition: background .25s ease, color .25s ease;
}

.cl-info-card:hover .cl-info-icon {
    background: var(--gnit-gold, #f4a226);
    color: #fff;
}

.cl-info-card h4 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--gnit-navy, #0a2463);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cl-info-card p {
    font-size: 13.5px;
    color: var(--gnit-gray, #6b7a9a);
    line-height: 1.65;
    margin: 0;
}

/* ================================================================
   CONTENT BLOCK  (plain prose paragraphs)
================================================================ */
.cl-content-block {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    margin-bottom: 28px;
    border-left: 4px solid var(--gnit-blue, #1a56c4);
}

.cl-content-block p {
    font-size: 15.5px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.85;
    margin: 0 0 16px;
}

.cl-content-block p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   HIGHLIGHT BOX  (Objectives, How to Apply)
================================================================ */
.cl-highlight-box {
    background: linear-gradient(135deg, #fff8e8, #fffdf5);
    border: 1px solid #f4d98a;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.cl-highlight-box h3 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 1.15rem;
    color: var(--gnit-navy, #0a2463);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-highlight-box h3 i {
    color: var(--gnit-gold, #f4a226);
}

.cl-highlight-box p {
    font-size: 15px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Objective list */
.cl-objective-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-objective-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.65;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .75);
    border-radius: 9px;
    border: 1px solid rgba(244, 162, 38, .2);
}

.cl-objective-list li i {
    color: var(--gnit-gold, #f4a226);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Steps list */
.cl-steps-list {
    margin: 0 0 20px 18px;
    padding: 0;
}

.cl-steps-list > li {
    font-size: 14.5px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.7;
    margin-bottom: 10px;
}

.cl-steps-list ul {
    margin: 8px 0 0 16px;
    list-style: disc;
}

.cl-steps-list ul li {
    font-size: 14px;
    color: var(--gnit-gray, #6b7a9a);
    margin-bottom: 4px;
}

.cl-steps-list a,
.cl-highlight-box a {
    color: var(--gnit-blue, #1a56c4);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.cl-steps-list a:hover,
.cl-highlight-box a:hover {
    color: var(--gnit-accent, #e74c3c);
}

/* Apply note */
.cl-apply-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(26, 86, 196, .07);
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
}

.cl-apply-note i {
    color: var(--gnit-blue, #1a56c4);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cl-apply-note strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gnit-navy, #0a2463);
    margin-bottom: 4px;
}

.cl-apply-note p {
    font-size: 13.5px;
    color: var(--gnit-text, #3d4a6b);
    margin: 0;
}

/* ================================================================
   NISP BLOCK  (inside EDC tab)
================================================================ */
.cl-nisp-block {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    margin-bottom: 28px;
    border-top: 3px solid var(--gnit-gold, #f4a226);
}

.cl-nisp-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cl-nisp-header > i {
    font-size: 32px;
    color: var(--gnit-gold, #f4a226);
    flex-shrink: 0;
    margin-top: 4px;
}

.cl-nisp-header h3 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 1.15rem;
    color: var(--gnit-navy, #0a2463);
    font-weight: 700;
    margin-bottom: 6px;
}

.cl-nisp-header p {
    font-size: 14px;
    color: var(--gnit-gray, #6b7a9a);
    line-height: 1.6;
    margin: 0;
}

.cl-nisp-block > p {
    font-size: 14.5px;
    color: var(--gnit-text, #3d4a6b);
    line-height: 1.75;
    margin-bottom: 20px;
}

/* ================================================================
   DOWNLOAD SECTION & CARDS
================================================================ */
.cl-download-section {
    margin-bottom: 32px;
}

.cl-subsection-title {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 1.05rem;
    color: var(--gnit-navy, #0a2463);
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-subsection-title i {
    color: var(--gnit-blue, #1a56c4);
}

.cl-download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    margin-bottom: 16px;
    transition: box-shadow .25s ease, transform .25s ease;
    border-left: 4px solid var(--gnit-blue, #1a56c4);
    flex-wrap: wrap;
}

.cl-download-card:hover {
    box-shadow: 0 6px 24px rgba(10, 36, 99, .12);
    transform: translateY(-2px);
}

.cl-download-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fff0f0, #ffe5e5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 22px;
    flex-shrink: 0;
}

.cl-download-info {
    flex: 1;
    min-width: 180px;
}

.cl-download-info h4 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--gnit-navy, #0a2463);
    margin-bottom: 4px;
}

.cl-download-info p {
    font-size: 13.5px;
    color: var(--gnit-gray, #6b7a9a);
    line-height: 1.55;
    margin: 0;
}

/* ================================================================
   YEAR GRID  (SLC year-wise club docs)
================================================================ */
.cl-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.cl-year-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    text-decoration: none;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
    border: 2px solid transparent;
}

.cl-year-card:hover {
    box-shadow: 0 6px 22px rgba(10, 36, 99, .14);
    transform: translateY(-3px);
    border-color: var(--gnit-blue, #1a56c4);
    background: var(--gnit-light, #eef2fb);
}

.cl-year-card i {
    font-size: 26px;
    color: #e74c3c;
    transition: transform .22s ease;
}

.cl-year-card:hover i {
    transform: scale(1.1);
}

.cl-year-card span {
    font-size: 12.5px;
    color: var(--gnit-gray, #6b7a9a);
    font-weight: 500;
    line-height: 1.4;
}

.cl-year-card strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--gnit-navy, #0a2463);
    font-family: var(--font-head, 'Georgia', serif);
}

/* ================================================================
   BUTTONS
================================================================ */
.cl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .22s ease;
    white-space: nowrap;
    letter-spacing: .2px;
}

/* Primary — navy fill */
.cl-btn-primary {
    background: linear-gradient(135deg, var(--gnit-navy, #0a2463), var(--gnit-blue, #1a56c4));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(26, 86, 196, .25);
}

.cl-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 86, 196, .38);
    transform: translateY(-2px);
    color: #fff;
}

/* Gold fill */
.cl-btn-gold {
    background: linear-gradient(135deg, var(--gnit-gold, #f4a226), #e8920e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(244, 162, 38, .30);
}

.cl-btn-gold:hover {
    box-shadow: 0 6px 20px rgba(244, 162, 38, .42);
    transform: translateY(-2px);
    color: #fff;
}

/* Outline */
.cl-btn-outline {
    background: transparent;
    color: var(--gnit-blue, #1a56c4);
    border-color: var(--gnit-blue, #1a56c4);
}

.cl-btn-outline:hover {
    background: var(--gnit-blue, #1a56c4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 86, 196, .22);
}

/* Button row */
.cl-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ================================================================
   ALUMNI TAB — Stats highlight
================================================================ */
.cl-alumni-highlight {
    margin-bottom: 36px;
}

.cl-alumni-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.cl-alumni-stat {
    background: #fff;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(10, 36, 99, .07);
    border-bottom: 3px solid var(--gnit-gold, #f4a226);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cl-alumni-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10, 36, 99, .13);
}

.cl-alumni-num {
    display: block;
    font-family: var(--font-head, 'Georgia', serif);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gnit-navy, #0a2463), var(--gnit-blue, #1a56c4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.cl-alumni-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gnit-gray, #6b7a9a);
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.35;
}

/* Alumni CTA banner */
.cl-alumni-cta {
    margin-top: 36px;
}

.cl-alumni-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--gnit-navy, #0a2463) 0%, var(--gnit-blue, #1a56c4) 100%);
    border-radius: 16px;
    padding: 32px 36px;
    color: #fff;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cl-alumni-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(244, 162, 38, .18) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, .05) 0%, transparent 40%);
    pointer-events: none;
}

.cl-alumni-cta-inner > i {
    font-size: 44px;
    color: rgba(255, 255, 255, .25);
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cl-alumni-cta-inner > div {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.cl-alumni-cta-inner h3 {
    font-family: var(--font-head, 'Georgia', serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.cl-alumni-cta-inner p {
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
    margin: 0;
}

.cl-alumni-cta-inner .cl-btn-gold {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
    .cl-tab-nav {
        position: static;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        padding: 8px;
        gap: 4px;
    }

    .cl-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .cl-tab-btn {
        padding: 9px 14px;
        font-size: 12.5px;
        flex-shrink: 0;
    }
}

@media (max-width: 700px) {
    .cl-section {
        padding: 40px 0 56px;
    }

    .cl-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cl-download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }

    .cl-download-card .cl-btn {
        width: 100%;
        justify-content: center;
    }

    .cl-alumni-cta-inner {
        flex-direction: column;
        padding: 24px 22px;
        gap: 16px;
    }

    .cl-alumni-cta-inner > i {
        font-size: 36px;
    }

    .cl-alumni-cta-inner .cl-btn-gold {
        width: 100%;
        justify-content: center;
    }

    .cl-content-block,
    .cl-highlight-box,
    .cl-nisp-block {
        padding: 20px 18px;
    }

    .cl-btn-row {
        flex-direction: column;
    }

    .cl-btn-row .cl-btn {
        justify-content: center;
    }

    .cl-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .cl-alumni-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .cl-alumni-stats {
        grid-template-columns: 1fr 1fr;
    }

    .cl-year-grid {
        grid-template-columns: 1fr 1fr;
    }
}


.cl-gallery-block {
    padding: 20px;
}

/* Title */
.cl-subsection-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Grid Layout */
.cl-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* Image Card */
.cl-photo-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cl-photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Image */
.cl-photo-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cl-photo-item:hover img {
    transform: scale(1.1);
}

/* Overlay text */
.cl-photo-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cl-photo-item:hover .cl-photo-overlay {
    opacity: 1;
}

.cl-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cl-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Wrapper for proper alignment */
.cl-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FIX: Proper image scaling */
.cl-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Caption */
.cl-lightbox-caption {
    color: #fff;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* Close button */
.cl-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
/* Mobile tweaks */
@media (max-width: 500px) {
    .cl-subsection-title {
        font-size: 20px;
    }
}

/* ================================================================
   EDC TAB — Mobile Fixes
================================================================ */
@media (max-width: 640px) {

    /* NISP button row — stack buttons vertically */
    #tab-edc .cl-btn-row {
        flex-direction: column;
        gap: 10px;
    }
    #tab-edc .cl-btn-row .cl-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    /* NISP block header — stack icon and text */
    #tab-edc .cl-nisp-header {
        flex-direction: column;
        gap: 10px;
    }

    /* Apply note — reduce padding */
    #tab-edc .cl-apply-note {
        flex-direction: column;
        padding: 12px 14px;
    }

    /* Highlight box padding */
    #tab-edc .cl-highlight-box {
        padding: 20px 18px;
    }

    /* NISP block padding */
    #tab-edc .cl-nisp-block {
        padding: 20px 18px;
    }

    /* Objective list items font size */
    #tab-edc .cl-objective-list li {
        font-size: 13.5px;
        padding: 9px 12px;
    }

    /* Gallery grid — 2 cols on small screens */
    #tab-edc .cl-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Steps list */
    #tab-edc .cl-steps-list {
        margin-left: 12px;
    }
    #tab-edc .cl-steps-list > li {
        font-size: 13.5px;
    }
}

@media (max-width: 400px) {
    #tab-edc .cl-photo-grid {
        grid-template-columns: 1fr;
    }
}