/* SportsMadness Sponsors Styling */

.sm-sponsors-container {
    margin: 30px 0;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sm-sponsors-container.sm-location-in_post {
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    margin: 35px 0;
}

.sm-sponsors-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 22px;
    color: #111;
    position: relative;
    display: inline-block;
}

.footer-sponsors .sm-sponsors-title {
    color: #ffffff;
}

.sm-sponsors-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: #e60000;
    margin: 8px auto 0;
    border-radius: 2px;
}

.sm-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

/* Squarer Sponsor Cards without text truncation */
.sm-sponsor-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 190px;
    min-height: 190px;
    height: auto;
    text-decoration: none !important;
    box-sizing: border-box;
}

.sm-sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.sm-sponsor-img-wrapper {
    width: 100%;
    min-height: 110px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sm-sponsor-logo {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.sm-sponsor-placeholder {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.sm-sponsor-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}

@media (max-width: 768px) {
    .sm-sponsors-grid {
        gap: 12px;
    }

    .sm-sponsor-card {
        width: 160px;
        min-height: 170px;
        padding: 12px 8px;
    }

    .sm-sponsor-img-wrapper {
        min-height: 90px;
    }

    .sm-sponsor-logo {
        max-height: 90px;
        border-radius: 6px;
    }

    .sm-sponsor-name {
        font-size: 12px;
    }
}