/* ===================================== */
/*           RELATED NEWS SECTION        */
/* ===================================== */

.related-news {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Section Title */
.related-news h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-left: 14px;
}

/* Red Accent Bar */
.related-news h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    height: 24px;
    width: 5px;
    background: #e10600;
}

/* ===================================== */
/*              GRID LAYOUT              */
/* ===================================== */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===================================== */
/*              CARD STYLE               */
/* ===================================== */

.related-grid a {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 14px;
    border: 1px solid #eaeaea;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;
    height: 100%;
}

/* Hover Effect */
.related-grid a:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* ===================================== */
/*              IMAGE STYLE              */
/* ===================================== */

.related-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin-bottom: 14px;
}

/* ===================================== */
/*              TITLE STYLE              */
/* ===================================== */

.related-grid h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

/* ===================================== */
/*              META STYLE               */
/* ===================================== */

.related-grid .post-meta {
    font-size: 12px;
    color: #777;
    margin-top: auto;
}

/* Remove emoji extra spacing */
.related-grid .post-meta img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* ===================================== */
/*            LARGE DESKTOP              */
/* ===================================== */

@media (min-width: 1400px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================== */
/*               TABLET                  */
/* ===================================== */

@media (max-width: 1024px) {

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .related-grid img {
        height: 170px;
    }

    .related-grid h4 {
        font-size: 15px;
    }
}

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

@media (max-width: 600px) {

    .related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .related-grid a {
        
        align-items: center;
        padding: 12px;
    }

    .related-grid img {
        width: 110px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 14px;
        flex-shrink: 0;
    }

    .related-grid h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .related-grid .post-meta {
        font-size: 11px;
    }
}

/* ===================================== */
/*         EXTRA SMALL DEVICES           */
/* ===================================== */

@media (max-width: 380px) {

    .related-grid img {
        width: 95px;
        height: 70px;
    }

    .related-grid h4 {
        font-size: 13px;
    }
}