/* =========================================================
   THERMAL INSTRUMENTS SECTION
========================================================= */

.thermal-instruments-section {

    position: relative;

    padding: 90px 0;

    background: var(--light);

    overflow: hidden;

}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.thermal-instruments-grid {

    position: absolute;

    inset: 0;

    opacity: .035;

    background-image:

        linear-gradient(
            var(--primary) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            var(--primary) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

}


/* =========================================================
   SECTION HEADER
========================================================= */

.thermal-section-header {

    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 0 auto 50px;

}


.thermal-section-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 15px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.thermal-section-label span {

    width: 32px;

    height: 2px;

    background: var(--primary);

    border-radius: 10px;

}


.thermal-section-header h2 {

    margin: 0 0 15px;

    color: var(--black);

    font-size:
        clamp(34px, 4vw, 48px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;

}


.thermal-section-header h2 span {

    color: var(--primary);

}


.thermal-section-header p {

    max-width: 600px;

    margin: 0 auto;

    color: var(--text);

    font-size: 13px;

    line-height: 1.8;

}


/* =========================================================
   INSTRUMENT CARD
========================================================= */

.thermal-instrument-card {

    position: relative;

    height: 100%;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(17,17,17,.06);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;

}


.thermal-instrument-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(1,87,146,.25);

    box-shadow:
        0 20px 45px rgba(1,87,146,.14);

}


/* =========================================================
   IMAGE CONTAINER
========================================================= */

.thermal-instrument-image {

    position: relative;

    height: 220px;

    /* padding: 15px; */

    background:
        linear-gradient(
            145deg,
            var(--primary-light),
            #ffffff
        );

    overflow: hidden;

}


/* Image */

.thermal-instrument-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    transition:
        transform .5s ease;

}


.thermal-instrument-card:hover
.thermal-instrument-image img {

    transform:
        scale(1.08);

}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.thermal-instrument-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(1,68,111,.08)
        );

    pointer-events: none;

}


/* =========================================================
   CATEGORY BADGE
========================================================= */

.thermal-instrument-badge {

    position: absolute;

    top: 14px;

    left: 14px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    background:
        rgba(255,255,255,.92);

    border: 1px solid
        rgba(1,87,146,.12);

    border-radius: 6px;

    color: var(--primary);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .7px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.06);

    backdrop-filter:
        blur(5px);

}


.thermal-instrument-badge i {

    font-size: 10px;

}


/* =========================================================
   CARD CONTENT
========================================================= */

.thermal-instrument-content {

    padding: 22px;

}


/* =========================================================
   INSTRUMENT NAME
========================================================= */

.thermal-instrument-content h3 {

    margin: 0 0 8px;

    color: var(--black);

    font-size: 16px;

    line-height: 1.4;

    font-weight: 800;

    transition:
        color .3s ease;

}


.thermal-instrument-card:hover
.thermal-instrument-content h3 {

    color: var(--primary);

}


/* =========================================================
   DESCRIPTION
========================================================= */

.thermal-instrument-content p {

    min-height: 42px;

    margin: 0 0 18px;

    color: var(--text);

    font-size: 10px;

    line-height: 1.7;

}


/* =========================================================
   CARD FOOTER
========================================================= */

.thermal-instrument-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 15px;

    border-top:
        1px solid var(--border);

}


/* Calibration status */

.thermal-calibration-status {

    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--text-light);

    font-size: 9px;

    font-weight: 700;

}


.thermal-calibration-status i {

    color: #20a464;

    font-size: 11px;

}


/* Arrow */

.thermal-instrument-arrow {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 50%;

    font-size: 12px;

    transition:
        all .35s ease;

}


.thermal-instrument-card:hover
.thermal-instrument-arrow {

    background: var(--primary);

    color: var(--white);

    transform:
        rotate(45deg);

}


/* =========================================================
   CARD TOP DECORATION
========================================================= */

.thermal-instrument-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 0;

    height: 3px;

    background: var(--primary);

    z-index: 5;

    transition:
        width .4s ease;

}


.thermal-instrument-card:hover::before {

    width: 100%;

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991px) {

    .thermal-instruments-section {

        padding: 75px 0;

    }


    .thermal-instrument-image {

        height: 210px;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 576px) {

    .thermal-instruments-section {

        padding: 60px 0;

    }


    .thermal-section-header {

        margin-bottom: 35px;

    }


    .thermal-section-header h2 {

        font-size: 32px;

    }


    .thermal-section-header p {

        font-size: 11px;

    }


    .thermal-instrument-image {

        height: 210px;

    }


    .thermal-instrument-content {

        padding: 18px;

    }


    .thermal-instrument-content h3 {

        font-size: 15px;

    }

}