/* ======================================
   GALLERY PAGE - GYANDEEP HOSPITAL
   ====================================== */

/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-header .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(27,58,122,0.92), rgba(42,172,226,0.75));
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header-content { text-align: center; }

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item { color: rgba(255,255,255,0.8); font-size: 1rem; }
.breadcrumb-item a { color: var(--white); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb-item a:hover { color: var(--primary-cyan); }
.breadcrumb-item.active { color: var(--primary-cyan); }
.breadcrumb-item + .breadcrumb-item::before { content: "→"; color: rgba(255,255,255,0.6); }


/* ===== SECTION COMMON ===== */
.section-padding { padding: 80px 0; }
.bg-light { background: var(--light-bg) !important; }

.section-subtitle-badge {
    display: inline-block;
    background: rgba(42,172,226,0.12);
    color: var(--primary-cyan);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== GALLERY INTRO ===== */
.gallery-intro { padding-bottom: 30px; }


/* ===== FILTER BUTTONS ===== */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 26px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.filter-btn.active {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(27,58,122,0.25);
}


/* ===== GALLERY GRID ===== */
.gallery-grid { transition: all 0.3s ease; }

.gallery-item {
    transition: all 0.4s ease;
    width: 100%;
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: var(--white);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(27,58,122,0.15), rgba(27,58,122,0.85));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: var(--white);
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-cyan);
}

.gallery-overlay-content p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}


/* ===== NO RESULTS ===== */
.gallery-no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}


/* ===== LIGHTBOX ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,20,50,0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    animation: lightboxIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
}


/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy), #1a4faa);
    color: var(--white);
}

.cta-wrapper {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
}

.cta-wrapper h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-wrapper p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin: 0;
}

.btn-white-custom {
    background: var(--white);
    color: var(--primary-navy);
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-white-custom:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42,172,226,0.4);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-2px);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .page-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .page-header { padding: 100px 0 60px; }
    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    .gallery-card img { height: 220px; }

    .gallery-filters { gap: 8px; }
    .filter-btn { padding: 8px 18px; font-size: 0.85rem; }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .cta-wrapper { padding: 30px 20px; text-align: center; }
    .cta-wrapper h2 { font-size: 1.5rem; }

    .btn-white-custom,
    .btn-outline-white {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-header { padding: 80px 0 50px; }
    .page-title { font-size: 1.75rem; }
    .section-title { font-size: 1.6rem; }
    .gallery-card img { height: 200px; }

    .lightbox-prev, .lightbox-next {
        width: 40px; height: 40px;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 12px; right: 12px;
        width: 42px; height: 42px;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}