.beranda-container {
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 33px;
}

.beranda-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}

/* Grid Layout Mobile First (1 Kolom) */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Card Base Style */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header Card */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Warna Variasi Icon Card */
.card-guru .card-icon {
    background-color: #e3f2fd;
    color: #1976d2;
}

.card-siswa .card-icon {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.card-kelas .card-icon {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.card-title-group {
    display: flex;
    flex-direction: column;
}

.card-title-group h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.total-badge {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

/* Body Card (Detail Gender) */
.card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
}

.gender-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.gender-label {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gender-label .fa-mars {
    color: #0284c7;
}

.gender-label .fa-venus {
    color: #ec4899;
}

.gender-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-top: 2px;
}

.gender-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e1;
}

/* Responsif untuk Tablet ke Atas (Lebar Screen >= 600px) */
@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsif untuk Desktop (Lebar Screen >= 992px) */
@media (min-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}