.container-fluid {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.image-navbar {
    background-image: url("../images/headerbg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.navbar-brand {
    display: flex;
    align-items: flex-end;
}

.offcanvas {
    background-image: url("../images/Carbon-Bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    display: flex;
}

/* Card container */
.auction-card {
    position: relative;
}

/* Base border */
.auction-card {
    --border-angle: 0turn;
    --main-bg: conic-gradient(
        from var(--border-angle),
        #fafafa33,
        #fafafa33 95%
    );
    border: 1px solid hsla(0, 0%, 98%, 0.2);
    background:
        var(--main-bg) padding-box,
        var(--gradient-border) border-box,
        hsla(0, 0%, 98%, 0.2) border-box;
}

.auction-card:hover {
    border: 1px solid hsla(0, 0%, 98%, 0.2);
    --gradient-border: conic-gradient(
        from var(--border-angle),
        transparent 25%,
        #b48b34,
        #b48b34 99%,
        transparent
    );
    animation-play-state: start;
    animation: styles_bg-spin__p0c_X 3s linear infinite;
}
@keyframes styles_bg-spin__p0c_X {
    from {
        --border-angle: 0turn;
    }
    to {
        --border-angle: 1turn;
    }
}
.auction-card .btn {
    background-color: #b48b34;
    color: #000000;
    font-weight: 600;
}
.auction-card .btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.card button:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.icon-cart1 {
    display: none;
}

/* Hover state: Target the 'a' tag or '.btn' instead of 'button' */
.buy-now-btn {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6; /* Match default btn-light border */
}

.buy-now-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important; /* Makes the text white */
    border-color: #000000 !important;
}

.buy-now-btn:hover .icon-cart1 {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.buy-now-btn:hover .icon-cart {
    display: none;
}
/* Mobile only (xs) */
@media (max-width: 575.98px) {
    .card-mobile-max {
        max-height: 240px;
        overflow: hidden;
    }

    .fs-6 {
        font-size: 9px !important;
    }
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'contain' if you want the whole image visible */
    display: block;
}

.carousel-item img {
    border-radius: 1rem;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-card {
    transition: box-shadow 0.3s ease;
}

.record-image {
    transition: transform 0.4s ease;
}

.record-title {
    transition: color 0.3s ease;
}

/* Hover effects */
.record-card:hover {
    cursor: pointer;
}
.record-card:hover .record-image {
    transform: scale(1.08);
}

.record-card:hover .record-title {
    color: #dc3545; /* Bootstrap danger red */
}

.swiper-nav {
    position: relative;
    margin-bottom: 80px !important;
}

.swiper-nav .swiper-button-prev-custom {
    position: absolute;
    right: 72px;
    left: unset;
    border: none;
    width: 56px;
    height: 56px;

    background-image: url("../images/arrow-left.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    cursor: pointer;
}
.swiper-nav .swiper-button-prev-custom:hover {
    background-color: none;
    border: none;
    background-image: url("../images/arrow-left-black.svg");
}

/* Remove Swiper default arrow */
.swiper-nav .swiper-button-prev-custom::after {
    content: none;
}

.swiper-nav .swiper-button-next-custom {
    position: absolute;
    right: 0;
    border: none;

    width: 56px;
    height: 56px;

    background-image: url("../images/arrow-right.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    cursor: pointer;
}

.swiper-nav .swiper-button-next-custom::after {
    content: none;
}

.swiper-nav .swiper-button-next-custom:hover {
    background-color: none;
    border: none;
    background-image: url("../images/arrow-right-black.svg");
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.card-img-overlay {
    z-index: 2;
}

#our-success .col .card {
    border-radius: 0 !important;
}

.yearSwiper {
    width: 100%;
}

.year-slide {
    width: 100px !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.year-slide span {
    font-size: 22px;
    font-weight: 500;
    color: #6b6b6b;
    transition: 0.3s;
}

.year-slide:hover span,
.swiper-slide-active span {
    color: #ce0e2d;
}

.line {
    width: 80px;
    height: 3px;
    background: #e6e1df;
    border-radius: 25px;
    overflow: hidden;
}

.active-line {
    width: 0%;
    height: 100%;
    background: #ce0e2d;
    transition: width 0.3s;
}

.swiper-slide-active .active-line {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

/* Mobile Year Swiper */

.yearSwiperMobile {
    width: 100%;
}

.year-slide-mobile {
    width: 100px !important; /* adjust for mobile */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.year-slide-mobile span {
    font-size: 22px;
    font-weight: 500;
    color: #6b6b6b;
    transition: 0.3s;
}

.swiper-slide-active.year-slide-mobile span {
    color: #ce0e2d;
}

.swiper-slide-active.year-slide-mobile.line .active-line {
    width: 0%;
    height: 3px;
    background: #ce0e2d;
    transition: width 0.3s;
}

.swiper-slide-mobile-active .active-line {
    width: 100%;
}

.custom-btn {
    border-width: 1px; /* thin border */
    border-color: rgba(255, 255, 255, 0.7); /* light white border */
    color: #fff; /* text light */
    background-color: transparent; /* keep transparent */
    padding: 0.5rem 1.2rem; /* custom padding */
    width: auto; /* only fit content, not full width */
    transition: all 0.3s ease;
}

.custom-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* subtle hover effect */
    border-color: #fff; /* brighter border on hover */
    color: #fff; /* ensure text stays white */
}
.card-img-overlay .btn {
    width: auto; /* fit content */
    align-self: flex-start; /* align left instead of stretching */
}

#sellWithUs {
    --bs-gutter-x: 0px !important;
}

.sellWithUs-card {
    position: relative;
}

/* Base border */
.sellWithUs-card {
    --border-angle: 0turn;
    --main-bg: conic-gradient(
        from var(--border-angle),
        #fafafa33,
        #fafafa33 95%
    );
    border: 1px solid hsla(0, 0%, 98%, 0.2);
    background:
        var(--main-bg) padding-box,
        var(--gradient-border) border-box,
        hsla(0, 0%, 98%, 0.2) border-box;
}
.sellWithUs-card .btn:hover {
    background-color: #000000;
    color: #ffffff;
}

/* hide everything by default */
.sell-col .sell-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* show only active (col-lg-8) */
.sell-col.active .sell-content {
    opacity: 1;
    pointer-events: auto;
}

/* card column */
.sell-col-mobile {
    transition: height 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

/* collapsed content (text + button hidden) */
.sell-col-mobile:not(.active) .sell-content-mobile {
    display: none;
}

.card-icons-mobile {
    position: absolute;
    top: 1rem; /* distance from top */
    left: 50%; /* center horizontally */
    transform: translateX(-50%); /* adjust to center */
    display: flex;
    gap: 1rem; /* space between icons */
    z-index: 2;
}

/* collapsed icons */
.sell-col-mobile:not(.active) .card-icons-mobile img {
    width: 32px; /* smaller icons */
}

/* active card shows text + button */
.sell-col-mobile.active .sell-content-mobile {
    display: flex;
}

/* active card restores icon size */
.sell-col-mobile.active .card-icons-mobile img {
    width: 32px;
}

/* collapsed height for inactive cards */
.sell-card-mobile {
    height: 120px;
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease;
}

/* expanded height for active card */
.sell-col-mobile.active .sell-card-mobile {
    height: 300px;
}

/* background image styles */
.card-img-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* covers the card container */
    z-index: 1; /* behind content */
    transition: height 0.5s ease;
}

/* icons above image */
.card-icons-mobile {
    z-index: 2;
}

/* content above image */
.sell-content-mobile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* fill the card height */
    justify-content: space-between; /* text in center, button at bottom */
    z-index: 3;
    padding: 1rem;
}

/* center the text vertically */
.sell-content-mobile .text-block {
    flex-grow: 1; /* take available space for centering */
    display: flex;
    flex-direction: column;
    justify-content: end; /* center vertically */
}

/* button stays at bottom */
.sell-content-mobile button {
    align-self: flex-start; /* or flex-end if you want right-aligned */
}

/* Remove background from accordion buttons */
.accordion-button {
    background-color: transparent;
    color: inherit; /* optional, uses parent text color */
    box-shadow: none; /* remove the default inset shadow */
}

/* Remove background on hover/focus */
.accordion-button:hover,
.accordion-button:focus {
    background-color: transparent;
    box-shadow: none;
}

/* Remove background from accordion items */
.accordion-item {
    background-color: transparent;
    border: none; /* optional: remove borders if desired */
}

/* Remove background from accordion body */
.accordion-body {
    background-color: transparent;
    padding-left: 0; /* optional: remove padding if needed */
    padding-right: 0; /* optional */
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url(../images/ArrowOpen.svg) !important;
}

#emiratesAuction {
    margin-right: 0;
}

/* Chrome, Safari, Edge, Opera */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spinner[type="number"] {
    -moz-appearance: textfield;
}

.form-control:focus {
    --tw-border-opacity: 1;

    border-color: rgb(29 132 17 / var(--tw-border-opacity));
    box-shadow: none;
}

.form-select:focus {
    --tw-border-opacity: 1;

    border-color: rgb(29 132 17 / var(--tw-border-opacity));
    box-shadow: none;
}

/* Custom helper for the hover effect seen in your original code */
.hover-bg-dark:hover {
    background-color: #3a3d40 !important;
}
.cursor-pointer {
    cursor: pointer;
}

.profile-dropdown-custom {
    width: 380px;
    background: rgba(252, 250, 248, 0.98) !important;
    backdrop-filter: blur(6px);
    border-radius: 1rem !important;
}

.x-small {
    font-size: 0.75rem;
}

.gradient-text {
    background: linear-gradient(90deg, #ce0e2d 0%, #593737 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.logout-item:hover {
    background-color: rgba(206, 14, 45, 0.05);
}

.cursor-pointer {
    cursor: pointer;
}

/* RTL Support for arrows */
[dir="rtl"] .rtl-flip {
    transform: rotate(180deg);
}

/* Desktop Hover Effect */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        /* Anchors the menu to the right edge of the parent icon */
        right: 0 !important;
        left: auto !important;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        animation: fadeIn 0.3s ease;
    }
}

/* Animation for a smoother look */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom styling for your specific menu */
.profile-dropdown-custom {
    width: 380px;
    background: rgba(252, 250, 248, 0.98) !important;
    backdrop-filter: blur(6px);
    border-radius: 1rem !important;
    border: 1px solid rgba(26, 26, 26, 0.1) !important;
}

/* This ensures that even when not hovered, the menu stays within bounds */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

.profile-dropdown-custom {
    width: 380px;
    /* ... your other styles ... */
}

.profile-dropdown-custom {
    width: 380px !important;
    background: rgba(252, 250, 248, 0.98) !important;
    backdrop-filter: blur(6px);
    border-radius: 1rem !important;
    overflow: hidden; /* Keeps scrollbar inside rounded corners */
}

/* 2. Scroll Logic */
.dropdown-body-scroll {
    max-height: 300px; /* Adjust height to your liking */
    overflow-y: auto;
    overflow-x: hidden;
}

/* 4. Custom Styling Helpers */
.gradient-text {
    background: linear-gradient(90deg, #ce0e2d 0%, #593737 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: inherit !important;
}
.logout-item:hover {
    background-color: #ce0e2d0d !important;
}
.x-small {
    font-size: 0.75rem;
}
.rtl-flip {
    transition: transform 0.3s;
}
/* Custom Scrollbar Styling (Optional) */
.dropdown-body-scroll::-webkit-scrollbar {
    width: 5px;
}
.dropdown-body-scroll::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}
