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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding-top: 88px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR - Main CTA: Sponsor Us (always visible)
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jg-button-top {
    display: inline-block;
    background-color: #fff;
    color: #7c3aed;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 3px solid #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jg-button-top:hover {
    background-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: #5b21b6;
    text-decoration: none;
}

.jg-button-top:active {
    transform: translateY(-1px) scale(1.02);
}

/* ============================================
   HERO SECTION - Smaller Image
   ============================================ */
.hero-section {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* JustGiving Widget Container */
.justgiving-container > div[id^="jg-widget"] {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    min-height: 300px;
}

/* Progress Bar Container */
.progress-bar-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.progress-amount {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.progress-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 15px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3);
}

.progress-percentage {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #7c3aed;
}

/* ============================================
   SPONSORS SECTION - More Prominent
   ============================================ */
.sponsors {
    background-color: #fff;
    padding: 0px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sponsors h2 {
    text-align: center;
    font-size: 2.0em;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.sponsors-grid {
    display: grid;
    margin-bottom: 0px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 0px;
}

.sponsor-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sponsor-logo {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.lightbox-logo img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.lightbox-description {
    width: 100%;
}

.lightbox-description p {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: left;
    margin: 0;
}

.lightbox-close-btn {
    margin-top: 10px;
    padding: 14px 50px;
    border: none;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-close-btn:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.lightbox-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* ============================================
   JUSTGIVING SECTION (Legacy - kept for compatibility)
   ============================================ */

/* JustGiving Thermometer Widget */
.justgiving-thermometer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;
}

.justgiving-thermometer iframe {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* JustGiving Widgets Container */
.justgiving-widgets {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Donate Button Widget */
.jg-donate-button {
    text-align: center;
}

.jg-button {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.jg-button:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: #fff;
    text-decoration: none;
    margin-top: auto;
}

.jg-button span {
    display: inline-block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 30px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .hero-image {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .sponsors h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        margin-bottom: 40px;
    }

    .sponsors {
        padding: 30px 15px;
        flex: none;
    }

    .sponsor-card {
        padding: 15px;
        min-height: 180px;
    }

    .sponsor-logo img {
        max-height: 160px;
    }

    .lightbox-content {
        padding: 30px;
        width: 92%;
    }

    .lightbox-content h2 {
        font-size: 1.5em;
    }

    .lightbox-description p {
        font-size: 0.95em;
    }

    .hero-section {
        padding: 15px 0;
    }

    .hero-image {
        max-height: 150px;
    }

    .top-bar {
        padding: 15px 0;
    }

    .jg-button-top {
        padding: 14px 40px;
        font-size: 1.1em;
    }

    .progress-bar-container {
        padding: 20px;
    }

    .progress-stats {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .progress-amount {
        font-size: 1.5em;
    }

    .progress-label {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .sponsors h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .sponsor-card {
        padding: 12px;
        min-height: 150px;
    }

    .sponsor-logo img {
        max-height: 130px;
    }

    .lightbox-content {
        padding: 25px;
        width: 95%;
    }

    .lightbox-content h2 {
        font-size: 1.3em;
    }

    .lightbox-description p {
        font-size: 0.9em;
    }

    .lightbox-close-btn {
        font-size: 0.9em;
        padding: 12px 40px;
        min-width: 120px;
    }

    .hero-image {
        max-height: 120px;
    }

    .jg-button-top {
        padding: 12px 35px;
        font-size: 1em;
    }

    .container {
        padding: 0 15px;
    }

    .sponsors {
        padding: 20px 10px;
    }

    .progress-bar-container {
        padding: 15px;
        margin: 0 10px 20px;
    }

    .progress-amount {
        font-size: 1.3em;
    }

    .progress-label {
        font-size: 0.8em;
    }

    .jg-button {
        padding: 14px 35px;
        font-size: 1.1em;
    }
}

@media (max-width: 360px) {
    .sponsors h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .jg-button-top {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .container {
        padding: 0 10px;
    }

    .sponsors {
        padding: 15px 5px;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .sponsor-card {
        padding: 10px;
        min-height: 140px;
    }

    .sponsor-logo img {
        max-height: 120px;
    }

    .lightbox-content {
        padding: 20px;
    }

    .lightbox-content h2 {
        font-size: 1.2em;
    }

    .lightbox-description p {
        font-size: 0.85em;
        line-height: 1.6;
    }

    .progress-bar-container {
        padding: 12px;
        margin: 0 5px 15px;
    }

    .progress-amount {
        font-size: 1.2em;
    }

    .progress-label {
        font-size: 0.75em;
    }

    .hero-image {
        max-height: 100px;
    }

    .footer {
        padding: 20px 10px;
    }
}

