/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

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

.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    line-height: 0;
}

.site-logo {
    height: 70px;
    width: auto;
    max-width: 250px;
}

.site-logo-dark {
    display: none;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #0079A8;
    text-decoration: none;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.main-navigation {
    /* display: flex; */
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    /* align-items: center; */
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
    color: #ED6C05;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ED6C05;
    transition: width 0.3s;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Mega Menu */
.main-navigation > div > ul > li {
    position: static;
}

.mega-menu-item > a {
    gap: 4px;
}

.mega-menu-arrow {
    transition: transform 0.3s ease;
}

.mega-menu-item:hover > .mega-menu-arrow,
.mega-menu-item.mega-menu-open .mega-menu-arrow {
    transform: rotate(180deg);
}

.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 3px solid #ED6C05;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mega-menu-item:hover > .mega-menu-panel,
.mega-menu-item.mega-menu-open > .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

ul.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

li.mega-menu-column {
    padding: 0;
}

li.mega-menu-column > a {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0079A8 !important;
    padding: 0 0 12px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

li.mega-menu-column > a::after {
    display: none;
}

.mega-menu-description {
    font-size: 13px;
    color: #999;
    margin-top: -8px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mega-menu-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0px !important;
}

.mega-menu-sub-list li {
    margin: 0;
}

.mega-menu-sub-list a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #555 !important;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.mega-menu-sub-list a:hover {
    color: #ED6C05 !important;
}

.mega-menu-sub-list a::after {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        background: #fff;
        position: relative;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .hamburger-line {
        background-color: #333;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 12px 20px;
        color: #333;
    }

    .main-navigation a:hover,
    .main-navigation a:focus,
    .main-navigation .current-menu-item > a {
        color: #ED6C05;
    }

    .main-navigation a::after {
        display: none;
    }

    .mega-menu-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f5f5f5;
        border-top: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
    }

    .mega-menu-item.mega-menu-open > .mega-menu-panel {
        max-height: 1000px;
    }

    .mega-menu-inner {
        padding: 15px 20px;
    }

    ul.mega-menu-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    li.mega-menu-column > a {
        color: #0079A8 !important;
        font-size: 14px;
        border-bottom-color: #e5e7eb;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .mega-menu-sub-list a {
        color: #555 !important;
        padding: 5px 0 5px 10px;
        font-size: 13px;
    }

    .mega-menu-sub-list a:hover {
        color: #ED6C05 !important;
        
    }

    .mega-menu-description {
        color: #999;
        font-size: 12px;
    }

    .mega-menu-arrow {
        margin-left: 4px;
    }

    .site-logo {
        height: 40px;
    }

    .site-logo-white {
        display: none;
    }

    .site-logo-dark {
        display: block;
    }

    .page-header {
        padding: 100px 0 40px;
        margin-bottom: 100px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-content {
        padding: 30px 0;
    }
}

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #1e40afc3 0%, #1e40afc3 100%),
                url('../images/page-header.jpg') center/cover no-repeat;
    padding: 140px 0 60px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 100px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}