/* ==========================================================================
   News/Blogs list page (ldcms template: list_news.html)
   Sections: news hero (base), featured slider, card grid, custom pager
   ========================================================================== */

/* ---------- Hero ---------- */
.news-hero {
    background-color: #101318;
    background-size: cover;
    background-position: center;
    color: #fff;
    /* fixed height + flex centering (.page-hero provides display:flex/align-items:center)
       keeps the h1 + breadcrumb block vertically centered in the banner */
    height: 408px;
    padding: 0;
}
.news-hero h1 {
    margin: 0 0 12px;
    font-size: var(--fs-h2);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}
/* breadcrumb size scoped to the news page only (global .page-breadcrumb stays 14px) */
.news-hero .page-breadcrumb {
    font-size: var(--fs-small);
}

/* ---------- Section ---------- */
.news-sec {
    padding: 70px 0 70px;
    background: #fff;
}
.news-sec-title {
    margin: 0 0 40px;
    text-align: center;
    font-size: var(--fs-h2);
    line-height: 1.2;
    font-weight: 800;
    color: var(--ink);
}

/* ---------- Featured slider ---------- */
.news-feat {
    padding-bottom: 70px;
    margin-bottom: 70px;
    border-bottom: 1px solid #e5e7eb;
}
.news-feat-slides {
    display: grid; /* slides stacked in the same grid cell */
}
.news-feat-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 740px minmax(0, 1fr);
    column-gap: 85px;
    align-items: start;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s;
    pointer-events: none;
}
.news-feat-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.news-feat-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 740 / 450;
    background: #f4f4f4;
}
.news-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.news-feat-img:hover img {
    transform: scale(1.04);
}
.news-date {
    margin: 0;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: #6b6b6c;
}
.news-feat-title {
    margin: 15px 0 35px;
    font-size: var(--fs-h3);
    line-height: 40px;
    font-weight: 700;
    color: var(--ink);
}
.news-feat-title a {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}
.news-feat-title a:hover {
    color: var(--red);
}
.news-feat-desc {
    margin: 0 0 80px;
    font-size: var(--fs-body);
    line-height: 28px;
    color: #6b6b6c;
}
.news-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: var(--fs-lead);
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize; /* renders "Learn more" lang key as "Learn More" */
    padding: 13px 32px;
    text-decoration: none;
    transition: background-color .3s;
}
.news-btn:hover {
    background: #a50d25;
    color: #fff;
}
.news-feat-nav {
    display: flex;
    gap: 14px;
    margin-top: 30px; /* sits directly below the Learn More button */
}
.news-feat-btn {
    /* the circle + arrow are part of the PNG icon, so the button itself stays transparent */
    width: 51px;
    height: 51px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s;
}
.news-feat-btn img {
    display: block;
    width: 100%;
    height: 100%;
}
.news-feat-btn:hover {
    opacity: .75;
}

/* ---------- Card grid ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 45px;
}
.news-card {
    border: 1px solid #ededf0;
    background: #fff;
    transition: box-shadow .3s;
}
.news-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
}
.news-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 476 / 360;
    background: #f4f4f4;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.news-card:hover .news-card-img img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 22px 25px 28px;
}
.news-card .news-date {
    font-size: var(--fs-body);
    margin-top: 0;
    color: #6b6b6c;
}
.news-card-title {
    margin: 10px 0 12px;
    font-size: var(--fs-h5);
    line-height: 1.45;
    font-weight: 700;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}
.news-card-title a:hover {
    color: var(--red);
}
.news-card-desc {
    margin: 0 0 16px;
    font-size: var(--fs-body);
    line-height: 30px;
    color: #6b6b6c;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
}
.news-more-arrow {
    transition: transform .3s;
}
.news-more:hover .news-more-arrow {
    transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .news-feat{
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .news-sec-title { font-size: 38px; margin-bottom: 45px; }
    .news-feat-slide { grid-template-columns: 600px minmax(0, 1fr); column-gap: 40px; }
    .news-feat-title { font-size: 26px; }
    .news-feat-nav { margin-left: 640px; }
    .news-grid { margin-top: 90px; gap: 45px 35px; }
}
@media (max-width: 991px) {
    .news-sec { padding: 55px 0 70px; }
    /* 收紧精选滑块各部分间距：桌面版的 80px 描述间距 / 90px 网格间距在平板上过大 */
    .news-sec-title { margin-bottom: 38px; }
    .news-feat { padding-bottom: 48px; }
    .news-feat-slide { grid-template-columns: 1fr; row-gap: 24px; }
    .news-feat-title { margin: 12px 0 20px; }
    .news-feat-desc { margin-bottom: 30px; line-height: 26px; }
    .news-feat-nav { margin-left: 0; margin-top: 22px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
}
@media (max-width: 767px) {
    .news-hero { height: 300px; }
    .news-hero h1 { font-size: 32px; }
    .news-sec-title { font-size: 30px; margin-bottom: 35px; }
    .news-feat-title { font-size: 22px; }
    .news-feat-desc { font-size: 15px; line-height: 26px; margin-bottom: 24px; }
    .news-grid { margin-top: 40px; gap: 40px 24px; }
}
@media (max-width: 575px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card-title { font-size: 19px; }
}
