:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;
}

html,
body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

.active-link {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Navbar modern (sticky + efek kaca premium) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.brand span {
    color: var(--primary);
}

.nav-item {
    transition: color 0.18s ease;
}

.nav-item:hover {
    color: var(--primary);
}

.navbar .btn-primary,
.drawer-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.navbar .btn-primary:hover,
.drawer-login:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -4px rgba(37, 99, 235, 0.5);
}

/* ===== NAVIGATION DRAWER (DEFAULT HIDDEN DI DESKTOP) ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobile-menu-btn:hover {
    background: #dbeafe;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -290px;
    width: 275px;
    max-width: 82vw;
    height: 100vh;
    background: #ffffff;
    z-index: 200;
    box-shadow: -12px 0 36px rgba(15, 23, 42, 0.16);
    transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.drawer-header .brand {
    font-size: 0.96rem;
}

.drawer-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

.drawer-close:hover {
    background: #e2e8f0;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 6px;
}

.drawer-item {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.drawer-item:hover,
.drawer-item.active-link {
    background: var(--primary-soft);
    color: var(--primary);
}

.drawer-login {
    margin-top: 14px;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* ===== HERO TESTIMONI PREMIUM ===== */
.testi-hero {
    position: relative;
    background:
        radial-gradient(circle at 85% 15%, rgba(96, 165, 250, 0.35), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(30, 64, 175, 0.45), transparent 50%),
        linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #2563eb 100%);
    color: #ffffff;
    padding: 64px 0 56px;
    text-align: center;
}

.testi-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.testi-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.testi-hero p {
    max-width: 580px;
    margin: 0 auto;
    color: rgba(239, 246, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ===== KONTEN & GRID TESTIMONI ===== */
.testi-main {
    padding: 44px 20px 68px;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.testi-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 3px solid var(--primary);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.testi-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    border-top-color: var(--primary);
    box-shadow: 0 18px 32px -10px rgba(37, 99, 235, 0.14);
}

.testi-stars {
    color: #f59e0b;
    font-size: 1.08rem;
    letter-spacing: 2px;
}

.testi-quote {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #dbeafe 100%);
    border: 1px solid var(--primary-border);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.94rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testi-author strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.testi-author small {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer {
    padding: 28px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

/* ===== TABLET (<= 900px) ===== */
@media (max-width: 900px) {
    .testi-hero {
        padding: 48px 0 42px;
    }

    .testimoni-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== MOBILE / HP PROPORSIONAL (<= 640px) ===== */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Navbar tetap 1 baris: Brand kiri, Hamburger kanan */
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }

    .brand {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero ringkas dengan sudut bawah membulat */
    .testi-hero {
        padding: 28px 0 32px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .testi-pill {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .testi-hero h1 {
        font-size: 1.48rem;
        margin-bottom: 8px;
    }

    .testi-hero p {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    /* Daftar testimoni 1 kolom lega agar kutipan nyaman dibaca */
    .testi-main {
        padding: 24px 16px 40px;
    }

    .testimoni-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testi-card {
        padding: 18px;
        border-radius: 16px;
        gap: 12px;
    }

    .testi-card:hover {
        transform: none;
    }

    .testi-stars {
        font-size: 0.96rem;
    }

    .testi-quote {
        font-size: 0.89rem;
        line-height: 1.65;
    }

    .testi-author {
        padding-top: 12px;
        gap: 10px;
    }

    .testi-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.86rem;
    }

    .testi-author strong {
        font-size: 0.9rem;
    }

    .testi-author small {
        font-size: 0.77rem;
    }

    .footer {
        padding: 20px 16px;
        font-size: 0.8rem;
    }
}

/* ===== HP LAYAR KECIL (<= 380px) ===== */
@media (max-width: 380px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .testi-main {
        padding: 20px 14px 36px;
    }

    .testi-hero h1 {
        font-size: 1.34rem;
    }

    .testi-card {
        padding: 15px;
    }
}