/* style/news.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --background-color-page: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

body {
    background-color: var(--background-color-page); /* Ensure body background is set */
    color: var(--text-main-color); /* Default text color for the page */
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-color-page);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--background-color-page);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    z-index: 1;
    color: var(--text-main-color);
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main-color);
    /* Using clamp for responsive font size without fixed large values */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-news__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: #ffffff;
    border: 2px solid var(--deep-orange-color);
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color-page);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.3);
}

.page-news__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-news__latest-news-section,
.page-news__featured-articles-section,
.page-news__video-promo-section,
.page-news__faq-section,
.page-news__cta-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

.page-news__news-grid,
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card,
.page-news__article-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
}

.page-news__news-card:hover,
.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: var(--text-main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--primary-color);
}

.page-news__card-date {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
    display: block;
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-news__button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.page-news__video-promo-section {
    text-align: center;
}

.page-news__video-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    color: var(--text-main-color);
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__button-wrapper--video-cta {
    margin-top: 30px;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: var(--text-main-color);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide marker for Webkit browsers */
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-news__faq-item[open] summary {
    background-color: var(--deep-orange-color);
    color: #ffffff;
    border-bottom: none;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    color: #ffffff;
}

.page-news__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

.page-news__faq-answer p {
    margin: 0;
    color: #ccc;
}

.page-news__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-news__cta-section {
    text-align: center;
    background-color: var(--deep-orange-color);
    padding: 80px 0;
}

.page-news__cta-section .page-news__section-title {
    color: #ffffff;
}

.page-news__cta-section .page-news__section-title::after {
    background: #ffffff;
}

.page-news__cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

.page-news__cta-section .page-news__cta-buttons {
    gap: 25px;
}

.page-news__cta-section .page-news__btn-primary {
    background: #ffffff;
    color: var(--deep-orange-color);
    border-color: #ffffff;
}

.page-news__cta-section .page-news__btn-primary:hover {
    background: var(--text-main-color);
    color: var(--deep-orange-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.page-news__cta-section .page-news__btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-news__cta-section .page-news__btn-secondary:hover {
    background: #ffffff;
    color: var(--deep-orange-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-news__hero-content {
        padding: 20px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 1rem;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .page-news__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-news__latest-news-section,
    .page-news__featured-articles-section,
    .page-news__video-promo-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }
    .page-news__news-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__card-image {
        height: 200px;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-news__news-card,
    .page-news__article-card {
        margin: 0 15px;
    }
    .page-news__card-title {
        font-size: 1.15rem;
    }
    .page-news__card-excerpt {
        font-size: 0.95rem;
    }
    .page-news__video-wrapper {
        margin: 0 auto 20px auto;
        padding: 0 15px;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .page-news__video-link {
        width: 100% !important;
        height: 100% !important;
    }
    .page-news__video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        min-height: 200px !important;
    }
    .page-news__faq-item summary {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    .page-news__faq-answer {
        padding: 12px 20px 15px;
    }
    .page-news__faq-list {
        margin: 40px 15px 0 15px;
    }
    .page-news__cta-text {
        font-size: 1.05rem;
        padding: 0 15px;
    }
    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .page-news__latest-news-section .page-news__container,
    .page-news__featured-articles-section .page-news__container,
    .page-news__video-promo-section .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__cta-section .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section {
        padding-top: 10px !important; /* body đã xử lý padding-top, chỉ cần top padding nhỏ */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }
    .page-news__section-title {
        font-size: 1.6rem;
    }
    .page-news__faq-item summary {
        font-size: 1rem;
        padding: 15px 18px;
    }
    .page-news__faq-answer {
        padding: 10px 18px 12px;
    }
}