/* ==========================================================================
   Scoped Tilux Header & Footer Styles for Legacy Inner Pages
   Overrides assets/css/custom.css solid-header rules without touching body UI
   ========================================================================== */

header.main-header,
footer.main-footer.dark-section {
    --primary-color: #1D1D1D;
    --secondary-color: #FFFFFF;
    --bg-color: #F7F7F7;
    --text-color: #575757;
    --accent-color: #14546f;
    --accent-secondary-color: #4bb8e7;
    --white-color: #FFFFFF;
    --divider-color: rgba(29, 29, 29, 0.08);
    --dark-divider-color: rgba(255, 255, 255, 0.10);
}

header.main-header {
    position: absolute !important;
    top: 30px !important;
    left: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: 120 !important;
}

header.main-header .header-sticky {
    position: relative !important;
    background-color: #FFFFFF !important;
    border-radius: 100px !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16) !important;
    border-bottom: none !important;
    transition: all 0.4s ease-in-out !important;
}

header.main-header .header-sticky.active {
    position: fixed !important;
    top: 18px !important;
    left: 15px !important;
    right: 15px !important;
    max-width: 1380px !important;
    width: calc(100% - 30px) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(29, 29, 29, 0.08) !important;
    border-radius: 100px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(0) !important;
}

header.main-header .navbar {
    padding: 8px 0 !important;
    border-bottom: none !important;
}

header.main-header .navbar-brand img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain;
}

header.main-header .main-menu ul li {
    margin: 0 3px !important;
}

header.main-header .main-menu ul li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1D1D1D !important;
    padding: 12px 11px !important;
    white-space: nowrap;
}

header.main-header .main-menu ul li a:hover,
header.main-header .main-menu ul li a.active-link {
    color: #14546f !important;
}

header.main-header .main-menu > .nav-menu-wrapper > ul > li.submenu > a.nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

header.main-header .main-menu > .nav-menu-wrapper > ul > li.submenu > a.nav-link::after {
    content: '' !important;
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    font-family: inherit !important;
    background-color: currentColor !important;
    opacity: 0.65;
    flex-shrink: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, background-color 0.22s ease !important;
}

header.main-header .main-menu > .nav-menu-wrapper > ul > li.submenu:hover > a.nav-link::after {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
}

header.main-header .main-menu ul ul {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: top center;
    min-width: 255px !important;
    width: max-content !important;
    max-width: 315px !important;
    padding: 8px !important;
    margin: 0 !important;
    top: calc(100% + 10px) !important;
    left: 0;
    border-radius: 16px !important;
    background: linear-gradient(155deg, rgba(11, 48, 66, 0.98) 0%, rgba(18, 76, 102, 0.97) 100%) !important;
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    border: 1px solid rgba(155, 228, 255, 0.2) !important;
    border-top: 2px solid #4bb8e7 !important;
    box-shadow: 0 24px 56px rgba(4, 18, 28, 0.45), 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s ease !important;
    z-index: 220 !important;
}

header.main-header .main-menu > .nav-menu-wrapper > ul > li > ul::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

header.main-header .main-menu ul li.submenu:first-child ul {
    min-width: 255px !important;
    width: max-content !important;
}

header.main-header .main-menu ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 8px !important;
}

header.main-header .main-menu ul ul ul,
header.main-header .main-menu ul.right-231 {
    top: -8px !important;
    left: calc(100% + 10px) !important;
    right: auto !important;
    transform: translateX(8px) scale(0.98);
}

header.main-header .main-menu ul ul ul::before,
header.main-header .main-menu ul.right-231::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14px;
    width: 14px;
    background: transparent;
}

header.main-header .main-menu ul ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
    padding: 8px !important;
}

header.main-header .main-menu ul ul li {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    position: relative;
}

header.main-header .main-menu ul ul li:last-child {
    margin-bottom: 0 !important;
}

header.main-header .main-menu ul ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 228, 255, 0.09), transparent);
    pointer-events: none;
}

header.main-header .main-menu ul ul li > a.nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100%;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    white-space: nowrap;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease !important;
}

header.main-header .main-menu ul ul li > a.nav-link .menu-item-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

header.main-header .main-menu ul ul li > a.nav-link::before {
    content: none !important;
    display: none !important;
}

header.main-header .main-menu ul ul li:hover > a.nav-link,
header.main-header .main-menu ul ul li > a.nav-link:hover,
header.main-header .main-menu ul ul li > a.nav-link:focus {
    color: #ffffff !important;
    padding: 9px 14px !important;
    background: linear-gradient(90deg, rgba(75, 184, 231, 0.22) 0%, rgba(75, 184, 231, 0.07) 100%) !important;
    border-color: rgba(155, 228, 255, 0.25) !important;
    box-shadow: inset 2.5px 0 0 #4bb8e7, 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

header.main-header .main-menu ul li.submenu ul li.submenu > a.nav-link::after {
    content: '' !important;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(155, 228, 255, 0.22) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239be4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 2.5L8 6L4.5 9.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 10px !important;
    -webkit-mask: none !important;
    mask: none !important;
    opacity: 1 !important;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

header.main-header .main-menu ul li.submenu ul li.submenu:hover > a.nav-link::after {
    background-color: #4bb8e7 !important;
    border-color: #9be4ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 2.5L8 6L4.5 9.5'/%3E%3C/svg%3E") !important;
    box-shadow: 0 3px 10px rgba(75, 184, 231, 0.45) !important;
    transform: translateX(2px) !important;
}

.header-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.terramo-search-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(29, 29, 29, 0.12);
    background: #F7F7F7;
    color: #1D1D1D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.terramo-search-btn:hover {
    background: #14546f;
    border-color: #14546f;
    color: #FFFFFF;
}

header.main-header .header-btn .btn-default {
    background: #14546f !important;
    color: #FFFFFF !important;
    border-radius: 100px !important;
    padding: 14px 48px 14px 20px !important;
    font-size: 14px !important;
    line-height: 1em !important;
}

header.main-header .header-btn .btn-default::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 5px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #4bb8e7 !important;
    background-image: url('../images/arrow-primary.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 12px auto !important;
    transform: translateY(-50%) !important;
}

html[dir="rtl"] header.main-header .header-btn .btn-default {
    padding: 14px 20px 14px 48px !important;
}

html[dir="rtl"] header.main-header .header-btn .btn-default::before {
    right: auto !important;
    left: 5px !important;
    transform: translateY(-50%) scaleX(-1) !important;
}

.mobile-search-btn,
.responsive-menu {
    display: none;
}

.slicknav_menu {
    left: 0;
    right: 0;
    z-index: 250;
    background: transparent !important;
}

.slicknav_menu .slicknav_nav {
    background: #14546f !important;
    margin: 0 !important;
    border-radius: 0 0 14px 14px;
}

.slicknav_arrow:after {
    content: '' !important;
    width: 11px !important;
    height: 11px !important;
    background-color: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25'/%3E%3C/svg%3E") center / contain no-repeat;
}

.slicknav_open > a .slicknav_arrow:after {
    background-color: #9be4ff;
}

@media only screen and (max-width: 991px) {
    header.main-header {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    header.main-header .header-sticky,
    header.main-header .header-sticky.active {
        border-radius: 0 !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
    }
    .header-actions-wrap .header-btn {
        display: none !important;
    }
    .mobile-search-btn {
        display: inline-flex !important;
        margin-inline-end: 10px;
    }
    .responsive-menu {
        display: block !important;
    }
    header.main-header .navbar-toggle a.slicknav_btn {
        background: #14546f !important;
    }
    .slicknav_nav {
        background: #14546f !important;
    }
}

/* Give Inner Pages Breathing Space Below Absolute Tilux Floating Header */
.page-header {
    padding-top: 210px !important;
}

/* Scoped Tilux Footer */
footer.main-footer.dark-section {
    background-color: #1D1D1D !important;
    background-image: url('../images/dark-section-bg-image-1.png') !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    padding: 80px 0 36px !important;
    color: #FFFFFF !important;
}

footer.main-footer.dark-section .about-footer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 36px;
}

footer.main-footer.dark-section .footer-logo img {
    max-height: 46px;
    width: auto;
}

footer.main-footer.dark-section .about-footer-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 0;
}

footer.main-footer.dark-section .footer-newsletter-box {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.main-footer.dark-section .footer-newsletter-box h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 12px;
}

footer.main-footer.dark-section .footer-newsletter-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 5px 6px 5px 18px;
}

footer.main-footer.dark-section .footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 14px;
    min-width: 0;
}

footer.main-footer.dark-section .footer-newsletter-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #14546f;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

footer.main-footer.dark-section .footer-newsletter-form button i {
    color: #FFFFFF !important;
    font-size: 14px;
}

footer.main-footer.dark-section .footer-newsletter-form button:hover,
footer.main-footer.dark-section .footer-newsletter-form button:hover i {
    background: #4bb8e7;
    color: #1D1D1D !important;
}

footer.main-footer.dark-section .footer-policy-box-title h3 {
    color: #FFFFFF !important;
    font-size: 18px;
    margin: 0;
}

footer.main-footer.dark-section .footer-links-box {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 32px;
    margin-inline-start: 30px;
}

footer.main-footer.dark-section .footer-links {
    max-width: 100% !important;
    width: 100% !important;
}

@media only screen and (max-width: 1199px) {
    footer.main-footer.dark-section .footer-links-box {
        margin-inline-start: 0;
    }
}

@media only screen and (max-width: 991px) {
    footer.main-footer.dark-section .footer-links-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media only screen and (max-width: 575px) {
    footer.main-footer.dark-section .footer-links-box {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

footer.main-footer.dark-section .footer-links h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 20px;
}

footer.main-footer.dark-section .footer-links ul {
    list-style: disc;
    padding-inline-start: 20px;
    margin: 0;
}

footer.main-footer.dark-section .footer-links ul li {
    margin-bottom: 12px;
    color: #FFFFFF;
}

footer.main-footer.dark-section .footer-links ul li::marker {
    color: #4bb8e7;
}

footer.main-footer.dark-section .footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

footer.main-footer.dark-section .footer-links ul li a:hover {
    color: #4bb8e7;
}

footer.main-footer.dark-section .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

footer.main-footer.dark-section .footer-contact-item i {
    color: #4bb8e7;
    margin-top: 4px;
}

footer.main-footer.dark-section .footer-contact-item a {
    color: rgba(255, 255, 255, 0.88);
}

footer.main-footer.dark-section .footer-policy-info-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    margin-top: 30px;
}

footer.main-footer.dark-section .footer-social-links {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

footer.main-footer.dark-section .footer-social-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

footer.main-footer.dark-section .footer-social-links ul li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

footer.main-footer.dark-section .footer-social-links ul li a:hover {
    background: #4bb8e7;
    color: #1D1D1D;
}

footer.main-footer.dark-section .footer-copyright-text {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0 0;
    padding-inline-end: 72px;
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

footer.main-footer.dark-section .footer-copyright-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

footer.main-footer.dark-section .footer-powered-by a {
    color: #4bb8e7;
    font-weight: 600;
}
