/* ── Hero ── */
.tnc-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: start;
    justify-content: center;
    overflow: hidden;
}

.tnc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.tnc-hero-title {
    color: #ff9800;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vertical-line {
    display: inline-block;
    width: 8px;
    height: 60px;
    background-color: #ffffff;
    margin-right: 20px;
}

/* ── News Detail ── */
.news-detail-main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.75;
    color: #2c3e50;
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.news-hero {
    color: #ff9800;
    background-color: #fff;
    padding: 1rem 1.5rem;
    text-align: center;
}

.news-container {
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-breadcrumb a {
    color: #312f2d;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news-breadcrumb a:hover {
    opacity: 0.8;
}

.news-breadcrumb span {
    color: #312f2d;
}

.news-breadcrumb .current {
    font-weight: 600;
    color: #312f2d;
}

/* Category */
.news-category {
    display: inline-block;
    background-color: rgba(255, 152, 0, 0.18);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Title */
.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Meta */
.news-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 152, 0, 0.92);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Card */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    padding-top: 0;
    overflow: hidden;
}

/* Featured image */
.news-featured-img-wrapper {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.news-featured-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Excerpt */
.news-excerpt {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    border-left: 4px solid #ff9800;
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Content */
.news-content p {
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    color: #2d3748;
}

.news-content h3 {
    font-size: 1.6rem;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.news-content blockquote {
    background: #fffbf5;
    border-left: 4px solid #ff9800;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.news-content-media {
    margin: 2.5rem 0;
    text-align: center;
}

.news-content-media img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.news-content-media figcaption {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Footer / Tags */
.news-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #edf2f7;
}

.tag-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-item {
    background: #f7fafc;
    color: #4a5568;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
}

.tag-item:hover {
    background: #ff9800;
    color: #ffffff;
    border-color: #ff9800;
}

/* ── Recent News Section ── */
.recent-news-section {
    padding: 3rem 0 4rem;
    background: #f9f9f9;
}

.recent-news-section .section-heading {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    display: inline-block;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3.5px solid #ff9800;
}

/* Wrapper ngoài để đặt nút mũi tên bên ngoài swiper */
.rn-swiper-wrapper {
    position: relative;
    padding-left: 56px;
    padding-right: 56px;
}

.recent-news-swiper {
    padding-bottom: 48px !important;
}

/* Đồng nhất chiều cao các slide */
.recent-news-swiper .swiper-wrapper {
    align-items: stretch;
}

.recent-news-swiper .swiper-slide {
    height: auto;
}

.rn-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.rn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.rn-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.rn-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rn-card:hover .rn-img-wrapper img {
    transform: scale(1.05);
}

.rn-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rn-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rn-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.rn-date .news-icon {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.6;
}

.rn-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.rn-readmore {
    font-size: 13px;
    font-weight: 700;
    color: #ff9800;
}

/* Nút mũi tên — dạng đơn giản, không viền */
.rn-btn-prev,
.rn-btn-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.rn-btn-prev { left: 0; }
.rn-btn-next { right: 0; }

.rn-btn-prev::after,
.rn-btn-next::after {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    transition: color 0.2s;
}

.rn-btn-prev::after { content: '<'; }
.rn-btn-next::after { content: '>'; }

.rn-btn-prev:hover::after,
.rn-btn-next:hover::after {
    color: #ff9800;
}

/* Pagination dạng gạch ngang */
.recent-news-swiper .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #1a1a1a;
    opacity: 0.25;
}

.recent-news-swiper .swiper-pagination-bullet-active {
    background: #ff9800;
    opacity: 1;
    width: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tnc-hero-title {
        font-size: 2.5rem;
    }
    .vertical-line {
        height: 40px;
        width: 5px;
    }

    .news-hero {
        padding: 1rem;
    }
    .news-title {
        font-size: 1.85rem;
    }
    .news-card {
        padding: 1.5rem 0.5rem;
        border-radius: 12px;
    }
    .news-body-wrapper {
        margin-top: -3rem;
    }
    .news-excerpt {
        font-size: 1.1rem;
    }
    .news-content p {
        font-size: 1.05rem;
    }
    .news-content h3 {
        font-size: 1.4rem;
    }
    .news-content blockquote {
        padding: 0.5rem;
    }
    .news-breadcrumb {
        font-size: 0.85rem;
    }
    .news-meta {
        gap: 0.8rem;
        font-size: 0.88rem;
    }
}
