.mayorsap-section {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

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

.mayorsap-stat-card-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.mayorsap-stat-card-wrapper>div {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.mayorsap-stat-card-wrapper>div:hover {
    transform: translateY(-2px);
}

.mayorsap-card-candidates {
    background-color: #e3f2fd !important;
}

.mayorsap-card-hotseats {
    background-color: #ffebee !important;
}

.mayorsap-card-parties {
    background-color: #e8f5e9 !important;
}

.mayorsap-card-constituencies {
    background-color: #fffde7 !important;
}

.mayorsap-stat-card-election-graphic {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #4092a2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 150px;
    box-shadow: 0 4px 15px rgba(64, 146, 162, 0.3);
}

.mayorsap-stat-card-election-graphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(64, 146, 162, 0.6);
    z-index: 1;
}

.countdown-to-voting {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

.mayorsap-stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

#mayorsap-election-days-left {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mayorsap-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.mayorsap-stat-card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.mayorsap-stat-card-icon i {
    display: block;
}

.mayorsap-stat-card-bottom {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.mayorsap-stat-card-bottom.samnupatik-direct {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.mayorsap-stat-card-bottom-link {
    color: #004a99;
    text-decoration: none;
    font-weight: 600;
}

.mayorsap-stat-card-bottom-link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .mayorsap-stat-card-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .mayorsap-stat-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .m-dn {
        display: none !important;
    }

    .m-db {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mayorsap-stat-card-wrapper {
        grid-template-columns: 1fr;
    }
}

.dn {
    display: none !important;
}

.mayorsap-stat-card-overlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
