.chart-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.chart-wrapper {
    position: relative;
    height: 350px;
    width: 100%;
    margin: 0 auto;
}

.stats-section {
    /* background-color: var(--bg-light-gray); */
}

@media (max-width: 768px) {
    .chart-wrapper.pie-chart {
        height: 250px;
    }
}

#map-container {
    width: 100%;
    height: 370px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.kabupaten {
    stroke: #fff;
    stroke-width: 1px;
    cursor: pointer;
    transition: fill 0.2s;
}

.kabupaten:hover {
    opacity: 0.8;
}

.tooltip {
    position: absolute;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transform: translate(-50%, -100%);
}

.legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.legend-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.legend-color {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.elearning-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.elearning-subtitle {
    font-size: 14px;
    max-width: 1005px;
    margin-top: 9px;
    margin-bottom: 60px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.learning-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.learning-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.12);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 320px;
    padding: 0 0;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.learning-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.learning-card p {
    padding: 22px 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.elearning-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

@media (max-width: 1024px) {
    .learning-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .learning-cards-grid {
        grid-template-columns: 1fr;
    }

    .elearning-subtitle {
        margin-bottom: 40px;
    }

    .learning-card {
        min-height: 280px;
    }

    .card-image-wrapper {
        height: 180px;
    }
}
