/* =========================================================
                       COMPARE PAGE
   ========================================================= */


/* ===== PAGE WRAPPER ===== */

.compare-page-scope {
    width: 100%;
    padding: 5px 15px 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

.compare-page .compare-page-scope {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 991px) {
    .compare-page-scope {
        padding: 4px 5px 18px;
    }
}

@media (max-width: 767px) {
    .compare-page-scope {
        margin-top: 50px;
        margin-bottom: 50px;
        padding: 2px 0 40px;
        border-radius: 5px;
    }
}


/* ===== DESKTOP SIDEBAR ===== */

@media (min-width: 992px) {
    .compare-page:not(.results-active) .left-sidebar {
        display: none;
    }

    .compare-page.results-active .left-sidebar {
        display: block;
    }
}


/* ===== PAGE TITLE ===== */

.main-page-title {
    margin-top: 50px;
    padding-bottom: 8px;
    color: #0031b8;
    font-family: "Poppins", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 991px) {
    .main-page-title {
        margin-top: 28px;
        padding-bottom: 6px;
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .main-page-title {
        margin: 20px 0;
        padding-right: 4px;
        padding-bottom: 10px;
        padding-left: 20px;
        font-size: 25px;
        text-align: left;
    }
}


/* ===== COMPARISON HEADER ===== */

.comparison-header {
    padding: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    border-radius: 12px 12px 0 0;
}

.comparison-header::before {
    display: none !important;
}

@media (max-width: 991px) {
    .comparison-header {
        margin: 0 6px;
        padding: 12px 0 0;
        border-radius: 9px 9px 0 0;
    }
}

@media (max-width: 767px) {
    .comparison-header {
        margin: 0 5px;
        padding: 7px 0 0;
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 5px 5px 0 0;
    }
}


/* ===== COMPARE BOXES ===== */

.compare-box-1,
.compare-box-2,
.compare-box-3,
.compare-box-4 {
    min-width: 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    box-shadow: 0 0 12px rgba(88, 115, 180, 0.04);
    box-sizing: border-box;
    text-align: center;
}

.compare-box-1 {
    width: 18.8%;
    flex-basis: 18.8%;
    flex-grow: 0;
    flex-shrink: 0;
}

.compare-box-2,
.compare-box-3,
.compare-box-4 {
    width: 27%;
    flex-basis: 27%;
    flex-grow: 0;
    flex-shrink: 0;
}

.compare-box-3,
.compare-box-4 {
    border-left: 1px solid #e2e8f0;
}

@media (max-width: 991px) {
    .compare-box-1 {
        width: 16.5%;
        flex-basis: 16.5%;
        padding: 13px 6px 8px;
    }

    .compare-box-2,
    .compare-box-3,
    .compare-box-4 {
        width: 27.5%;
        flex-basis: 27.5%;
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .compare-box-1 {
        width: 24%;
        flex-basis: 24%;
        margin: 0;
        padding: 10px 2px 6px;
        border-left: none !important;
    }

    .compare-box-2,
    .compare-box-3 {
        width: 38%;
        flex-basis: 38%;
        margin: 0;
        padding: 0 6px 15px;
        border-left: none !important;
    }

    .compare-box-3 {
        border-left: 1px solid #e2e8f0 !important;
    }

    .compare-box-4 {
        display: none !important;
    }
}


/* ===== SEARCH AREA ===== */

.search-container {
    position: relative;
    width: 100%;
}

.compare-input-area {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #eaf3fb;
    border-radius: 4px;
    box-shadow: 0 1.5px 6px rgba(33, 70, 220, 0.035);
}

.compare-input-heading {
    width: 100%;
    margin-bottom: 5px;
    padding: 0 5px;
    color: #155fa0;
    font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32px;
    text-align: left;
}

.search-container input {
    width: 100%;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    box-shadow: none;
    font-size: 12px;
    outline: none;
    transition: border-color 0.17s;
}

.search-container input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 2px #2563eb44;
}

@media (max-width: 991px) {
    .compare-input-area {
        margin-bottom: 10px;
        padding: 7px 5px 5px;
        border-radius: 2px;
    }

    .compare-input-heading {
        margin-bottom: 3px;
        padding: 0 2px;
        font-size: 11px;
    }

    .search-container input {
        padding: 2px 6px;
        border-radius: 2px;
        font-size: 10.5px;
    }
}

@media (max-width: 767px) {
    .compare-input-area {
        margin-bottom: 7px;
        padding: 5px 0;
        background-color: #ffffff;
    }

    .compare-input-heading {
        margin-bottom: 2px;
        padding: 0 1px;
        font-size: 12.5px;
    }

    .search-container input {
        padding: 2px 3px;
        border: 1px solid #000000;
        font-size: 11.5px;
    }
}


/* ===== SELECTED MOBILE INFO ===== */

.mobile-info {
    width: 100%;
    height: 100%;
    padding: 10px 6px;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-info img {
    width: auto;
    height: 200px;
    margin-left: 0;
    padding: 0 5px;
    align-self: flex-start;
    border-radius: 6px;
    object-fit: contain;
}

.mobile-info h4 {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
}

.mobile-info h4 a {
    width: 100%;
    height: 100%;
    padding: 0 5px;
    display: block;
    color: #232f3e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    transition: color 0.1s;
}

.mobile-info h4:hover,
.mobile-info h4:focus {
    color: #5b21b6;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.mobile-info p {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    padding: 5px 7px;
    flex-shrink: 0;
    color: #000099;
    font-size: 15px;
    font-weight: 700;
}


/* ===== EQUAL CARD HEIGHT ===== */

.compare-section-cards,
.compare-row,
.compare-listing-row {
    display: flex;
    align-items: stretch;
}

@media (max-width: 991px) {
    .mobile-info {
        padding: 7px 3px;
    }

    .mobile-info img {
        height: 140px;
        padding: 0 2px;
    }

    .mobile-info h4 a {
        min-height: 22px;
        margin-bottom: 5px;
        padding: 0 2px;
        font-size: 15px;
        line-height: 1.1;
    }

    .mobile-info p {
        margin: 3px 0 0;
        padding: 3px;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: 0.4px;
    }
}

@media (max-width: 767px) {
    .mobile-info {
        padding: 4px 1px;
    }

    .mobile-info img {
        height: 190px;
        border-radius: 4px;
    }

    .mobile-info h4 a {
        min-height: 12px;
        margin: 15px 0;
        font-family: "Poppins", "Segoe UI", "Arial Rounded MT Bold", Arial, sans-serif;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.01em;
    }

    .mobile-info p {
        display: none !important;
    }
}


/* ===== ADD MOBILE ===== */

.add-mobile-btn {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-mobile-inner {
    width: 160px;
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f7fa;
    border: 1.5px dashed #bdd4ed;
    border-radius: 8px;
}

.add-mobile-icon {
    margin-bottom: 14px;
    color: #c3d6ee;
    font-size: 100px;
}

.add-mobile-name {
    color: #49627b;
    font-size: 14.5px;
    font-weight: 600;
}

.add-mobile-desc {
    color: #5f5f5f;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 991px) {
    .add-mobile-btn {
        margin-top: 25px;
    }

    .add-mobile-inner {
        width: 125px;
        height: 150px;
        border-radius: 7px;
    }

    .add-mobile-icon {
        margin-bottom: 8px;
        font-size: 65px;
    }

    .add-mobile-name {
        font-size: 12px;
    }

    .add-mobile-desc {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .add-mobile-btn {
        margin-top: 40px;
    }

    .add-mobile-inner {
        width: 120px;
        height: 170px;
        margin-top: 15px;
        border-radius: 3px;
    }

    .add-mobile-icon {
        margin-bottom: 2px;
        font-size: 60px;
    }

    .add-mobile-name {
        font-size: 11px;
    }

    .add-mobile-desc {
        font-size: 10px;
    }
}


/* ===== COMPARE TABLE WRAPPER ===== */

.compare-table-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    overflow-x: auto;
    background: #f8f9fb;
    border: 1px solid #f2f2f2;
    border-radius: 0 0 6px 6px;
}

@media (max-width: 991px) {
    .compare-table-wrapper {
        width: 97%;
        border-radius: 0 0 5px 5px;
    }
}

@media (max-width: 767px) {
    .compare-table-wrapper {
        width: 100%;
        padding: 0 1px;
        border-radius: 0 0 3px 3px;
    }
}


/* ===== COMPARE TABLE ===== */

.compare-table {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse !important;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #d4d8e1;
    font-size: 13.6px;
    table-layout: auto;
}

.compare-table th {
    width: 100%;
    padding: 2px 12px;
    background-color: #eaf4fb;
    color: #155fa0;
    border: 1px solid #e2e8f0;
    font-family: "Segoe UI", "Roboto", Arial, Helvetica, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    word-break: break-word;
}

.compare-table td {
    border: 1px solid #e2e8f0;
    word-break: break-word;
}

.compare-table th i {
    margin-right: 1px;
    color: #0e6ec7;
    font-size: 14px;
}

.compare-table td:empty {
    min-height: 26px;
    box-shadow: none;
    opacity: 0.85;
}

@media (max-width: 991px) {
    .compare-table {
        border-radius: 7px;
        font-size: 12px;
    }

    .compare-table th {
        padding: 3px 7px;
        font-size: 12px;
    }

    .compare-table th i {
        font-size: 15px;
    }

    .compare-table td {
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media (max-width: 767px) {
    .compare-table {
        border-radius: 3px;
        font-size: 10px;
    }

    .compare-table th {
        padding: 2px;
        font-size: 10px;
    }

    .compare-table th i {
        font-size: 16px;
    }

    .compare-table th:nth-child(4),
    .compare-table td:nth-child(4),
    .compare-table th:nth-child(5),
    .compare-table td:nth-child(5) {
        display: none !important;
    }
}


/* ===== COMPARE LABEL COLUMN ===== */

.compare-label {
    width: 19%;
    padding: 1px 25px;
    background: #f8f9fc;
    color: #000000;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
    word-break: break-word;
}


/* ===== COMPARED MOBILE COLUMNS ===== */

.compare-mobile1,
.compare-mobile2,
.compare-mobile3 {
    width: 27%;
    padding: 1px 10px;
    color: #5d6a7a;
    border-right: 1px solid #f6f9fc;
    border-radius: 4px;
    font-family: "Segoe UI", "Roboto", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    word-break: break-word;
}

.compare-mobile1 strong,
.compare-mobile2 strong,
.compare-mobile3 strong {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}

.compare-mobile3 {
    border-right: none;
}


/* ===== TABLET COMPARE COLUMNS ===== */

@media (max-width: 991px) {
    .compare-mobile1 strong,
    .compare-mobile2 strong,
    .compare-mobile3 strong {
        font-size: 13px;
    }

    .compare-label,
    .compare-table th:first-child {
        width: 100%;
        padding: 2px 10px;
        font-size: 15px;
    }

    .compare-table td:first-child {
        width: 16%;
        padding: 3px 8px 3px 10px;
        font-size: 12.5px;
    }

    .compare-mobile1,
    .compare-mobile2,
    .compare-mobile3,
    .compare-table th:nth-child(2),
    .compare-table td:nth-child(2),
    .compare-table th:nth-child(3),
    .compare-table td:nth-child(3),
    .compare-table th:nth-child(4),
    .compare-table td:nth-child(4) {
        width: 28%;
        padding: 3px 6px;
        font-size: 12.5px;
    }
}


/* ===== MOBILE COMPARE COLUMNS ===== */

@media (max-width: 767px) {
    .compare-mobile1 strong,
    .compare-mobile2 strong,
    .compare-mobile3 strong {
        color: #000099;
        font-size: 13px;
        line-height: 1.3;
    }

    .compare-label,
    .compare-table th:first-child {
        width: 30%;
        padding: 1px 10px;
        font-size: 16px;
    }

    .compare-table td:first-child {
        width: 18%;
        padding: 2px 2px 2px 8px;
        font-size: 12px;
    }

    .compare-mobile1,
    .compare-mobile2 {
        width: 41%;
        padding: 1px;
        font-size: 13px !important;
        line-height: 1.3;
    }

    .compare-mobile3 {
        display: none !important;
    }
}


/* ===== COMPARE CARDS SECTION ===== */

.compare-section-cards {
    margin: 50px 0 20px;
}