/* === Base Header Styles === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
    width: 100%;
}

.tf-container {
    margin: 0 auto;
    padding: 0 40px;
}

/* Logo Quote Styles */
.main-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-quote {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.header-fixed .logo-quote {
    color: #04769d;
}

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

/* Navigation Styles */
.main-menu {
    flex: unset;
}

.navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.navigation li {
    position: relative;
}

.navigation li a {
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 17px;
    padding: 8px 0;
}

/* Submenu Styles */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 12px 0;
    display: none;
    min-width: 240px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    z-index: 1001;
}

.has-child:hover .submenu {
    display: block;
}

.submenu li a {
    color: #2c3e50 !important;
    padding: 12px 25px;
    display: block;
    white-space: nowrap;
    font-size: 17px;
}

.submenu li a:hover {
    background: #f8f9fa;
    color: #04769d !important;
}

/* Right Section Styles */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased gap */
}

/* Search Styles - FIXED */
.popup-show-form {
    position: relative;
}

.find.btn-show {
    color: inherit;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.find.btn-show:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-form-search {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    min-width: max-content;
    z-index: 2000;
    margin-top: 15px;
    opacity: 1;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.popup-form-search.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.close-form {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    background: none;
    border: none;
    padding: 5px;
}

.close-form:hover {
    color: #000;
}

.form-search {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-search fieldset.text {
    flex: 1;
    margin: 0;
    border: none;
    padding: 0;
}

.form-search #mobile-search-input {
    width: 100%;
    border: 1px solid #000000;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-search input:focus {
    outline: none;
    border-color: #04769d;
    box-shadow: 0 0 0 3px rgba(4, 118, 157, 0.1);
}

/* Logo Styles */
.main-logo {
    margin-left: 40px;
}

.site-logo img {
    transition: transform 0.3s ease;
    max-width: 70px;
    height: auto;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Mobile Button */
.mobile-button {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    margin: 6px 0;
    transition: 0.3s;
}

/* === DEFAULT HEADER (Blue Background) === */
.header-default {
    background: linear-gradient(135deg, #00768e 0%, #005a6e 100%);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);
}

.header-default .navigation > li > a {
    color: white;
}

.header-default .navigation > li > a:hover {
    color: #04769d;
    transform: translateY(-2px);
}

.header-default .find.btn-show {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

.header-default .find.btn-show:hover {
    color: #04769d;
    background: rgba(255, 215, 0, 0.25);
}

.header-default .navigation li.current-menu > a {
    color: #04769d !important;
    font-weight: 600;
}

/* === FIXED HEADER (White Background) === */
.header-fixed {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f0;
}

.header-fixed .navigation > li > a {
    color: #2c3e50;
}

.header-fixed .navigation > li > a:hover {
    color: #ff8901;
    transform: translateY(-2px);
}

.header-fixed .find.btn-show {
    color: #2c3e50;
    background: rgba(0, 118, 142, 0.08);
}

.header-fixed .find.btn-show:hover {
    color: #04769d;
    background: rgba(255, 137, 1, 0.12);
}

.header-fixed .navigation li.current-menu > a {
    color: #04769d !important;
    font-weight: 600;
}

/* Main Content Fix - Prevent Squeezing */
.main-content.style-1 {
    max-width: none;
    margin: 0 auto;
    /* Match header padding */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tf-container {
        max-width: 100%;
        padding: 0 30px;
    }

    .navigation {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .main-menu {
        display: none;
    }

    .mobile-button {
        display: block;
    }

    .navigation {
        flex-direction: column;
        gap: 20px;
    }

    .header-right {
        gap: 20px;
    }

    .popup-form-search {
        min-width: 370px;
    }

    .tf-container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .header-inner-wrap {
        flex-wrap: nowrap;
    }

    .main-logo {
        margin-left: 20px;
    }

    .site-logo img {
        max-width: 90px;
    }

    .popup-form-search {
        position: fixed;
        top: 70px;
        transform: translateX(-50%);
        min-width: 90%;
        max-width: 100%;
        padding: 20px;
    }

    .form-search {
        flex-direction: column;
        gap: 12px;
    }

    .form-search input {
        width: 100%;
    }

    .tf-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 15px;
    }

    .popup-form-search {
        min-width: 250px;
        padding: 15px;
    }

    .form-search {
        display: ruby;
    }

    .find.btn-show {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .form-search #mobile-search-input {
        width: 150%;
    }
}

.theFont {
    font-size: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    width: 100%;
    box-sizing: border-box;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
