* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER & NAVIGATION */
header {
    background: white;
    padding: 1.2rem 6%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* logo */
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e4d6b;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 101;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
}

.logo-text-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: #000000;
    letter-spacing: -0.5px;
}

/* HAMBURGER MENU BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e4d6b;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #1e4d6b;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #1e4d6b;
}

.nav-links a:hover::after {
    width: 100%;
}

/* NAV RIGHT (Login/Register/Profile) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.masuk-btn-outline {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
    background: transparent;
    transition: color 0.3s;
}

.masuk-btn-outline:hover {
    color: #1e4d6b;
}

.masuk-btn {
    background: #1e4d6b;
    color: white;
    padding: 0.40rem 1.3rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
}

.masuk-btn:hover {
    background: #163d54;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 77, 107, 0.2);
}

/* PROFILE MENU */
.profile-menu {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-radius: 8px;
}

.profile-trigger:hover {
    background: #f7fafc;
}

.profile-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.dropdown-arrow {
    width: 25px;
    height: 25px;
    fill: currentColor;
    transition: transform 0.3s;
    cursor: pointer;
    padding: 3px;
}

.dropdown-arrow:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.profile-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-menu.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    text-align: left;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: #f7fafc;
    color: #1e4d6b;
}

.profile-dropdown form {
    margin: 0;
}

/* PAGE TITLE */
.page-title {
    text-align: center;
    padding: 3rem 0 2rem;
    background: #f8f9fa;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e4d6b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* footer */
.footer {
    background: linear-gradient(135deg, #1C3A4D 0%, #152e3d 100%);
    color: #E8F1F5;
    padding: 30px 40px 18px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.7fr 0.1fr 0.2fr 0.1fr;
    gap: 99px;
    margin-bottom: 25px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: 40px;
    padding-left: 60px;
}

.footer-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.logo-section {
    padding-right: 20px;
}

.logo-footer {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 57px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: -8px;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.address {
    color: #B8D4E6;
    line-height: 1.8;
    font-size: 14px;
    margin-top: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #B8D4E6;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #5DADE2, #3D6B8F);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #5DADE2;
    transform: translateX(4px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-section p {
    color: #B8D4E6;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-section svg {
    width: 18px;
    height: 18px;
    fill: #5DADE2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(184, 212, 230, 0.15);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.copyright {
    color: #8AACC2;
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* RESPONSIVE - TABLET */
@media (max-width: 968px) {
    header {
        padding: 1rem 4%;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    .logo-text-main,
    .logo-text-sub {
        font-size: 1rem;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-left: 0;
        margin-right: auto;
    }

    .footer {
        padding: 30px 24px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
    }

    nav {
        flex-wrap: nowrap;
    }

    /* Show Hamburger */
    .hamburger {
        display: flex;
        order: 3;
    }

    /* Remove underline effect on mobile */
    .nav-links a::after {
        display: none;
    }

    /* MOBILE MENU - FIXED FOR ALL 5 ITEMS */
    .nav-links {
        position: fixed !important;
        top: 75px !important;
        left: -100% !important;
        width: 100% !important;
        
        /* CRITICAL FIX: Height yang cukup untuk 5 menu */
        height: auto !important;
        min-height: 350px !important;
        max-height: 70vh !important;
        
        background: white !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        
        /* CRITICAL FIX: Padding yang pas */
        padding: 0.5rem 6% !important;
        padding-bottom: 1rem !important;
        
        gap: 0 !important;
        transition: left 0.3s ease !important;
        
        /* CRITICAL FIX: Enable scrolling */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        
        box-shadow: 2px 0 8px rgba(0,0,0,0.1) !important;
        z-index: 99 !important;
    }

    .nav-links.active {
        left: 0 !important;
    }

    /* Menu Items - Prevent Shrinking */
    .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .nav-links li:last-child {
        border-bottom: none !important;
    }

    /* Links - Proper Spacing */
    .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 0.9rem 0 !important;
        font-size: 0.85rem !important;
        color: #4a5568 !important;
        line-height: 1.5 !important;
    }

    .nav-links a:hover {
        padding-left: 8px !important;
        color: #1e4d6b !important;
    }

    /* Mobile Nav Right */
    .nav-right {
        position: fixed !important;
        bottom: 0 !important;
        left: -100% !important;
        width: 100% !important;
        background: white !important;
        padding: 1rem 6% !important;
        gap: 0.8rem !important;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1) !important;
        transition: left 0.3s ease !important;
        flex-direction: column !important;
        align-items: stretch !important;
        z-index: 100 !important;
    }

    .nav-links.active ~ .nav-right {
        left: 0 !important;
    }

    .masuk-btn-outline,
    .masuk-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    /* Profile Menu di Mobile */
    .profile-menu {
        width: 100% !important;
    }

    .profile-trigger {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.8rem !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
    }

    .profile-dropdown {
        position: static !important;
        box-shadow: none !important;
        margin-top: 0.5rem !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
    }

    .profile-menu.active .profile-dropdown {
        display: block !important;
    }

    /* Logo lebih kecil di mobile */
    .logo img {
        height: 35px !important;
    }

    .logo-text-main,
    .logo-text-sub {
        font-size: 0.9rem !important;
    }

    /* Overlay gelap saat menu terbuka */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 98;
        pointer-events: none;
    }

    body.menu-open::before {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }

    /* Page Title */
    .page-title {
        padding: 2rem 0 1.5rem;
    }

    .page-title h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    /* Footer */
    .footer {
        border-radius: 16px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-section h3 {
        font-size: 15px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }
}

/* RESPONSIVE - SMALL MOBILE */
@media (max-width: 480px) {
    header {
        padding: 0.8rem 4% !important;
    }

    .logo img {
        height: 30px !important;
    }

    .logo-text-main,
    .logo-text-sub {
        font-size: 0.85rem !important;
    }

    /* CRITICAL FIX: Small mobile adjustments */
    .nav-links {
        top: 65px !important;
        min-height: 320px !important;
        max-height: 65vh !important;
        padding: 0.5rem 5% !important;
    }

    .nav-links a {
        padding: 0.8rem 0 !important;
        font-size: 0.8rem !important;
    }

    .hamburger span {
        width: 22px !important;
    }

    .nav-right {
        padding: 1rem 5% !important;
    }

    .page-title h1 {
        font-size: 1.3rem;
    }
}

/*  UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 4%;
    }
}