:root {
    --dg-primary: #1675aa;
    --dg-primary-hover: #115d88;
    --dg-dark: #104b70;
    --dg-dark-light: #1675aa;
    --dg-accent: #45A365;
    --dg-cyan: #45A365;
    --dg-bg-light: #f7fafc;
    --dg-border: #e2e8f0;
    --dg-text-main: #1e293b;
    --dg-text-muted: #64748b;
}

/* Top Bar */
.top-bar {
    background: #104b70;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.top-contact-item i {
    color: #ffffff;
    font-size: 13px;
}

.top-contact-item:hover {
    color: #e2e8f0;
}

.iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    margin-left: 10px;
}

.iso-badge i {
    color: #fbbf24;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-socials a {
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.top-socials a:hover {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-2px);
}

html, body {
    overflow-x: clip !important;
}

#layout-header {
    position: relative;
    width: 100%;
    z-index: 99999;
}

#layout-content {
    padding-top: 0 !important;
}

/* Modal Popups z-index Override (Show on top of header) */
.modal-backdrop {
    z-index: 100000 !important;
}

.modal {
    z-index: 100005 !important;
}

/* Header */
.dg-main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--dg-border);
    position: relative;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(16, 75, 112, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dg-main-header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 25px rgba(16, 75, 112, 0.15) !important;
    animation: navFadeInDown 0.25s ease-in-out;
}

@keyframes navFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1400px;
    height: 78px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    flex-direction: column;
}

.header-logo a {
    text-decoration: none;
    display: inline-block;
}

.header-logo a img {
    width: 200px;
    height: auto;
    display: block;
}

@media only screen and (max-width: 1199px) {
    .header-logo a img {
        width: 130px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.nav-item {
    position: static;
}

.nav-link.mega-trigger {
    border: 0;
    background: transparent;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #104b70;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-link.mega-trigger:hover,
.nav-link.mega-trigger.active {
    background: #f0f6ff;
    color: var(--dg-primary);
}

.arrow {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.nav-link.mega-trigger.active .arrow {
    transform: rotate(180deg);
    color: var(--dg-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--dg-border);
    border-bottom: 1px solid var(--dg-border);
    box-shadow: 0 30px 70px rgba(16, 75, 112, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1400px;
    margin: auto;
    padding: 28px 30px 32px;
    display: grid;
    grid-template-columns: 270px 1fr 300px;
    gap: 30px;
}

.mega-sidebar {
    background: var(--dg-bg-light);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-item {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 13px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--dg-dark);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.side-item:hover,
.side-item.active {
    background: #ffffff;
    color: var(--dg-primary);
    box-shadow: 0 6px 18px rgba(16, 75, 112, 0.08);
}

.side-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: var(--dg-primary);
    border-radius: 0 4px 4px 0;
}

.side-arrow {
    font-size: 11px;
    color: #cbd5e1;
    transition: transform 0.2s ease;
}

.side-item.active .side-arrow {
    color: var(--dg-primary);
    transform: translateX(3px);
}

.menu-content {
    padding: 5px 10px;
}

.menu-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--dg-dark);
    margin-bottom: 6px;
}

.menu-description {
    font-size: 14px;
    color: var(--dg-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.menu-link {
    text-decoration: none;
    color: #334155;
    padding: 14px 16px;
    border: 1px solid var(--dg-border);
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.menu-link .arrow-icon {
    color: #cbd5e1;
    font-size: 12px;
    transition: all 0.2s ease;
}

.menu-link:hover {
    border-color: #b3d4fc;
    background: #f5f9ff;
    color: var(--dg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 75, 112, 0.08);
}

.menu-link:hover .arrow-icon {
    color: var(--dg-primary);
    transform: translateX(3px);
}

/* Promo Card */
.promo {
    min-height: 310px;
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #1e8bc9 0%, #1675aa 60%, #0e5077 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px rgba(22, 117, 170, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    right: -70px;
    top: -60px;
    pointer-events: none;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.promo h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.promo p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.promo-btn {
    width: fit-content;
    background: #ffffff;
    color: var(--dg-dark);
    padding: 11px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.promo-btn:hover {
    background: var(--dg-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(69, 163, 101, 0.4);
}

.promo-btn i {
    transition: transform 0.2s;
}

.promo-btn:hover i {
    transform: translateX(4px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--dg-border);
    background: #ffffff;
    color: var(--dg-dark);
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: var(--dg-bg-light);
    color: var(--dg-primary);
}

/* Mobile Category Selector Bar */
.mobile-cat-nav {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--dg-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-cat-nav::-webkit-scrollbar {
    display: none;
}

.mobile-cat-btn {
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 25px;
    border: 1px solid var(--dg-border);
    background: #f8fafc;
    color: var(--dg-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-cat-btn.active {
    background: var(--dg-primary);
    color: #ffffff;
    border-color: var(--dg-primary);
    box-shadow: 0 4px 12px rgba(22, 117, 170, 0.25);
}

/* Mobile Quick Contact Card */
.mobile-contact-card {
    display: none;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--dg-border);
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--dg-primary);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-contact-btn.alt {
    background: #f1f5f9;
    color: var(--dg-dark);
    border: 1px solid var(--dg-border);
}

/* Responsive */
@media(max-width: 1100px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mega-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 78px);
        background: #ffffff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100000;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .mega-inner {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .promo {
        display: none;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-cat-nav {
        display: flex;
    }

    .mobile-contact-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 640px) {
    .top-bar {
        display: none;
    }

    .nav-container {
        padding: 0 16px;
        height: 64px;
    }

    .header-logo a img {
        width: 135px;
    }

    .mega-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .mega-inner {
        padding: 16px;
        gap: 16px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-sidebar {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .side-item {
        font-size: 13px;
        padding: 11px 14px;
        border-radius: 10px;
    }

    .mobile-contact-card {
        grid-template-columns: 1fr;
    }
}
