/* ==========================================
   Hanumat Kripa Foundation - Gallery Page
========================================== */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.7;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.center {
    text-align: center;
}

/* Header */

/* .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(8, 44, 94, .94);
    backdrop-filter: blur(10px);
    transition: .3s;
}

.header.sticky {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 12px;
}

.logo h2 {
    font-size: 21px;
    line-height: 1.2;
}

.logo span {
    font-size: 11px;
    opacity: .8;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 22px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

nav a:hover,
nav a.active {
    color: #ffd54f;
}

.donate-btn {
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    padding: 11px 21px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: .3s;
}

.donate-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
} */ 

/* Hero

.page-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    background: url("../images/hero.jpg") center center / cover no-repeat;
    padding: 130px 0 80px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 50, 110, .86),
        rgba(0, 0, 0, .52)
    );
}

.page-hero-content {
    position: relative;
    color: #fff;
    max-width: 820px;
}

.eyebrow {
    color: #ffd54f;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-hero h1 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-hero h1 span {
    color: #ffd54f;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.8;
} */

/* updated hero */


.programs-hero {
    min-height: 650px;
    padding-top: 84px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.programs-hero-container {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    min-height: 566px;
}

.programs-hero-content {
    position: relative;
    z-index: 2;
    padding: 55px 30px 55px 0;
}

.hero-label {
    color: #c62828;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
}

.programs-hero-content h1 {
    color: #173d70;
    font-size: 52px;
    line-height: 1.18;
    margin-bottom: 22px;
}

.programs-hero-content h1 span {
    color: #173d70;
}

.hero-description {
    max-width: 580px;
    color: #526276;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.programs-hero-image {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px 0 0 18px;
    box-shadow: -15px 15px 35px rgba(0,0,0,.10);
}

.programs-hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 1;
    background: linear-gradient(to right, #f7f9fc, rgba(247,249,252,0));
}

.programs-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* General */

.section {
    padding: 85px 0;
}

.section-label {
    color: #0b5cab;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.title {
    color: #082d52;
    text-align: center;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 45px;
}

.section-intro {
    max-width: 780px;
    margin: -25px auto 0;
    text-align: center;
    color: #666;
}

.gallery-intro {
    padding-bottom: 55px;
}

/* Gallery */

.gallery-section {
    padding: 30px 0 85px;
    background: #f5f8fc;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    border: 1px solid #d9e3ed;
    background: #fff;
    color: #31506b;
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: .3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0b5cab;
    border-color: #0b5cab;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    transition: .35s;
}

.gallery-item.hidden {
    display: none;
}

.image-card {
    display: block;
    width: 100%;
    height: 285px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #dfe8ef;
    text-align: left;
}

.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s;
}

.image-card:hover img {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 45px 20px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    color: #fff;
    display: flex;
    flex-direction: column;
}

.image-overlay strong {
    font-size: 16px;
}

.image-overlay small {
    font-size: 12px;
    opacity: .9;
}

.gallery-note {
    max-width: 850px;
    margin: 35px auto 0;
    padding: 16px 20px;
    border-left: 4px solid #ff9800;
    background: #fff;
    color: #666;
    font-size: 13px;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 20, 40, .93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1000px;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content p {
    color: #fff;
    margin-top: 12px;
    font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,.25);
}

.lightbox-close {
    top: 20px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 70px;
    border-radius: 8px;
    font-size: 40px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* CTA */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(120deg, #082d52, #0b5cab);
    color: #fff;
    text-align: center;
}

.cta-section .section-label {
    color: #ffd54f;
}

.cta-section h2 {
    font-size: 34px;
    line-height: 1.35;
    margin-bottom: 15px;
}

.cta-section > .container > p:not(.section-label) {
    max-width: 750px;
    margin: 0 auto 28px;
    opacity: .92;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 13px 27px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: #ff9800;
    color: #fff;
}

.btn-primary:hover {
    background: #ffb300;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #0b3f7f;
}

.btn-light-outline {
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
}

.btn-light-outline:hover {
    background: #fff;
    color: #0b3f7f;
}

/* Footer */

.footer {
    background: #061f38;
    color: #fff;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.footer h4 {
    margin-bottom: 15px;
}

.footer p {
    color: #c7d3df;
    max-width: 430px;
    font-size: 14px;
}

.footer a {
    display: block;
    color: #c7d3df;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer a:hover {
    color: #ffd54f;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    padding: 18px 20px;
    color: #b7c5d3;
    font-size: 13px;
}

/* Scroll Top */

#topBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #ff9800;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1000;
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Animation */

/* .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: none;
} */

/* Responsive */

 @media (max-width: 1100px) {
    nav ul {
        gap: 14px;
    }

    nav a {
        font-size: 13px;
    }

    .donate-btn {
        padding: 10px 17px;
    }

    .page-hero h1 {
        font-size: 45px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 900px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .donate-btn {
        display: none;
    }

    #navbar.show {
        display: block;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #0b3f7f;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,.15);
    }

    #navbar.show ul {
        flex-direction: column;
        gap: 0;
    }

    #navbar.show li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    #navbar.show a {
        display: block;
        padding: 12px 5px;
    }

    .page-hero {
        min-height: 58vh;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lightbox {
        padding: 35px 55px;
    }
}

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo h2 {
        font-size: 16px;
    }

    .logo span {
        font-size: 9px;
    }

    .page-hero {
        min-height: 62vh;
        padding-top: 110px;
    }

    .page-hero h1 {
        font-size: 33px;
    }

    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .section {
        padding: 65px 0;
    }

    .title {
        font-size: 29px;
        margin-bottom: 32px;
    }

    .gallery-section {
        padding-top: 15px;
    }

    .gallery-filters {
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 8px 13px;
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-card {
        height: 250px;
    }

    .lightbox {
        padding: 45px 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 55px;
        font-size: 32px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .cta-section h2 {
        font-size: 27px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #topBtn {
        right: 18px;
        bottom: 18px;
    }
} 
 /* updated responsive */

 /* Responsive */
@media (max-width: 950px) {
    .programs-hero {
        padding-top: 74px;
    }

    .programs-hero-container {
        grid-template-columns: 1fr;
        padding: 55px 0;
    }

    .programs-hero-content {
        padding: 20px 0 40px;
    }

    .programs-hero-image {
        height: 400px;
        border-radius: 14px;
    }

    .detail-grid {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 20px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .programs-hero-container {
        width: 92%;
        padding: 40px 0 50px;
    }

    .programs-hero-content h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 15px;
    }

    .programs-hero-image {
        height: 300px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-number {
        font-size: 35px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .program-list {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .programs-cta .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .programs-cta .cta-buttons .btn {
        text-align: center;
    }
}