/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 80px 24px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--light-blue);
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Login Card (Floating) */
.login-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 280px;
}

.login-card h3 {
    text-align: center;
    margin-bottom: 16px;
}

.login-buttons button {
    width: 100%;
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.login-buttons button:hover {
    background: var(--bg-light);
}

.login-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Stats Section */
.stats-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.stat-title h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-title p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--light-blue);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Classes Section */
.classes-section {
    padding: 80px 24px;
}

.classes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.classes-title h2 {
    font-size: 3rem;
    color: var(--light-blue);
    line-height: 1;
}

.classes-title h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.classes-tabs .tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 24px;
    padding-bottom: 4px;
}

.classes-tabs .tab-btn.active {
    color: var(--light-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--light-blue);
}

.class-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.class-grid.active-tab {
    display: grid;
}

.class-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.class-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.class-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-date {
    font-size: 0.75rem;
    color: var(--light-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.class-info h4 {
    font-size: 0.875rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.class-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.btn-daftar {
    background: var(--light-blue);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-daftar:hover {
    background: var(--primary-blue);
}

.card-cta {
    background: var(--accent-blue);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    border: none;
}

.card-cta h4 { font-size: 2rem; color: var(--text-dark); margin-bottom: 8px;}
.card-cta p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px;}
.btn-outline {
    border: 1px solid var(--light-blue);
    color: var(--light-blue);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive Halaman Home */
@media (max-width: 1024px) {
    .class-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Penyesuaian jarak Hero agar pas di layar HP */
    .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 16px; gap: 24px; }
    .hero-text h1 { font-size: 2.2rem; }
    
    /* Ubah orientasi menjadi susun ke bawah (vertikal) */
    .hero-visual { 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        margin-top: 16px; 
    }
    
    /* Penyesuaian ukuran gambar */
    .hero-img {
        width: 100%;
        max-width: 340px;
    }

    /* Penyesuaian form login dengan efek overlap (menumpuk ke atas gambar) */
    .login-card { 
        position: relative; 
        transform: none; 
        top: auto; 
        right: auto;
        margin-top: -40px; /* Menarik card ke atas gambar sedikit */
        width: 90%; 
        max-width: 320px;
        z-index: 10;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Shadow dipertegas agar kontras */
    }

    /* Penyesuaian Grid & Tab lainnya */
    .stats-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .classes-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .classes-tabs { display: flex; width: 100%; justify-content: flex-start; gap: 16px; overflow-x: auto; padding-bottom: 8px;}
    .classes-tabs .tab-btn { margin-left: 0; white-space: nowrap; }
    .class-grid { grid-template-columns: 1fr; }
}