/* --- 1. MAIN LAYOUT --- */
.maincontainer {
    display: grid;
    /* Defines the outer grid */
    grid-template-columns: 1fr; 
    gap: 40px;
    padding: 40px;
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- 2. HEADER SECTION --- */
.sponsor-header {
    /* Spans full width */
    grid-column: 1 / -1;
    
    /* "Card" Styling matching About page */
    
    background: linear-gradient(145deg, #383838, #2b2b2b);
    color: #cecece;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border-left: 10px solid #742d38; /* Maroon Accent */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sponsor-header h1 {
    color: #742d38;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.sponsor-header h2 {
    color: #cecece;
    font-weight: 400;
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.6;
}

/* --- 3. SEASON SECTIONS --- */
.season-section {
    grid-column: 1 / -1; /* Ensure it takes full width of container */
    width: 100%;
    text-align: center;
    
}

.season-title {
    color: white;
    font-size: 2rem;
    border-bottom: 3px solid #94d8ff; /* Gold Underline */
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

/* --- 4. SPONSOR CARD GRID --- */
.sponsor-grid {
    display: grid;
    /* Desktop: Auto-fit columns (min 250px wide) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    
}

/* --- 5. INDIVIDUAL CARDS --- */
.sponsor-card {
    background: linear-gradient(145deg, #383838, #2b2b2b);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px; /* Ensures consistent height */
}

.sponsor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15);
}

.sponsor-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sponsor-card img {
    max-width: 90%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.sponsor-card h3 {
    color: #cecece;
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    text-align: center;
}

/* Placeholder Card Style */
.sponsor-card.placeholder {
    background: linear-gradient(145deg, #383838, #2b2b2b);
    border: 3px dashed #999;
    box-shadow: none;
}

.placeholder-icon {
    font-size: 3rem;
    color: #777;
    margin-bottom: 10px;
}

/* --- 6. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Reduce Container Padding */
    .maincontainer {
        padding: 10px; 
        gap: 20px;
    }

    /* 2. Adjust Header */
    .sponsor-header {
        padding: 20px 15px;
        border-left-width: 5px;
    }
    .sponsor-header h1 {
        font-size: 1.8rem;
    }
    .sponsor-header h2 {
        font-size: 1rem;
    }

    /* 3. Force Grid to Stack */
    .sponsor-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .season-title {
        font-size: 1.5rem;
    }
}