/* News cards (homepage + listing) */
.news-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.news-section-header .section-title {
    margin-bottom: 0.25rem;
}

.news-section-header .section-subtitle {
    margin-bottom: 0;
}

.news-view-all {
    white-space: nowrap;
}

.news-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card .news-image-container {
    width: 100%;
    padding-top: 62%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.news-card .news-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.news-card .news-image-container img.active {
    display: block;
    opacity: 1;
}

.news-slideshow-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.news-slideshow-nav .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.news-slideshow-nav .dot.active {
    background: var(--pezm-red, #e30613);
    transform: scale(1.15);
}

.news-card .news-content {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: #868e96;
    margin-bottom: 0.45rem;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.65rem;
}

.news-title a {
    color: var(--pezm-red, #e30613);
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.news-see-more {
    align-self: flex-start;
    margin-top: auto;
}

/* News listing page */
.news-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.news-page-header {
    margin-bottom: 2rem;
}

.news-page-header h1 {
    margin-bottom: 0.35rem;
}

.news-page-header p {
    color: #6c757d;
    margin: 0;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-pagination a {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #333;
}

.news-pagination a:hover {
    border-color: var(--pezm-red, #e30613);
    color: var(--pezm-red, #e30613);
}

.news-pagination .current {
    background: var(--pezm-red, #e30613);
    color: #fff;
    border: 1px solid var(--pezm-red, #e30613);
}

/* Article detail */
.news-article-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.news-article-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: #6c757d;
}

.news-article-breadcrumb a {
    color: var(--pezm-red, #e30613);
    text-decoration: none;
}

.news-article-breadcrumb a:hover {
    text-decoration: underline;
}

.news-article-header {
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.news-article-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.35rem 0 0.75rem;
    line-height: 1.25;
}

.news-article-meta {
    font-size: 0.9rem;
    color: #868e96;
}

.news-article-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-article-gallery-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    max-height: 520px;
    background: #fff;
}

.news-article-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.news-article-gallery img.active {
    display: block;
    opacity: 1;
}

.news-article-gallery .news-slideshow-nav {
    bottom: 14px;
}

.news-article-gallery .news-gallery-prev,
.news-article-gallery .news-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-article-gallery .news-gallery-prev {
    left: 12px;
}

.news-article-gallery .news-gallery-next {
    right: 12px;
}

.news-article-body {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #343a40;
}

.news-article-body p {
    margin: 0 0 1rem;
}

.news-article-back {
    margin-top: 2.5rem;
}

.news-empty {
    text-align: center;
    color: #6c757d;
    padding: 2rem 0;
}
