/* General styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background: #0A0A0A; /* Background */
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: 38px;
    font-weight: 700;
    color: #F2C14E; /* Main Color */
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

.page-news__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for desktop */
    position: relative;
    overflow: hidden;
}

.page-news__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-news__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 2;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.page-news__main-title {
    font-size: clamp(32px, 4vw, 52px); /* Clamp for H1 */
    font-weight: 800;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,211,107,0.5);
}

.page-news__description {
    font-size: 18px;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main Color */
    border: 2px solid #F2C14E; /* Border color */
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-news__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.3);
}

/* Articles Section */
.page-news__articles-section {
    padding: 80px 0;
    background: #111111; /* Card BG */
    margin-bottom: 60px;
}

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

.page-news__article-card {
    background: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    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 10px 20px rgba(0, 0, 0, 0.4);
}

.page-news__article-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.page-news__article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-thumbnail img {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

.page-news__article-title a {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #F2C14E; /* Main Color */
}

.page-news__article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

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

.page-news__read-more {
    align-self: flex-start; /* Align to start */
    background: transparent;
    color: #F2C14E; /* Main Color */
    border: 1px solid #F2C14E;
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 5px;
    margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
    background: #F2C14E;
    color: #111111; /* Dark text for bright button */
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #F2C14E; /* Main Color */
    color: #111111; /* Dark text for bright background */
    margin-bottom: 60px;
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__cta-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-news__cta-section .page-news__btn-primary {
    background: #111111; /* Dark background for contrast */
    color: #FFD36B; /* Auxiliary color */
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.page-news__cta-section .page-news__btn-primary:hover {
    background: #000000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.page-news__cta-section .page-news__btn-secondary {
    border-color: #111111; /* Dark border for contrast */
    color: #111111;
}
.page-news__cta-section .page-news__btn-secondary:hover {
    background: rgba(0,0,0,0.1);
    color: #000000;
}


/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background: #111111; /* Card BG */
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A; /* Background */
}
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;
}
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: rgba(242, 193, 78, 0.05); /* Light hover effect */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Auxiliary color */
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: rgba(242, 193, 78, 0.02); /* Very subtle background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
}
.page-news__faq-answer p {
    margin: 0;
}


/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-news__container {
        padding: 15px;
    }

    .page-news__section-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .page-news__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* HERO Main Image Section */
    .page-news__hero-section {
        margin-bottom: 40px;
    }
    .page-news__hero-image {
        height: 250px; /* Adjust height for mobile */
    }
    .page-news__hero-image img {
        object-fit: contain !important; /* Force contain for mobile hero */
        aspect-ratio: unset !important; /* Remove aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__hero-content {
        position: static; /* Remove absolute positioning */
        transform: none;
        width: 100%;
        padding: 20px 15px;
        background: #0A0A0A; /* Solid background for content */
        border-radius: 0;
        box-shadow: none;
        margin-top: -10px; /* Pull up slightly */
    }
    .page-news__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Adjusted clamp for mobile H1 */
        margin-bottom: 10px;
    }
    .page-news__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Articles Section */
    .page-news__articles-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
    }
    .page-news__article-thumbnail {
        height: 180px; /* Smaller thumbnail height */
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news__read-more {
        font-size: 14px;
        padding: 6px 15px;
    }
    .page-news__articles-section img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__articles-section .page-news__container,
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* CTA Section */
    .page-news__cta-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    .page-news__cta-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-news__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__cta-section .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-news__cta-section .page-news__btn-primary,
    .page-news__cta-section .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__cta-section .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .page-news__faq-answer p {
        font-size: 15px;
    }
    .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;
    }
}

/* Generic image and container responsive styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Additional specific rules for mobile */
@media (max-width: 768px) {
    /* Ensure content areas don't overflow */
    .page-news__articles-section,
    .page-news__cta-section,
    .page-news__faq-section {
        overflow-x: hidden;
    }
    /* Ensure general text readability on mobile */
    .page-news p,
    .page-news li,
    .page-news__article-excerpt {
        font-size: 15px;
        line-height: 1.6;
    }
}