/* style/news.css */

:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: #0d0d0d;
    --border-color: #e0e0e0;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Default text color for dark body bg */
    background-color: var(--dark-bg); /* Assuming shared.css sets body to dark-bg */
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-light);
}

.page-news__hero-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.page-news__featured-articles {
    background-color: var(--dark-bg);
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-news__article-title a:hover {
    color: var(--text-light);
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-news__read-more-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

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

.page-news__latest-news {
    background-color: var(--primary-color);
    padding: 60px 0;
}

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

.page-news__list-item {
    display: flex;
    background-color: #1a3c7a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.page-news__list-item:hover {
    transform: translateY(-3px);
}

.page-news__list-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.page-news__list-content {
    padding: 25px;
    flex-grow: 1;
}

.page-news__list-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__list-title a:hover {
    color: var(--text-light);
}

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

.page-news__list-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

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

.page-news__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a3c7a;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-news__pagination-link[href="#"] {
    cursor: default;
    opacity: 0.7;
}

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

.page-news__cta-content {
    max-width: 900px;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--primary-color);
}

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

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

.page-news__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
    background-color: #081e50;
    transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.page-news__faq-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    color: var(--text-light);
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.page-news__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--primary-color);
    margin-bottom: 10px;
    border-radius: 8px;
}

.page-news__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

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

.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);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    font-size: 1.05em;
    line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__list-item {
        flex-direction: column;
    }
    .page-news__list-image {
        width: 100%;
        height: 250px;
    }
}

@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;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card {
        margin: 0 15px;
    }
    .page-news__list-item {
        margin: 0 15px;
    }
    .page-news__list-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    .page-news__cta-section {
        padding: 50px 15px;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__faq-list {
        margin: 0 15px;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    
    /* Image responsive force */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-section,
    .page-news__featured-articles,
    .page-news__latest-news,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__container,
    .page-news__article-card,
    .page-news__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-news__hero-image-wrapper {
        overflow: hidden !important;
    }
    .page-news__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
}