/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body or fallback */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #FFCC00;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #003366;
    border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #003366; /* Main brand color for hero */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFCC00;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-news__btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFCC00;
    border: 2px solid #FFCC00;
}

.page-news__btn-secondary:hover {
    background-color: #FFCC00;
    color: #003366;
}

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 60px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #FFCC00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #e6b800;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #003366;
    background-color: #FFCC00;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-news__read-more:hover {
    background-color: #e6b800;
}

/* Latest Updates Section */
.page-news__latest-updates {
    padding: 60px 0;
    background-color: #f0f0f0;
    color: #333333;
}

.page-news__latest-updates .page-news__section-title {
    color: #003366;
}

.page-news__latest-updates .page-news__section-title::after {
    background-color: #FFCC00;
}

.page-news__news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-news__news-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-news__news-image {
    width: 30%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px;
}

.page-news__news-content {
    padding: 25px;
    width: 70%;
}

.page-news__news-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__news-title a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-title a:hover {
    color: #FFCC00;
}

.page-news__news-meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__news-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-news__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #003366;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
    background-color: #FFCC00;
    color: #003366;
}

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

.page-news__categories .page-news__section-title {
    color: #FFCC00;
}

.page-news__categories .page-news__section-title::after {
    background-color: #FFCC00;
}

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

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #FFCC00;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
    color: #FFCC00;
}

.page-news__faq-section .page-news__section-title::after {
    background-color: #003366;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    background-color: #003366;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #004488;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form a cross */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

.page-news__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-item {
        flex-direction: column;
    }
    .page-news__news-image {
        width: 100%;
        height: 250px;
    }
    .page-news__news-content {
        width: 100%;
        padding: 20px;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__category-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-news__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__featured-articles,
    .page-news__latest-updates,
    .page-news__categories,
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__articles-grid,
    .page-news__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card,
    .page-news__news-item,
    .page-news__category-card {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-news__news-image,
    .page-news__article-image,
    .page-news__category-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-content {
        padding: 15px;
    }
    .page-news__news-title {
        font-size: 1.3em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__news-title {
        font-size: 1.1em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__category-title {
        font-size: 1.2em;
    }
}