/* Off-Canvas Menu Button */
.dhaka-offcanvas-trigger {
    background: #ffff;
    color: #d60d15;
    border: none;
    padding: 12px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    line-height: 1;
}

.dhaka-offcanvas-trigger:hover {
    background: #c20510;
}

.dhaka-offcanvas-trigger .menu-icon {
    display: inline-block;
}

.dhaka-offcanvas-trigger .menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* Overlay */
.dhaka-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
}

.dhaka-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Menu - বাম পাশ থেকে স্লাইড */
.dhaka-offcanvas-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
}

.dhaka-offcanvas-menu.active {
    left: 0;
}

/* Menu Header */
.dhaka-menu-header {
    background: #d60d15;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dhaka-menu-logo {
    flex: 1;
}

.dhaka-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.dhaka-logo-text .dhaka-site-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 3px;
}

.dhaka-logo-text .dhaka-site-subtitle {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1;
}

.dhaka-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dhaka-close-btn:hover {
    transform: rotate(90deg);
}

/* Search Box */
.dhaka-search-box {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: white;
}

.dhaka-search-form {
    display: flex;
    gap: 10px;
}

.dhaka-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.dhaka-search-input:focus {
    outline: none;
    border-color: #e30613;
}

.dhaka-search-btn {
    background: #e30613;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.dhaka-search-btn:hover {
    background: #c20510;
}

/* Menu Navigation */
.dhaka-menu-nav {
    background: white;
}

.dhaka-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dhaka-menu-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.dhaka-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.dhaka-menu-link:hover {
    background: #f8f8f8;
    color: #e30613;
}

.dhaka-menu-arrow {
    font-size: 10px;
    color: #999;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dhaka-menu-item.menu-item-has-children > .dhaka-menu-link .dhaka-menu-arrow {
    display: inline-block;
}

/* Submenu */
.dhaka-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dhaka-menu-item.menu-item-has-children.open > .dhaka-submenu {
    max-height: 1000px;
}

.dhaka-menu-item.menu-item-has-children.open > .dhaka-menu-link .dhaka-menu-arrow {
    transform: rotate(180deg);
}

.dhaka-submenu .dhaka-menu-item {
    border-bottom: 1px solid #ececec;
}

.dhaka-submenu-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}

.dhaka-submenu-link:hover {
    background: #f0f0f0;
    color: #e30613;
}

/* Current Menu Item */
.dhaka-menu-item.current-menu-item > .dhaka-menu-link,
.dhaka-menu-item.current-menu-ancestor > .dhaka-menu-link {
    color: #e30613;
    font-weight: 600;
}

/* Scrollbar Styling */
.dhaka-offcanvas-menu::-webkit-scrollbar {
    width: 6px;
}

.dhaka-offcanvas-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dhaka-offcanvas-menu::-webkit-scrollbar-thumb {
    background: #e30613;
    border-radius: 3px;
}

.dhaka-offcanvas-menu::-webkit-scrollbar-thumb:hover {
    background: #c20510;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dhaka-offcanvas-menu {
        width: 90%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .dhaka-menu-header {
        padding: 15px;
    }
    
    .dhaka-logo-text .dhaka-site-title {
        font-size: 18px;
    }
    
    .dhaka-search-box {
        padding: 12px 15px;
    }
    
    .dhaka-menu-link {
        padding: 13px 15px;
        font-size: 15px;
    }
    
    .dhaka-submenu-link {
        padding: 11px 15px 11px 35px;
        font-size: 14px;
    }
}

/* Body Scroll Lock when Menu is Open */
body.dhaka-offcanvas-open {
    overflow: hidden;
}

/* Animation Classes */
@keyframes slideInLeft {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}