/* Mobile Menu Overlay */
.th-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Mobile Menu Container */
.th-menu-area {
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    position: absolute;
    left: -100%;
    /* Initially hidden to the left */
    top: 0;
    transition: all 0.4s ease;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Visible State */
.th-menu-wrapper.th-body-visible {
    opacity: 1;
    visibility: visible;
}

.th-menu-wrapper.th-body-visible .th-menu-area {
    left: 0;
    /* Slide in */
}

/* Mobile Menu Toggle Button (Circular) */
.th-menu-toggle {
    width: 50px;
    height: 50px;
    line-height: 50px !important;
    background-color: var(--theme-color) !important;
    color: #fff !important;
    border-radius: 50% !important;
    text-align: center;
    border: none;
    font-size: 20px;
    display: inline-block;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999 !important;
    /* Ensure it is top of everything */
    position: relative;
    /* Ensure z-index applies */
}

.th-menu-toggle:hover {
    background-color: var(--theme-color2) !important;
    color: #fff;
    transform: rotate(90deg);
}

/* Close Button inside Menu */
.th-menu-area .th-menu-toggle {
    margin: 20px auto 10px;
    background-color: transparent !important;
    color: var(--title-color) !important;
    box-shadow: none;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    font-size: 24px;
}

.th-menu-area .th-menu-toggle:hover {
    background-color: transparent !important;
    color: var(--theme-color) !important;
    transform: rotate(90deg);
}

/* Mobile Menu List Styling */
.th-mobile-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.th-mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-mobile-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.th-mobile-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--title-color);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    position: relative;
}

.th-mobile-menu ul li a:hover {
    color: var(--theme-color);
    padding-left: 25px;
    /* Slight movement on hover */
}

.th-mobile-menu ul li a:before {
    display: none;
    /* Remove default arrow if present */
}

/* Contact Info Styling */
.th-widget-contact {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.th-widget-contact .widget_title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.th-widget-contact .widget_title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--theme-color);
}

.th-widget-contact .info-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.th-widget-contact .info-box:last-child {
    margin-bottom: 0;
}

.th-widget-contact .info-box_icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background-color: var(--theme-color);
    color: #fff;
    text-align: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.th-widget-contact .info-box_text {
    margin: 0;
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.5;
}

.th-widget-contact .info-box_text a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.th-widget-contact .info-box_text a:hover {
    color: var(--theme-color);
}

/* Logo Background Fix */
.logo-bg,
.header-logo .logo-bg {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.th-menu-wrapper .mobile-logo {
    text-align: center;
    padding: 20px 0;
}

.th-menu-wrapper .mobile-logo img {
    max-width: 150px;
    height: auto;
}

/* Ensure logo container doesn't have odd backgrounds */
.header-logo {
    background-color: transparent !important;
}

/* Enlarge Desktop Logo */
@media (min-width: 992px) {
    .header-logo img {
        max-width: 320px !important;
        /* Increased from default 200px */
        width: auto;
        height: auto;
    }
}