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

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

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F2C14E; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #F2C14E 0%, #FFD36B 100%);
    border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
}

.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;
}

.page-news__hero-content {
    background: #111111; /* Card BG color */
    color: #FFF6D6; /* Text Main color */
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-news__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
    color: #FFD36B; /* Auxiliary color for H1 */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-news__description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

.page-news__btn-secondary {
    background: #111111; /* Card BG color */
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #3A2A12; /* Border color */
}

.page-news__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
    border-color: #FFD36B;
    transform: translateY(-3px);
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color */
}

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

.page-news__article-card {
    background: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6; /* Text Main color */
}

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

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

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

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

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    color: #F2C14E; /* Primary color for article titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-meta {
    font-size: 14px;
    color: #FFD36B; /* Auxiliary color for meta info */
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 16px;
    color: #FFF6D6; /* Text Main color */
}

.page-news__view-all-button-wrapper {
    text-align: center;
}

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #0A0A0A; /* Background color */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Primary color for FAQ questions */
}
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.1); /* Light hover effect */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Background color */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main color */
}
.page-news__faq-answer p {
    margin-bottom: 0;
}


/* Responsive Styles for 1024px */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -60px;
        padding: 30px 0;
    }
    .page-news__main-title {
        font-size: clamp(26px, 4.5vw, 42px);
    }
    .page-news__description {
        font-size: 17px;
        max-width: 700px;
    }
    .page-news__article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-news__article-title {
        font-size: 20px;
    }
    .page-news__section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-qtext {
        font-size: 17px;
    }
    .page-news__faq-toggle {
        font-size: 26px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Responsive Styles for 768px */
@media (max-width: 768px) {
    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Fixed header offset handled by body, this is small additional padding */
        margin-bottom: 30px;
    }
    .page-news__hero-content {
        margin-top: -40px;
        padding: 25px 0;
        border-radius: 8px;
    }
    .page-news__main-title {
        font-size: clamp(24px, 6vw, 36px); /* H1 font size with clamp for mobile */
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 16px;
        margin: 0 auto 25px;
        padding: 0 15px; /* Add padding to text for better readability */
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 25px;
        padding: 0 15px; /* Ensure title also has padding */
    }

    /* Buttons */
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 40px;
        margin-bottom: 15px; /* Add margin for stacked buttons */
    }
    .page-news__hero-content .page-news__btn-primary {
        margin: 0 auto;
        display: block;
        max-width: 300px !important;
    }
    .page-news__view-all-button-wrapper .page-news__btn-secondary {
        margin: 0 auto;
        display: block;
        max-width: 300px !important;
    }

    /* Article Grid */
    .page-news__latest-articles {
        padding: 40px 0;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        padding: 0 15px; /* Add padding to the grid container */
    }
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__article-image {
        height: 180px; /* Adjust image height for mobile */
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-meta,
    .page-news__article-summary {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__faq-list {
        padding: 0 15px;
    }
    details.page-news__faq-item {
        border-radius: 8px;
    }
    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: 28px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }

    /* General image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Ensure all content containers are responsive */
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}