:root {
    --page-news-primary-color: #FF8C1A;
    --page-news-secondary-color: #FFA53A;
    --page-news-card-bg: #17191F;
    --page-news-bg: #0D0E12;
    --page-news-text-main: #FFF3E6;
    --page-news-border-color: #A84F0C;
    --page-news-glow-color: #FFB04D;
    --page-news-deep-orange: #D96800;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--page-news-text-main); /* Default text color for the page */
    background-color: var(--page-news-bg);
}

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

.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__dark-section {
    background-color: var(--page-news-bg);
    color: var(--page-news-text-main);
}

.page-news__light-bg {
    background-color: #1a1e26; /* A slightly lighter dark background for contrast */
    color: var(--page-news-text-main);
}

.page-news__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--page-news-secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__section-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 243, 230, 0.8);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    background-color: var(--page-news-bg);
}

.page-news__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-news__hero-content {
    padding: 40px 0;
    position: relative; /* Ensure content is in normal flow below image */
    z-index: 2;
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.8) 0%, var(--page-news-bg) 100%);
}

.page-news__main-title {
    font-size: clamp(36px, 5vw, 56px); /* Use clamp for H1 */
    color: var(--page-news-secondary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-news__intro-text {
    font-size: 20px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 30px;
    color: rgba(255, 243, 230, 0.9);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    word-wrap: break-word; /* Allow text to wrap */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--page-news-secondary-color) 0%, var(--page-news-deep-orange) 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
    box-shadow: 0 8px 20px rgba(255, 165, 58, 0.6);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--page-news-secondary-color);
    border: 2px solid var(--page-news-border-color);
    box-shadow: 0 0 10px rgba(168, 79, 12, 0.3);
}

.page-news__btn-secondary:hover {
    background-color: rgba(255, 165, 58, 0.1);
    border-color: var(--page-news-secondary-color);
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
    transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--page-news-text-main);
}

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

.page-news__article-title a {
    color: var(--page-news-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--page-news-glow-color);
    text-decoration: underline;
}

.page-news__article-meta {
    font-size: 14px;
    color: rgba(255, 243, 230, 0.7);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 243, 230, 0.9);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more {
    display: inline-block;
    color: var(--page-news-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
    color: var(--page-news-glow-color);
    text-decoration: underline;
}

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

/* Featured News Section */
.page-news__featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-news__featured-item {
    display: flex;
    align-items: center;
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.page-news__featured-image {
    width: 50%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.page-news__featured-content {
    width: 50%;
    padding: 30px;
    color: var(--page-news-text-main);
}

.page-news__featured-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--page-news-secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__featured-description {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 243, 230, 0.9);
    margin-bottom: 20px;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-news-border-color);
  overflow: hidden;
  background: var(--page-news-card-bg);
  color: var(--page-news-text-main);
}
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(255, 165, 58, 0.1);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-news-secondary-color);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-news-glow-color);
  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: rgba(23, 25, 31, 0.8); /* Slightly transparent card background */
  border-radius: 0 0 5px 5px;
  color: rgba(255, 243, 230, 0.9);
}
.page-news__faq-answer p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--page-news-primary-color) 0%, var(--page-news-secondary-color) 100%);
    color: #ffffff;
}

.page-news__cta-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.page-news__cta-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* General image rules for content area */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure no content area image is smaller than 200px */
.page-news__article-image,
.page-news__featured-image {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Styles */
/* Mobile Hero Image Adjustment */
@media (max-width: 849px) {
    .page-news__hero-image {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important;
        max-height: 300px;
    }
}

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

    .page-news__section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

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

    .page-news__hero-section {
        padding-top: 10px;
    }

    .page-news__hero-content {
        padding: 30px 0;
    }

    .page-news__main-title {
        font-size: clamp(30px, 7vw, 48px);
    }

    .page-news__intro-text {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
    }

    .page-news__article-image {
        height: 180px;
    }

    .page-news__article-title {
        font-size: 19px;
    }

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

    .page-news__featured-grid {
        grid-template-columns: 1fr;
    }

    .page-news__featured-item {
        flex-direction: column;
    }

    .page-news__featured-image,
    .page-news__featured-content {
        width: 100%;
    }

    .page-news__featured-image {
        height: 200px;
    }

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

    .page-news__featured-title {
        font-size: 22px;
    }

    .page-news__featured-description {
        font-size: 15px;
    }

    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 16px; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

    .page-news__cta-bottom {
        padding: 50px 0;
    }

    .page-news__cta-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .page-news__cta-description {
        font-size: 17px;
    }

    /* Ensure all content images and containers are responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__articles-grid,
    .page-news__featured-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-news__container */
    }
    .page-news__article-image,
    .page-news__featured-image {
        min-width: unset;
        min-height: unset;
    }
}