/* ---------------------------------------------------
   NEWS SECTION - Shared styles for all pages
--------------------------------------------------- */

.home-news {
    background: #f8f8f8 url('../images/bg-news-background.webp') bottom left no-repeat;
    background-size: contain;
    padding: 80px 0 40px;
}
.home-news-index{
    padding-top: 0px;
}

.home-news-inner {
    margin: 0 auto;
    padding: 0;
}

/* Kicker / Title Line */
.title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #3f3f3f;
    margin-bottom: 20px;
}

.title-line span:first-child {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #3f3f3f;
}

/* News Title */
.home-news-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 50px;
    color: #333;
}

/* Grid */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 60px;
}

/* ---------------------------------------------------
   NEWS CARD - Shared card component
--------------------------------------------------- */

.news-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        -27px 26px 11px 0px rgba(153, 153, 153, 0),
        -17px 17px 10px 0px rgba(153, 153, 153, 0.01),
        -10px 9px 8px 0px rgba(153, 153, 153, 0.05),
        -4px 4px 6px 0px rgba(153, 153, 153, 0.09),
        -1px 1px 3px 0px rgba(153, 153, 153, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

/* Card Image */
.news-card-image {
    aspect-ratio: 2 / 1.4;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Body */
.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 180px;
    justify-content: space-between;
}

/* Date Badge */
.news-card-date {
    background: #F4D324;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    position: absolute;
    top: -12px;
}

/* Title */
.news-card-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #3f3f3f;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
}

/* Show Details Link */
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #3f3f3f;
    transition: color 0.2s ease;
}

.news-card-link:hover {
    color: #000000;
}

.news-card-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #3f3f3f;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.news-card-link-icon img {
    width: 12px;
    height: 12px;
}

.news-card-link:hover .news-card-link-icon {
    border-color: #000000;
    background: #FCE300;
}

.news-card-link-text {
    font-size: 16px;
    font-weight: 400;
}

/* ---------------------------------------------------
   BOTTOM CTA
--------------------------------------------------- */

.home-news-footer {
    display: flex;
    justify-content: flex-end;
}

.home-news-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    transition: 0.25s;
    position: relative;
}

.home-news-all span {
    position: relative;
    z-index: 1;
}

.home-news-all::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    content: '';
    height: 100%;
    transition: .3s all linear;
    background: #FCE300;
}

.home-news-all:hover::before {
    width: 100%;
}

.home-news-all:hover span {
    color: #000;
}

.home-news-all-arrow {
    font-size: 18px;
}

/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */

@media (max-width: 1600px) {
    .home-news-title {
        margin-bottom: 30px;
    }
}
@media (max-width: 1400px) {
    .home-news-title{ font-size: 30px; margin-bottom: 20px; }
    .home-news-grid{ margin-bottom: 30px;}
    .news-card-title {
        font-size: 16px;
    }
    .news-card-body{
        min-height: 140px;
    }
}
@media (max-width: 1200px) {
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-news {
        padding: 60px 0 80px;
    }

    .home-news-inner {
        padding: 0 20px;
    }

    .home-news-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .home-news-all {
        padding: 14px 24px;
        font-size: 14px;
    }
}