/* CENOVA NEWS PAGE STYLES */
:root {
    --navy: #1a2a4e;
    --gold: #d4a017;
    --light-bg: #f8fbff;
    --text: #555;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-wrapper {
    overflow: hidden;
}

/* SECTION 1: HERO OVERLAY */
.news-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.news-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.news-hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.news-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 78, 0.9) 0%, rgba(26, 42, 78, 0.6) 100%);
}

.news-hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.news-hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff !important;
}

.news-hero-title span { color: var(--gold) !important; }

.news-hero-subtitle {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* GENERAL SECTIONS */
.news-section { padding: 120px 0; }
.bg-light { background: var(--light-bg); }

.section-header.type-modern { margin-bottom: 60px; }
.section-header.type-modern .sub-title {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
}
.section-header.type-modern .title {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
}
.section-header.type-modern .title span { color: var(--gold); }
.header-line {
    width: 60px; height: 4px; background: var(--gold); margin-top: 20px;
}
.header-line.center { margin: 20px auto 0; }

/* GRID 1: CHUYEN GIAO CONG NGHE (Hero + 4 small sidebar) */
.news-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.news-grid-modern .hero-card {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* GENERAL CARD STYLES */
.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Darker shadow */
    border: 1px solid rgba(0,0,0,0.06); /* Subtle border */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: rgba(212, 160, 23, 0.3); /* Gold tint on border hover */
}

.news-thumb {
    position: relative;
    overflow: hidden;
    display: block;
}

.news-thumb img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-category-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--gold);
    color: #fff;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}
.news-meta i { color: var(--gold); margin-right: 5px; }

.news-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-title a { color: var(--navy); transition: color 0.3s; }
.news-card:hover .news-title a { color: var(--gold); }

.news-excerpt {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.news-readmore i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--gold);
}

.news-readmore:hover { color: var(--gold); }
.news-readmore:hover i { transform: translateX(5px); }

/* SPECIFIC: HERO CARD */
.news-grid-modern .hero-card .news-thumb img { height: 450px; }
.news-grid-modern .hero-card .news-title { font-size: 32px; }
.news-grid-modern .hero-card .news-content { padding: 40px; }
.news-grid-modern .hero-card .news-excerpt { font-size: 16px; margin-bottom: 30px; }

/* SPECIFIC: NORMAL CARD IN GRID 1 */
.news-grid-modern .normal-card .news-thumb img { height: 200px; }
.news-grid-modern .normal-card .news-content { padding: 25px; }
.news-grid-modern .normal-card .news-title { font-size: 18px; margin-bottom: 0; }

/* GRID 2: MASONRY/STANDARD FOR TIN TUC */
.news-grid-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.masonry-card .news-thumb img { height: 280px; }
.news-overlay-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 42, 78, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.4s ease;
}
.masonry-card:hover .news-overlay-link { opacity: 1; }
.news-overlay-link i {
    background: #fff; color: var(--navy);
    width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.masonry-card:hover .news-overlay-link i { transform: translateY(0); }

/* LOAD MORE BUTTON */
.news-loadmore-wrap { margin-top: 60px; }
.btn-loadmore {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-loadmore:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.3);
}

.btn-loadmore .spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-loadmore.loading span { opacity: 0.7; }
.btn-loadmore.loading .spinner { display: inline-block; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 991px) {
    .news-grid-modern { grid-template-columns: 1fr 1fr; }
    .news-grid-modern .hero-card { grid-column: 1 / 3; }
    .news-grid-masonry { grid-template-columns: 1fr 1fr; }
    .news-hero-title { font-size: 52px; }
}

@media (max-width: 768px) {
    .news-hero { height: auto; padding: 90px 0 40px; min-height: 350px; }
    .news-hero-title { margin-bottom: 12px; font-size: 28px; line-height: 1.2; }
    .news-hero-subtitle { font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
    
    .news-section { padding: 40px 0; }
    .section-header.type-modern { margin-bottom: 30px; }
    .section-header.type-modern .title { font-size: 26px; }
    
    .news-grid-modern,
    .news-grid-masonry { grid-template-columns: 1fr; gap: 30px; }
    .news-grid-modern .hero-card { grid-column: 1 / 2; }
    
    .news-grid-modern .hero-card .news-thumb img { height: 250px; }
    .news-grid-modern .hero-card .news-title { font-size: 22px; }
    .news-grid-modern .hero-card .news-content { padding: 25px; }
    .masonry-card .news-thumb img { height: 230px; }
    .news-title { font-size: 18px; }
}
