/* ------------------------------------
   Site Header
------------------------------------ */

/* ---- Theme Color: #006DB0 ---- */
.liquid_bg, .carousel-indicators .active, .icon_big, .post_cat,
.has-liquid-theme-background-color, .lp-list li:before {
    background-color: #006DB0 !important;
}
.liquid_bc, .post_body h1 span, .post_body h2 span, .ttl span,
.archive .ttl_h1, .search .ttl_h1, .formbox a,
.has-liquid-theme-background-color.is-style-blockbox {
    border-color: #006DB0 !important;
}
.breadcrumb {
    border-top: 3px solid #006DB0 !important;
}
.liquid_color, .navbar .current-menu-item, .navbar .current-menu-parent, .navbar .current_page_item,
.has-liquid-theme-color {
    color: #006DB0 !important;
}
a, a:hover, a:active, a:visited,
.post_body a, .post_body a:hover, .post_body a:active, .post_body a:visited {
    color: #006DB0;
}

/* ---- Header Layout ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #006DB0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header a,
.site-header a:hover,
.site-header a:visited {
    color: #fff;
}

/* Logo */
.site-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    gap: 10px;
}
.site-header-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ---- Nav ---- */
.site-header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.site-header-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header-nav > ul > li {
    position: relative;
}
.site-header-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    padding: 0 18px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
/* Dropdown arrow for mega menu items */
.has-mega > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    margin-left: 2px;
    transition: transform 0.2s;
}
.has-mega:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.site-header-nav > ul > li > a:hover,
.site-header-nav > ul > li:hover > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ---- Mega Menu ---- */
.mega-menu {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}
.mega-menu-inner {
    display: flex;
    flex-direction: column;
}
.mega-menu-inner a {
    display: block;
    padding: 10px 24px;
    font-size: 0.8125rem;
    color: #333 !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.mega-menu-inner a:hover {
    background: #f0f7fc;
    color: #006DB0 !important;
}

/* ---- Hamburger ---- */
.site-header-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.site-header-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}
.site-header-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.site-header-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Nav ---- */
.site-header-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #006DB0;
    z-index: 999;
    overflow-y: auto;
    padding: 0;
}
.site-header-mobile-nav.is-open {
    display: block;
}
.site-header-mobile-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header-mobile-nav > ul > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-header-mobile-nav > ul > li > a:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile accordion */
.mobile-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    text-align: left;
}
.mobile-group-toggle::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.2s;
}
.mobile-group.is-open .mobile-group-toggle::after {
    content: '-';
}
.mobile-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.1);
}
.mobile-group.is-open .mobile-sub {
    display: block;
}
.mobile-sub li a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-sub li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ---- Body Offset ---- */
body {
    padding-top: 64px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .site-header .container {
        height: 48px;
    }
    .site-header-nav {
        display: none;
    }
    .site-header-toggle {
        display: flex;
        margin-left: auto;
    }
    .site-header-mobile-nav {
        top: 48px;
    }
    body {
        padding-top: 48px;
    }
}
