/* =====================================================================
   MEGA MENU STYLES (Services / Products) — EXACT MATCH TO HTML REFERENCE
   ===================================================================== */

/* =====================================================================
   BASE MEGA MENU - EXACTLY LIKE HTML
   ===================================================================== */
/* =====================================================================
   FONT FAMILY - ROBOTO BODY FONT
   ===================================================================== */

/* Apply Roboto font to body and all elements */
body,
html,
.th-header,
.th-menu-wrapper,
.mega-menu-wrap,
.th-mobile-menu,
.main-menu,
.mega-menu-promo-content,
.mega-menu-promo-content p,
.mega-menu-promo-content h5,
.mega-menu-promo-btn,
.mega-cat-list li a,
.mega-links li a,
.mega-item-panel h4 {
    font-family: 'Roboto', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}

/* Ensure all text elements inherit the font */
.th-mobile-menu ul li a,
.main-menu > ul > li > a,
.mega-item-panel h4,
.mega-cat-list li a,
.mega-links li a,
.mega-menu-promo-content p,
.mega-menu-promo-content h5,
.mega-menu-promo-btn {
    font-family: 'Roboto', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}
.main-menu .mega-menu-parent {
    position: static;
}

.main-menu .mega-menu-parent .mega-menu-wrap {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: 0 auto;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(20, 10, 40, 0.18);
    border: 1px solid rgba(131, 66, 246, 0.08);

    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    flex-wrap: nowrap !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 9999;
    overflow: hidden;
}

/* Visibility - EXACTLY LIKE HTML */
.main-menu .mega-menu-parent.mega-open .mega-menu-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Fallback: still support plain :hover for keyboard/no-JS cases */
.main-menu .mega-menu-parent:hover .mega-menu-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* small pointer arrow so it visually connects to the nav item */
.main-menu .mega-menu-parent .mega-menu-wrap::before {
    content: '';
}

/* =====================================================================
   HARD RESET: Kill any inherited theme list/flex rules
   ===================================================================== */
.mega-menu-wrap,
.mega-menu-wrap * {
    box-sizing: border-box;
}

.mega-menu-wrap ul,
.mega-menu-wrap ol {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.mega-menu-wrap ul li,
.mega-menu-wrap ol li {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    list-style: none !important;
}

.mega-menu-wrap a {
    text-decoration: none !important;
}

/* =====================================================================
   COLUMN 1: Category List - EXACTLY LIKE HTML
   ===================================================================== */
.mega-menu-categories {
    flex: 0 0 280px;
    max-width: 280px;
    background: var(--smoke-color, #f7f5ff);
    padding: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-right: 1px solid var(--th-border-color, #ece7fb);
}

.mega-cat-list li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px !important;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title-color, #17012c);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.mega-cat-list li a i {
    font-size: 12px;
    opacity: 0.55;
    flex-shrink: 0;
    margin-left: 12px;
}

.mega-cat-list li:hover a,
.mega-cat-list li.active a {
  background: linear-gradient(
        90deg,
        #7132f5 0%,
        #d98efb 100%
    ) !important;
background-image: linear-gradient(90deg, var(--theme-color, #8342f6) 0%, rgb(174, 146, 158) 100%);
    color: #fff !important;
}mega-cat-list li:hover a, .mega-cat-list li.active a

.mega-cat-list li:hover a i,
.mega-cat-list li.active a i {
    opacity: 1;
    color: #fff;
}

/* =====================================================================
   COLUMN 2: Active Item Panel - EXACTLY LIKE HTML
   ===================================================================== */
.mega-menu-items {
    position: relative;
    flex: 1 1 auto;
    padding: 30px 20px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-item-panel {
    display: none !important;
}

.mega-item-panel.active {
    display: block !important;
    animation: megaFadeIn 0.25s ease;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mega-item-panel h4 {
    font-size: 21px;
    font-weight: 700;
    color: var(--title-color, #17012c);
    margin: 0 0 20px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--th-border-color, #ece7fb);
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.mega-item-panel h4 i {
    font-size: 14px;
    color: var(--theme-color, #8342f6);
}

/* Single column list - EXACTLY LIKE HTML */
.mega-links {
    display: block !important;
}

.mega-links li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 9px 0px 9px 6px !important;
    font-size: 16px;
    color: #4b4657;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease;
    position: relative;
}

.mega-links li a:hover {
    color: var(--theme-color, #8342f6);
}

.mega-links li a i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--theme-color, #8342f6);
    opacity: 0.75;
    transition: all 0.25s ease;
}

.mega-links li a:hover i {
    opacity: 1;
    transform: translateX(3px) scale(1.12);
}

.mega-links li a svg {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 26px;
    color: var(--theme-color, #8342f6);
    opacity: 0.75;
    transition: all 0.25s ease;
}

.mega-links li a:hover svg {
    opacity: 1;
    transform: translateX(3px) scale(1.12);
}

/* =====================================================================
   COLUMN 3: Promo Panel - FULL PARAGRAPH DISPLAY
   ===================================================================== */
.mega-menu-promo {
    flex: 0 0 260px;
    max-width: 260px;
    align-self: flex-start;
}

.mega-menu-promo-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(131, 66, 246, 0.18);
    background: #fff;
    border: 1px solid var(--th-border-color, #ece7fb);
    width: 100%;
    max-width: 260px;
}

.mega-menu-promo-card video {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mega-menu-promo-card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mega-menu-promo-content {
    padding: 22px 20px;
    background: #fff;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.mega-menu-promo-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--smoke-color, #f7f5ff);
    border: 1px solid var(--th-border-color, #ece7fb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color, #8342f6);
    font-size: 15px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.mega-menu-promo-badge i {
    color: var(--theme-color, #8342f6);
}

.mega-menu-promo-content h5 {
    color: var(--title-color, #17012c) !important;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px !important;
    line-height: 1.3;
}

.mega-menu-promo-content p {
    color: #6b6775;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px !important;
    text-align: left;
    /* Allow paragraph to wrap naturally - FULL DISPLAY */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100%;
    display: block;
}

.mega-menu-promo-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
background: linear-gradient(
        90deg,
        #7132f5 0%,
        #d98efb 100%
    ) !important;
   background-image: linear-gradient(90deg, var(--theme-color, #8342f6) 0%, rgb(174, 146, 158) 100%);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    max-width: 100%;
    transition: all 0.25s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.mega-menu-promo-btn:hover {
    gap: 12px;
    box-shadow: 0 10px 22px rgba(131, 66, 246, 0.35);
    color: #fff !important;
}

/* =====================================================================
   AUTOMATIC COLUMN SPLIT - EXACTLY LIKE HTML
   ===================================================================== */
.mega-links.auto-two-col {
    column-count: 2;
    column-gap: 40px;
}

.mega-links.auto-two-col li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.mega-links.auto-two-col li a {
    white-space: normal;
    font-weight: 700 !important;
}

.abt-col-3.auto-three-col {
    column-count: 3;
    column-gap: 40px;
}

.mega-menu-wrap-flat {
    max-width: 900px !important;
    justify-content: space-between;
}

/* =====================================================================
   SCROLLBARS - EXACTLY LIKE HTML
   ===================================================================== */
.mega-menu-categories::-webkit-scrollbar,
.mega-menu-items::-webkit-scrollbar {
    width: 5px;
}

.mega-menu-categories::-webkit-scrollbar-thumb,
.mega-menu-items::-webkit-scrollbar-thumb {
    background: var(--theme-color, #8342f6);
    border-radius: 10px;
}

/* =====================================================================
   MOBILE: nested level2 / level3 accordion - EXACTLY LIKE HTML
   ===================================================================== */
.th-mobile-menu .level3 > li > a {
    padding-left: 20px !important;
    font-size: 14px;
    color: #5c5867;
}

.th-mobile-menu li.th-active > a {
    color: var(--theme-color, #8342f6);
}

/* =====================================================================
   RESPONSIVE SCALING FOR SMALLER DESKTOP WIDTHS - EXACTLY LIKE HTML
   ===================================================================== */
@media (max-width: 1400px) {
    .main-menu .mega-menu-parent .mega-menu-wrap {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .main-menu .mega-menu-parent .mega-menu-wrap {
        width: calc(100% - 24px);
        max-width: 900px;
    }
    .mega-menu-categories {
        flex: 0 0 240px;
        max-width: 240px;
    }
    .mega-menu-items {
        padding: 26px 28px;
    }
    .mega-links.auto-two-col {
        column-gap: 28px;
    }
    /* not enough room for the promo banner at this width — hide it and
       let the links panel use the freed-up space instead */
    .mega-menu-promo {
        display: none;
    }
}

/* =====================================================================
   MOBILE MENU STYLES - EXACTLY LIKE HTML REFERENCE
   ===================================================================== */

/* Mobile menu wrapper - EXACTLY LIKE HTML */
.th-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    width: 100%;
    height: 100%;
    transition: all ease 0.8s;
    opacity: 0;
    visibility: hidden;
}

.th-menu-wrapper.th-body-visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu area - EXACTLY LIKE HTML */
.th-menu-wrapper .th-menu-area {
    width: 100%;
    max-width: 310px;
    background-color: #fff;
    border-right: 3px solid var(--theme-color, #8342f6);
    height: 100%;
    position: relative;
    left: -110%;
    opacity: 0;
    visibility: hidden;
    transition: all ease 1s;
    z-index: 1;
}

.th-menu-wrapper.th-body-visible .th-menu-area {
    left: 0;
    opacity: 1;
    visibility: visible;
}

/* Mobile close button - EXACTLY LIKE HTML */
.th-menu-wrapper .th-menu-toggle {
    border: none;
    position: absolute;
    right: 20px;
    top: 26px;
    padding: 0;
    line-height: 1;
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 20px;
    z-index: 1;
    color: #fff;
    background-color: var(--theme-color, #8342f6);
    border-radius: 50%;
    cursor: pointer;
}

.th-menu-wrapper .th-menu-toggle:hover {
    background-color: var(--title-color, #1e035b);
    color: #fff;
}

/* Mobile logo - EXACTLY LIKE HTML */
.th-menu-wrapper .mobile-logo {
    display: block;
    text-align: start;
    background-color: #f5f5f5;
    padding: 25px 10px;
}

.th-menu-wrapper .mobile-logo img {
    max-width: 165px;
}

/* Mobile menu list - EXACTLY LIKE HTML */
.th-mobile-menu {
    overflow-y: scroll;
    max-height: calc(100vh - 200px);
    padding-bottom: 40px;
    margin-top: 25px;
    text-align: left;
}

.th-mobile-menu ul {
    margin: 0;
    padding: 0;
}

.th-mobile-menu ul li {
    border-bottom: 1px solid #e0e0e0;
    list-style-type: none;
}

.th-mobile-menu ul li a {
    display: block;
    position: relative;
    padding: 10px 0;
    font-size: 15px;
    color: var(--title-color, #1e035b);
    text-decoration: none;
}

.th-mobile-menu ul li a:hover {
    color: var(--theme-color, #8342f6);
}

/* Mobile expand toggle - EXACTLY LIKE HTML */
.th-mobile-menu .th-item-has-children > a .th-mean-expand {
    position: absolute;
    right: 0;
    top: 50%;
    font-weight: 400;
    font-size: 17px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    margin-top: -12.5px;
    display: inline-block;
    text-align: center;
    background-color: #f5f5f5;
    color: var(--title-color, #1e035b);
    box-shadow: 0 0 20px -8px rgba(173, 136, 88, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.th-mobile-menu .sub-menu {
    display: none;
    padding-left: 15px;
}

/* =====================================================================
   RESPONSIVE BREAKPOINTS - EXACTLY LIKE HTML REFERENCE
   ===================================================================== */

@media (max-width: 991px) {
    .th-menu-wrapper .th-menu-toggle {
        top: 29px;
    }
    
    .header-logo {
        padding: 0 27px;
        text-align: start;
    }
    
    .sidebar-btn {
        position: absolute;
        top: 6px;
    }
    
    .header-button {
        justify-content: end;
    }
    
    .header-layout2 .menu-area {
        padding: 10px 20px;
    }
    
    /* Hide desktop menu on mobile */
    .main-menu.d-none.d-lg-inline-block {
        display: none !important;
    }
    
    .header-button.d-flex.d-lg-none {
        display: flex !important;
    }
    
    .scrollable-menu {
        max-height: 85vh;
        overflow-y: auto;
        padding: 0 10px;
        scrollbar-width: thin;
    }
    
    .th-mobile-menu ul.sub-menu {
        display: none;
        padding-left: 0;
        list-style: none;
        margin: 5px 0 15px;
    }
    
    .th-mobile-menu ul > li {
        border-bottom: 1px solid #eee;
        padding: 0 10px;
    }
}

@media (max-width: 575px) {
    .th-menu-wrapper .mobile-logo {
        padding: 30px 10px;
    }
    
    .th-menu-wrapper .th-menu-toggle {
        right: 10px;
    }
    
    .th-menu-wrapper .th-menu-area {
        max-width: 300px;
    }
}

@media (max-width: 400px) {
    .th-menu-wrapper .th-menu-area {
        max-width: 300px;
    }
    .th-mobile-menu > ul {
        padding: 0 0px;
    }
}

/* =====================================================================
   ICON BUTTON - GLOSSY EFFECT (for hamburger)
   ===================================================================== */
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(-90deg, var(--theme-color3, #d98efb) 0%, var(--theme-color, #8342f6) 100%);
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.icon-btn:hover {
    transform: scale(1.05);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    animation: shineEffect 2.5s infinite;
    pointer-events: none;
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* =====================================================================
   STICKY HEADER STYLES - EXACTLY LIKE HTML REFERENCE
   ===================================================================== */
.sticky-wrapper {
    position: fixed;
    top: 15px;
    width: 100%;
    z-index: 9999;
    height: auto;
}

.sticky-wrapper.sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin-top:15px;
    background-color: transparent;
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.07));
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.07));
  
    animation: stickyAni 0.4s ease-in-out;
}

@-webkit-keyframes stickyAni {
    0% {
        -webkit-transform: translate3d(0, -40px, 0) scaleY(0.8);
        transform: translate3d(0, -40px, 0) scaleY(0.8);
        opacity: 0.7;
    }
    100% {
        -webkit-transform: translate3d(0, 0, 0) scaleY(1);
        transform: translate3d(0, 0, 0) scaleY(1);
        opacity: 1;
    }
}

@keyframes stickyAni {
    0% {
        -webkit-transform: translate3d(0, -40px, 0) scaleY(0.8);
        transform: translate3d(0, -40px, 0) scaleY(0.8);
        opacity: 0.7;
    }
    100% {
        -webkit-transform: translate3d(0, 0, 0) scaleY(1);
        transform: translate3d(0, 0, 0) scaleY(1);
        opacity: 1;
    }
}

/* =====================================================================
   HEADER LAYOUT - EXACTLY LIKE HTML REFERENCE
   ===================================================================== */
.header-layout2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.header-layout2 .menu-area {
    margin-top: 0;
    position: relative;
    padding: 20px 20px;
    box-shadow: 0 3px 15px rgba(137, 84, 255, 0.2);
    background: #fff;
    border-top-right-radius: 45px;
    border-bottom-left-radius: 45px;
}

.header-layout2 .menu-area .header-bg-shape {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-top-right-radius: 45px;
    border-bottom-left-radius: 45px;
}

/* =====================================================================
   WORDPRESS ADMIN BAR FIXES
   ===================================================================== */
.admin-bar .sticky-wrapper.sticky {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .sticky-wrapper.sticky {
        top: 46px !important;
    }
}

/* =====================================================================
   NAVIGATION ITEMS - FORCE SINGLE LINE
   ===================================================================== */

/* Force main menu items to stay in one line */
.main-menu > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-menu > ul > li {
    display: inline-block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin: 0 6px !important;
}

.main-menu > ul > li > a {
    white-space: nowrap !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--title-color, #1e035b) !important;
    text-decoration: none !important;
}

.main-menu > ul > li > a:hover {
    color: var(--theme-color, #7132f5) !important;
}

/* Make sure the menu container doesn't wrap */
.main-menu {
    white-space: nowrap !important;
    overflow: visible !important;
}

/* For smaller screens where items might still wrap */
@media (max-width: 1199px) {
    .main-menu > ul > li {
        margin: 0 4px !important;
    }
    .main-menu > ul > li > a {
        font-size: 13px !important;
        padding: 10px 6px !important;
    }
}

@media (max-width: 1024px) {
    .main-menu > ul > li > a {
        font-size: 12px !important;
        padding: 10px 4px !important;
    }
}

@media (max-width: 991px) {
    /* On mobile, hide desktop menu entirely - mobile menu takes over */
    .main-menu.d-none.d-lg-inline-block {
        display: none !important;
    }
}

/* =====================================================================
   MENU ARROW ICON FIX - FORCE CHEVRON DISPLAY
   ===================================================================== */

/* Force arrow icon on menu items with children */
.main-menu > ul > li.menu-item-has-children > a::after,
.main-menu > ul > li.has-submenu > a::after,
.main-menu > ul > li.has-megamenu > a::after {
    content: "\f107" !important;
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 600 !important;
    margin-left: 5px !important;
    font-size: 14px !important;
    color: var(--title-color, #1e035b) !important;
    transition: transform 0.3s ease-in-out !important;
    position: relative !important;
    top: 0 !important;
}

/* Rotate arrow on hover */
.main-menu > ul > li.menu-item-has-children:hover > a::after,
.main-menu > ul > li.menu-item-has-children > a:hover::after {
    transform: rotate(180deg) !important;
    color: var(--theme-color, #7132f5) !important;
}

/* =====================================================================
   PROMO CONTENT - FULL PARAGRAPH DISPLAY (NO ELLIPSIS)
   ===================================================================== */
.mega-menu-promo-content {
    padding: 22px 20px !important;
    background: #fff !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.mega-menu-promo-content p {
    color: #6b6775 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
    text-align: left !important;
    /* Allow full paragraph display with natural wrapping */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.mega-menu-promo-content h5 {
    color: var(--title-color, #17012c) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

.mega-menu-promo-badge {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--smoke-color, #f7f5ff) !important;
    border: 1px solid var(--th-border-color, #ece7fb) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--theme-color, #8342f6) !important;
    font-size: 15px !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.mega-menu-promo-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(
        90deg,
        #7132f5 0%,
        #d98efb 100%
    ) !important;
   background-image: linear-gradient(90deg, var(--theme-color, #8342f6) 0%, rgb(174, 146, 158) 100%);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: fit-content !important;
    max-width: 100% !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.mega-menu-promo-btn:hover {
    gap: 12px !important;
    box-shadow: 0 10px 22px rgba(131, 66, 246, 0.35) !important;
    color: #fff !important;
}

/* =====================================================================
   LOGO MARGIN FIX - OVERRIDE theme style
   ===================================================================== */
.col-xl-4 {
    margin-top: 5px !important;
}

/* Also fix for mobile */
@media (max-width: 991px) {
    .col-md-12 {
        margin-top: 0 !important;
    }
    .header-logo {
        margin-top: 0 !important;
        padding: 0 27px;
        text-align: start;
    }
}

/* =====================================================================
   ENSURE MEGA MENU IS ABOVE EVERYTHING
   ===================================================================== */
.mega-menu-wrap {
    z-index: 99999 !important;
}

/* ============================================================
   MOBILE SUBMENU - FORCE WORKING
   ============================================================ */
/* ============================================================
   MOBILE SUBMENU - FORCE WORKING
   ============================================================ */

/* Hide submenus by default */
.th-mobile-menu .sub-menu {
    display: none !important;
}

/* Show submenus when parent has th-active class */
.th-mobile-menu .th-active > .sub-menu {
    display: block !important;
}

/* Make toggle areas clickable */
.th-mobile-menu .th-item-has-children > a {
    cursor: pointer !important;
    position: relative !important;
    display: block !important;
    padding-right: 45px !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Toggle arrow styling */
.th-mobile-menu .th-item-has-children > a .th-mean-expand {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    text-align: center !important;
    font-size: 14px !important;
    background: #f0f0f0 !important;
    border-radius: 50% !important;
    color: var(--title-color, #1e035b) !important;
    pointer-events: none !important;
}

.th-mobile-menu .th-active > a .th-mean-expand {
    background: var(--theme-color, #7132f5) !important;
    color: #fff !important;
}

/* Level 2 nested submenu indentation */
.th-mobile-menu .level2 > .sub-menu {
    padding-left: 15px !important;
}

.th-mobile-menu .level3 {
    padding-left: 15px !important;
}

/* Mobile touch improvements */
@media (max-width: 991px) {
    .th-mobile-menu .th-item-has-children > a {
        touch-action: manipulation !important;
    }
    
    .th-mobile-menu .th-item-has-children > a .th-mean-expand {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 16px !important;
        right: 0 !important;
    }
}