/* ==========================================================================
   video_gallery.css — Sneh Shikshan Avam Manav Seva Sansthan (Rewa, MP)
   Video Gallery Page Styling
   ========================================================================== */

:root {
    --orange:        #ffa500;
    --orange-dark:   #e69500;
    --navy:          #1a2c4e;
    --navy-dark:     #0f1c34;
    --navy-light:    #2a3f66;
    --white:         #ffffff;
    --text-dark:     #222222;
    --text-muted:    #667085;
    --bg-soft:       #f7f9fc;
    --green:         #10b981;
    --blue:          #3b82f6;
    --pink:          #ec4899;
    --red:           #ef4444;
    --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.15);
    --radius:        14px;
}

/* -------------------- Utility -------------------- */
.section-pad { padding: 70px 0; }

.section-tag {
    display: inline-block;
    background: rgba(255, 165, 0, 0.15);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-head { margin-bottom: 40px; }

/* -------------------- Buttons -------------------- */
.btn-brand {
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 700;
    border: 2px solid var(--orange);
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 44, 78, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* ==========================================================================
   PAGE HERO (shared)
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 165, 0, 0.20), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 165, 0, 0.15), transparent 45%);
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.03) 0 20px,
            transparent 20px 40px);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    justify-content: center;
    margin: 0;
    background: transparent;
    padding: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }
.page-breadcrumb .breadcrumb-item.active { color: var(--orange); font-weight: 700; }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1;
}

.page-breadcrumb i { margin-right: 4px; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: "";
    position: absolute;
    top: -50px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stats-item:hover { transform: translateY(-3px); }

.stats-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.35);
}

.stats-info { text-align: left; }

.stats-info h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 2px;
    line-height: 1;
}

.stats-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   VIDEO GALLERY SECTION
   ========================================================================== */
.video-gallery-section { background: var(--bg-soft); }

/* -------------------- Filter Bar -------------------- */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid #e5e9f0;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn i {
    color: var(--orange);
    font-size: 14px;
    transition: color 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.35);
}

.filter-btn.active i { color: var(--white); }

.filter-count {
    background: rgba(26, 44, 78, 0.10);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    line-height: 1.5;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* Results Info */
.results-info {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
    text-align: center;
}

.results-info b { color: var(--navy); font-weight: 700; }

/* ==========================================================================
   VIDEO GRID
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.video-item {
    transition: transform 0.35s ease;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.35s ease;
    aspect-ratio: 16 / 9;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-card:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

/* Video Thumbnail */
.video-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.video-card:hover .video-img { transform: scale(1.06); }

/* Duration Badge */
.video-duration {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.video-duration i { font-size: 11px; color: var(--orange); }

/* Category Badge */
.video-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.cat-events   { background: var(--orange); }
.cat-students { background: var(--green); }
.cat-awards   { background: var(--pink); }

/* Play Button (center) */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.95);
    color: var(--white);
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(255, 165, 0, 0.5);
    transition: all 0.35s ease;
    z-index: 3;
    padding-left: 4px; /* optical center for play icon */
}

.play-ripple {
    position: absolute;
    inset: -8px;
    border: 3px solid rgba(255, 165, 0, 0.55);
    border-radius: 50%;
    animation: playPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes playPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0;   }
}

.video-card:hover .play-btn {
    background: var(--white);
    color: var(--orange);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 44, 78, 0.95) 0%,
        rgba(26, 44, 78, 0.65) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    color: var(--white);
    display: flex;
    align-items: flex-end;
    padding: 26px 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.video-card:hover .video-overlay,
.video-card:focus-visible .video-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(15px);
    transition: transform 0.4s ease;
    width: 100%;
}

.video-card:hover .overlay-content { transform: translateY(0); }

.overlay-icon {
    font-size: 28px;
    color: var(--orange);
    margin-bottom: 8px;
    display: block;
}

.overlay-content h4 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 4px;
    line-height: 1.35;
}

.overlay-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 12px;
    font-weight: 500;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.video-card:hover .watch-btn {
    background: var(--white);
    color: var(--orange-dark);
    gap: 10px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.no-results i {
    font-size: 54px;
    color: #cbd5e1;
    margin-bottom: 18px;
    display: inline-block;
}

.no-results h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.no-results p { font-size: 14px; margin: 0; }

/* Note */
.list-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 165, 0, 0.08);
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    padding: 14px 20px;
    margin-top: 30px;
    font-size: 13.5px;
    color: #7c5b19;
    line-height: 1.6;
}

.list-note > i {
    color: #ff0000;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.list-note a {
    color: var(--orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.list-note a:hover { text-decoration: underline; }

/* ==========================================================================
   VIDEO LIGHTBOX — FULLY WORKING
   ========================================================================== */
.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: scale(0.94);
    transition: transform 0.35s ease;
    position: relative;
}

.video-lightbox.open .video-container {
    transform: scale(1);
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lightbox-caption {
    margin-top: 18px;
    text-align: center;
    color: var(--white);
    max-width: 720px;
}

.lightbox-caption h5 {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 6px;
}

.lightbox-counter {
    display: inline-block;
    background: rgba(255, 165, 0, 0.25);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

/* Close / Prev / Next buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 165, 0, 0.9);
    color: var(--white);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 