/* style/news.css */
:root {
    --primary-color: #0A2342;
    --secondary-color: #FFC107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-dark: #000000;
    --background-light: #f8f9fa;
    --card-background-dark: rgba(255, 255, 255, 0.08);
    --card-background-light: #ffffff;
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text due to body background #000 */
    background-color: var(--background-dark); /* Inherited from shared.css, but explicit for context */
    padding-top: 100px; /* Adjusted for fixed header - Desktop */
}

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

/* Top padding for main content to avoid overlap with fixed header */
.page-news__hero-section {
    padding-top: 10px; /* Specific adjustment for the very first section */
    padding-bottom: 60px;
}

.page-news__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-news__main-title {
    font-size: 44px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-news__section-description {
    font-size: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

.page-news__featured-articles,
.page-news__latest-articles,
.page-news__brand-section,
.page-news__faq-section,
.page-news__cta-bottom {
    padding: 80px 0;
}

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

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

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news__article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-news__article-date {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Latest Articles List */
.page-news__article-list {
    display: grid;
    gap: 25px;
}

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

.page-news__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__list-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.page-news__list-image-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 25px;
}

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

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

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

.page-news__list-excerpt {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-news__list-date {
    font-size: 13px;
    color: #bbb;
}

/* Pagination */
.page-news__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 10px;
}

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

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

.page-news__pagination-link--active {
    background: var(--secondary-color);
    color: var(--primary-color);
    pointer-events: none;
}

/* Brand Section */
.page-news__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__brand-item {
    background: var(--card-background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
}

.page-news__brand-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news__brand-item-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news__brand-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
}

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

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

.page-news__faq-question:hover {
    background: lighten(var(--primary-color), 5%);
    border-color: var(--secondary-color);
}

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

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    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: 30px;
    height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Optional: rotate for 'x' effect if using a plus */
}

.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: var(--card-background-dark);
    color: var(--text-light);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-answer p {
    margin: 0;
    color: var(--text-light);
}

/* Bottom CTA */
.page-news__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

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

.page-news__cta-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 38px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__list-link {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .page-news__list-image-wrapper {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-news__list-title {
        font-size: 18px;
    }
    .page-news__list-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: 80px !important; /* Mobile adjustment for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding: 0 15px !important;
    }
    .page-news__hero-section {
        padding-top: 10px !important; /* Specific for the first section */
        padding-bottom: 40px;
    }
    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-news__featured-articles,
    .page-news__latest-articles,
    .page-news__brand-section,
    .page-news__faq-section,
    .page-news__cta-bottom {
        padding: 50px 0;
    }
    .page-news__article-grid {
        gap: 20px;
    }
    .page-news__article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news__list-item {
        padding: 0;
    }
    .page-news__list-link {
        padding: 15px;
    }
    .page-news__list-image-wrapper {
        height: 150px;
        margin-bottom: 10px;
    }
    .page-news__list-title {
        font-size: 16px;
    }
    .page-news__list-excerpt {
        font-size: 13px;
    }
    .page-news__pagination {
        margin-top: 40px;
    }
    .page-news__pagination-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .page-news__brand-content {
        gap: 20px;
    }
    .page-news__brand-item {
        padding: 25px;
    }
    .page-news__brand-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .page-news__brand-item-title {
        font-size: 20px;
    }
    .page-news__brand-item p {
        font-size: 14px;
    }
    .page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-question h3 {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px !important;
    }
    .page-news__cta-title {
        font-size: 30px;
    }
    .page-news__cta-description {
        font-size: 16px;
    }
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-section,
    .page-news__featured-articles,
    .page-news__latest-articles,
    .page-news__brand-section,
    .page-news__faq-section,
    .page-news__cta-bottom,
    .page-news__article-card,
    .page-news__list-item,
    .page-news__brand-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 26px;
    }
    .page-news__section-title {
        font-size: 24px;
    }
    .page-news__cta-title {
        font-size: 24px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
}