/* =========================================================
AL NOOR - 4 COLUMN PREMIUM SPECIFICATION TABLE
========================================================= */

.alnoor-spec-section {
    position: relative;
    width: 100%;
    margin: 45px 0;
}


/* ================= HEADING ================= */

.alnoor-spec-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}


.alnoor-spec-heading h2 {
    margin: 0;

    color: #123526;

    font-family: var(--font-display,
            Inter,
            system-ui,
            sans-serif);

    font-size: clamp(25px, 3.5vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.6px;
}

.alnoor-spec-heading h2 span {
    color: #a87832;
}

.alnoor-spec-heading p {
    max-width: 620px;
    margin: 12px auto 0;

    color: #748079;
    font-size: 12.5px;
    line-height: 1.75;
}


/* ================= TABLE WRAPPER ================= */

.spec-table-wrapper {
    position: relative;

    width: 100%;

    background: #fff;

    border: 1px solid rgba(23, 69, 47, .10);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(11, 31, 22, .07),
        0 2px 8px rgba(11, 31, 22, .03);
}

.spec-table-wrapper::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: linear-gradient(90deg,
            #17452f 0%,
            #2f7655 30%,
            #d7b46b 70%,
            #a87832 100%);

    z-index: 5;
}


/* ================= TABLE ================= */

.spec-table {
    width: 100%;
    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;
}


/* ================= CAPTION ================= */

.spec-table caption {
    caption-side: top;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 22px;

    background:
        linear-gradient(135deg,
            #f8f5ee 0%,
            #ffffff 60%,
            #f5f8f5 100%);

    border-bottom: 1px solid rgba(23, 69, 47, .08);

    color: #173126;

    font-size: 14px;
    font-weight: 800;

    text-align: left;
}


/* ================= HEADER ================= */

.spec-table thead th {
    width: 25%;

    padding: 14px 16px;

    background: #123526;

    color: #fff;

    border: 0;

    font-size: 9.5px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;

    vertical-align: middle;
}

.spec-table thead th+th {
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.th-icon {
    width: 26px;
    height: 26px;

    margin-right: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(215, 180, 107, .12);

    color: #d7b46b;

    vertical-align: middle;
}

.th-icon i {
    font-size: 9px;
}


/* ================= ROW ================= */

.spec-table tbody tr {
    transition:
        background-color .25s ease;
}

.spec-table tbody tr:nth-child(even) {
    background: #fbfcfa;
}

.spec-table tbody tr:hover {
    background:
        linear-gradient(90deg,
            rgba(215, 180, 107, .07),
            rgba(23, 69, 47, .025));
}


/* ================= CELLS ================= */

.spec-table tbody td {
    padding: 14px 16px;

    border-bottom: 1px solid rgba(23, 69, 47, .07);

    vertical-align: middle;
}

.spec-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Vertical separator between pairs */

.spec-table tbody td:nth-child(3) {
    border-left: 1px solid rgba(23, 69, 47, .07);
}


/* ================= FEATURE ================= */

.spec-feature {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
}

.spec-feature-icon {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f7f3eb;

    border: 1px solid rgba(198, 155, 81, .20);

    color: #a87832;

    transition: all .25s ease;
}

.spec-feature-icon i {
    font-size: 8px;
}

.spec-feature-name {
    color: #304238;

    font-size: 11.5px;
    font-weight: 700;

    line-height: 1.45;

    overflow-wrap: anywhere;
}

.spec-table tbody tr:hover .spec-feature-icon {
    background: #173126;
    border-color: #173126;
    color: #d7b46b;

    transform: scale(1.05);
}


/* ================= VALUE ================= */

.spec-value-cell {
    color: #263b31;

    font-size: 11.5px;
}

.spec-value {
    display: inline-block;

    color: #263b31;

    font-size: 11.5px;
    font-weight: 600;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* ================= BOOLEAN ================= */

.badge-boolean {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 9px;

    border-radius: 50px;

    background: #edf7f1;

    border: 1px solid rgba(23, 69, 47, .12);

    color: #17603f;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.boolean-icon {
    width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #17452f;
    color: #d7b46b;
}

.boolean-icon i {
    font-size: 7px;
}


/* ================= EMPTY CELL ================= */

.spec-empty-cell {
    background: #fafbf9;
}


/* ================= TABLET ================= */

@media (max-width: 991px) {

    .spec-table thead th,
    .spec-table tbody td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .spec-feature-name,
    .spec-value {
        font-size: 10.5px;
    }

    .spec-feature-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .badge-boolean {
        font-size: 8.5px;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 767px) {

    .alnoor-spec-section {
        margin: 30px 0;
    }

    .alnoor-spec-heading {
        margin-bottom: 22px;
    }

    .alnoor-spec-heading h2 {
        font-size: 25px;
    }

    .alnoor-spec-heading p {
        font-size: 11px;
    }

    /*
    Keep 4 columns on desktop/tablet,
    but allow horizontal scroll on mobile.
*/

    .spec-table-wrapper {
        overflow-x: auto;
        border-radius: 15px;
    }

    .spec-table {
        min-width: 720px;
    }

    .spec-table caption {
        padding: 14px 16px;
        font-size: 11px;
    }


    .spec-table thead th {
        padding: 12px 10px;
        font-size: 8px;
    }

    .spec-table tbody td {
        padding: 12px 10px;
    }

    .spec-feature-name,
    .spec-value {
        font-size: 10px;
    }
}


/* ================= VERY SMALL MOBILE ================= */

@media (max-width: 420px) {

    .spec-table {
        min-width: 680px;
    }

    .spec-table thead th {
        font-size: 7.5px;
    }

    .spec-feature-name,
    .spec-value {
        font-size: 9.5px;
    }
}