/* Header Styles */
:root {
    --header-bg: #fff;
    --header-top-bg: #003366;
    --header-text: #333333;
    --header-light-text: #ffffff;
    --header-link: #555555;
    --header-link-hover: #003366;
    --header-accent: #ff6600;
    --header-btn-primary: #ff6600;
    --header-btn-primary-hover: #e65c00;
    --header-btn-secondary: #003366;
    --header-btn-secondary-hover: #002244;
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --header-mobile-menu-bg: #f9f9f9;
    --header-animation-time: 0.3s;
}

/* Reset for full width */
.elementor-section.elementor-section-boxed > .elementor-container .wp-custom-header,
.elementor-section.elementor-section-full_width > .elementor-container .wp-custom-header,
.site-header .wp-custom-header,
#masthead .wp-custom-header,
header .wp-custom-header {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* News ticker */
.header-news-ticker {
    background-color: var(--header-accent);
    color: var(--header-light-text);
    padding: 8px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 100;
}

.news-ticker-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-ticker-label i {
    margin-right: 8px;
}

.news-ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-wrapper {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 20px;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Top Bar */
.header-top {
    background: var(--header-top-bg);
    color: var(--header-light-text);
    padding: 10px 0;
    font-size: 0.9rem;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

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

.header-contact-info {
    display: flex;
    gap: 20px;
}

.header-contact-info a {
    color: var(--header-light-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all var(--header-animation-time) ease;
}

.header-contact-info a i {
    margin-right: 8px;
}

.header-social {
    display: flex;
    gap: 10px;
}

.header-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--header-light-text);
    border-radius: 50%;
    transition: all var(--header-animation-time) ease;
    text-decoration: none;
}

.header-social .social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Main Header */
.header-main {
    background-color: var(--header-bg);
    padding: 15px 0;
    position: relative;
    transition: all var(--header-animation-time) ease;
    box-shadow: var(--header-shadow);
    z-index: 100;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Logo and Title */
.header-logo-wrapper {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 20px;
    margin-bottom: 10px; /* Add space if wrapping occurs */
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-text);
}

.header-logo {
    flex: 0 0 auto;
    margin-right: 15px;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    transition: all var(--header-animation-time) ease;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title h1, .header-title h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--header-top-bg);
}

.header-title h1 {
    font-size: 1.2rem;
}

.header-title h2 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Menu Wrapper */
.header-menu-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;
    padding: 0 20px;
    overflow: visible; /* Allow menu to wrap */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.header-menu-wrapper::-webkit-scrollbar {
    display: none;
}

/* Menu Styling */
.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap; /* Allow menu items to wrap to next line */
    max-width: 100%;
}

.header-menu > li {
    position: relative;
}

.header-menu > li > a {
    display: block;
    padding: 10px 12px; /* Slightly reduced padding */
    color: var(--header-link);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--header-animation-time) ease;
    position: relative;
    font-size: 0.95rem; /* Slightly smaller font */
}

.header-menu > li > a:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--header-accent);
    transition: all var(--header-animation-time) ease;
    transform: translateX(-50%);
}

.header-menu > li:hover > a {
    color: var(--header-link-hover);
}

.header-menu > li:hover > a:after {
    width: 30px;
}

/* Submenu Styling */
.header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--header-animation-time) ease;
    z-index: 100;
    list-style: none; /* Add this to remove bullets */
}

.header-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu .sub-menu li {
    position: relative;
    list-style-type: none; /* Add this to ensure no bullets */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
}

.header-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--header-link);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--header-animation-time) ease;
}

.header-menu .sub-menu a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--header-accent);
    padding-left: 25px;
}

/* Nested Submenu */
.header-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.header-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Indicator */
.header-menu .menu-item-has-children > a:before {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8rem;
}

.header-menu .sub-menu .menu-item-has-children > a:before {
    content: '\f105';
    position: absolute;
    right: 15px;
}

/* Action Buttons */
.header-buttons {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    margin-bottom: 10px; /* Add space if wrapping occurs */
}

.header-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--header-animation-time) ease;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-btn-primary {
    background-color: var(--header-btn-primary);
    color: white;
}

.header-btn-primary:hover {
    background-color: var(--header-btn-primary-hover);
    transform: translateY(-3px);
}

.header-btn-secondary {
    background-color: var(--header-btn-secondary);
    color: white;
}

.header-btn-secondary:hover {
    background-color: var(--header-btn-secondary-hover);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--header-link);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Container */
.header-menu-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--header-mobile-menu-bg);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 30px;
}

.header-menu-container.active {
    right: 0;
}

.header-nav-mobile .header-menu {
    flex-direction: column;
    gap: 0;
}

.header-nav-mobile .header-menu > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-nav-mobile .header-menu > li > a {
    padding: 15px 0;
}

.header-nav-mobile .header-menu > li > a:after {
    display: none;
}

.header-nav-mobile .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0 0 0 20px;
    display: none;
}

.header-nav-mobile .menu-item-has-children.active > .sub-menu {
    display: block;
}

.header-nav-mobile .menu-item-has-children > a:before {
    float: right;
    transition: transform 0.3s ease;
}

.header-nav-mobile .menu-item-has-children.active > a:before {
    transform: rotate(180deg);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.mobile-buttons .header-btn {
    width: 100%;
}

/* Current Menu Item Styling */
.header-menu > li.current-menu-item > a,
.header-menu > li.current-menu-parent > a {
    color: var(--header-accent);
}

.header-menu > li.current-menu-item > a:after,
.header-menu > li.current-menu-parent > a:after {
    width: 30px;
}

.header-menu .sub-menu .current-menu-item > a {
    color: var(--header-accent);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .header-menu > li > a {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .header-logo img {
        max-height: 50px;
    }
    
    .header-title h1, .header-title h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    /* Disable sticky header in mobile view */
    .header-main.sticky {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        z-index: auto;
        padding: 15px 0;
        box-shadow: var(--header-shadow);
        animation: none;
        transform: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-menu-wrapper {
        display: none;
    }
    
    .header-main-content {
        justify-content: space-between;
    }
    
    .header-logo-wrapper {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    /* Hide social links bar in mobile view */
    .header-top {
        display: none;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        max-height: 45px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .header-title h1, .header-title h2 {
        font-size: 0.9rem;
    }
    
    .header-menu-container {
        width: 280px;
    }
}

/* Sticky header styles - DISABLED */
.header-main.sticky {
    /* Sticky positioning disabled - header will remain static */
    position: static;
    padding: 15px 0;
    box-shadow: var(--header-shadow);
    background-color: var(--header-bg);
}

/* Force submenu to be visible and above all other elements */
.header-main.sticky .header-menu > li {
    position: relative;
    z-index: 9991;
}

.header-main.sticky .header-menu .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: white !important;
    min-width: 220px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 5px !important;
    padding: 10px 0 !important;
    z-index: 9992 !important;
}

/* Override any other styles that might be interfering */
.header-main.sticky .header-menu > li:hover > .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure nested submenus also work properly */
.header-main.sticky .header-menu .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    z-index: 9993 !important;
}

.header-main.sticky .header-menu .sub-menu li:hover > .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Ensure proper submenu behavior during sticky/non-sticky transitions */
.header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--header-animation-time) ease;
    z-index: 100;
    list-style: none;
}

.header-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sticky header specific overrides */
.header-main.sticky .header-menu .sub-menu {
    z-index: 1010;
    background-color: white !important;
}



