/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for assumed light background */
    background-color: var(--color-background); /* Inherit from shared */
}

/* Section common styles */
.page-news__section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Text Main color for this background */
}

.page-news__section:nth-child(even) {
    background-color: var(--color-background); /* Alternate section background */
    color: #333333; /* Dark text for light background */
}

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

.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFF5E1; /* Gold-like for titles on dark sections */
}

.page-news__section:nth-child(even) .page-news__section-title {
    color: #C91F17; /* Primary red for titles on light sections */
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1; /* Text Main for dark background */
}

.page-news__section:nth-child(even) .page-news__section-description {
    color: #666666; /* Darker gray for light background */
}

/* HERO Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #B71C1C; /* Deep Red background for hero */
    color: #FFF5E1;
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-news__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #F4D34D; /* Gold color for main title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__lead-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1; /* Text Main color */
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text on gold button for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* News Grid */
.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card {
    background-color: #D32F2F; /* Card BG color */
    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;
    color: #FFF5E1; /* Text Main for dark card */
}

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

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 20px;
}

.page-news__news-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__news-card-title a {
    color: #F4D34D; /* Gold color for link on dark card */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #FFCC66; /* Glow color on hover */
}

.page-news__news-card-meta {
    font-size: 14px;
    color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
}

.page-news__read-more-link {
    display: inline-block;
    color: #FFCC66; /* Glow color for read more */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

/* Featured Articles */
.page-news__featured-articles {
    background-color: var(--color-background); /* Light background for this section */
    color: #333333;
}

.page-news__featured-articles .page-news__section-title {
    color: #C91F17;
}
.page-news__featured-articles .page-news__section-description {
    color: #666666;
}

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

.page-news__article-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #ffffff; /* White background for light section cards */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-news__article-image {
    width: 120px; /* Smaller image for article list */
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

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

.page-news__article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.page-news__article-title a {
    color: #C91F17; /* Primary red for link on light card */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #E53935; /* Auxiliary red on hover */
}

.page-news__article-meta {
    font-size: 13px;
    color: #888888;
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 15px;
    color: #555555;
}

/* Promotions Preview */
.page-news__promotions-preview {
    background-color: #B71C1C; /* Deep Red background */
    color: #FFF5E1;
}

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

.page-news__promo-card {
    background-color: #D32F2F; /* Card BG color */
    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;
    color: #FFF5E1;
}

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

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

.page-news__promo-card-content {
    padding: 20px;
}

.page-news__promo-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__promo-card-title a {
    color: #F4D34D; /* Gold color for link on dark card */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-card-title a:hover {
    color: #FFCC66; /* Glow color on hover */
}

.page-news__promo-card-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
}


/* FAQ Section */
.page-news__faq-section {
    background-color: var(--color-background); /* Light background */
    color: #333333;
}

.page-news__faq-section .page-news__section-title {
    color: #C91F17;
}
.page-news__faq-section .page-news__section-description {
    color: #666666;
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #F2B544; /* Border color */
    overflow: hidden;
    background: #ffffff; /* White background for FAQ item */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    background-color: #C91F17; /* Primary Red for question background */
    color: #FFF5E1; /* Text Main for question */
    font-weight: bold;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
    background: #E53935; /* Auxiliary red on hover */
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF5E1; /* Text Main */
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD86A; /* Gold color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 20px;
    background: #f9f9f9; /* Light gray for answer background */
    border-radius: 0 0 5px 5px;
    color: #333333; /* Dark text for answer */
}
.page-news__faq-answer p {
    margin-bottom: 10px;
}
.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-news__faq-answer a {
    color: #C91F17; /* Primary red for links in answers */
    text-decoration: underline;
}
.page-news__faq-answer a:hover {
    color: #E53935;
}


/* Contact CTA */
.page-news__contact-cta {
    background-color: #7A0E0E; /* Deep Red background */
    text-align: center;
    padding: 80px 20px;
    color: #FFF5E1;
}

.page-news__contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__contact-cta .page-news__section-title {
    color: #F4D34D; /* Gold color */
    margin-bottom: 20px;
}

.page-news__contact-cta .page-news__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #FFF5E1;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 40px;
    }
    .page-news__lead-text {
        font-size: 18px;
    }
    .page-news__section-title {
        font-size: 30px;
    }
    .page-news__section-description {
        font-size: 16px;
    }
    .page-news__news-card-title,
    .page-news__promo-card-title {
        font-size: 20px;
    }
    .page-news__article-title {
        font-size: 17px;
    }
    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-image img {
        border-radius: 4px;
    }
    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .page-news__lead-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        max-width: 100% !important; /* Button responsive */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 26px;
    }
    .page-news__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__news-card-image,
    .page-news__promo-card-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-news__article-image {
        width: 100%;
        height: auto;
        max-width: 200px; /* Constrain width for stacked image */
        margin-bottom: 15px;
    }
    .page-news__news-grid,
    .page-news__promo-grid {
        gap: 20px;
    }
    .page-news__article-list {
        grid-template-columns: 1fr; /* Stack articles on mobile */
    }
    .page-news__article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    .page-news__article-content {
        width: 100%;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 14px;
    }

    /* FAQ mobile */
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 16px; }
    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 15px;
    }
    .page-news__contact-cta {
        padding: 60px 15px;
    }
}

/* Ensure content area containers have correct box-sizing and overflow for mobile */
.page-news__container,
.page-news__news-grid,
.page-news__news-card,
.page-news__article-list,
.page-news__article-item,
.page-news__promo-grid,
.page-news__promo-card,
.page-news__faq-list,
.page-news__faq-item {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .page-news__container,
    .page-news__news-grid,
    .page-news__news-card,
    .page-news__article-list,
    .page-news__article-item,
    .page-news__promo-grid,
    .page-news__promo-card,
    .page-news__faq-list,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        /* padding-left and padding-right are handled by section padding */
    }
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__faq-item {
        /* Ensure these elements do not have extra padding from container rules */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__news-card-content,
    .page-news__promo-card-content {
        padding: 15px;
    }
}