/* Header Ticker - Desktop Only */
@media (max-width: 768px) {
    #kaen-desktop-ticker { display: none !important; }
}

.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.desktop-ticker {
    width: 100%;
    background: #2c3e50;
    color: #fff;
}

.ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    min-height: 40px;
}

.ticker-badge {
    background: #6c757d;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-posts {
    flex: 1;
    overflow: hidden;
    height: 24px;
    margin-right: 15px;
}

.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticker-item {
    display: none;
}

.ticker-item a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.ticker-clock {
    white-space: nowrap;
    font-size: 13px;
    color: #ecf0f1;
    flex-shrink: 0;
}

/* Site Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.site-branding { flex-shrink: 0; }
.site-title { margin: 0; font-size: 1.8rem; font-weight: 800; }
.site-title a { color: #333; text-decoration: none; }

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 16px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover { color: #007cba; }
.nav-menu a i { margin-left: 5px; font-size: 10px; }

.menu-item-has-children { position: relative; }

.sub-menu, .sub-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-radius: 6px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.sub-sub-menu {
    top: 0;
    left: 100%;
    z-index: 1001;
}

.menu-item-has-children:hover > .sub-menu,
.sub-menu .menu-item-has-children:hover > .sub-sub-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-menu a, .sub-sub-menu a {
    display: block !important;
    padding: 8px 16px !important;
    color: #666 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-bottom: 1px solid #f5f5f5;
}

.sub-menu a:hover, .sub-sub-menu a:hover {
    background: #f8f9fa;
    color: #007cba !important;
    padding-left: 20px !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.social-icons { display: flex; gap: 8px; }

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icons a:hover { transform: translateY(-2px); }
.social-icons a:nth-child(1):hover { background: #FF0000; color: white; }
.social-icons a:nth-child(2):hover { background: #E4405F; color: white; }
.social-icons a:nth-child(3):hover { background: #1DA1F2; color: white; }

.search-toggle {
    background: #007cba;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: searchSlideIn 0.3s ease;
}

@keyframes searchSlideIn {
    from { transform: scale(0.9) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.search-input-wrapper { display: flex; gap: 10px; }

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus { border-color: #007cba; }

.search-submit {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-submit:hover { background: #005a87; }

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #f5f5f5;
    color: #333;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; padding: 15px 20px; }
    .menu-toggle { display: flex; order: 3; }
    .header-actions { order: 2; }
    .social-icons { display: none; }
    .main-navigation { flex-basis: 100%; order: 4; margin-top: 15px; }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 20px 0;
        width: 100%;
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-menu,
    .nav-menu .sub-menu,
    .nav-menu .sub-sub-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        min-width: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 0 !important;
        background: transparent !important;
        width: 100% !important;
    }
    
    .nav-menu .sub-menu,
    .nav-menu .sub-sub-menu {
        display: none;
        padding-left: 20px !important;
        background: transparent !important;
    }
    
    .menu-item-has-children.submenu-open > .sub-menu,
    .menu-item-has-children.submenu-open > .sub-sub-menu {
        display: block !important;
    }
    
    .menu-item-has-children > a,
    .menu-item-has-children .menu-item-has-children > a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu .sub-menu,
    .nav-menu .sub-sub-menu {
        animation: none !important;
    }
    
    .search-container {
        width: 95%;
        padding: 20px;
    }
    
    .search-field { font-size: 16px; }
}