* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}


html {
    height: 100%;
}

body {
    background: #faf7ef;
    color: #2b2b2b;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content grows to push footer down */
body>main {
    flex: 1;
}

/* =============================
   HEADER
   ============================= */
.header {
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: 0.3s ease;
    background: transparent;
    pointer-events: auto;
}


/* Container tetap fleksibel */
.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}


/* ===== STICKY ===== */
.header.scrolled {
    background: #d52c2c;
    padding: 15px 60px;
    border-bottom: 3px solid #0000004b;
}

/* Logo & navbar tetap */
.logo {
    display: flex;
    align-items: center;
}

/* Logo default */
.logo img {
    height: 42px;
    width: auto;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}


/* Awal */
.logo-sticky {
    display: none;
}

/* Saat sticky */
.header.scrolled .logo-default {
    display: none;
}

.header.scrolled .logo-sticky {
    display: block;
    transform: scale(1.8);
    /* ⬅️ INI YANG TERASA */
    transform-origin: left center;
}


.profile-icon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 38px;
    border: 2px solid #d52c2c;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #d52c2c;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.profile-icon i {
    font-size: 14px;
    flex-shrink: 0;
}

.profile-icon-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.profile-icon:hover {
    background: #d52c2c;
    color: #fff;
}

/* Saat sticky */
.header.scrolled .profile-icon {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.header.scrolled .profile-icon:hover {
    background: #fff;
    color: #d52c2c;
}

/* ===== HEADER ICONS CONTAINER ===== */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: 2px solid #d52c2c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    background: #fff;
    color: #d52c2c;
    transition: all 0.25s ease;
}

.cart-icon:hover {
    background: #d52c2c;
    color: #fff;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #25d366;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* Saat sticky - Cart */
.header.scrolled .cart-icon {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.header.scrolled .cart-icon:hover {
    background: #fff;
    color: #d52c2c;
}

.header.scrolled .cart-badge {
    border-color: #d52c2c;
}

.navbar {
    display: flex;
    gap: 40px;
    align-items: center;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #d52c2c;
}


/* Dropdown */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Hover */
.header.scrolled .navbar a {
    color: #fff;
}

.header.scrolled .navbar a:hover {
    color: #000;
    font-weight: 600;
    ;
}

.contact {
    font-weight: 600;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    /* ⬅️ INI KUNCI */
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    z-index: 9999;
}

.header.scrolled .dropdown-menu {
    top: calc(100% + 0px);
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    color: #000;
}

.dropdown-menu a:hover {
    color: #d52c2c;
}
/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 3000;
    width: 26px;
    height: 20px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #d52c2c;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animasi burger jadi X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-100%);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Warna X berubah putih saat menu terbuka */
.menu-toggle.active span {
    background: #fff;
}

/* mobile-menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #111;
    z-index: 2000;
    pointer-events: none;
    transition: 0.35s ease;
}

.mobile-menu.active {
    right: 0;
    pointer-events: auto;
}

.mobile-menu-header {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* Hilangkan X di dalam menu */
.mobile-menu-header .close {
    display: none;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #222;
}

.mobile-menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 0;
    text-decoration: none;
    color: #d52c2c;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.mobile-menu a:hover {
    color: #eee;
}

/* SUB MENU MOBILE */
.mobile-menu .sub-menu {
    display: none;
    background: #181818;
}

.mobile-menu li.open>.sub-menu {
    display: block;
}

.mobile-menu .sub-menu a {
    font-size: 16px;
    padding: 16px 0;
    color: #ccc;
}

/* =============================
   HERO SECTION
   ============================= */

.hero {
    padding: 190px 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    max-width: 700px;
    margin: auto;
}

.hero-content p {
    margin: 20px auto;
    max-width: 550px;
    font-size: 18px;
}

.btn-orange {
    background: #d52c2c;
    border: 2px solid #000;
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #eee;
    display: inline-block;
    margin-top: 20px;
}

.btn-orange:hover {
    background: #000 !important;
    color: #ffffff !important;
    border-color: #000 !important;
}

/* =============================
   STATISTIK
   ============================= */

.stats {
    display: flex;
    gap: 100px;
    padding: 0px 60px;
    justify-content: center;
}

.stat-item {
    font-size: 16px;
    text-align: center;
}

.stat-item strong {
    font-size: 34px;
    font-weight: 700;
}

/* =============================
   PROGRAM CARD
   ============================= */

.program-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 60px 80px;
    background: #faf7ef;
}

.program-card {
    background: #ffffff;
    padding: 30px;
    width: 300px;
    border-radius: 10px;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    transition: 0.25s ease;
}

.program-card h3 {
    margin-bottom: 15px;
}

.program-card ul {
    margin: 12px 0 20px 20px;
    line-height: 1.6;
}

/* Tombol default */
.btn-outline {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid #000;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    background: #d52c2c;
}


/* ============================
   HOVER: Semua card berubah
============================ */

.program-card:hover {
    background: #d52c2c !important;
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #000;
    cursor: pointer;
}

/* Teks & list ikut menjadi putih */
.program-card:hover h3,
.program-card:hover ul li {
    color: #fff !important;
}

/* Tombol di dalam card saat hover */
.program-card .btn-outline {
    background: #d52c2c;
    color: #fff;
    border: 2px solid #000;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Tombol saat card hover (TETAP TENANG) */
.program-card:hover .btn-outline {
    background: #000;
    color: #fff;
}

/* Tombol saat di-hover langsung */
.program-card .btn-outline:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 4px 4px 0 #ffffff;
    background: #000;
}


/* =============================
   KONSULTASI
   ============================= */

.consult-section {
    background: #d52c2c;
    padding: 80px 40px;
    color: #000;
    overflow-x: hidden;
}

.consult-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
    width: 100%;
}

.consult-left {
    flex: 1;
    text-align: left;
    color: #fff;
}

.consult-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}

.consult-section p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-green {
    display: inline-block;
    background: #eee;
    padding: 15px 35px;
    border: 3px solid #000;
    text-decoration: none;
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 5px 5px 0 #000;
}

.btn-green:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Maskot area */
.consult-right {
    flex: 1;
    text-align: right;
}

.maskot-img {
    max-width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* =============================
   FOOTER
   ============================= */

.footer {
    background: #000;
    padding: 50px 80px;
    overflow-x: hidden;
}

.footer-grid {
    display: flex;
    gap: 48px;
    /* desktop aman */
    max-width: 1200px;
    margin: auto;
    width: 100%;
}


.footer-grid h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer-grid a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.8;
}

.footer-grid a:hover {
    color: #d52c2c;
}

/* content */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
}

.blog-category {
    font-size: 12px;
    color: #888;
}

.blog-detail {
    max-width: 800px;
    margin: auto;
}

.blog-body {
    line-height: 1.8;
    margin-top: 24px;
}



/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 900px) {

    .program-section,
    .stats,
    .dual-section,
    .teacher-list,
    .testi-grid {
        flex-direction: column;
        align-items: center;
    }

    .location-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* FOOTER */
    .footer {
        padding: 40px 24px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
        text-align: left;
    }

    .footer-grid div {
        width: 100%;
    }

    .footer-grid h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer-grid a {
        font-size: 14px;
        line-height: 1.9;
    }
}

@media (max-width: 992px) {

    .hero {
        padding: 140px 24px;
    }

    .program-section,
    .stats,
    .consult-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header {
        padding: 20px 24px;
    }

    .header.scrolled .logo-sticky {
        transform: scale(1.8);
    }
}

@media (max-width: 768px) {

    /* SEMBUNYIKAN NAVBAR DESKTOP */
    .navbar {
        display: none;
    }

    /* TAMPILKAN BURGER */
    .menu-toggle {
        display: flex;
    }

    /* RAPATKAN HEADER */
    .header {
        padding: 18px 20px;
    }
}