/* =========================================
   HALAMAN PILIHAN KELAS - MAHIR AKUNTANSI ACADEMY
   ========================================= */

body {
    background-color: #f8fafc;
}

/* --- HERO SECTION --- */
.kelas-hero {
    background-color: #0d47a1;
    padding: 40px 0 80px 0;
    color: white;
    text-align: center;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #93c5fd;
    text-align: left;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.kelas-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

/* --- FILTER & SEARCH BAR --- */
.filter-wrapper {
    margin-top: -35px;
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
}

.filter-bar {
    background: white;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

/* Style Khusus Dropdown & Input */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8fafc; /* Latar abu-abu sangat muda agar bentuknya terlihat jelas */
    color: #1f2937;
    border: 1px solid #e5e7eb; /* Border abu-abu halus */
    padding: 8px 36px 8px 16px; /* Jarak dalam diperlebar (kanan 36px untuk ruang ikon panah) */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none; /* Menghilangkan garis hitam kaku bawaan browser saat diklik */
    transition: all 0.2s ease; /* Transisi warna yang halus */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Efek estetik saat dropdown sedang diklik/aktif */
.custom-select:focus {
    border-color: #3b82f6; /* Border berubah biru */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); /* Efek bayangan/glow biru lembut di luarnya */
}

/* Memastikan latar pilihan dropdown ke bawah tetap putih bersih */
.custom-select option {
    background-color: #ffffff;
    color: #1f2937;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    width: 300px;
    color: #1f2937;
    outline: none;
    padding: 8px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: #e5e7eb;
}

/* --- RESULT INFO --- */
.results-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #4b5563;
    font-size: 0.95rem;
}

.results-info strong {
    color: #1f2937;
}

/* --- CLASS GRID & CARDS --- */
.kelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}

.card-kelas {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-kelas:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.card-image-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-date {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.meta-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e3a8a; }

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-card-action {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-card-action:hover {
    background-color: #0a367c;
}

.btn-card-outline {
    background-color: transparent;
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

.btn-card-outline:hover {
    background-color: #eff6ff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .filter-bar {
        flex-direction: column;
        border-radius: 16px;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between; 
    }
    
    .custom-select {
        flex: 1;
        width: 100%;
        max-width: 75%;
    }

    .search-input {
        width: 100%;
    }
    .divider {
        width: 100%;
        height: 1px;
    }
}