/* ===== VIDYA COACHINGS - GALLERY PAGE ===== */

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --dark: #1e293b;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--accent);
    color: var(--white);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.menu-toggle {
    font-size: 1.4rem;
    color: var(--white);
    cursor: pointer;
    display: none;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.mobile-menu a:hover {
    background: var(--light);
    color: var(--accent);
}

/* ===== GALLERY HERO ===== */
.gallery-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(var(--header-height) + 48px) 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.gallery-hero .container {
    position: relative;
    z-index: 1;
}

.gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.gallery-hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.gallery-hero p {
    opacity: 0.88;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 28px;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 12px;
    min-width: 120px;
}

.gallery-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1.2;
}

.gallery-stat span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ===== STICKY TABS ===== */
.gallery-tabs-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: var(--header-height);
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 2px solid transparent;
    color: var(--primary);
    padding: 11px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tab-btn i {
    font-size: 0.95rem;
}

.tab-btn .tab-count {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.tab-btn:hover {
    border-color: var(--primary);
    background: var(--white);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ===== GALLERY GRID ===== */
.gallery-section {
    padding: 40px 0 60px;
}

.section-block {
    display: none;
}

.section-block.active {
    display: block;
    animation: galleryFadeIn 0.45s ease;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: var(--gray-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(30, 58, 95, 0.18);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    background: rgba(30, 58, 95, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.photo-item:hover::after {
    opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-img-container img {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--accent);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    color: var(--white);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 22px;
    border-radius: 25px;
}

.lightbox-counter span {
    color: var(--accent);
    font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 28px 0;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer .tagline {
    color: var(--accent);
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.9rem;
}

.website-credit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.website-credit a {
    color: var(--accent);
    font-weight: 600;
}

.website-credit a:hover {
    color: var(--white);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 998;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .nav-btn { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .logo-img {
        height: 40px;
        width: 40px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .gallery-hero {
        padding: calc(var(--header-height) + 32px) 16px 28px;
    }

    .gallery-hero h1 {
        font-size: 1.75rem;
    }

    .gallery-stats {
        gap: 10px;
    }

    .gallery-stat {
        min-width: calc(50% - 10px);
        padding: 10px 14px;
        flex: 1 1 calc(50% - 10px);
    }

    .gallery-stat strong {
        font-size: 1.25rem;
    }

    .gallery-tabs {
        padding: 12px 8px;
        gap: 8px;
    }

    .tab-btn {
        padding: 9px 14px;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .tab-btn .tab-count {
        display: none;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 14px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .gallery-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        flex: none;
    }

    .tab-btn .tab-count {
        display: inline-block;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-stat {
        min-width: 100%;
    }
}
