/* ===================================================
   GLOBAL (shared with homepage via style.css import)
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    color: #212529;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-hero {
    padding: 40px 0 60px;
}

.about-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.about-hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Team Section (About Page) */
.team-section {
    padding: 60px 0;
}

.team-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.team-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.team-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.team-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-card-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card-info .role {
    font-size: 0.82rem;
    color: #28a745;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-card-info p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Advisors Section */
.advisors-section {
    padding: 60px 0;
}

.advisors-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.advisor-card {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.advisor-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.advisor-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.advisor-card h6 {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.advisor-card p {
    font-size: 0.78rem;
    color: #e8734a;
    margin: 0;
}

/* Volunteers Section */
.volunteers-section {
    padding: 60px 0;
}

.volunteers-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.volunteer-card {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.volunteer-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.volunteer-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.volunteer-card h6 {
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0;
}

/* Join CTA */
.join-cta {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.join-cta h2 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.join-cta p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.93rem;
}

.btn-red {
    background: #dc3545;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    font-size: 0.93rem;
    transition: background 0.3s;
}

.btn-red:hover {
    background: #c82333;
    color: #fff;
}

/* ===================================================
   WORK PAGE
   =================================================== */
.work-page {
    padding: 60px 0 0;
    text-align: center;
}

.work-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.work-page .intro {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.8;
}

.work-block {
    padding: 60px 0;
}

.work-block img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.work-block h3 {
    font-weight: 700;
    margin-bottom: 15px;
}

.work-block p {
    color: #555;
    font-size: 0.93rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.work-block ul {
    color: #555;
    font-size: 0.88rem;
    padding-left: 20px;
}

.work-block ul li {
    margin-bottom: 8px;
}

.work-block .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ===================================================
   GALLERY PAGE
   =================================================== */
.gallery-page {
    padding: 40px 0 60px;
}

.gallery-page h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.gallery-page .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 0.93rem;
}

.gallery-section {
    margin-bottom: 40px;
}

.gallery-section h3 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

/* Masonry Grid */
.gallery-masonry {
    columns: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
   
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.masonry-item img {
    width: 100%;
    display: block;
  
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.88);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Lightbox Popup */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 80vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    overflow-x: auto;
    padding: 8px 20px;
    max-width: 80vw;
}

.lightbox-thumbnails img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumbnails img.active-thumb {
    opacity: 1;
    border-color: #fff;
}

.lightbox-thumbnails img:hover {
    opacity: 0.85;
}

/* ===================================================
   DONATE PAGE
   =================================================== */
.donate-page {
    padding: 40px 0 80px;
    text-align: center;
}

.donate-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.donate-page .subtitle {
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 0.93rem;
    line-height: 1.7;
}

.qr-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.qr-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: inline-block;
    transition: box-shadow 0.3s;
}

.qr-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.qr-card img {
    max-width: 300px;
    height: auto;
    display: block;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-page {
    padding: 40px 0 80px;
}

.contact-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-page .subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.93rem;
}

.contact-info {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
    height: 100%;
}

.contact-info-block {
    margin-bottom: 25px;
}

.contact-info-block:last-child {
    margin-bottom: 0;
}

.contact-info h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.contact-info a {
    color: #212529;
    text-decoration: underline;
    font-size: 0.88rem;
}

.contact-info a:hover {
    color: #e8734a;
}

.contact-info p {
    color: #555;
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.contact-form label {
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px 15px;
    font-size: 0.88rem;
    border-radius: 8px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: none;
    border-color: #212529;
    background: #fff;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-send {
    background: #212529;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.93rem;
    transition: background 0.3s;
}

.btn-send:hover {
    background: #000;
    color: #fff;
}

.form-note {
    color: #888;
    font-size: 0.82rem;
    margin-left: 15px;
    display: inline-block;
    vertical-align: middle;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
    .gallery-masonry {
        columns: 2;
    }

    .about-hero-img {
        height: 280px;
        margin-bottom: 30px;
    }

    .qr-card img {
        max-width: 250px;
    }
}

@media (max-width: 767px) {
    .gallery-masonry {
        columns: 2;
    }

    .masonry-item {
        margin-bottom: 10px;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .work-block {
        text-align: left;
    }

    .work-block img {
        height: 220px;
        margin-bottom: 25px;
    }

    .about-hero h2 {
        font-size: 1.4rem;
    }

    .contact-info {
        margin-bottom: 25px;
    }

    .qr-card img {
        max-width: 220px;
    }
}

@media (max-width: 575px) {
    .gallery-masonry {
        columns: 1;
    }

    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 92vw;
    }

    .lightbox-thumbnails img {
        width: 45px;
        height: 34px;
    }
}
