.designer-overview-container {
    max-width: 1440px;
    margin: auto;
    padding: 60px 5%;
    padding-bottom: 24px;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    row-gap: 16px;
    column-gap: 16px;
    flex-wrap: wrap;
}

.header-3-container .designer-overview {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.header-3-container .designer-overview .avatar-container {
    height: 100px;
}

.header-3-container .designer-overview .avatar-default {
    font-size: 44px;
}

.header-3-container .designer-overview .desinger-name {
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
}

.header-3-container .designer-overview .in4-container {
    display: flex;
    align-items: center;
    column-gap: 38px;
    row-gap: 16px;
    flex-wrap: wrap;
}

.header-3-container .designer-overview .in4-container > *:not(:first-child) {
    position: relative;
    z-index: 0;
}

.header-3-container
    .designer-overview
    .in4-container
    > *:not(:first-child)::after {
    position: absolute;
    content: "";
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: #2c2c2c;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-3-container .designer-overview .star-rating {
    color: #ffbb00;
}

.header-3-container .designer-overview .review-count {
    color: #adb5bd;
}

.header-3-container .designer-overview .nation {
    display: flex;
    align-items: center;
    column-gap: 8px;
    color: #adb5bd;
}

.header-3-container .designer-overview .tag {
    border: solid 2px #adb5bd;
    border-radius: 22px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    color: #ffffff;
}

.header-3-container .designer-overview .tag.success {
    border-color: #3fdd78;
}

.chat-with-designer {
    background: #151618;
    border: solid 2px #5a5a5c;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    row-gap: 6px;
    column-gap: 6px;
    color: #aaaeb0;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 20px;
}

.tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 16px;
}

.tools .filter,
.tools .interactive {
    display: flex;
    align-items: center;
    column-gap: 16px;
    row-gap: 16px;
    flex-wrap: wrap;
}

.tools .filter .filter-item,
.tools .interactive .interactive-item {
    padding: 10px 16px;
    border-radius: 22px;
    color: #adb5bd;
    font-size: 14px;
    border: solid 2px #2c2c2c;
    cursor: pointer;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.tools .filter .filter-item.active {
    color: #ffffff;
    border-color: #4af73e;
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    min-height: 418px;
}

#image-comparison-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    z-index: 0;
    height: 260px;
}
.bg-home {
    height: 300px !important;
}

.img-bg {
    min-height: 260px;
    /* width: 383px; */ /* Removed fixed width */
}
#image-comparison-slider img {
    pointer-events: none;
    user-select: none;
    object-fit: cover;
    /* aspect-ratio: 16/11; */
}
#image-comparison-slider .img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
}
#image-comparison-slider .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0; /* Position image from the left of the wrapper */
    height: auto; /* Allow height to adjust based on width */
    /* width: 383px; */ /* Removed fixed width */
    max-width: none; /* Ensure image isn't constrained by wrapper width */
}
#image-comparison-slider .label {
    position: absolute;
    top: 16px;
    z-index: 3;
    width: 70px;
    height: 24px;
    font-size: 12px;
    text-align: center;
    transition: 0.25s cubic-bezier(0.68, 0.26, 0.58, 1.22);
    background: #dee2e6;
    border-radius: 24px;
    font-weight: 700;
    color: #151618;
    padding: 0;
}

#image-comparison-slider .arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    text-align: center;
    transition: 0.25s cubic-bezier(0.68, 0.26, 0.58, 1.22);
    transform: translateY(-50%);
    cursor: pointer;
}

#image-comparison-slider .arrow.arrow-left {
    left: 8px;
}

#image-comparison-slider .arrow.arrow-right {
    right: 8px;
}

#image-comparison-slider .label.label-before {
    left: 16px;
}
#image-comparison-slider .label.label-after {
    right: 16px;
}

#image-comparison-slider .handle {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 3;
}
#image-comparison-slider .handle-line {
    width: 1px;
    flex-grow: 1;
    background-color: #fff;
}
#image-comparison-slider .handle-circle {
    backdrop-filter: blur(12.721951484680176px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#image-comparison-slider .handle-circle:hover {
    cursor: col-resize;
}

.arrow-group {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    right: 0;
    left: 0;
    z-index: 3;
}

.footer-card {
    display: flex;
    align-items: center;
    border-radius: 8px;
    gap: 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 11;
    padding: 16px;
}

.footer-card::after {
    content: "";
    position: absolute;
    height: 30px;
    width: 100%;
    background-image: url("/assets/frontend/img/top-graphic.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    bottom: 86%;
    left: 0;
    right: 0;
}

.start-order-btn {
    margin-left: auto;
    background-color: #000;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 132px;
    height: 44px;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    z-index: 0;
}
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.tooltip-icon {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 130%;
    left: 0;
    padding: 12px 10px 12px 16px;
    background-color: #e9eff6;
    font-size: 12px;
    line-height: 20px;
    width: 234px;
    height: 164px;
    z-index: 4;
    border-radius: 6px;
}

.dropdown-content-tooltip {
    display: none;
    position: absolute;
    top: 130%;
    left: -80px;
    padding: 12px 10px 12px 16px;
    background-color: #e9eff6;
    font-size: 12px;
    line-height: 20px;
    width: 190px;
    height: 100px;
    z-index: 8;
    border-radius: 6px;
    color: #373a40;
}

.infomation .dropdown-content-tooltip::after {
    border-color: transparent transparent #e9eff6;
}
.dropdown:hover .dropdown-content {
    display: block;
}

.tooltip-icon:hover .dropdown-content-tooltip {
    display: block;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 20%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #e9eff6 transparent;
}

/* New styles for the dropdown menu */
.webui-popover-content {
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.webui-popover-content li {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #ffffff;
}

.webui-popover.bottom > .arrow:after,
.webui-popover.bottom-right > .arrow:after,
.webui-popover.bottom-left > .arrow:after {
    border-bottom-color: #2c2c2c !important;
}

.webui-popover-content li:hover {
    background-color: #373a40;
}

.dropdown-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 14px;
}

.most-project {
    padding: 8px 16px;
    border: 2px solid #373a40;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.most-project:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.selected-option {
    font-weight: 500;
    color: #ffffff;
}

.avt-menu-list {
    background-color: #373a40;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.card-item {
    max-width: 100%;
    position: relative;
}

.wrapper-dropdown {
    position: relative;
    z-index: 10;
}
.wrapper-dropdown .dropdown-content {
    display: none;
}
.review-container {
    background-color: #1c1c1e;
    border-radius: 12px;
    color: #ffffff;
    padding: 48px;
    margin: 0 80px;
}

.content-review {
    width: 80%;
}

.title-portfolio {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 180px;
}

.one-line-portfolio {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 70px;
}

.x-skill-desc, .x-what {
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
}

.x-skill-desc .arrow, .x-what .arrow {
    border: none !important;
}

.x-skill-desc.webui-popover > .arrow::after {
    border-top-color: #e9eff6 !important;
    border-bottom-color: #e9eff6 !important;
}

.x-skill-desc .webui-popover-content, .x-what .webui-popover-content {
    padding: 0;
}

.x-skill-desc .x-dropdown-content-tooltip {
    padding: 12px 10px 12px 16px;
    background-color: #e9eff6;
    font-size: 12px;
    line-height: 20px;
    border-radius: 6px;
}

.x-what.webui-popover > .arrow::after {
    display: none !important;
}

.x-what .x-dropdown-content {
    padding: 12px 10px 12px 16px;
    background-color: #ffffff;
    font-size: 12px;
    line-height: 20px;
    border-radius: 6px;
}

@media screen and (max-width: 1350px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-container {
        padding: 16px;
        margin: 0;
    }
    .content-review {
        width: 100%;
    }

    .img-bg {
        /* width: 100%; */ /* Keep this for small screens if needed, or remove if JS handles all */
    }

    #image-comparison-slider .img-wrapper img {
        /* width: 100%; */ /* Keep this for small screens if needed, or remove if JS handles all */
    }
}

@media screen and (max-width: 920px) {
    .footer-card {
        flex-direction: column;
    }

    .footer-card .infomation {
        width: 100%;
    }

    .start-order-btn {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 550px) {
    .review-container-header {
        flex-direction: column;
        gap: 20px;
    }
}
