/* Base styles for the News page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background: var(--secondary-color, #FFFFFF); /* Ensure light background for main content */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not --header-offset */
    background: #f0f8ff; /* Light background for hero */
    text-align: center;
}

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

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

.page-news__hero-content-wrapper {
    padding: 40px 0;
    background: #ffffff;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.page-news__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.page-news__intro-text {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Section Titles */
.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding-bottom: 60px;
    background: #f9f9f9;
}

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

.page-news__article-card {
    background: #ffffff;
    border-radius: 8px;
    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 6px 20px rgba(0,0,0,0.15);
}

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

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

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

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

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

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

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

.page-news__view-all-button {
    display: inline-block;
    background: #26A9E0;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text for contrast */
    text-align: center;
}

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

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

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

.page-news__cta-button {
    display: inline-block;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background: #d46b06;
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 60px;
    background: #f9f9f9;
}

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

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

.page-news a[class*="button"],
.page-news a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__button-group,
.page-news__btn-container,
.page-news__cta-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Responsive styles for tablet and mobile */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 36px;
    }
    .page-news__intro-text {
        font-size: 17px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__cta-title {
        font-size: 32px;
    }
    .page-news__cta-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* General content padding */
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-news__hero-content-wrapper {
        padding: 30px 0;
    }
    .page-news__main-title {
        font-size: clamp(28px, 8vw, 32px);
        margin-bottom: 15px;
    }
    .page-news__intro-text {
        font-size: 15px;
    }

    /* Section Titles */
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    /* Latest Articles Section */
    .page-news__article-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 220px !important; /* Adjust height for mobile card */
        object-fit: cover !important;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-meta,
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news__view-all-button-wrapper {
        margin-top: 30px;
    }
    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
        font-size: 15px;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__cta-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-news__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }

    /* FAQ Section */
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 15px; }
    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    
    /* Global image responsive styles for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__section,
    .page-news__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Global button responsive styles for mobile */
    .page-news__cta-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;
    }
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-news__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}