.news-title h1 {
    text-align: center;
    font-size: 36px;
    color: #11438F;
    padding: 80px 0 60px;
}

/* ===== News cards: same style as Customer Success Stories in case.css ===== */
.news_area {
    background: linear-gradient(to top left, rgba(17, 67, 143, 0.5), #fff);
    padding: 0 0 80px;
}

/* Card wrapper: white rounded card with subtle shadow */
.inner_news_items {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.inner_news_items:hover {
    box-shadow: 0 10px 28px rgba(17, 67, 143, 0.18);
    transform: translateY(-4px);
}

/* Image area: rounded top, fixed height */
.news_img_area {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.news_img_wrap {
    display: block;
    overflow: hidden;
    min-height: 240px;
    background: linear-gradient(135deg, #e8eef6, #f5f8fc);
}
.news_img_wrap:hover .news-case-img {
    transform: scale(1.06);
}
.news-case-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

/* Title + brief block: white card body below image */
.news_img_area .news_overlay {
    background: #fff;
    padding: 18px 20px 24px;
    text-align: left;
    flex: 1;
}
.news_img_area .news_overlay h2 {
    margin: 0 0 8px 0;
    text-align: left;
}
.news_img_area .news_overlay h2,
.news_img_area .news_overlay h2 a {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
}
.news_img_area .news_overlay h2 a:hover {
    color: #11438F;
    text-decoration: none;
}

/* Date line */
.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-date i {
    font-size: 14px;
}

/* Show brief below title with 2-line clamp */
.news-case-brief {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vertical spacing between rows of news cards */
#newsGrid > [class*="col-"] {
    margin-bottom: 50px;
    margin-top:50px;
}

/* News pagination (same style as cases.html) */
.portfolio_pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}
.portfolio-page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}
.portfolio-page-item:hover {
    border-color: #11438F;
    color: #11438F;
}
.portfolio-page-item.active {
    background: #11438F;
    border-color: #11438F;
    color: #ffffff;
}
.portfolio-page-item.disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* keep module top clear of the fixed header when scrolling to it */
#newsTop,
#newsGrid {
    scroll-margin-top: 100px;
}

/* ===== News detail: clean title + content only ===== */
.news_detail_area {
    padding: 0px 0 80px;
    background: #fff;
}
.news_detail_content h1 {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}
.news_detail_body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}
.news_detail_body p,
.news_detail_body ul,
.news_detail_body ol {
    margin-bottom: 18px;
}
/* News content images are rendered from DB and wrapped in <p>;
   center the wrapping <p> so inline images also get centered */
.news_detail_body p:has(img) {
    text-align: center;
}
.news_detail_body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
}
.news_detail_body a {
    color: #11438F;
    text-decoration: underline;
}
.news_detail_body a:hover {
    color: #0d3570;
}
