/* Mobile Menu Trigger */
.ttm-mobile-menu-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ttm-mobile-menu-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ttm-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ttm-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Side Menu Drawer */
.ttm-side-menu-wrap {
    position: fixed;
    top: 0;
    right: -100%;
    /* Initially hidden */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    padding: 0;
    /* Removing padding to allow full-width separators */
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    overflow-y: auto;
}

.ttm-side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
}

/* Header/Branding inside drawer */
.ttm-side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 40px;
    border-bottom: 1px solid #f5f5f5;
}

.ttm-side-menu-logo img {
    max-width: 160px;
    height: auto;
}

.ttm-side-menu-close {
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #1a1a1a;
    border-radius: 50%;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttm-side-menu-close:hover {
    transform: rotate(90deg);
    background: #1a1a1a;
    color: #fff;
}

/* Navigation Links */
.ttm-side-nav {
    padding: 20px 0;
}

.ttm-side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttm-mobile-main-menu>li {
    border-bottom: 1px solid #f5f5f5;
    opacity: 0;
    transform: translateX(30px);
}

.ttm-mobile-main-menu>li:last-child {
    border-bottom: none;
}

.ttm-mobile-main-menu>li>a {
    display: block;
    padding: 12px 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttm-mobile-main-menu>li>a:hover {
    color: #1a73e8;
    padding-left: 45px;
    background: #fafafa;
}

/* Sub-menu Styling */
.menu-item-has-children {
    position: relative;
}

.ttm-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 52px; /* Matching the approximate height of the parent link (padding + line-height) */
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f5f5f5;
    cursor: pointer;
    background: transparent; /* Removed background to keep it clean */
    transition: all 0.3s ease;
    z-index: 2;
}

.ttm-submenu-toggle .dashicons {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.ttm-submenu-toggle.active .dashicons {
    transform: rotate(180deg);
}

.sub-menu {
    display: none;
    background: #f9f9f9;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}

.sub-menu li a {
    padding: 12px 45px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    color: #1a73e8;
    padding-left: 50px;
}

/* Extra Button (BDT Style) */
.ttm-side-menu-extra-btn-wrap {
    padding: 30px;
}

.ttm-side-menu-extra-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #d4af37;
    /* Gold color */
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ttm-side-menu-extra-btn:hover {
    transform: scale(1.05);
    background: #b8962f;
}

/* Social Icons */
.ttm-side-menu-social {
    display: flex;
    gap: 20px;
    padding: 40px;
    border-top: 1px solid #f5f5f5;
}

.ttm-side-social-item {
    font-size: 18px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.ttm-side-social-item:hover {
    color: #1a73e8;
    transform: translateY(-3px);
}

/* Responsive */
@media (min-width: 1025px) {
    .ttm-mobile-menu-trigger {
        display: none !important;
    }
}