/* =========================================================================
   INDEX TABLET CSS (Maksimal 992px - Layar Tablet/iPad Portrait)
   ========================================================================= */
@media screen and (max-width: 992px) {
    /* --- 1. NAVBAR & LOGO (HEADER TABLET) --- */
    header { 
        padding: 15px 5%; 
    }
    .logo { 
        font-size: 20px; 
        gap: 8px; 
    }
    .logo img { 
        height: 32px; 
    }
    .auth-buttons { gap: 12px; }
    header .btn { 
        padding: 8px 18px; 
        font-size: 13px; 
    }

    /* --- 2. HERO SECTION (TUMPUK VERTIKAL TAPI ELEGAN) --- */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
        padding-bottom: 70px;
        align-items: center; /* Memastikan semua elemen hero berada di tengah layar */
    }
    .hero-content {
        max-width: 700px; 
        margin: 0 auto;
        width: 100%;
    }
    .badge {
        font-size: 11px;
        padding: 8px 18px;
    }
    .hero h1 {
        font-size: 3rem; 
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .hero p {
        font-size: 15px;
        margin-bottom: 35px;
    }

    /* 👇 PERBAIKAN TOMBOL: Cegah melar seperti di HP 👇 */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    .hero-content .btn-solid { 
        width: auto !important; /* Cabut paksaan lebar 100% dari HP */
        min-width: 280px !important; /* Beri ukuran proporsional yang cantik */
        padding: 14px 35px !important; 
        border-radius: 50px !important;
    }
    .trusted-users {
        justify-content: center;
    }

    /* --- 3. SLIDER HERO (PRESISI 16:9 & CENTERED) --- */
    .hero-image {
        margin: 50px auto 0 auto !important; /* Paksa ke tengah halaman */
        width: 90% !important; /* Lebarkan agar proporsional di tablet */
        max-width: 800px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .aesthetic-slider {
        width: 100% !important;
        max-width: 100% !important; /* 👇 Buka kunci max-width 600px dari versi PC 👇 */
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* Gunakan rumus rasio modern dari PC Anda */
        border-radius: 16px !important;
        margin: 0 auto !important;
        /* Hapus overflow, shadow, dll di sini agar dia otomatis mewarisi yang dari PC! */
    }


    /* --- 4. KATALOG WEBINAR (PERTAHANKAN HORIZONTAL SCROLL) --- */
    .katalog-section {
        margin-top: -30px !important; /* Tarikan ke atas disesuaikan untuk tablet */
    }
    .katalog-header h2 {
        font-size: 2.2rem !important;
    }
    
    /* Biarkan tetap horizontal scroll seperti desktop/mobile, ukuran kartu disesuaikan */
    .grid-katalog .card-webinar, 
    #katalog-container .card-webinar {
        flex: 0 0 350px !important; 
        max-width: 350px !important;
    }

    /* --- 5. FEATURES & TESTIMONIAL --- */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Kolom berdampingan yang rapi */
        gap: 25px !important;
    }
    .testi-card {
        width: 380px; /* Kartu testimoni lebih lebar dibanding HP */
    }

    /* --- 6. MODAL AUTHENTICATION (UKURAN TABLET KHUSUS) --- */
    .custom-modal-box, 
    .auth-box {
        width: 80% !important;
        max-width: 450px !important; /* Jauh lebih lebar dari HP (320px) tapi tidak full layar */
        padding: 0 0 25px 0 !important;
    }

    .auth-box form {
        padding: 0 25px !important; /* Ruang dalam (padding) form dibesarkan */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .scrollable-inputs {
        padding: 0 !important;
        padding-right: 6px !important;
        max-height: 50vh !important; /* Area scroll lebih tinggi di layar tablet */
    }

    .auth-input {
        height: 48px !important; /* Kotak input dibuat lebih tinggi (nyaman untuk jari di tablet) */
        font-size: 14px !important;
        padding: 0 15px 0 40px !important;
    }
    
    .input-group > i:first-child { left: 15px !important; font-size: 15px !important; }
    .input-group .toggle-password-icon { right: 15px !important; font-size: 15px !important; }

    .auth-box .auth-btn {
        height: 48px !important; 
        min-height: 48px !important;
        font-size: 15px !important;
    }

    /* Lupa Password Tablet */
    #forgotModal .custom-modal-box, 
    #forgotModal .auth-box {
        padding-top: 40px !important; 
    }
    
    /* Kembalikan OTP ke ukuran besar nan elegan khas PC/Tablet */
    .otp-inputs-wrapper {
        gap: 12px !important; 
    }
    .otp-field {
        width: 48px !important;  
        height: 55px !important; 
        font-size: 24px !important; 
    }

    /* --- 7. AWAN MELAYANG --- */
    .cloud-1 { font-size: 120px; left: -10%; }
    .cloud-2 { font-size: 80px; right: -10%; }
    .cloud-3 { font-size: 50px; }
}