/* General Styles for page-news */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background: #FFFFFF; /* Default body background */
}

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

.page-news__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #26A9E0; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-news__intro-paragraph,
.page-news__outro-paragraph {
    font-size: 17px;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    background-color: #f0f8ff; /* Light background for hero section */
}

.page-news__hero-container {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-news__hero-content {
    max-width: 800px;
}

.page-news__main-title {
    font-size: 48px;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-news__hero-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.page-news__hero-cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    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__hero-cta-button:hover {
    background-color: #d46c06;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-news__article-title {
    font-size: 20px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

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

.page-news__view-all-button {
    display: inline-block;
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__view-all-button:hover {
    background-color: #1e8dc7;
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background: linear-gradient(to right, #26A9E0, #1e8dc7); /* Gradient background */
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
}

.page-news__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-news__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-content {
    max-width: 800px;
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    min-width: 180px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background-color: #d46c06;
}

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #e0f2ff;
    color: #1e8dc7;
    border-color: #1e8dc7;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 40px 0 60px;
    background-color: #f0f8ff; /* Light background for FAQ */
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #333333; /* Ensure good contrast */
}
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: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure good contrast */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__container {
        padding: 15px;
    }

    .page-news__main-title {
        font-size: 40px;
    }

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

    .page-news__section-title {
        font-size: 28px;
    }

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

    .page-news__cta-title {
        font-size: 32px;
    }

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

    .page-news__hero-image {
        height: 450px; /* Adjust height for tablet */
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Buttons */
    .page-news__hero-cta-button,
    .page-news__view-all-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add some spacing between stacked buttons */
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px; /* Keep small padding */
        margin-bottom: 30px;
    }

    .page-news__hero-image {
        height: 300px; /* Further adjust height for mobile */
        object-fit: contain; /* Banner 849px contain */
    }

    .page-news__main-title {
        font-size: 32px;
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    /* Latest Articles Section */
    .page-news__latest-articles-section {
        padding: 30px 0;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
    }

    .page-news__article-thumbnail {
        height: 180px; /* Adjust thumbnail height */
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-news__cta-title {
        font-size: 28px;
    }

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

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