/* from template */

 .close {
            float: right;
            font-size: 21px;
            font-weight: bold;
            line-height: 1;
            color: #000;
            text-shadow: 0 1px 0 #fff;
            opacity: 0.5;
            border: none;
            background: transparent;
            cursor: pointer;
        }
        .close:hover {
            color: #000;
            text-decoration: none;
            opacity: 0.75;
        }
        .bb-bookblock {
            width: 100%;
            height: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 100;
            -webkit-perspective: 1300px;
            perspective: 1300px;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 1)
        }

        .bb-custom-wrapper {
            float: left;
            width: 100%;
            position: relative;
            background-image: url('{{ asset('files/strip.png') }}'), url('{{ asset('files/leather-pattern.jpg') }}');

            background-repeat: no-repeat, repeat;
            background-position: center, center;
            border-radius: 10px;
            box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 1) inset;
            -moz-box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 1) inset;
            -webkit-box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 1) inset;
            padding: 30px;


        }

        .bb-custom-side:before,
        .bb-custom-side:after {
            content: "";
            position: absolute;
            width: 10px;
            border: solid 1px #eaeaea;
            outline: solid 1px #eaeaea;
            outline-offset: -4px;
            top: 0px;
            height: 100%;
            left: 3px;
            z-index: 10;
        }
@media (max-width: 991.98px) {
        .navbar-brand {
            margin-right: auto !important;
        }
        
        .header-search {
            display: none !important;
            
        }
          .search-container {
            width: 100% !important; /* make it full width or auto */
        }
    }
        .bb-custom-side:after {
            left: auto;
            right: 3px;
        }

        .bb-custom-side,
        .bb-custom-firstpage {
            -moz-box-align: center;
            -moz-box-pack: center;
            align-items: center;
            background: #fff none repeat scroll 0 0;
            float: left;
            height: 100%;
            overflow: hidden;
            width: 50%;
        }

        .bb-custom-side {
            padding: 50px;
            cursor: move;
            border-top: solid 3px #eaeaea;
            border-bottom: solid 3px #eaeaea;
            border-left: solid 1px #eaeaea;
            border-right: solid 1px #eaeaea;
            box-shadow: 0 40px 20px -25px rgba(0, 0, 0, 0.1);
            -moz-box-shadow: 0 40px 20px -25px rgba(0, 0, 0, 0.1);
            -webkit-box-shadow: 0 40px 20px -25px rgba(0, 0, 0, 0.1);

        }

        .bb-custom-wrapper>nav {
            position: absolute;
            left: 0px;
            bottom: 80px;
            width: auto;
            right: 0px;
            z-index: 100;
        }

        .bb-custom-wrapper>nav a {
            border-radius: 2px;
            color: #ccc;
            display: inline-block;
            font-size: 0;
            height: 40px;
            margin: 0px 5px;
            text-align: center;
            width: 40px;
            line-height: normal;
            position: absolute;
        }

        .bb-custom-wrapper>nav a#bb-nav-prev {
            left: 40px;
        }

        .bb-custom-wrapper>nav a#bb-nav-next {
            right: 40px;
        }

        .bb-custom-wrapper>nav a:hover {
            background-color: #000;
        }

        .bb-custom-icon:before {
            content: "\f104";
            font-family: FontAwesome;
            speak: none;
            font-size: 30px;
            line-height: 40px;
            display: block;
            -webkit-font-smoothing: antialiased;
        }

        .bb-custom-icon.bb-custom-icon-arrow-right:before {
            content: "\f105";
        }

        .bb-custom-icon-first:before,
        .bb-custom-icon-last:before {
            content: "\e002";
        }

        .bb-page {
            position: absolute;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
            -webkit-transition-property: -webkit-transform;
            transition-property: transform;
        }

        .bb-vertical .bb-page {
            width: 50%;
            height: 100%;
            left: 50%;
            -webkit-transform-origin: left center;
            transform-origin: left center;
        }

        .bb-horizontal .bb-page {
            width: 100%;
            height: 50%;
            top: 50%;
            -webkit-transform-origin: center top;
            transform-origin: center top;
        }

        .bb-page>div,
        .bb-outer,
        .bb-content,
        .bb-inner {
            position: absolute;
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }

        .bb-vertical .bb-content {
            width: 200%;
        }

        .bb-horizontal .bb-content {
            height: 200%;
        }

        .bb-page>div {
            width: 100%;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }

        .bb-vertical .bb-back {
            -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
        }

        .bb-horizontal .bb-back {
            -webkit-transform: rotateX(-180deg);
            transform: rotateX(-180deg);
        }

        .bb-outer {
            width: 100%;
            overflow: hidden;
            z-index: 999;
        }

        .bb-overlay,
        .bb-flipoverlay {
            background-color: rgba(0, 0, 0, 0.7);
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            opacity: 0;
        }

        .bb-flipoverlay {
            background-color: rgba(0, 0, 0, 0.2);
        }

        .bb-bookblock.bb-vertical>div.bb-page:first-child,
        .bb-bookblock.bb-vertical>div.bb-page:first-child .bb-back {
            -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
        }

        .bb-bookblock.bb-horizontal>div.bb-page:first-child,
        .bb-bookblock.bb-horizontal>div.bb-page:first-child .bb-back {
            -webkit-transform: rotateX(180deg);
            transform: rotateX(180deg);
        }

        /* Content display */
        .bb-content {
            background: #fff;
        }

        .bb-vertical .bb-front .bb-content {
            left: -100%;
        }

        .bb-horizontal .bb-front .bb-content {
            top: -100%;
        }

        /* Flipping classes */
        .bb-vertical .bb-flip-next,
        .bb-vertical .bb-flip-initial {
            -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
        }

        .bb-vertical .bb-flip-prev {
            -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
        }

        .bb-horizontal .bb-flip-next,
        .bb-horizontal .bb-flip-initial {
            -webkit-transform: rotateX(180deg);
            transform: rotateX(180deg);
        }

        .bb-horizontal .bb-flip-prev {
            -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
        }

        .bb-vertical .bb-flip-next-end {
            -webkit-transform: rotateY(-15deg);
            transform: rotateY(-15deg);
        }

        .bb-vertical .bb-flip-prev-end {
            -webkit-transform: rotateY(-165deg);
            transform: rotateY(-165deg);
        }

        .bb-horizontal .bb-flip-next-end {
            -webkit-transform: rotateX(15deg);
            transform: rotateX(15deg);
        }

        .bb-horizontal .bb-flip-prev-end {
            -webkit-transform: rotateX(165deg);
            transform: rotateX(165deg);
        }

        .bb-item {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            display: none;

        }

        /* No JS */
        .no-js .bb-bookblock,
        .no-js ul.bb-custom-grid li {
            width: auto;
            height: auto;
        }

        .no-js .bb-item {
            display: block;
            position: relative;
        }
        /******************************************** dropdown-menu ************************************/
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0; /* Align to the right edge of the parent */
    top: 100%; /* Position below the profile image */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    min-width: 150px;
    max-width: 200px; /* Optional: Set a max-width to prevent overflow */
    overflow: auto; /* Add scroll if content overflows */
}

.dropdown-menu.show {
    display: block; /* Show when toggled */
}

.dropdown-menu a {
    display: block;
    padding: 8px 0px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* Ensure the dropdown doesn't overflow the viewport */
.dropdown {
    position: relative;
    padding-left: 18px;
}

.dropdown-menu {
    right: 0;
    left: auto; /* Ensure it aligns to the right */
}
.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.dropdown-menu {
    text-align: right !important;
    direction: rtl;
    padding : 10px;
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .dropdown-menu {
        right: auto;
        left: 0; /* Align to the left on small screens */
    }
}

/*************************************************/

 
    /* Mobile menu styles */
    .navbar-toggler {
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--neutral-700);
        z-index: 1100;
        transition: all 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .mobile-menu.show {
        left: 0;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 1099;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }
    
    .mobile-profile-section {
        margin-bottom: 15px;
    }
    
    .mobile-profile-section .profile-img {
        width: 50px;
        height: 50px;
    }
    
    .mobile-divider {
        border-color: rgba(255,255,255,0.1);
        margin: 15px 0;
    }
    
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-list li {
        margin-bottom: 10px;
    }
    
    .mobile-nav-list a {
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 10px;
        border-radius: 5px;
    }
    
    .mobile-nav-list a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .mobile-nav-list i {
        width: 20px;
        text-align: center;
        margin-left: 10px;
    }
    
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .mobile-auth-buttons .btn {
        width: 100%;
    }
    
    /* Adjust navbar items for mobile */
    @media (max-width: 991.98px) {
        .navbar-brand {
            margin-right: auto !important;
        }
        
        .header-search {
            display: block !important;
            width: 100%;
            margin-top: 10px;
        }
          .search-container {
            width: 100% !important; /* make it full width or auto */
        }
    }
    
    /* Keep your existing styles */
    .header .navbar {
        background-color: var(--neutral-700);
        padding: 10px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
   /* .dropdown {
        position: relative;
        padding-left: 118px;
    }*/
    
    .nav-item .nav-link { 
        color: #FFF;
        font-size: 16px;
    }
    
    .header .navbar-nav .nav-link.active {
        color: #ffffff;
    }
    
    .nav-item .active {
       color: var(--Main, #EB6824); 
    }
    
    .profile-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .header-search {
        max-width: 500px;
        margin: 0 auto;
    }

    #mobileMenuButton .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Optional: Remove default border from the button */
    #mobileMenuButton {
        border: none;
    }
    
    /* Optional: Add focus styles */
    #mobileMenuButton:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    }

     .create-account{
        display: flex;
        height: 40px;
        padding: 8px 16px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        border: 1px solid var(--Main, #EB6824);
        background: var(--Main, #EB6824);
        color: #FFF;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-decoration:none;
    }
    .login-header{
        display: flex;
        height: 40px;
        padding: 8px 16px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        background: var(--Success-500, #00866B);
        color: #FFF;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-decoration:none;
    }