﻿/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Global Styles */
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    scroll-behavior: smooth;
    padding-top: 90px; /* prevents content hiding under fixed navbar */
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        height: 60px;
        width: auto;
    }

.navbar-nav {
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    padding-left: 50px; /* space between logo and first link */
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #333 !important;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
}

    .nav-link:hover {
        color: #6A0DAD !important;
    }

    /* Blue pill background for active section */
    .nav-link.active {
        background-color: #1E90FF !important;
        color: #000 !important; /* Black text */
        font-weight: 700;
    }

.donate-btn {
    background-color: #28a745 !important;
    color: #fff !important;
    display: inline-block;
    width: 120px;
    text-align: center;
    padding: 14px 0;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.15rem;
    transition: background 0.2s ease-in-out;
}

    .donate-btn:hover {
        background-color: #218838 !important;
    }

    /* Donate button stays green even when active */
    .donate-btn.active {
        background-color: #28a745 !important;
        color: #fff !important;
        font-weight: 600 !important;
    }

#hrTab {
    display: none;
}

/* Responsive navbar improvements */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand img {
        height: 44px;
        max-width: 100%;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .nav-item {
        margin: 0.3rem 0 !important;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 12px;
    }
}

/* Section-specific styles */
#hero {
    background-color: white;
    padding: 0;
    text-align: center;
}

.hero-container {
    padding: 0;
    margin: 0;
}

.hero-image-container {
    position: relative;
    width: 100vw;
    height: 450px;
    margin: 0;
    overflow: hidden;
}

.hero-image {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.hero-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
}

    .hero-image-text strong {
        white-space: nowrap;
        font-size: 3rem;
    }

.hero-image-subtext {
    display: block;
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 0.5rem;
}

/* Team Section */
.team-section {
    padding: 3rem 2rem 5rem 2rem;
    background-color: #fff;
}

    .team-section h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 2rem;
        text-align: center;
    }

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
}

.team-card-wrapper {
    border-radius: 25px;
    background: linear-gradient(to right, #FFA07A, #90EE90);
    padding: 3px;
    height: 100%;
    display: flex;
}

.team-card {
    background-color: #f9f9f9;
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.team-details h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #4B0082;
}

.team-details p {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #555;
}

.team-description {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

/* Events Section */
#event {
    background-color: #1E90FF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem 0 2rem;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}

.event-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.event-main-heading {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-subheading {
    color: black;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background-color: white;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid #FFA07A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 520px;
    text-align: center;
}

.event-image-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.event-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.event-info {
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
}

    .event-info p {
        margin: 0.3rem 0;
        color: #333;
        font-size: 0.95rem;
    }

.volunteer-btn {
    background-color: orange;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

    .volunteer-btn:hover {
        transform: scale(1.05);
    }

/* Resource Section */
#resource {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.resource-image-container {
    position: relative;
    width: 100vw;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.resource-fullwidth-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.resource-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    z-index: 10;
}

.three-columns-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

.column {
    flex: 1;
    height: 600px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding-top: 40px;
}

.green-column {
    background-color: #66BB6A;
}

.red-column {
    background-color: #EF5350;
}

.yellow-column {
    background-color: #FFCA28;
}

.column h3 {
    color: #000;
    font-weight: bold;
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    padding: 0;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    margin-top: 10px;
}

.card {
    background-color: white;
    border: 2px solid black;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Donate Section */
#donate {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: transparent; /* override earlier background-color block */
}

.donate-top {
    background-color: white;
    text-align: center;
    padding: 60px 20px 40px 20px;
    width: 100%;
}

    .donate-top h1 {
        color: #333;
        font-size: 2.8rem;
        margin: 0 0 15px 0;
        font-weight: bold;
    }

    .donate-top .subheading {
        color: #666;
        font-size: 1.3rem;
        margin: 0;
        font-weight: normal;
    }

.donate-content {
    background-color: #84A840;
    flex-grow: 1;
    padding: 60px 20px;
    width: 100%;
    min-height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donation-cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.donation-card-wrapper {
    width: 520px;
    height: 750px;
    border-radius: 20px;
    background: linear-gradient(45deg, #FFA07A, #90EE90, #87CEEB, #FFB6C1);
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.donation-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 18px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 35px 30px;
    box-sizing: border-box;
}

    .donation-card h3 {
        color: #333;
        font-size: 1.8rem;
        font-weight: bold;
        margin: 25px 0 15px 0;
        text-align: center;
    }

.banking-details {
    width: 100%;
    margin-top: 15px;
}

.bank-info {
    text-align: left;
    padding: 0 15px;
}

    .bank-info h4 {
        color: #333;
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: center;
        border-bottom: 2px solid #84A840;
        padding-bottom: 8px;
    }

    .bank-info p {
        margin: 10px 0;
        font-size: 1rem;
        color: #555;
        line-height: 1.5;
    }

    .bank-info strong {
        color: #333;
    }

.donation-info {
    width: 100%;
    margin-top: 15px;
}

    .donation-info h4 {
        color: #333;
        font-size: 1.4rem;
        margin-bottom: 12px;
        text-align: center;
        border-bottom: 2px solid #84A840;
        padding-bottom: 8px;
    }

    .donation-info p {
        margin: 8px 0;
        font-size: 1rem;
        color: #555;
        text-align: center;
    }

.visit-text {
    margin-top: 20px !important;
    font-weight: bold;
    color: #333 !important;
}

.map-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

#donation-mini-map {
    width: 260px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.address {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.direction-btn {
    width: 180px;
    border: none;
    border-radius: 35px;
    padding: 14px 0;
    font-weight: 600;
    background: #1c7ed6;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    transition: background 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

    .direction-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,.2);
    }

/* GetHelp Section */
#GetHelp {
    background-color: #FFFFFF;
    color: #111;
}

#gethelp-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.gethelp-title {
    margin: 0 0 .25rem 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    text-align: center;
}

.gethelp-subtitle {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    text-align: center;
    color: #333;
}

.gh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.gh-card {
    position: relative;
    border-radius: 18px;
    padding: 22px;
    color: #111;
    background: linear-gradient(#ffffff,#ffffff) padding-box, conic-gradient(#7dd3fc, #86efac, #fde047, #fda4af, #7dd3fc) border-box;
    border: 2px solid transparent;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

    .gh-card h3 {
        margin: 4px 0 18px 0;
        font-size: 1.4rem;
        font-weight: 800;
        text-align: center;
    }

.gh-form {
    display: grid;
    gap: 12px;
}

.gh-input,
.gh-textarea {
    width: 100%;
    border: none;
    background: #f3f4f6;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: .95rem;
    outline: none;
}

.gh-textarea {
    min-height: 120px;
    resize: vertical;
}

.gh-btn {
    margin-top: 6px;
    width: 180px;
    justify-self: center;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 1rem;
    background: #4dabf7;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .05s ease, filter .15s ease;
}

    .gh-btn:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .gh-btn:active {
        transform: translateY(0);
    }

.gh-info h4 {
    margin: 6px 0 10px 0;
    text-align: center;
    font-weight: 800;
}

.gh-info p {
    margin: 6px 0;
    text-align: center;
}

.gh-visit {
    margin-top: 10px;
    font-weight: 700;
    text-align: center;
}

.gh-map-wrap {
    display: grid;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

#gh-mini-map {
    width: 260px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
}

.gh-dir-btn {
    justify-self: center;
    width: 180px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    background: #1c7ed6;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

    .gh-dir-btn:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

/* ===== STATISTICS SECTION ===== */
#stats {
    background-color: white !important;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.stats-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
    font-weight: 800;
    letter-spacing: 1px;
}

.stats-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #666;
    font-weight: normal;
}

/* Three Columns Section for statistics */
.columns-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

    .columns-container .column {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 0;
        background: none;
    }

.pill-button {
    width: 378px;
    height: 66px;
    border-radius: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 25px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

    .pill-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

.pill-1 {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.pill-2 {
    background: linear-gradient(135deg, #F44336, #EF5350);
}

.pill-3 {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    color: #333;
}

.column-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats Cards */
.stats-card-wrapper {
    border-radius: 18px;
    background: linear-gradient(45deg, #FFB74D, #FF8A65, #64B5F6, #81C784);
    padding: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stats-card {
    background: #ffffff;
    border-radius: 16px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* Stat Content Styling */
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 0.3rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
    text-align: center;
}

.stat-description {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* Split Cards */
.split-card-wrapper {
    height: 120px;
    display: flex;
    gap: 20px;
}

.split-card-outer {
    flex: 1;
    border-radius: 18px;
    background: linear-gradient(45deg, #FFB74D, #FF8A65, #64B5F6, #81C784);
    padding: 3px;
}

.split-card {
    background: #ffffff;
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Map panel styles */
.map-panel {
    margin-top: 2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
}

.map-title {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
}

#assistance-map {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 3px solid #f0f4f8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.assist-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

    .assist-form input[type="text"] {
        flex: 1 1 420px;
        max-width: 560px;
        padding: .8rem 1rem;
        border-radius: 10px;
        border: 1px solid #ddd;
        outline: none;
        font-size: 1rem;
    }

    .assist-form button {
        padding: .8rem 1.5rem;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        font-weight: 700;
        background: #6A0DAD;
        color: white;
        box-shadow: 0 6px 12px rgba(0,0,0,.15);
        transition: transform .1s ease, filter .15s ease;
    }

        .assist-form button:hover {
            filter: brightness(1.05);
            transform: translateY(-1px);
        }

        .assist-form button:disabled {
            opacity: .6;
            transform: none;
        }

/* ===== GALLERY SECTION STYLES ===== */
#gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

    #gallery-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    }

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

    .gallery-header h2 {
        font-size: 3rem;
        font-weight: 800;
        color: #000;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }

    .gallery-header p {
        font-size: 1.3rem;
        color: #666;
        font-weight: 500;
    }

.gallery-scroll-wrapper {
    position: relative;
    padding: 2rem 0;
}

.gallery-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #28a745 #e9ecef;
}

    .gallery-scroll::-webkit-scrollbar {
        height: 12px;
    }

    .gallery-scroll::-webkit-scrollbar-track {
        background: #e9ecef;
        border-radius: 10px;
    }

    .gallery-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #28a745, #20c997);
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }

        .gallery-scroll::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #20c997, #28a745);
        }

.gallery-card {
    min-width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    animation: slideInRight 0.6s ease-out backwards;
}

    .gallery-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .gallery-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .gallery-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .gallery-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .gallery-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .gallery-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .gallery-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .gallery-card:nth-child(8) {
        animation-delay: 0.8s;
    }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card::after {
    content: '🔍 View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-card:hover::after {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #28a745;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
}

    .gallery-nav:hover {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
    }

.gallery-nav-left {
    left: 0;
}

.gallery-nav-right {
    right: 0;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

/* Medium-ish breakpoint fix for resource overlay text */
@media (max-width: 768px) {
    .resource-overlay-text {
        font-size: 1.8rem;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }

    .gallery-header h2 {
        font-size: 2rem;
    }

    .gallery-card {
        min-width: 300px;
        height: 220px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .stats-title {
        font-size: 2.8rem;
    }

    .stats-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .pill-button {
        font-size: 1.1rem;
        height: 60px;
    }

    .stats-card {
        min-height: 100px;
    }

    .map-panel {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .map-title {
        font-size: 1.5rem;
    }

    #assistance-map {
        height: 400px !important;
    }

    .assist-form input[type="text"] {
        flex: 1 1 100%;
    }

    .assist-form button {
        width: 100%;
    }

    .team-cards {
        grid-template-columns: 1fr;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .donation-card-wrapper {
        width: 100%;
        max-width: 400px;
        height: 600px;
    }

    .donation-card {
        padding: 20px 15px;
    }

        .donation-card h3 {
            font-size: 1.5rem;
            margin: 15px 0 10px 0;
        }

    .donate-content {
        padding: 30px 15px;
    }

    .bank-info {
        padding: 0 10px;
    }

        .bank-info h4,
        .donation-info h4 {
            font-size: 1.2rem;
        }

    #donation-mini-map {
        width: 100%;
        max-width: 280px;
        height: 140px;
    }

    .direction-btn {
        width: 160px;
        padding: 12px 0;
        font-size: 0.95rem;
    }
}

/* Below ~900px: stack the resource three columns vertically */
@media (max-width: 900px) {
    .three-columns-container {
        flex-direction: column;
    }

    .resource-overlay-text {
        font-size: 1.8rem;
        white-space: normal;
        text-align: center;
    }

    .column {
        height: auto;
        min-height: 300px;
        padding: 30px 0;
        justify-content: flex-start;
    }

        .column h3 {
            font-size: 1.6rem;
            margin-bottom: 15px;
        }

    .card-container {
        width: 90%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}

/* Below ~992px: contact grid stacks + donate layout adjusts */
@media (max-width: 991.98px) {
    .gh-grid {
        grid-template-columns: 1fr;
    }

    #gh-mini-map {
        width: 100%;
        height: 220px;
    }

    .donation-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .donation-card-wrapper {
        width: 520px;
        height: 650px;
    }

    .donate-content {
        min-height: 1500px;
    }

    .donation-card {
        padding: 25px 20px;
    }
}

/* Small phones: tighten hero text and card sizing */
@media (max-width: 600px) {
    .hero-image-container {
        height: 260px;
    }

    .hero-image-text {
        font-size: 1.25rem;
        line-height: 1.3;
        padding: 0 1rem;
        text-align: center;
        max-width: 90%;
        word-break: break-word;
    }

        .hero-image-text strong {
            font-size: 1.6rem;
            white-space: normal;
        }

    .hero-image-subtext {
        font-size: 1rem;
    }

    .team-section h2 {
        font-size: 2rem;
    }

    .event-main-heading {
        font-size: 2rem;
    }

    .stats-title {
        font-size: 2.2rem;
    }
}

/* Ultra-small: donation card comfort mode + text scale */
@media (max-width: 480px) {
    .resource-overlay-text {
        font-size: 1.5rem;
        white-space: normal;
        text-align: center;
        width: 80%;
    }

    .column {
        min-height: 280px;
        padding: 20px 0;
    }

        .column h3 {
            font-size: 1.4rem;
        }

    .card {
        padding: 12px;
        min-height: 50px;
    }

    .donation-card-wrapper {
        max-width: 320px;
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    .donation-card {
        padding: 20px 16px;
    }

        .donation-card h3 {
            font-size: 1.3rem;
            text-align: center;
            line-height: 1.3;
        }

    .bank-info p,
    .donation-info p {
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: center;
    }

    .donate-top h1 {
        font-size: 2.2rem;
    }

    .donate-top .subheading {
        font-size: 1.1rem;
    }

    #donation-mini-map {
        height: 130px;
    }

    #assistance-map {
        height: 60vh;
    }
}

/* fallback to ensure #assistance-map height on tiny phones */
@media (max-width: 480px) {
    #assistance-map {
        height: 60vh;
    }
}


/* --- Resources section fixes --- */

/* Make each resource card behave like a vertical text block instead of a single flex row */
.card {
    display: block; /* instead of flex */
    text-align: center;
    padding: 15px;
    min-height: 95px;
    border: 2px solid black;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* allow multi-line wrapping */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

    /* If you're using <a> tags inside the card: make each act like a block paragraph */
    .card a {
        display: block;
        width: 100%;
        text-decoration: none;
        color: #0056d6; /* same-ish as default link but cleaner */
        font-weight: 600;
        line-height: 1.4;
        word-break: break-word;
        white-space: normal;
        margin-bottom: 0.75rem;
        text-align: center;
    }

        /* Remove the last bottom gap so cards don't look double-spaced */
        .card a:last-child {
            margin-bottom: 0;
        }

/* Headings at the top of each colored column ("Students & Parents", etc.) */
.column h3 {
    color: #000;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

/* On smaller screens, let the card breathe and scale down text slightly */
@media (max-width: 600px) {
    .card {
        padding: 12px;
        font-size: 0.95rem;
        min-height: auto;
    }

        .card a {
            font-size: 0.95rem;
            line-height: 1.4;
        }

    .column h3 {
        font-size: 1.4rem;
    }

    .card-container {
        width: 90%;
        max-width: 400px;
    }
}

/* Custom Map Pin Styles */
.customer-pin-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

    .customer-pin-wrapper:hover {
        transform: translateY(-3px) scale(1.1);
        filter: brightness(1.1);
    }

.customer-pin-marker {
    width: 35px;
    height: 35px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
}

    .customer-pin-marker::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
