/* style/news.css */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-bg: #f1f3f5;
    --border-color: #e0e0e0;
}

.page-news {
    background-color: var(--light-bg);
    color: var(--text-on-light);
    font-family: 'Arial', sans-serif;
}

/* --- Intro Section --- */
.page-news__intro-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust for fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a6b 100%);
    color: var(--text-on-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__intro-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-news__intro-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__intro-image-wrapper {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__intro-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-news__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- Articles Section --- */
.page-news__articles-section {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.page-news__articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__articles-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-news__articles-intro {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-on-light);
}

.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

.page-news__article-heading {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__article-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-news__article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__promotion-link {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.page-news__promotion-link:hover {
    text-decoration: underline;
    color: #004499;
}

.page-news__article-date {
    font-size: 13px;
    color: #888888;
    margin-bottom: 20px;
    display: block;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-on-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-button:hover {
    background: #1a3a6b;
    transform: translateY(-1px);
}

/* --- Categories Section --- */
.page-news__categories-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-news__categories-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-news__categories-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-news__categories-intro {
    font-size: 17px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-on-light);
}

.page-news__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-news__category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-news__category-link {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__category-link:hover {
    color: var(--secondary-color);
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.page-news__faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-news__faq-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-news__faq-intro {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-on-light);
}

.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-on-light);
}

.page-news__faq-answer p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.7;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-news__faq-question:active {
    background: #eeeeee;
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--primary-color);
}

/* --- Final CTA Section --- */
.page-news__cta-final-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a3a6b 0%, var(--primary-color) 100%);
    color: var(--text-on-dark);
    text-align: center;
}

.page-news__cta-final-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__cta-final-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-news__cta-final-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

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

.page-news__cta-button--primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-news__cta-button--primary:hover {
    background: #e6c200;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__intro-section {
        padding-top: 160px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__intro-title {
        font-size: 32px;
    }

    .page-news__intro-description {
        font-size: 16px;
    }

    .page-news__intro-image-wrapper {
        border-radius: 8px;
    }

    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-news__articles-section,
    .page-news__categories-section,
    .page-news__faq-section,
    .page-news__cta-final-section {
        padding: 40px 15px;
    }

    .page-news__articles-title,
    .page-news__categories-title,
    .page-news__faq-title,
    .page-news__cta-final-title {
        font-size: 28px;
    }

    .page-news__articles-intro,
    .page-news__categories-intro,
    .page-news__faq-intro,
    .page-news__cta-final-description {
        font-size: 15px;
    }

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

    .page-news__article-content {
        padding: 20px;
    }

    .page-news__article-heading {
        font-size: 18px;
    }

    .page-news__article-excerpt {
        font-size: 14px;
    }

    .page-news__article-date {
        font-size: 12px;
    }

    .page-news__read-more-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .page-news__category-list {
        gap: 10px;
    }

    .page-news__category-link {
        padding: 12px 20px;
        font-size: 14px;
    }

    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-news__faq-answer {
        padding: 0 15px;
    }
    
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }

    .page-news__cta-final-title {
        font-size: 28px;
    }

    .page-news__cta-buttons-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__intro-container,
    .page-news__articles-container,
    .page-news__categories-container,
    .page-news__faq-container,
    .page-news__cta-final-container,
    .page-news__article-card,
    .page-news__category-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px !important; /* Remove container padding if any */
        padding-right: 0px !important; /* Remove container padding if any */
    }
    .page-news__articles-section .page-news__articles-container,
    .page-news__categories-section .page-news__categories-container,
    .page-news__faq-section .page-news__faq-container,
    .page-news__cta-final-section .page-news__cta-final-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}