/* style/news.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --bg-dark: #08160F;
    --bg-card: #11271B;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* body đã có padding-top: var(--header-offset) từ shared.css */
.page-news {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* Luôn dùng màu trắng cho chữ trên nền nút đậm */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.2);
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

/* --- Latest News Section --- */
.page-news__latest-news-section,
.page-news__promotions-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-news__news-card,
.page-news__promo-card,
.page-news__insight-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover,
.page-news__promo-card:hover,
.page-news__insight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__card-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-button {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
    text-decoration: none;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.page-news__read-more-button:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* --- Industry Insights Section --- */
.page-news__industry-insights-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-news__insight-item .page-news__card-image {
    height: 250px;
}

/* --- Promotions Section (uses similar card styles) --- */

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--bg-card);
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: var(--deep-green);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-question:hover {
    background-color: var(--deep-green);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- CTA Bottom Section --- */
.page-news__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }

    .page-news__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__insight-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }

    .page-news__hero-content {
        padding: 0 15px;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-news__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-news__latest-news-section,
    .page-news__industry-insights-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 60px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__insight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-image {
        height: 180px;
    }

    .page-news__card-title {
        font-size: 1.2em;
    }

    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__hero-image-wrapper,
    .page-news__hero-content,
    .page-news__latest-news-section,
    .page-news__industry-insights-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section,
    .page-news__cta-buttons-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    
    .page-news__cta-buttons-wrapper {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
}