/* Match static Frontend/styles.css typography */
.news-hero-banner,
.news-grid-section,
.news-grid-section * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Keep Font Awesome icons rendered with their own font family */
.news-hero-banner .fa,
.news-hero-banner .fas,
.news-hero-banner .far,
.news-hero-banner .fab,
.news-hero-banner .fa-solid,
.news-hero-banner .fa-regular,
.news-hero-banner .fa-brands,
.news-grid-section .fa,
.news-grid-section .fas,
.news-grid-section .far,
.news-grid-section .fab,
.news-grid-section .fa-solid,
.news-grid-section .fa-regular,
.news-grid-section .fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* ============================================================
   NEWS PAGE - HERO BANNER
============================================================ */
.news-hero-banner {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #001f2e;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/new/Picture11.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    animation: newsBgZoom 18s ease-in-out infinite alternate;
}

@keyframes newsBgZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1.14); }
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,31,46,0.4) 0%, rgba(0,29,41,0.6) 50%, rgba(0,61,92,0.5) 100%);
}

.news-hero-stripe {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #00849e, #00b8b8, #00849e);
    background-size: 200% 100%;
    animation: stripeMove 4s linear infinite;
}

@keyframes stripeMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.news-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 80px 100px;
    width: 100%;
}

.news-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 184, 184, 0.18);
    border: 1px solid rgba(0, 184, 184, 0.45);
    backdrop-filter: blur(8px);
    color: #00b8b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.news-hero-eyebrow i {
    font-size: 12px;
}

.news-hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 820px;
}

.news-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 44px;
}

.news-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.news-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-hero-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #00b8b8;
    font-family: 'Courier New', monospace;
}

.news-hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   NEWS GRID
============================================================ */
.news-grid-section {
    padding: 80px 0 100px;
    background: #f5f7fa;
}

.news-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.news-grid-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-grid-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #001f2e;
    line-height: 1.2;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #00849e;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 3px;
    background: #00849e;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(30px);
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 132, 158, 0.15);
}

.article-card-image-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.article-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-image-wrap img {
    transform: scale(1.07);
}

.article-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 50px;
}

.badge-audit { background: #003d5c; }
.badge-tax { background: #00849e; }
.badge-advisory { background: #0d9488; }
.badge-company { background: #005a7a; }
.badge-insights { background: #00b8b8; }
.badge-regulation { background: #1d4ed8; }
.badge-default { background: #00b8b8; }

.article-card-body {
    padding: 28px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-card-date,
.article-card-read {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-date i,
.article-card-read i {
    color: #00849e;
    font-size: 11px;
}

.article-card-title {
    font-size: 20px !important;
    font-weight: 700;
    color: #001f2e;
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.article-card:hover .article-card-title {
    color: #00849e;
}

.article-card-excerpt {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 24px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00849e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    transition: gap 0.25s ease;
}

.article-card:hover .article-card-link {
    gap: 12px;
}

@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-hero-container { padding: 80px 40px 60px; }
    .news-grid-container { padding: 0 40px; }
}

@media (max-width: 900px) {
    .news-hero-container { padding: 60px 30px 50px; }
    .news-grid-container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 24px; }
    .news-hero-banner { min-height: 60vh; }
    .news-hero-container { padding: 60px 20px 40px; }
    .news-grid-container { padding: 0 20px; }
    .news-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .news-hero-container { padding: 40px 16px 30px; }
    .news-grid-container { padding: 0 16px; }
}
