/* =========================================
   ENGINEERING FIGURE
   ========================================= */

.engineering-figure {

    width: 100% !important;

    max-width: 1100px !important;

    margin: 30px auto !important;

    padding: 0 !important;

    box-sizing: border-box !important;

    text-align: center !important;
}


/* =========================================
   FIGURE BOX
   ========================================= */

.engineering-image-box {

    width: 100% !important;

    box-sizing: border-box !important;

    border: 1px solid #cfcfcf !important;

    background: #ffffff !important;

    padding: 10px !important;

    margin: 0 !important;
}


/* =========================================
   IMAGE
   ========================================= */

.engineering-image-click {

    width: 100% !important;

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    margin: 0 !important;

    padding: 0 !important;

    cursor: zoom-in !important;
}


.engineering-image-click img {

    display: block !important;

    width: 85% !important;

    max-width: 950px !important;

    height: auto !important;

    margin: 0 auto !important;

    padding: 0 !important;
}


/* =========================================
   CAPTION BOX
   ========================================= */

.engineering-caption-box {

    width: 100% !important;

    box-sizing: border-box !important;

    border: 1px solid #cfcfcf !important;

    border-top: none !important;

    background: #ffffff !important;

    padding: 10px 15px !important;

    margin: 0 !important;

    text-align: center !important;

    font-size: 16px !important;

    line-height: 1.5 !important;

    color: #111111 !important;
}


/* =========================================
   FIGURE NUMBER
   ========================================= */

.engineering-figure-number {

    font-weight: 700 !important;
}


/* =========================================
   FIGURE TITLE
   ========================================= */

.engineering-figure-title {

    font-weight: 400 !important;
}


/* =========================================
   LIGHTBOX
   ========================================= */

.engineering-lightbox {

    position: fixed !important;

    inset: 0 !important;

    z-index: 999999 !important;

    background: rgba(0, 0, 0, 0.88) !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 30px !important;

    cursor: zoom-out !important;
}


.engineering-lightbox img {

    display: block !important;

    width: auto !important;

    height: auto !important;

    max-width: 95vw !important;

    max-height: 90vh !important;

    object-fit: contain !important;

    background: #ffffff !important;
}


/* =========================================
   CLOSE BUTTON
   ========================================= */

.engineering-lightbox-close {

    position: absolute !important;

    top: 10px !important;

    right: 25px !important;

    color: #ffffff !important;

    font-size: 42px !important;

    line-height: 1 !important;

    font-weight: 300 !important;

    cursor: pointer !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .engineering-figure {

        width: 100% !important;

        max-width: 100% !important;

        margin: 20px auto !important;
    }


    .engineering-image-box {

        padding: 6px !important;
    }


    .engineering-image-click img {

        width: 100% !important;

        max-width: 100% !important;
    }


    .engineering-caption-box {

        padding: 8px 6px !important;

        font-size: 15px !important;

        text-align: center !important;
    }


    .engineering-lightbox {

        padding: 10px !important;
    }


    .engineering-lightbox img {

        max-width: 98vw !important;

        max-height: 90vh !important;
    }


    .engineering-lightbox-close {

        top: 8px !important;

        right: 15px !important;

        font-size: 36px !important;
    }
}

/* =========================================
   ENGINEERING ARTICLE LIST
   ========================================= */

.engineering-post-list {
    width: 100%;
    max-width: 1100px;

    /* LEFT ALIGNED */
    margin: 30px 0;

    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================
   OUTER ARTICLE CONTAINER
   ========================================= */

.engineering-post-card {
    width: 100%;

    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;

    padding: 20px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d8d8d8;
    border-radius: 7px;

    /* Subtle shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* =========================================
   IMAGE AREA
   ========================================= */

.engineering-post-image {
    width: 300px;
    height: 190px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    /* NO GREY BACKGROUND */
    background: transparent;

    /* NO IMAGE BORDER */
    border: none;

    border-radius: 0;

    flex-shrink: 0;
}


/* =========================================
   FEATURED SVG / IMAGE
   ========================================= */

.engineering-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    border: none;
}


/* =========================================
   RIGHT SIDE CONTENT
   ========================================= */

.engineering-post-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================
   TITLE
   ========================================= */

.engineering-post-title {
    margin: 0 0 12px 0;
    padding: 0;

    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
}

.engineering-post-title a {
    color: #111111;
    text-decoration: none;
}

.engineering-post-title a:hover {
    color: #1769aa;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.engineering-post-excerpt {
    margin: 0 0 16px 0;
    padding: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #444444;
}

.engineering-post-excerpt p {
    margin: 0;
}


/* =========================================
   CONTINUE READING
   ========================================= */

.engineering-read-more {
    display: inline-block;

    width: fit-content;

    font-size: 15px;
    font-weight: 600;

    color: #1769aa;

    text-decoration: none;
}

.engineering-read-more:hover {
    text-decoration: underline;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .engineering-post-card {
        grid-template-columns: 240px 1fr;
        gap: 22px;
        padding: 18px;
    }

    .engineering-post-image {
        width: 240px;
        height: 155px;
    }

    .engineering-post-title {
        font-size: 23px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 640px) {

    .engineering-post-card {
        display: flex;
        flex-direction: column;

        gap: 15px;
        padding: 15px;
    }

    .engineering-post-image {
        width: 100%;
        height: 200px;
    }

    .engineering-post-title {
        font-size: 21px;
    }

    .engineering-post-excerpt {
        font-size: 15px;
        line-height: 1.5;
    }
}


/* =========================================
   ARTICLE LIST ALIGNMENT
   ========================================= */

.engineering-post-list {
    width: 100% !important;
    max-width: 1100px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================
   MOBILE SPACE BELOW HEADER
   ========================================= */

@media (max-width: 640px) {

    .site-content {
        padding-top: 25px !important;
    }

}


/* =========================================
   POST VIEW COUNT
   ========================================= */

.engineering-post-views {

    display: flex;

    align-items: center;

    gap: 5px;

    margin-bottom: 10px;

    font-size: 13px;

    line-height: 1;

    color: #777777;
}


.engineering-eye {

    font-size: 14px;

    line-height: 1;
}


.engineering-views-text {

    margin-left: 1px;
}

