.related-news {
    background-color: var(--color-blue-4);
    min-height: 36.563rem; /* 614px */
    display: flex;
    align-items: center;
    padding: 5.563rem 0 6.625rem;
}

.related-news-wrapper {
    width: 100%;
}

.section-title {
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 3.75rem; /* 60px */
    font-weight: 500;
    line-height: 1.13; /* 68px */
    text-transform: capitalize;
    margin-bottom: 5.625rem; /* 90px */
}

.news-grid {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 3.75rem; /* 60px */
}

.news-item {
    flex: 1 1 calc((100% - 5.5rem) / 3); /* flex-grow, flex-shrink, flex-basis */
    max-width: calc((100% - 5.5rem) / 3); /* Ensure it doesn't exceed 1/3 when fewer items */
    display: flex;
    flex-direction: column;
    padding-right: 2.75rem;
    position: relative;
    text-decoration: none;
}

/* Full-card clickable overlay via title link */
.news-item .card-full-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Keep arrow above the overlay */
.news-item .news-arrow {
    position: relative;
    z-index: 2;
}

.news-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* No default gap since we use mb-4 etc from Bootstrap utility classes now */
}

.news-date {
    color: var(--color-grey-2);
    font-size: 1.125rem; /* 18px */
    line-height: 1.44; /* 26px */
    margin-bottom: 0.75rem;
}

.news-heading {
    margin-bottom: 4.75rem; /* 76px */
}

.news-heading a {
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
    line-height: 1.33; /* 32px */
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-category {
    color: var(--color-blue-3);
    font-size: 1.125rem; /* 18px */
    line-height: 1.44; /* 26px */
}

/* Hover Effects */
.news-arrow {
    display: flex;
    align-items: center;
    color: var(--color-red);
    transition: transform 0.5s ease;
}

.news-item:hover .news-arrow {
    transform: translateX(-15px);
}

.news-item .line-animation {
    background-color: var(--color-dark-blue);
    position: absolute;
    transition: background-color 0.5s ease;
}

.news-item .vertical {
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
}

.news-item .horizontal {
    top: auto;
    bottom: 0;
    left: 0;
    width: calc(100% - 3.75rem);
    height: 1px;
    display: none; /* Only show on mobile if needed, or if matching home-news maybe they need it? home-news has horizontal line hidden on desktop */
}

@media (max-width: 64rem) {
    .news-item .horizontal {
        display: block;   
    }
}

.news-item:hover .vertical,
.news-item:hover .horizontal {
    background-color: #005DA7;
}

@media (max-width: 68rem) {
    .news-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .news-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .news-item .vertical {
        display: none;
    }

    .news-item .horizontal {
        width: 100%;
        bottom: 0px;
        display: block;
    }
}

/* Responsive adjustments */
@media (max-width: 64rem) {
    .news-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .news-item {
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .news-item .vertical {
        display: none;
    }

    .news-item .horizontal {
        width: 100%;
        bottom: 0px;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
        font-weight: 400;
        line-height: 2.5rem;
    }

    .news-heading {
        margin-bottom: 1.875rem;
    }
    
    .news-heading a {
        font-size: 1.125rem;
        line-height: 1.625rem;    
    }

    .news-category {
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 400;
    }
}

@media (max-width: 47.938rem) {
    .section-title {
        font-size: 2.188rem;
        font-weight: 400;
        line-height: 2.5rem;
    }
    
    .related-news {
        padding: 5.563rem 0rem 6.625rem;
    }

    .news-date {
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 400;
    }
}

@media (min-width: 48rem) and (max-width: 63.938rem) {
    .section-title {
        font-size: 2.5rem;
        font-weight: 400;
        line-height: 2.5rem;
    }

    .related-news {
        padding: 5.563rem 0rem 6.625rem;
    }
}

