﻿/***********************
* Topbar
***********************/
main {
    padding-top: 100px; /* Adjust this value as needed - try 30px, 50px, 80px, etc */
}

.header {
    min-width: 400px;
}

@media(max-width: 1199px) {
    .topbar {
        display: none;
    }
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    background-color: var(--thm-primary-dark);
    padding-right: 60px;
}

.topbar-left {
    display: flex;
}

.topbar-left-links,
.topbar-left-links a {
    font-family: "Times New Roman", Times, serif;
    color: #fff !important;
}

.topbar-left-links a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.topbar-socials {
    background-color: var(--thm-primary);
    padding: 10px;
    min-width: 253px;
    text-align: center;
}

.topbar-socials a {
    color: var(--thm-white);
    font-size: 14px;
}

.topbar-socials a + a {
    margin-left: 25px;
}

.topbar-info {
    padding: 10px 10px 10px 40px;
    color: var(--thm-secondary);
}

.topbar-one-middle .topbar-info {
    padding-left: 0;
}

@media(max-width: 1399px) {
    .topbar-one-middle .topbar-info {
        display: none;
    }
}

.topbar-info ul {
    padding: 0;
    margin: 0;
    display: flex;
    list-style-type: none;
}

@media(max-width: 991px) {
    .topbar-info ul {
        display: block;
    }
}

.topbar-info ul li {
    display: flex;
    align-items: center;
}

@media(max-width: 991px) {
    .topbar-info ul li {
        margin-bottom: 10px;
    }
}

.topbar-info ul li + li {
    margin-left: 35px;
}

@media(max-width: 991px) {
    .topbar-info ul li + li {
        margin-left: 0px;
    }
}

.topbar-icon i {
    color: var(--thm-accent);
    font-size: 14px;
}

.topbar-one-left .topbar-icon i {
    color: var(--thm-white);
}

.topbar-text a {
    margin-left: 5px;
    font-size: 13px;
}

.topbar-text {
    margin-left: 5px;
    font-family: var(--thm-font);
    font-size: 13px;
}

.topbar-text span {
    color: var(--thm-secondary);
    font-size: 13px;
}

.topbar-right {
    padding: 10px 0px;
}

@media(max-width: 1399px) {
    .topbar-right {
        display: none;
    }
}

.topbar-right ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.menu-two .topbar-right ul {
    padding: 20px 0px 15px;
}

.topbar-right li {
    display: inline-block;
    color: var(--thm-secondary);
    font-size: 13px;
}

.topbar-right li a:hover {
    color: var(--thm-white);
}

.topbar-right li + li:before {
    content: '/';
    margin: 0px 10px;
}

.topbar-one {
    display: flex;
    background-color: var(--thm-primary-dark);
    color: #000000;
}

@media(max-width: 991px) {
    .topbar-one {
        display: flex;
        justify-content: space-between;
    }
}

@media(max-width: 575px) {
    .topbar-one {
        display: flex;
        justify-content: space-between;
    }
}

.topbar-one-middle {
    display: flex;
    justify-content: space-between;
    padding: 8px 0px;
    align-items: center;
}

@media(max-width: 1199px) {
    .topbar-one-middle {
        display: block;
    }
}

/***********************
* Header
***********************/
.sticky-header--cloned {
    position: fixed;
    z-index: 991;
    top: 0;
    left: 0;
    background-color: var(--thm-white);
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-120%);
    box-shadow: 0px 10px 40px 0px rgb(0 0 0 / 15%);
}

@media (max-width: 1199px) {
    .sticky-header--cloned {
        display: none !important;
    }
}

.sticky-header--cloned.sticky-fixed {
    transform: translateY(0);
    opacity: 1;
    transition: transform 500ms ease, visibility 500ms ease, opacity 500ms ease;
    visibility: visible;
}

/***********************
* Menu
***********************/
.main-menu {
    background-color: var(--thm-light-bg);	
}

.main-menu.menu-two {
    padding-right: 0;
    z-index: 9;
    background-color: transparent;
    margin-bottom: -40px;
}

@media(max-width: 1199px) {
    .main-menu.menu-two {
        margin-top: 10px;
    }
}

@media(max-width: 575px) {
    .main-menu.menu-two {
        margin-top: -17px;
    }
}

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

.main-menu-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.main-menu-logo {
    min-width: 253px;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 33px 20px;
    background: #fff;
}

@media (max-width: 399px) {
    .main-menu-logo {
        width: 100%;
        max-width: 220px;
        padding: 33px 20px;
    }
}

.menu-logo {
    padding: 10px 20px;
    min-width: 250px;
    align-items: center;
    color: var(--thm-white);
    display: flex;
    background-color: var(--thm-primary-dark);
    justify-content: center;
}

@media(max-width: 575px) {
    .menu-logo {
        min-width: 170px;
    }
}

.header .menu-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    flex: 0 0 auto;
}

.header .menu-logo .logo-box {
    height: 90px;
    min-width: 90px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.header .menu-logo .logo-box img {
    width: auto;
    height: 100%;
    object-fit: contain !important;
    display: block;
    transition: opacity 0.3s ease;
}

.header .menu-logo .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.header .menu-logo .logo-title {
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin: 0;
}

.header .menu-logo .logo-sub {
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navigation {
    padding-left: 50px;
    padding-right: 40px;
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-two .navigation {
    padding-left: 20px;
}

@media (max-width: 1499px) {
    .navigation {
        padding-left: 50px;
    }	
}

@media (max-width: 1199px) {
    .navigation {
        display: none;		
    }	
}

.main-menu .main-menu-list {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

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

.main-menu .main-menu-list > li {
    position: relative;
}

.main-menu .main-menu-list > li > a {
    padding: 38px 0;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    position: relative;
    color: var(--thm-gray);
}

.main-menu .main-menu-list > li.active > a,
.main-menu .main-menu-list > li > a:hover {
    color: var(--thm-black);
}

.main-menu.menu-two .main-menu-list > li > a {
    padding: 23px 0;
}

.main-menu .main-menu-list > li + li {
    margin-left: 0;
}

@media (max-width: 1520px) {
    .main-menu .main-menu-list > li + li {
        margin-left: 0;
    }	
}

.mobile-menu-button span {
    background-color: var(--thm-black);
}

.mobile-menu-button {
    display: none;
    margin-left: 30px;
    margin-right: 30px;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 1399px) {
    .mobile-menu-button {
        display: block;		
    }	
}

@media (max-width: 575px) {
    .mobile-menu-button {
        margin-left: 0px;	
    }	
}

.mobile-menu-button span {
    height: 2px;
    width: 25px;
    background-color: var(--thm-black);
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover span {
    background-color: var(--thm-primary);
}

.mobile-menu-button span + span {
    margin-top: 4px;
}

.main-menu-right {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 20px;
}

@media (max-width: 575px) {
    .main-menu-right {
        margin-right: 20px;
    }
}

@media (max-width: 250px) {
    .main-menu-right {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
    }
}

a.search-toggler {
    display: block;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: var(--thm-white);
    line-height: 55px;
    text-align: center;
}

.search-box {
    margin-right: 30px;	
}

.search-box i {
    color: var(--thm-black);
    font-size: 20px;
    line-height: 2.5;
}

.search-box a {
    color: var(--thm-black);
    transition: color 0.3s ease;
    font-size: 18px;
}

.search-box a:hover {
    color: var(--thm-primary);
}

.main-menu-right-button .btn-primary {
    margin-right: 40px;
    padding: 12px 20px;
}

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

.main-menu-right-button .btn-primary a {
    color: var(--thm-white);
    padding: 10px 0px;
}

@media (max-width: 1399px) {
    .main-menu-right-button .btn-primary {
        padding: 13px 20px;		
    }	
}

.main-menu-one-inner {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 30px;
    position: relative;
    z-index: 99;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1399px) {
    .main-menu-one-inner {
        background-color: inherit;
        justify-content: end;
        padding: 0px;
        margin-top: 15px;
    }
}

@media (max-width: 575px) {
    .main-menu-one-inner {
        margin-top: 30px;
    }
}

.topbar-one-button {
    margin-top: 25px;
    margin-bottom: 25px;
    margin-right: 60px;
    display: flex;
    align-items: center;
}

@media(max-width: 1199px) {
    .topbar-one-button {
        display: none;
    }
}

@media(max-width: 767px) {
    .topbar-one-button {
        margin-left: 105px;
    }
}

@media(max-width: 575px) {
    .topbar-one-button {
        margin-left: 0px;
    }
}

.topbar-one-button .btn,
.topbar-one-button .btn-primary {
    padding: 10px 18px;
    min-width: 150px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    margin-left: 15px;
    background-color: var(--thm-primary);
}

@media(max-width: 1399px) {
    .topbar-one-button .btn-primary {
        display: none;
    }
}

@media(max-width: 991px) {
    .topbar-one-button .btn-primary {
        padding: 14px 49px;
    }
}

.topbar-one-button .btn-primary:hover,
.topbar-one-button .btn-primary:focus,
.topbar-one-button .btn-primary.active {
    background-color: var(--thm-primary);
}

.topbar-one-button a {
    flex-shrink: 0;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0;
}

.sticky-nav.show {
    transform: translateY(0);
}

.sticky-nav .main-menu-list > li > a {
    padding: 20px 0;
}

/* ========================================
   STICKY HEADER
   ======================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-header .topbar-one-middle {
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sticky-header .menu-logo {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.sticky-header .topbar-one-button {
    margin-top: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sticky-header.stuck .topbar-one-middle {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.sticky-header.stuck .menu-logo {
    padding: 5px 15px;
}

.sticky-header.stuck .menu-logo .logo-box {
    height: 50px;
    min-width: 50px;
}

.sticky-header.stuck .topbar-one-button {
    margin-top: 10px;
    margin-bottom: 10px;
}

.sticky-header.stuck {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-header.stuck .main-menu-list > li > a {
    padding: 15px 0;
}

/* ========================================
   MEGA MENU - FINAL WORKING VERSION
   ======================================== */

/* Force overflow visible on all parents */
.header,
.topbar-one,
.container,
.main-menu,
.main-menu-one-inner,
.navigation,
.main-menu-list {
    overflow: visible !important;
}


/* Parent li must be static for full-width dropdown */
.main-menu-list > li.has-dropdown {
    position: static !important;
}

/* Dropdown arrow */
.main-menu-list > li.has-dropdown > a::after {
    content: '\f107';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.main-menu-list > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* MEGA MENU CONTAINER */
.mega-menu {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 40px 60px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-top: 2px solid var(--thm-gray) !important;
    z-index: 99999 !important;
    display: none !important;
}

/* Show on hover */
.main-menu-list > li.has-dropdown:hover > .mega-menu {
    display: block !important;
}

/* Inner grid */
.mega-menu-inner {
    max-width: 1600px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
}

/* Columns */
.mega-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

/* Category */
.mega-category {
    display: block !important;
}

/* Category heading */
.mega-category h4 {
    display: block !important;
    margin: 0 0 15px 0 !important;
    padding: 0 0 12px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000 !important;
    border-bottom: 2px solid var(--thm-gray) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Category UL */
.mega-category > ul {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Category LI */
.mega-category > ul > li {
    display: block !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Service links */
.mega-category > ul > li > a {
    display: block !important;
    padding: 12px 16px !important;
    color: #555 !important;
    text-decoration: none !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid transparent !important;
}

.mega-category > ul > li > a:hover {
    background: var(--thm-accent) !important;
    color: var(--thm-black) !important;
    border-left-color: var(--thm-primary-dark) !important;
    transform: translateX(5px) !important;
}

/* Empty state */
.mega-category > ul > li > span {
    display: block !important;
    font-size: 13px !important;
    color: #999 !important;
    font-style: italic !important;
    padding: 10px 16px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
}

/* Responsive */
@media (max-width: 1600px) {
    .mega-menu {
        padding: 35px 50px !important;
    }
    
    .mega-menu-inner {
        max-width: 1400px !important;
        gap: 35px !important;
    }
}

@media (max-width: 1400px) {
    .mega-menu {
        padding: 30px 40px !important;
    }
    
    .mega-menu-inner {
        max-width: 1200px !important;
        gap: 30px !important;
    }
    
    .mega-category h4 {
        font-size: 15px !important;
    }
    
    .mega-category > ul > li > a {
        font-size: 13px !important;
        padding: 10px 14px !important;
    }
}

@media (max-width: 1200px) {
    .mega-menu {
        padding: 25px 30px !important;
    }
    
    .mega-menu-inner {
        max-width: 1000px !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 991px) {
    .mega-menu {
        display: none !important;
    }
}

/* Regular dropdowns (non-mega) */
.main-menu-list > li:not(.has-dropdown) > ul {
    position: absolute;
    width: 220px;
    left: -15px;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.main-menu-list > li:not(.has-dropdown):hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu-list > li:not(.has-dropdown) > a::after {
    display: none;
}