@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0d31ac;
    --primary-dark: #091f6e;
    --primary-light: #3b5ee6;
    --primary-lighter: #6b8cff;
    --accent: #4a7cff;
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f5f7fb;
    --text-dark: #2b2b2b;
    --text-body: #3c463c;
    --text-muted: #7b7b7b;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --container: 1290px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    overflow-x: hidden;
}
body {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
    background: #fff;
    height: 80px;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid transparent;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    width: 170px;
    flex-shrink: 0;
}
.header-logo a { display: flex; align-items: center; text-decoration: none; }
.header-logo img { max-height: 45px; width: auto; }

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    padding-left: 40px;
}
.header-nav > li,
.header-nav > a {
    list-style: none;
    position: relative;
}
.header-nav > a,
.nav-top-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 20px;
    transition: color 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.header-nav > a:hover,
.nav-top-link:hover { color: var(--primary); text-decoration: none; }
.header-nav > a.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}
.header-nav > a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.nav-top-link .chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.25s;
}
.nav-item-dropdown:hover .nav-top-link .chevron { transform: rotate(180deg); }
.nav-item-dropdown:hover .nav-top-link { color: var(--primary); }

/* Right icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.hamburger {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    display: none;
}
.icon-btn.hamburger:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hamburger-lines { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hamburger-lines span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
.hamburger-lines span:nth-child(2) { width: 14px; }

/* Mega Menu — Premium sidebar + content */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
}
[x-cloak] { display: none !important; }
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    width: 820px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 200;
    overflow: hidden;
    display: flex;
    pointer-events: auto;
}

/* Left sidebar */
.mega-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f4f8 100%);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eaecf0;
}
.mega-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px 13px 22px;
    font-size: 14.5px;
    font-weight: 500;
    color: #4a5568;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-left: 3px solid transparent;
    position: relative;
}
.mega-tab::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mega-tab:hover, .mega-tab.active {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    box-shadow: 2px 0 8px rgba(13,49,172,0.04);
}
.mega-tab:hover::after, .mega-tab.active::after {
    border-right-color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Right content */
.mega-content {
    flex: 1;
    padding: 16px 20px;
    min-height: 200px;
    display: flex;
    align-items: stretch;
}
.mega-panel { display: none; width: 100%; }
.mega-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-content: start;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 68px;
}
.mega-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-color: #d4ddf0;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(13,49,172,0.08);
    transform: translateY(-1px);
}
.mega-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #dde8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid #d0daee;
}
.mega-item:hover .mega-item-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    transform: scale(1.05);
}
.mega-item-icon img { width: 22px; height: 22px; object-fit: contain; }
.mega-item-icon svg { width: 20px; height: 20px; color: var(--primary); transition: color 0.2s; }
.mega-item:hover .mega-item-icon svg { color: #fff; }
.mega-item-title { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.3; transition: color 0.2s; }
.mega-item:hover .mega-item-title { color: var(--primary); }
.mega-item-desc { font-size: 12px; color: #8b95a5; line-height: 1.4; margin-top: 3px; }

/* Mobile nav */
@media (max-width: 968px) {
    .header-nav { display: none; }
    .header-logo img { max-height: 36px; }
    .icon-btn.hamburger { display: flex; }
}
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
}
.mobile-drawer-logo { padding: 0 20px 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.mobile-drawer-logo img { height: 32px; }
.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s;
}
.mobile-nav-link:hover { background: #f5f7fb; color: var(--primary); text-decoration: none; }
.mobile-nav-link.active { color: var(--primary); font-weight: 700; background: rgba(13,49,172,0.05); border-left: 3px solid var(--primary); }
.mobile-nav-group-title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mobile-nav-sub {
    padding: 6px 20px 6px 36px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}
.mobile-nav-sub-title {
    padding-top: 10px;
    font-weight: 600;
    color: var(--text-dark);
}
.mobile-nav-sub:hover { color: var(--primary); text-decoration: none; }
.mobile-nav-divider { height: 1px; background: #f0f0f0; margin: 8px 20px; }

/* Search Overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; align-items: flex-start; justify-content: center; padding-top: 120px; }
.search-overlay.open { display: flex; }
.search-box { background: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.search-box input { width: 100%; padding: 14px 18px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 16px; font-family: inherit; outline: none; }
.search-box input:focus { border-color: var(--primary); }

/* ===== MAIN ===== */
.main { }
.main-inner { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.main-padded { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

/* ===== FOOTER — Diwe style ===== */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #050e3a 100%);
    padding: 0; margin-top: 0; color: #fff;
    position: relative;
}
.footer::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='85' cy='15' r='30' fill='rgba(255,255,255,0.02)'/%3E%3Ccircle cx='15' cy='85' r='25' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E") no-repeat;
    background-size: cover; pointer-events: none;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 15px; position: relative; z-index: 1; }

/* Top row */
.footer-row-top { display: flex; gap: 32px; padding: 60px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: center; justify-content: space-between; }
.footer-top-left { flex: 1 1 auto; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; min-width: 0; }
.footer-top-right { flex: 0 0 400px; max-width: 400px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.footer-logo { margin-bottom: 0; display: flex; align-items: center; flex-shrink: 0; }
.footer-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-contact-box { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
.footer-contact-icon {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
}
.footer-contact-icon svg { width: 20px; height: 20px; color: #fff; }
.footer-contact-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.footer-contact-value { font-size: 16px; font-weight: 600; }
.footer-contact-value a { color: #fff; text-decoration: none; }
.footer-contact-value a:hover { color: var(--primary-lighter); text-decoration: none; }

.footer-cta-text { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; line-height: 1.4; width: 100%; }
.footer-form { display: flex; gap: 0; max-width: 400px; width: 100%; }
.footer-form input {
    flex: 1; padding: 0 18px; height: 48px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px 0 0 8px; background: rgba(255,255,255,0.08); color: #fff;
    font-size: 15px; font-family: inherit; outline: none;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form input:focus { border-color: var(--primary-lighter); }
.footer-form button {
    padding: 0 24px; height: 48px; background: linear-gradient(90deg, var(--primary-light), var(--primary));
    color: #fff; border: none; border-radius: 0 8px 8px 0; font-size: 15px;
    font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.2s;
}
.footer-form button:hover { opacity: 0.9; }

/* Bottom row */
.footer-row-bottom { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.footer-col-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-address { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none;
    padding: 6px 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 99px;
    transition: all 0.2s;
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); text-decoration: none; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }

/* Copyright */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .footer-row-top { flex-direction: column; gap: 30px; }
    .footer-top-left { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-top-right { flex: 1 1 auto; max-width: none; width: 100%; align-items: flex-start; }
    .footer-cta-text { text-align: left; font-size: 20px; }
    .footer-row-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .footer-row-bottom { grid-template-columns: 1fr; } }
