/* sponsors.css - Styles for Sponsors Section */

/* General Body/HTML defaults (Optional, if not already set globally) */
/* body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
} */

/* Sponsors Section Container */
.container {
    font-family: 'Segoe UI', Arial, sans-serif; /* A cleaner, modern sans-serif */
    margin: 40px auto; /* Centered with top/bottom margin */
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    width: 90%; /* Responsive width */
    max-width: 1200px; /* Limit maximum width */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Soft, subtle shadow for the entire container */
    overflow: hidden; /* Ensures child elements (like glows) don't extend beyond the container */
}

/* Section Title */
h2 { /* Styling for the main "Thank You to Our Sponsors!" title */
    text-align: center;
    color: #2c3e50; /* A strong, modern dark blue/gray */
    margin: 20px 0 40px;
    font-size: 2.8em; /* Larger, more impactful title */
    font-weight: 700;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 12px; /* Space for pseudo-element underline */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2::after { /* Fancy animated underline effect */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #FFD700, #FFA500, #DAA520); /* Gradient Gold */
    border-radius: 3px;
    animation: pulseUnderline 2s infinite alternate ease-in-out;
}

@keyframes pulseUnderline {
    0% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scaleX(1.1); opacity: 1; }
}

/* Introductory text */
.intro-text {
    text-align: center;
    font-size: 1.15em;
    color: white;
    max-width: 800px;
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 300;
}

/* Sponsor Grid - Forces 3 columns by default */
.sponsor-grid {
    display: grid;
    /* CHANGE 1: Explicitly set 3 columns for wider screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 35px; /* Spacing between cards */
    padding: 0 20px; /* Horizontal padding for grid within container */
    width: 100%; /* Take full available width */
    margin-bottom: 60px; /* Space before donation section */
}

/* Individual Sponsor Card Styling */
.sponsor-card {
    background-color: #fff;
    border-radius: 15px; /* Consistent rounded corners */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Deeper shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center; /* Center content horizontally within card */
    text-align: center;
    position: relative; /* Essential for pseudo-elements */
    padding: 25px; /* Internal padding */
}

/* Enhanced Border Glow Effect on Hover */
.sponsor-card::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px; /* Slightly outside card */
    background: linear-gradient(45deg, #FFD700, #FFA500, #DAA520, #FFCC00); /* Multi-tone gold gradient */
    background-size: 400% 400%; /* Allows for smoother animation */
    filter: blur(15px); /* Strong blur to create glow */
    border-radius: 18px; /* Matches card border, slightly larger for glow */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease-in-out;
    z-index: -1; /* Behind the card content */
    pointer-events: none; /* Allows clicks/hovers to pass through */
}

.sponsor-card:hover {
    transform: translateY(-10px) scale(1.03); /* More pronounced lift and slight scale */
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35); /* Stronger shadow on hover */
}

.sponsor-card:hover::before {
    animation: glowingEffect 8s linear infinite; /* Animate the background position for a "breathing" glow */
    opacity: 1; /* Make glow visible on hover */
}

@keyframes glowingEffect {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sponsor-card img {
    width: 130px; /* Slightly larger image size */
    height: 130px; /* Maintain aspect ratio (square for circles) */
    object-fit: contain; /* Ensures images fit without distortion within their container */
    border-radius: 50%; /* Make images circular */
    border: 4px solid #FFD700; /* Gold border for image */
    padding: 8px; /* Inner padding for the image border to create a gap */
    background-color: #fcfcfc; /* Very subtle background for image area */
    margin-bottom: 20px; /* Space between image and text */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.sponsor-card:hover img {
    transform: rotate(5deg); /* Slight rotation on image on hover */
    border-color: #FFA500; /* Darker gold on hover */
}

.sponsor-details {
    flex-grow: 1; /* Allows details to take available space */
}

.sponsor-details h3 {
    /* CHANGE 3: Sponsor name text color to black */
    color: #000;
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: capitalize; /* Ensure names look consistent */
    letter-spacing: 0.5px;
}

.sponsor-details p {
    margin: 0;
    color: #666;
    font-size: 0.98em;
    line-height: 1.6;
    font-weight: 400;
}

/* Donate Call to Action */
.donate-call-to-action {
    text-align: center;
    font-size: 1.15em;
    color: white;
    max-width: 800px;
    margin-top: 30px;
    margin-bottom: 40px; /* Space before the button container */
    line-height: 1.7;
    font-weight: 300;
    padding: 0 20px; /* Horizontal padding for text */
}

/* Donate Button Container Styling */
#donate-button-container {
    padding: 30px; /* Adjusted padding from previous suggestions */
    /* CHANGE 2: Remove background from the container */
    background: none;
    border-radius: 18px; /* Slightly larger radius */
    box-shadow: none; /* Remove shadows as well if background is gone */
    border: none; /* Remove border if background is gone */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px; /* Limit width to keep it neat */
    min-height: 80px; /* Ensure space for the button */
}

/* Our brand new, "Cool Donate Button" style (remains unchanged, works great!) */
.cool-donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFDB58, #FFA500, #DAA520);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 1.3em;
    font-weight: 700;
    color: rebeccapurple; /* Dark, contrasting text color (different from gold highlight) */
    text-decoration: none;
    cursor: pointer;
    box-shadow:
            0 8px 25px rgba(255, 191, 0, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.5),
            inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

/* Glow Effect on Hover for the Button */
.cool-donate-button::before {
    content: '';
    position: absolute;
    top: -20%; left: -20%; right: -20%; bottom: -20%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.7s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.cool-donate-button:hover::before {
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    opacity: 1;
}

.cool-donate-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
            0 12px 35px rgba(255, 191, 0, 0.6),
            inset 0 3px 6px rgba(255, 255, 255, 0.7),
            inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.cool-donate-button:active {
    transform: translateY(1px);
    box-shadow:
            0 4px 15px rgba(255, 191, 0, 0.3),
            inset 0 1px 3px rgba(255, 255, 255, 0.5),
            inset 0 -1px 3px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

/* Icon styling */
.cool-donate-button .icon {
    font-size: 1.5em;
    margin-right: 12px;
    vertical-align: middle;
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        padding: 25px 15px;
    }
    .sponsor-grid {
        /* On medium screens, let's allow 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .sponsor-card img {
        width: 110px;
        height: 110px;
    }
    .sponsor-details h3 {
        font-size: 1.4em;
    }
    .sponsor-details p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }
    h2 {
        font-size: 2.3em;
        margin-bottom: 30px;
    }
    .intro-text, .donate-call-to-action {
        font-size: 1em;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    .sponsor-grid {
        /* On smaller screens, fall back to 1 column */
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .sponsor-card {
        padding: 20px;
    }
    .sponsor-card img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    h2::after {
        width: 80px;
    }
    .sponsor-grid {
        /* Keep 1 column for very small screens */
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    .sponsor-card img {
        width: 90px;
        height: 90px;
    }
    .donate-call-to-action {
        font-size: 0.95em;
    }
    #donate-button-container {
        max-width: 90%; /* Adjust to fill better */
        padding: 20px;
    }
    .cool-donate-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .cool-donate-button .icon {
        font-size: 1.2em;
        margin-right: 10px;
    }
}