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

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-link {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    background: #1e3c72;
    position: sticky;
    top: 0;
    z-index: 99999;
    isolation: isolate;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-logo-text h1 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.nav-logo-text p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    padding: 10px;
    cursor: pointer;
    line-height: 1;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

nav li {
    position: relative;
    display: flex;
    align-items: center;
}

nav li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

nav li a:hover,
nav li a.active {
    background: rgba(255, 255, 255, 0.1);
}

nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav li a:hover::after,
nav li a.active::after {
    width: 80%;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    font-size: 9px;
    margin-left: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a3461;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
    z-index: 999999;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: normal; /* biar text wrap */
    word-wrap: break-word;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    background: transparent !important;
    white-space: normal;
    line-height: 1.4;
}

.dropdown-menu-sm {
    min-width: 130px;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffd700 !important;
    padding-left: 23px;
}

.dropdown-menu li a::after {
    display: none !important;
}

/* ============================================
   CONTENT
   ============================================ */
.content {
    min-height: 400px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1e3c72;
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    align-items: start;
}

.footer-section { width: 100%; }

.footer-section h3 {
    margin-bottom: 16px;
    color: #ffd700;
    font-size: 15px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-align: left;
    max-width: 100%;
}

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

.footer-section ul li {
    margin-bottom: 8px;
    font-size: 13px;
    text-align: left;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    display: inline-block;
}

.footer-section a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-section .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    transition: all 0.3s;
}

.footer-section .social-link:hover { padding-left: 5px; }

.footer-section .social-link svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    flex-shrink: 0;
}

.footer-section .social-link:hover svg {
    fill: #ffd700;
    transform: scale(1.1);
}

.footer-section .social-link span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    nav li a { padding: 18px 10px; font-size: 13px; }
    .nav-logo img { height: 45px; }
    .nav-logo-text h1 { font-size: 15px; }
}

@media (max-width: 1100px) {
    nav li a { padding: 18px 8px; font-size: 13px; }
    .nav-logo img { height: 42px; }
    .nav-logo-text h1 { font-size: 14px; }
}

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    nav li a { padding: 16px 7px; font-size: 12px; }
    .nav-logo img { height: 40px; }
    .nav-logo-text h1 { font-size: 13px; }
    .nav-logo-text p { font-size: 10px; }
    .dropdown-menu li a { font-size: 12px; }
}

@media (max-width: 968px) {
    .top-header .container {
        flex-direction: column;
        gap: 3px;
        text-align: center;
        font-size: 12px;
        padding: 8px 10px;
    }

    nav { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-container { padding: 0 10px; min-height: 55px; }

    .nav-logo {
        padding: 6px 0;
        gap: 8px;
        flex: 1;
        max-width: calc(100% - 50px);
    }

    .nav-logo img { height: 34px; flex-shrink: 0; }
    .nav-logo-text { overflow: hidden; }

    .nav-logo-text h1 {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-logo-text p {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        padding: 8px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .nav-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #152a4a;
        display: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .nav-menu-wrapper.active { display: block; }
    nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

    nav li a {
        width: 100%;
        padding: 13px 18px;
        white-space: normal;
        font-size: 13px;
        justify-content: flex-start;
    }

    nav li a::after { display: none; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #0d1f3a;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown.active .dropdown-menu { display: block; max-height: 600px; }
    .dropdown-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

    .dropdown-menu li a {
        padding: 11px 18px 11px 32px !important;
        font-size: 12px;
    }

    .dropdown-menu li a:hover { padding-left: 38px !important; }

    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    footer { padding: 40px 0 20px; }
    .footer-section { text-align: center; }
    .footer-section h3 { font-size: 14px; }
    .footer-section p { text-align: center; font-size: 12px; }
    .footer-section a { font-size: 12px; }
    .footer-section ul li { text-align: center; font-size: 12px; }
    .footer-section a:hover { padding-left: 0; transform: translateY(-2px); }
    .footer-section .social-link { justify-content: center; }
    .footer-bottom { font-size: 12px; }
}

@media (max-width: 768px) {
    .top-header { padding: 6px 0; font-size: 11px; }
    .top-header .container > div:last-child { display: none; }
    .top-header .container > div:first-child span { font-size: 10px; }
}

@media (max-width: 480px) {
    footer { padding: 30px 0 15px; }
    footer .container { padding: 0 15px; }
    .footer-content { gap: 20px; }
    .footer-section h3 { font-size: 13px; margin-bottom: 12px; }
    .footer-section p,
    .footer-section a,
    .footer-section ul li,
    .footer-section .social-link span { font-size: 12px; }
    .footer-section ul li { margin-bottom: 7px; }
    .footer-section .social-link { padding: 6px 0; }
    .footer-section .social-link svg { width: 16px; height: 16px; }
    .footer-bottom { padding-top: 18px; font-size: 11px; }
}

@media (max-width: 380px) {
    .nav-container { padding: 0 8px; }
    .nav-logo img { height: 30px; }
    .nav-logo-text h1 { font-size: 12px; }
    .nav-logo-text p { font-size: 8px; }
    .mobile-menu-toggle { width: 36px; height: 36px; font-size: 20px; }
}
