/* style/news.css */

/* General styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background: var(--page-bg); /* Inherit from shared.css, assuming it's dark */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    overflow: hidden; /* Ensure no image overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: #B71C1C; /* Background color from custom palette */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: -5px; /* Slight overlap with image */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1; /* Text Main */
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #333333; /* Dark text for contrast on gold */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #F2B544; /* Border color */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    transform: translateY(-2px);
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #FFCC66; /* Glow color */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Articles Section */
.page-news__articles-section {
    padding: 60px 0;
    background: #B71C1C; /* Background color */
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background: #D32F2F; /* Card BG */
    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;
    border: 1px solid #7A0E0E; /* Deep Red for border */
}

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

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

.page-news__article-image-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.page-news__article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F4D34D; /* Gold color */
    line-height: 1.4;
}

.page-news__article-date {
    font-size: 0.9em;
    color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    color: #FFD86A; /* Button color */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
    color: #E6B800; /* Darker Button color */
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background: #C91F17; /* Main color */
    text-align: center;
}

.page-news__cta-section .page-news__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-news__cta-content {
    flex: 1;
    text-align: left;
}

.page-news__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFCC66; /* Glow color */
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-news__cta-description {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 30px;
}

.page-news__cta-image-wrapper {
    flex: 0 0 400px; /* Fixed width for image */
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #F2B544; /* Border color */
}

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

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius */
  border: 1px solid #7A0E0E; /* Deep Red border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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;
  color: #F4D34D; /* Gold color for question */
  font-weight: 600;
}
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 color on hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main for answer text */
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        margin-bottom: 20px;
    }
    .page-news__hero-content {
        padding: 30px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Clamp for H1 */
        margin-bottom: 10px;
    }
    .page-news__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__hero-content .page-news__btn-primary {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__view-all-button-wrapper .page-news__btn-secondary {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-content .page-news__btn-primary {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section Titles */
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Articles Section */
    .page-news__articles-section {
        padding: 40px 0;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__article-title {
        font-size: 1.1em;
    }
    .page-news__article-excerpt {
        font-size: 0.95em;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__cta-section .page-news__container {
        flex-direction: column; /* Stack vertically */
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-content {
        text-align: center;
    }
    .page-news__cta-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-news__cta-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-news__cta-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-news__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 1em; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

    /* Generic image rules for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__articles-section .page-news__container,
    .page-news__cta-section .page-news__container,
    .page-news__faq-section .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile specific button container handling for multiple buttons */
@media (max-width: 768px) {
    .page-news__button-group { /* If there were multiple buttons in a row */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}