/* ═══════════════════════════════════════════════════════════════
   GIMS Vidya Setu — Dedicated Stylesheet
   Scoped under .vs-page to avoid any bleed into shared site CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --vs-primary: #0D7C66;
    --vs-primary-dark: #095E4E;
    --vs-primary-light: #E8F5F1;
    --vs-secondary: #0A9396;
    --vs-accent: #40B98A;
    --vs-surface: #F8FAF9;
    --vs-surface-alt: #F0F5F3;
    --vs-card: #FFFFFF;
    --vs-text: #1B2B3A;
    --vs-text-secondary: #5A6B7A;
    --vs-text-muted: #8A97A2;
    --vs-border: rgba(13, 124, 102, 0.10);
    --vs-border-light: rgba(0, 0, 0, 0.06);
    --vs-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --vs-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --vs-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --vs-radius: 12px;
    --vs-radius-sm: 8px;
    --vs-radius-lg: 16px;
    --vs-radius-pill: 100px;
    --vs-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vs-font-heading: 'Playfair Display', Georgia, serif;
    --vs-nav-width: 64px;
}

/* ── Base Reset for VS Page ───────────────────────────────── */
.vs-page {
    font-family: var(--vs-font-body);
    color: var(--vs-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.vs-page *,
.vs-page *::before,
.vs-page *::after {
    box-sizing: border-box;
}

.vs-page img {
    max-width: 100%;
    height: auto;
}

/* ── Hero Section ─────────────────────────────────────────── */
.vs-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.vs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(9, 94, 78, 0.88) 0%,
        rgba(13, 124, 102, 0.82) 40%,
        rgba(10, 147, 150, 0.75) 100%
    );
    z-index: 1;
}

.vs-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 24px;
}

.vs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--vs-radius-pill);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: vs-fadeDown 0.8s ease-out;
}

.vs-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: vs-pulse 2s infinite;
}

.vs-hero__title {
    font-family: var(--vs-font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.15;
    animation: vs-fadeDown 0.8s ease-out 0.1s both;
}

.vs-hero__subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 32px;
    animation: vs-fadeDown 0.8s ease-out 0.2s both;
}

.vs-hero__stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: vs-fadeDown 0.8s ease-out 0.3s both;
}

.vs-hero__stat {
    text-align: center;
}

.vs-hero__stat-value {
    font-family: var(--vs-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.vs-hero__stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vs-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.vs-hero__scroll::after {
    content: '';
    width: 4px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    margin-top: 6px;
    animation: vs-scrollDot 2s infinite;
}

/* ── Navigation Rail ──────────────────────────────────────── */
.vs-nav-rail {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--vs-nav-width);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--vs-border);
    border-radius: 0 var(--vs-radius) var(--vs-radius) 0;
    box-shadow: var(--vs-shadow-md);
}

.vs-nav-rail__item {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--vs-radius-sm);
    color: var(--vs-text-secondary);
    text-decoration: none;
    transition: all var(--vs-transition);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 18px;
}

.vs-nav-rail__item:hover {
    background: var(--vs-primary-light);
    color: var(--vs-primary);
}

.vs-nav-rail__item.active {
    background: var(--vs-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 124, 102, 0.3);
}

.vs-nav-rail__tooltip {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vs-text);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%) translateX(-4px);
}

.vs-nav-rail__item:hover .vs-nav-rail__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ── Section Base ─────────────────────────────────────────── */
.vs-section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.vs-section--alt {
    background: var(--vs-surface);
}

.vs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* With nav rail offset on desktop */
@media (min-width: 1024px) {
    .vs-container {
        margin-left: calc(var(--vs-nav-width) + 40px);
        margin-right: 40px;
        max-width: 1100px;
    }
}

@media (min-width: 1300px) {
    .vs-container {
        margin-left: auto;
        margin-right: auto;
        padding-left: calc(var(--vs-nav-width) + 40px);
    }
}

.vs-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vs-primary);
    margin-bottom: 8px;
}

.vs-section__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--vs-primary);
    border-radius: 1px;
}

.vs-section__title {
    font-family: var(--vs-font-heading);
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 12px;
    line-height: 1.25;
}

.vs-section__subtitle {
    font-size: 16px;
    color: var(--vs-text-secondary);
    max-width: 600px;
    margin: 0 0 40px;
    line-height: 1.65;
}

/* ── Cards ────────────────────────────────────────────────── */
.vs-card {
    background: var(--vs-card);
    border: 1px solid var(--vs-border-light);
    border-radius: var(--vs-radius);
    padding: 28px;
    box-shadow: var(--vs-shadow-sm);
    transition: box-shadow var(--vs-transition), transform var(--vs-transition);
}

.vs-card:hover {
    box-shadow: var(--vs-shadow-md);
}

.vs-card--accent {
    border-left: 4px solid var(--vs-primary);
}

.vs-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vs-primary-light);
    color: var(--vs-primary);
    border-radius: var(--vs-radius-sm);
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.vs-card__title {
    font-family: var(--vs-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 8px;
}

.vs-card__text {
    font-size: 15px;
    color: var(--vs-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ── About Section ────────────────────────────────────────── */
.vs-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.vs-about__text p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--vs-text-secondary);
    margin: 0 0 16px;
}

.vs-about__text ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.vs-about__text li {
    font-size: 15px;
    color: var(--vs-text-secondary);
    margin-bottom: 6px;
    line-height: 1.6;
}

.vs-about__image-frame {
    border-radius: var(--vs-radius-lg);
    overflow: hidden;
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow-md);
}

.vs-about__image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.vs-about__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.vs-about__photo-card {
    border-radius: var(--vs-radius);
    overflow: hidden;
    background: var(--vs-surface-alt);
    box-shadow: var(--vs-shadow-sm);
    transition: transform var(--vs-transition), box-shadow var(--vs-transition);
}

.vs-about__photo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vs-shadow-md);
}

.vs-about__photo-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    background: var(--vs-surface-alt);
}

.vs-about__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

/* ── Courses Section ──────────────────────────────────────── */
.vs-courses__tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 4px;
    background: var(--vs-surface-alt);
    border-radius: var(--vs-radius-sm);
    border: 1px solid var(--vs-border);
}

.vs-courses__tab {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vs-text-secondary);
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--vs-transition);
    white-space: nowrap;
}

.vs-courses__tab:hover {
    color: var(--vs-primary);
    background: rgba(13, 124, 102, 0.06);
}

.vs-courses__tab.active {
    background: var(--vs-card);
    color: var(--vs-primary);
    box-shadow: var(--vs-shadow-sm);
    font-weight: 700;
}

.vs-courses__panel {
    display: none;
}

.vs-courses__panel.active {
    display: block;
    animation: vs-fadeIn 0.3s ease;
}

/* Premium Table */
.vs-table-wrap {
    border-radius: var(--vs-radius);
    overflow: hidden;
    border: 1px solid var(--vs-border);
    box-shadow: var(--vs-shadow-sm);
}

.vs-table-wrap .table {
    margin: 0;
    border: none;
    font-size: 14.5px;
}

.vs-table-wrap .table thead {
    background: var(--vs-primary);
}

.vs-table-wrap .table thead th {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}

.vs-table-wrap .table thead th:last-child {
    border-right: none;
}

.vs-table-wrap .table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    border-color: var(--vs-border);
    color: var(--vs-text-secondary);
}

.vs-table-wrap .table tbody tr:nth-child(even) {
    background: var(--vs-surface);
}

.vs-table-wrap .table tbody tr:hover {
    background: var(--vs-primary-light);
}

.vs-table-note {
    font-size: 13.5px;
    color: var(--vs-text-muted);
    margin-top: 16px;
    line-height: 1.65;
    font-style: italic;
}

/* ── Admissions Section ───────────────────────────────────── */
.vs-admissions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.vs-download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--vs-card);
    border: 1px solid var(--vs-border-light);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow-sm);
    transition: all var(--vs-transition);
}

.vs-download-card:hover {
    box-shadow: var(--vs-shadow-md);
    transform: translateY(-2px);
}

.vs-download-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vs-primary), var(--vs-accent));
    color: #fff;
    border-radius: var(--vs-radius);
    font-size: 24px;
    flex-shrink: 0;
}

.vs-download-card__info {
    flex: 1;
}

.vs-download-card__title {
    font-weight: 700;
    font-size: 16px;
    color: var(--vs-text);
    margin: 0 0 4px;
}

.vs-download-card__meta {
    font-size: 13px;
    color: var(--vs-text-muted);
    margin: 0;
}

.vs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--vs-font-body);
    border: none;
    border-radius: var(--vs-radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--vs-transition);
    line-height: 1.4;
}

.vs-btn--primary {
    background: var(--vs-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 124, 102, 0.25);
}

.vs-btn--primary:hover {
    background: var(--vs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 124, 102, 0.35);
    color: #fff;
}

.vs-btn--outline {
    background: transparent;
    color: var(--vs-primary);
    border: 1.5px solid var(--vs-primary);
}

.vs-btn--outline:hover {
    background: var(--vs-primary);
    color: #fff;
}

.vs-btn--sm {
    padding: 7px 18px;
    font-size: 13px;
}

/* ── Timeline (News & Events) ─────────────────────────────── */
.vs-timeline {
    position: relative;
    padding-left: 32px;
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vs-primary-light) transparent;
}

.vs-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--vs-primary-light), var(--vs-border));
}

.vs-timeline__year {
    position: relative;
    font-family: var(--vs-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--vs-primary-dark);
    margin: 28px 0 16px;
    padding-left: 4px;
}

.vs-timeline__year::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--vs-primary);
    border: 3px solid var(--vs-primary-light);
    border-radius: 50%;
}

.vs-timeline__item {
    position: relative;
    margin-bottom: 20px;
}

.vs-timeline__item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 16px;
    width: 10px;
    height: 10px;
    background: var(--vs-accent);
    border: 2px solid var(--vs-card);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(64, 185, 138, 0.15);
}

.vs-timeline__card {
    background: var(--vs-card);
    border: 1px solid var(--vs-border-light);
    border-radius: var(--vs-radius);
    padding: 18px 22px;
    box-shadow: var(--vs-shadow-sm);
    transition: all var(--vs-transition);
}

.vs-timeline__card:hover {
    box-shadow: var(--vs-shadow-md);
    transform: translateX(4px);
}

.vs-timeline__title {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--vs-text);
    margin: 0 0 6px;
}

.vs-timeline__meta {
    font-size: 12.5px;
    color: var(--vs-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-timeline__badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--vs-primary);
    background: var(--vs-primary-light);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-pill);
}

.vs-timeline__desc {
    font-size: 14.5px;
    color: var(--vs-text-secondary);
    line-height: 1.65;
    margin: 0 0 12px;
}

.vs-timeline__pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vs-primary);
    border: 1.5px solid var(--vs-primary);
    border-radius: var(--vs-radius-pill);
    text-decoration: none;
    transition: all var(--vs-transition);
    background: transparent;
}

.vs-timeline__pdf:hover {
    background: var(--vs-primary);
    color: #fff;
}

/* ── Calendar Section ─────────────────────────────────────── */
.vs-cal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.vs-cal__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vs-text-secondary);
}

.vs-cal__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vs-cal__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    flex-wrap: wrap;
}

.vs-cal__controls-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vs-cal__month-title {
    font-family: var(--vs-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--vs-text);
    margin: 0;
    text-align: center;
    flex: 1;
}

.vs-cal__btn {
    border: 1px solid var(--vs-border);
    background: var(--vs-card);
    color: var(--vs-primary);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--vs-font-body);
    padding: 8px 16px;
    border-radius: var(--vs-radius-pill);
    cursor: pointer;
    transition: all var(--vs-transition);
}

.vs-cal__btn:hover {
    background: var(--vs-primary);
    color: #fff;
    border-color: var(--vs-primary);
}

.vs-cal__btn--solid {
    background: var(--vs-primary);
    color: #fff;
    border-color: var(--vs-primary);
}

.vs-cal__btn--solid:hover {
    background: var(--vs-primary-dark);
}

.vs-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.vs-cal__weekdays span {
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--vs-text-muted);
    text-transform: uppercase;
    padding: 8px 0;
}

.vs-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.vs-cal__day {
    min-height: 90px;
    background: var(--vs-card);
    border: 1px solid var(--vs-border-light);
    border-radius: var(--vs-radius-sm);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    transition: border-color var(--vs-transition);
}

.vs-cal__day:hover {
    border-color: var(--vs-border);
}

.vs-cal__day--out {
    background: var(--vs-surface);
    opacity: 0.45;
}

.vs-cal__day--today {
    border-color: var(--vs-primary);
    box-shadow: inset 0 0 0 2px rgba(13, 124, 102, 0.12);
}

.vs-cal__day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--vs-text);
}

.vs-cal__event-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform 0.15s ease;
}

.vs-cal__event-badge:hover {
    transform: translateY(-1px);
    filter: brightness(0.92);
}

/* Calendar Modal */
.vs-cal__modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 28, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vs-cal__modal-overlay.show {
    display: flex;
}

.vs-cal__modal {
    background: var(--vs-card);
    border-radius: var(--vs-radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 28px;
    position: relative;
    box-shadow: var(--vs-shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: vs-modalIn 0.25s ease;
}

.vs-cal__modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--vs-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color var(--vs-transition);
}

.vs-cal__modal-close:hover {
    color: var(--vs-text);
}

.vs-cal__modal h3 {
    font-family: var(--vs-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 4px;
    padding-right: 30px;
}

.vs-cal__modal-date {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--vs-primary);
    margin-bottom: 14px;
}

.vs-cal__modal-desc {
    font-size: 14.5px;
    color: var(--vs-text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 18px;
}

/* ── Gallery Section ──────────────────────────────────────── */
.vs-gallery__grid {
    columns: 3;
    column-gap: 16px;
}

.vs-gallery__item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
    border-radius: var(--vs-radius);
    overflow: hidden;
    background: var(--vs-surface-alt);
    box-shadow: var(--vs-shadow-sm);
    cursor: pointer;
    transition: all var(--vs-transition);
}

.vs-gallery__item:hover {
    box-shadow: var(--vs-shadow-md);
    transform: translateY(-3px);
}

.vs-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: var(--vs-surface-alt);
    transition: transform 0.4s ease;
}

.vs-gallery__item:hover img {
    transform: scale(1.03);
}

.vs-gallery__item--hidden {
    display: none;
}

.vs-gallery__item--hidden.show {
    display: inline-block;
    animation: vs-fadeIn 0.4s ease;
}

/* Lightbox */
.vs-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
}

.vs-lightbox.show {
    display: flex;
}

.vs-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--vs-radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: vs-modalIn 0.3s ease;
}

.vs-lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3001;
}

.vs-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vs-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3001;
}

.vs-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vs-lightbox__nav--prev { left: 20px; }
.vs-lightbox__nav--next { right: 20px; }

.vs-lightbox__counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    z-index: 3001;
}

/* ── Contact Section ──────────────────────────────────────── */
.vs-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.vs-contact__card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.vs-contact__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vs-primary-light);
    color: var(--vs-primary);
    border-radius: var(--vs-radius);
    font-size: 22px;
    flex-shrink: 0;
}

.vs-contact__info h4 {
    font-family: var(--vs-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 6px;
}

.vs-contact__info p {
    font-size: 14.5px;
    color: var(--vs-text-secondary);
    margin: 0 0 4px;
    line-height: 1.6;
}

.vs-contact__info a {
    color: var(--vs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--vs-transition);
}

.vs-contact__info a:hover {
    color: var(--vs-primary-dark);
    text-decoration: underline;
}

.vs-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    margin-top: 10px;
    border-radius: var(--vs-radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
    transition: all var(--vs-transition);
}

.vs-instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.4);
    color: #fff;
}

/* ── Popup Modal ──────────────────────────────────────────── */
.vs-popup__overlay {
    background: linear-gradient(135deg, var(--vs-primary-dark), var(--vs-accent));
    border-radius: var(--vs-radius-lg);
    overflow: hidden;
    box-shadow: var(--vs-shadow-lg);
}

.vs-popup__header {
    border: none;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
}

.vs-popup__title {
    margin: 0;
    font-family: var(--vs-font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 22px;
}

.vs-popup__subtitle {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    color: #fff;
}

.vs-popup__body {
    padding: 28px;
    background: var(--vs-surface);
}

.vs-popup__card {
    position: relative;
    background: var(--vs-card);
    border-radius: var(--vs-radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--vs-shadow-md);
    border-top: 4px solid var(--vs-primary);
}

.vs-popup__registration-badge {
    position: absolute;
    top: -14px;
    right: -14px;
    background: linear-gradient(135deg, #ff3d3d, #ff7a18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--vs-radius-pill);
    letter-spacing: 0.6px;
    box-shadow: 0 8px 20px rgba(255, 61, 61, 0.4);
    animation: vs-pulse 1.7s infinite;
}

.vs-popup__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--vs-radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--vs-primary-dark);
    background: var(--vs-primary-light);
    border: 1px solid var(--vs-accent);
}

.vs-popup__status-dot {
    width: 8px;
    height: 8px;
    background: #19c37d;
    border-radius: 50%;
    box-shadow: 0 0 8px #19c37d;
    animation: vs-pulse 2s infinite;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes vs-fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes vs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.06); }
}

@keyframes vs-scrollDot {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

@keyframes vs-modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Mobile Navigation (Bottom Bar) ───────────────────────── */
@media (max-width: 1023px) {
    .vs-nav-rail {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0 8px;
        border-radius: var(--vs-radius) var(--vs-radius) 0 0;
        border-right: none;
        border-top: 1px solid var(--vs-border);
        gap: 0;
    }

    .vs-nav-rail__item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .vs-nav-rail__tooltip {
        display: none;
    }

    .vs-container {
        padding: 0 16px;
    }

    .vs-section {
        padding: 56px 0;
        scroll-margin-top: 60px;
    }

    /* Extra bottom padding for last section to clear mobile nav */
    .vs-page > main > section:last-of-type {
        padding-bottom: 100px;
    }
}

/* ── Responsive: Tablet ───────────────────────────────────── */
@media (max-width: 768px) {
    .vs-about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vs-about__cards {
        grid-template-columns: 1fr;
    }

    .vs-about__photos {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .vs-about__photo-card img {
        height: 120px;
    }

    .vs-admissions__grid {
        grid-template-columns: 1fr;
    }

    .vs-contact__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vs-gallery__grid {
        columns: 2;
        column-gap: 10px;
    }

    .vs-gallery__item {
        margin-bottom: 10px;
    }

    .vs-hero__stats {
        gap: 20px;
    }

    .vs-cal__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .vs-cal__controls-left {
        justify-content: center;
    }

    .vs-cal__month-title {
        font-size: 17px;
    }
}

/* ── Responsive: Mobile ───────────────────────────────────── */
@media (max-width: 575px) {
    .vs-section {
        padding: 40px 0;
    }

    .vs-section__title {
        font-size: 26px;
    }

    .vs-hero {
        min-height: 400px;
    }

    .vs-hero__title {
        font-size: 32px;
    }

    .vs-hero__stat-value {
        font-size: 22px;
    }

    .vs-courses__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .vs-cal__day {
        min-height: 60px;
        padding: 4px;
    }

    .vs-cal__day-num {
        font-size: 11px;
    }

    .vs-cal__event-badge {
        font-size: 9px;
        padding: 1px 4px;
    }

    .vs-cal__weekdays span {
        font-size: 10px;
    }

    .vs-gallery__grid {
        columns: 2;
        column-gap: 8px;
    }

    .vs-gallery__item {
        margin-bottom: 8px;
    }

    .vs-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .vs-lightbox__nav--prev { left: 10px; }
    .vs-lightbox__nav--next { right: 10px; }

    .vs-download-card {
        flex-direction: column;
        text-align: center;
    }

    .vs-contact__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── Scrollbar Styling ────────────────────────────────────── */
.vs-page ::-webkit-scrollbar {
    width: 6px;
}

.vs-page ::-webkit-scrollbar-track {
    background: transparent;
}

.vs-page ::-webkit-scrollbar-thumb {
    background: var(--vs-primary-light);
    border-radius: 3px;
}

.vs-page ::-webkit-scrollbar-thumb:hover {
    background: var(--vs-accent);
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
    .vs-nav-rail,
    .vs-hero__scroll,
    .vs-lightbox {
        display: none !important;
    }

    .vs-section {
        padding: 20px 0;
        break-inside: avoid;
    }
}
