/* style/news.css */

/* --- Global & Reset for .page-news Scope --- */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #000; /* Inherited from shared.css body, but explicitly set for context */
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-news * {
    box-sizing: border-box;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 500px;
    background: linear-gradient(135deg, #0047AB, #002D62); /* Brand colors for background */
    color: #ffffff;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

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

.page-news__main-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for prominence */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-news__btn-primary {
    background-color: #FFD700; /* Gold for primary action */
    color: #0047AB; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #0047AB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Section & Container Styles --- */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main titles */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles-section {
    background-color: #0d0d0d; /* Dark background for this section */
    color: #f0f0f0;
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    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 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-news__article-title a.page-news__article-link {
    color: #FFD700; /* Gold for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-news__article-date {
    font-size: 0.85em;
    color: #999999;
    margin-bottom: 15px;
}

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: #0047AB; /* Primary color for read more */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #FFD700; /* Gold on hover */
}

.page-news__read-more-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__read-more-icon {
    transform: translateX(5px);
}

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

/* --- Brand Section --- */
.page-news__brand-section {
    background-color: #0047AB; /* Primary brand color background */
    color: #ffffff;
    padding: 60px 0;
}

.page-news__brand-section .page-news__section-title {
    color: #FFD700; /* Gold title on dark blue background */
}

.page-news__brand-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__brand-item {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__brand-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__brand-item-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold for item titles */
}

.page-news__brand-item p {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    background-color: #0d0d0d; /* Dark background */
    color: #f0f0f0;
    padding: 60px 0;
}

.page-news__faq-section .page-news__section-title {
    color: #FFD700; /* Gold title */
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #1a1a1a; /* Darker background for questions */
    border: 1px solid #333333;
    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: #2a2a2a;
    border-color: #555555;
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold for FAQ questions */
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #f0f0f0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: #FFD700;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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: #101010; /* Slightly lighter dark background for answer */
    border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid #333333;
    border-top: none;
}

.page-news__faq-answer p {
    color: #cccccc;
    font-size: 1em;
    line-height: 1.7;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__brand-item-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-news__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 350px; /* Constrain button width on mobile */
        margin: 0 auto;
    }
    .page-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__container {
        padding: 30px 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-news__article-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__article-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .page-news__article-excerpt {
        font-size: 0.9em;
    }

    .page-news__brand-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__brand-item {
        padding: 25px;
    }
    .page-news__brand-item-title {
        font-size: 1.5em;
    }
    .page-news__brand-item p {
        font-size: 0.95em;
    }

    .page-news__faq-list {
        margin-top: 30px;
    }
    .page-news__faq-question {
        padding: 18px 20px;
    }
    .page-news__faq-question h3 {
        font-size: 1.1em;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
        margin-left: 15px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px !important;
    }
    .page-news__faq-answer p {
        font-size: 0.95em;
    }

    /* Mobile image responsive */
    .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__latest-articles-section,
    .page-news__brand-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections */
    }
}