/* ================================================================
   ourvideo.css  —  LNMS College Video Gallery Page
   Follows the same design system as home.css & principals_list.css:
     · CSS variables (blue / green tokens)
     · Poppins + Playfair Display + DM Sans
     · AOS-compatible fade-up pattern
     · Mini-hero identical to principals_list
   ================================================================ */

/* ── Font imports (deduped by browser if already loaded) ───────── */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ── Design tokens (mirror from home.css / principals_list.css) ── */
:root {
    --blue:        #1E3A8A;
    --blue-dark:   #162d6e;
    --blue-mid:    #2a4fa8;
    --blue-light:  #dbeafe;
    --green:       #22C55E;
    --green-dark:  #16a34a;
    --green-light: #dcfce7;
    --bg:          #F8FAFC;
    --card:        #ffffff;
    --text:        #0F172A;
    --text-muted:  #475569;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 10px rgba(15,23,42,.08);
    --shadow-md:   0 6px 24px rgba(15,23,42,.12);
    --shadow-lg:   0 16px 48px rgba(15,23,42,.18);
    --shadow-blue: 0 8px 28px rgba(30,58,138,.28);
    --shadow-green:0 8px 28px rgba(34,197,94,.30);
    --r-sm:        8px;
    --r-md:        14px;
    --r-lg:        20px;
    --r-xl:        28px;
    --r-pill:      50px;
    --t:           0.3s ease;
    --font:        'Poppins', 'Noto Sans Devanagari', sans-serif;
}

/* ================================================================
   1. MINI HERO — identical pattern to principals_list.css
   ================================================================ */
.vg-mini-hero {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1E3A8A 55%, #2a4fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

/* Noise overlay */
.vg-mini-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* Decorative rings */
.vg-mini-hero__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}
.vg-mini-hero__ring--lg {
    top: -90px;
    right: -90px;
    width: 340px;
    height: 340px;
    border: 64px solid rgba(30,58,138,.22);
}
.vg-mini-hero__ring--sm {
    bottom: -55px;
    left: -55px;
    width: 210px;
    height: 210px;
    border: 42px solid rgba(34,197,94,.10);
}

/* Animated grid lines */
.vg-mini-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: vgGridDrift 18s linear infinite;
}
@keyframes vgGridDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}

/* Content block */
.vg-mini-hero__body {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Breadcrumb */
.vg-mini-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: vgFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.vg-mini-hero__bc-link {
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}
.vg-mini-hero__bc-link:hover {
    color: var(--green);
    text-decoration: none;
}
.vg-mini-hero__bc-sep {
    color: rgba(255,255,255,.25);
    font-size: .78rem;
}
.vg-mini-hero__bc-current {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.80);
}

/* Eyebrow badge */
.vg-mini-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.45);
    color: var(--green);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(14px);
    animation: vgFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}
.vg-mini-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: vgPulse 2s ease-in-out infinite;
}

/* Heading */
.vg-mini-hero__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: vgFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.42s forwards;
}
.vg-mini-hero__heading em {
    font-style: normal;
    color: var(--green);
    position: relative;
}
.vg-mini-hero__heading em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    animation: vgUnderline 0.55s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}

/* Sub text */
.vg-mini-hero__sub {
    color: rgba(255,255,255,.62);
    font-size: clamp(.85rem, 1.6vw, 1rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    transform: translateY(16px);
    animation: vgFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.58s forwards;
}

/* Keyframes */
@keyframes vgFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes vgUnderline {
    to { transform: scaleX(1); }
}
@keyframes vgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

/* Responsive mini hero */
@media (max-width: 768px) {
    .vg-mini-hero { height: 260px; min-height: 220px; }
    .vg-mini-hero__ring--lg {
        width: 200px; height: 200px;
        border-width: 40px;
        top: -60px; right: -60px;
    }
}
@media (max-width: 480px) {
    .vg-mini-hero      { height: 230px; }
    .vg-mini-hero__sub { display: none; }
}

/* ================================================================
   2. AOS ANIMATION SUPPORT
   ================================================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.65s cubic-bezier(0.22,1,0.36,1),
        transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   3. PAGE SHELL
   ================================================================ */
.vg-area {
    background: var(--bg);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Dot-grid background texture */
.vg-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(30,58,138,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.vg-area .container {
    position: relative;
    z-index: 1;
}

/* ================================================================
   4. SECTION TITLE BLOCK
   ================================================================ */
.vg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}

.vg-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.vg-section-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(.92rem, 1.6vw, 1.05rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ================================================================
   5. VIDEO GRID
   ================================================================ */
.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ================================================================
   6. VIDEO CARD
   ================================================================ */
.vg-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
    position: relative;
}

.vg-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--blue-light);
    text-decoration: none;
    color: inherit;
}

/* ── Thumbnail wrapper ───────────────────────────────────────── */
.vg-card__thumb {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.vg-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
}

.vg-card:hover .vg-card__thumb img {
    transform: scale(1.07);
    opacity: 0.80;
}

/* Gradient scrim */
.vg-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(15,23,42,.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Duration badge (top-right) ─────────────────────────────── */
.vg-card__duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    pointer-events: none;
}

/* ── BIG Play button ─────────────────────────────────────────── */
.vg-card__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg-card__play-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(34,197,94,.92);
    border: 3px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.55rem;
    box-shadow: var(--shadow-green),
                0 2px 8px rgba(0,0,0,.25);
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
                background 0.25s ease,
                box-shadow 0.25s ease;
    /* Pulse ring */
    outline: 3px solid rgba(255,255,255,.25);
    outline-offset: 4px;
}

/* Play triangle icon offset for optical centre */
.vg-card__play-circle i {
    margin-left: 3px;
}

.vg-card:hover .vg-card__play-circle {
    transform: scale(1.14);
    background: rgba(22,163,74,.98);
    box-shadow: 0 12px 36px rgba(34,197,94,.55),
                0 4px 12px rgba(0,0,0,.3);
}

/* ── Card footer ─────────────────────────────────────────────── */
.vg-card__footer {
    padding: 18px 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-top: 1px solid var(--border);
}

.vg-card__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    margin-top: 2px;
    transition: background var(--t), color var(--t);
}

.vg-card:hover .vg-card__icon {
    background: var(--blue);
    color: #fff;
}

/* Alternate even cards: green icon tint */
.vg-card:nth-child(even) .vg-card__icon {
    background: var(--green-light);
    color: var(--green-dark);
}
.vg-card:nth-child(even):hover .vg-card__icon {
    background: var(--green-dark);
    color: #fff;
}
.vg-card:nth-child(even):hover .vg-card__title {
    color: var(--green-dark);
}

.vg-card__info {
    flex: 1;
    min-width: 0;
}

.vg-card__title {
    font-family: var(--font);
    font-size: clamp(.92rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin: 0 0 4px;
    transition: color var(--t);
}

.vg-card:hover .vg-card__title {
    color: var(--blue);
}

.vg-card__meta {
    font-family: 'DM Sans', sans-serif;
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vg-card__meta i {
    font-size: .7rem;
    color: var(--green);
}

/* Bottom accent bar on hover */
.vg-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.vg-card:nth-child(even)::after {
    background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
}
.vg-card:hover::after {
    transform: scaleX(1);
}

/* ================================================================
   7. EMPTY STATE
   ================================================================ */
.vg-empty {
    text-align: center;
    padding: 80px 20px;
}
.vg-empty__icon {
    font-size: 3.2rem;
    color: var(--border);
    margin-bottom: 18px;
}
.vg-empty__text {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-muted);
}

/* ================================================================
   8. VIDEO MODAL / PLAYER
   ================================================================ */
.vg-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,15,28,.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.vg-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

.vg-modal__inner {
    position: relative;
    width: 100%;
    max-width: 860px;
    transform: scale(0.92);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.vg-modal.is-open .vg-modal__inner {
    transform: scale(1);
}

.vg-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
    padding: 0;
    line-height: 1;
}
.vg-modal__close:hover {
    background: rgba(255,255,255,.24);
}

/* 16:9 responsive video wrapper */
.vg-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}
.vg-modal__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.vg-modal__caption {
    margin-top: 14px;
    text-align: center;
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
}

/* ================================================================
   9. RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .vg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}
@media (max-width: 767px) {
    .vg-area { padding: 60px 0 70px; }
    .vg-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .vg-card__play-circle {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
    }
    .vg-modal__close {
        top: -42px;
    }
}
@media (max-width: 480px) {
    .vg-grid { gap: 14px; }
    .vg-card__footer { padding: 14px 16px 16px; }
}
