/* Make main-content padding responsive */
/* .main-content {
    padding-top: 157px;
    padding-bottom: 137px;
} */

/* Responsive Typography */
h1,
.header-content .title h1 {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
    line-height: 1.2;
    margin-bottom: 2rem !important;
}

.text-\[40px\] {
    font-size: 50px;
    line-height: 100%;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 7rem;
    /* flex-wrap: wrap; */
}

/* Title styles */
.header-content .title {
    flex: 1 1 170px;
    min-width: 200px;
    margin-bottom: 4.625rem;
    text-align: left;
}

/* Responsive heading */
.header-content .title h1 {
    font-size: clamp(3.125rem, 2vw + 1rem, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
}

/* Image/Dropdown container */
.image-dropdowns {
    flex: 4 1 0px;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    gap: 1.5rem;
}

/* Column for each image+select */
.image-dropdowns .column {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    /* max-width: 315px; */
}

.image-dropdowns img {
    width: 100%;
    height: 266px;
    /* max-width: 266px; */
    object-fit: contain;
}

.image-dropdowns select {
    background: transparent;
    color: #f9f9f9;
    border: 2px solid #455785;
    padding: 0.5rem 0.563rem 0.5rem 1.25rem;
    width: 100%;
    /* max-width: 300px; */
    appearance: none;
    background: url("/src/assets/drop_down.svg") no-repeat right 0.75rem center;
    background-size: 1.5rem 1.5rem;
    font-size: 20px;
    font-weight: 400;
}

.custom-select option {
    background-color: #0f1315;
    color: white;
}

/* Comparison Table Responsiveness */
.comparison-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table td {
    padding: 42.5px 0 42.5px 40px;
    /* text-align: center; */
    font-size: clamp(1.5625rem, 1vw, 1rem);
    vertical-align: middle;
    font-weight: 700;
    color: #F9F9F9;
    text-align: center;
    line-height: 100% !important;
}

.comparison-table td:has(br),
.comparison-table td:has(span:only-of-type:not(:empty):not(:last-child)) {
    padding-top: 20px;
    padding-bottom: 20px;
}

.comparison-table tr {
    border: 2px solid #455785;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 300;
    color: #f9f9f9;
    width: auto;
    min-width: 150px;
    font-size: 25px;
    line-height: 1.1;
}

.comparison-table .highlight {
    color: #7DABFF;
    font-weight: 600;
}

/* Disclaimer */
.disclaimer {
    font-size: clamp(1rem, 1vw, 0.85rem);
    font-weight: 300;
    color: #71716F;
    margin-top: 4rem;
    line-height: 1.6;
    padding: 0 1rem;
    text-align: left;
}

@media (max-width: 440px) {
    .chamber-compare {
        font-size: 10px;
    }
}

/* Small screens */
@media (max-width: 1079px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .px-40 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    .image-dropdowns img {
        width: 100%;
        height: 266px;
        max-width: 266px !important;
        object-fit: contain;
    }

    .header-content .title {
        text-align: center;
        margin-bottom: 1rem;
    }

    .image-dropdowns {
        justify-content: center;
    }

    .comparison-table table {
        font-size: 0.85rem;
    }

    .disclaimer {
        text-align: center;
    }
}

@media (max-width: 1279px) {
    /* .main-content {
        padding: clamp(8rem, 6vw, 10rem) clamp(1.5rem, 5vw, 6rem) clamp(2rem, 4vw, 5rem);
    } */

    .header-content {
        /* align-items: flex-start; */
    }
}

@media (max-width: 1500px) {
    /* .image-dropdowns img {
        width: 100%;
        height: 235px !important;
        max-width: 366px;
        object-fit: contain;
    } */
    /* .main-content {
        padding: clamp(10rem, 6vw, 10rem) clamp(1.5rem, 5vw, 6rem) clamp(2rem, 4vw, 5rem);
    } */
}

/* @media (max-width: 1079px) {
    .main-content {
        padding-top: 100px;
        padding-bottom: 100px;
    }
} */

@media (max-width: 1079px) {

    .comparison-table td {
        padding: 25px 0 25px 25px;
        /* text-align: center; */
        font-size: 20px;
        vertical-align: middle;
        font-weight: 400;
    }

    .comparison-table td:first-child {
        font-size: 20px;
    }

    /* .main-content {
        padding: clamp(6rem, 6vw, 10rem) clamp(1.5rem, 5vw, 6rem) clamp(2rem, 4vw, 5rem);
    } */

    .header-content .title {
        margin-bottom: 0;
        /* text-align: center; */
    }

    /* h1, */
    .header-content .title h1 {
        margin-bottom: 0;

    }

    .image-dropdowns img {
        width: 100%;
        height: 266px !important;
        max-width: 266px;
        object-fit: contain;
    }
}

@media (max-width: 1079px) {
    .header-content .title {
        flex: 1 1;
        width: 100%;
    }
}

@media (max-width: 530px) {
    .header-content .title {
        width: 100%;
    }
}

.mobile-comparison {
    display: none;
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 999px) {
    .header-content {
        gap: 2rem;
    }

    .header-content .title h1 {
        font-size: 40px;
        line-height: 1.2;
        font-weight: 700;
    }
}

@media (max-width: 1079px) {
    .header-content {
        gap: 2rem;
        /* flex-wrap: wrap; */
    }

    .header-content .title h1 {
        font-size: 40px;
        line-height: 1.2;
        font-weight: 700;
    }

    .image-dropdowns select {
        font-size: 15px;
    }
}


/* Hide default content on mobile */
@media (max-width: 1079px) {

    .image-dropdowns,
    .comparison-table {
        display: none;
    }

    .mobile-comparison {
        display: block;
        width: 100%;
        margin-top: 2rem;
    }

    .mobile-comparison .pair {
        padding: 1rem;
        border-radius: 8px;
    }

    .mobile-comparison .image-row {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .mobile-comparison .image-row img {
        width: 45%;
        max-height: 150px;
        object-fit: contain;
    }

    .mobile-comparison .dropdown-row {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 1rem 0;
    }

    .mobile-comparison select {
        width: 100%;
        font-size: 16px;
    }

    .mobile-table {
        width: 100%;
        border-collapse: collapse;
    }

    .mobile-table tr {
        border: 1px solid #455785;
    }

    .mobile-table td {
        padding: 0.75rem;
        text-align: center;
    }

    .mobile-table td:first-child {
        text-align: left;
        font-weight: 300;
        color: #B8B8B7;
        font-size: 16px;
    }

    .highlight {
        color: #92c1f7;
        font-weight: 600;
    }
}

.image-dropdowns-mob {
    flex: 3 1 600px;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 1.5rem;
}

/* Column for each image+select */
.image-dropdowns .column {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    /* max-width: 315px; */
}

.image-dropdowns-mob img {
    width: 100%;
    height: 280px;
    max-width: 250px;
    object-fit: contain;
}

.image-dropdowns-mob select {
    background: transparent;
    color: #f9f9f9;
    border: 1px solid #455785;
    padding: 0.563rem;
    width: 100%;
    max-width: 300px;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg focusable='false' aria-hidden='true' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 1.5rem 1.5rem;
    font-size: 14px;
    font-weight: 400;
}


@media (min-width: 1920px) {
    .max-1920px {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 1745.45px) {
    .px-42 {
        padding-left: 11.36rem;
        padding-right: 11.36rem;
    }

}

@media (max-width: 1279px) {

    .text-\[40px\] {
        font-size: 40px;
        line-height: 100%;
    }

    .px-42 {
        padding-left: 10rem;
        padding-right: 10rem;
    }

    .comparison-table td {
        padding: 27px 0 27px 40px;
        font-size: 20px;
    }

    .comparison-table td:first-child {

        font-size: 20px;
        line-height: 1.1;
    }
}

@media (max-width: 1279px) {

    .header-content {
        gap: 2rem;
        /* flex-wrap: wrap; */
    }
}

@media (max-width: 1279px) {

    .px-42 {
        padding-left: 8.33rem;
        padding-right: 8.33rem;
    }

    .text-\[40px\] {
        font-size: 30px;
        line-height: 100%;
    }

    .comparison-table td {
        padding: 27px 0 27px 40px;
        font-size: 20px;
    }


    .comparison-table td:first-child {

        font-size: 20px;
        line-height: 1.1;
    }

    .image-dropdowns select {

        font-size: 15px;
        font-weight: 400;
    }

    .header-content {
        align-items: flex-end;
    }

}

@media (max-width: 1100px) {
    .px-42 {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

.custom-select {
    background: #fff url("/src/assets/drop_down.svg") no-repeat right 10px center;
    background-size: 12px;
    border: 1px solid #ccc;
    /* border-radius: 4px; */
    cursor: pointer;
}

.custom-select.active {
    background-image: url("/src/assets/drop_down.svg");
}

.custom-select:focus {
    outline: none;
}