/* style/news.css */
/* Base Styles for .page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
}

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

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-news__section-title--light {
    color: #ffffff;
}

.page-news__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__sub-title--light {
    color: #ffffff;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsive requirement */
    box-sizing: border-box; /* Button responsive requirement */
    white-space: normal; /* Button responsive requirement */
    word-wrap: break-word; /* Button responsive requirement */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF; /* Border */
}

.page-news__btn-secondary:hover {
    background: #e0e0e0;
    color: #2F6BFF;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

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

.page-news__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 42.1875%; /* 16:9 aspect ratio for 1920x810 (810/1920 = 0.421875) */
    background-color: #2F6BFF; /* Placeholder background */
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__hero-content {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D;
    letter-spacing: -0.02em;
}

.page-news__intro-text {
    font-size: 20px;
    color: #1F2D3D;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 40px 0;
    margin-bottom: 60px;
}

.page-news__section-description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px;
    font-size: 18px;
    color: #1F2D3D;
}

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

.page-news__news-card {
    background: #ffffff; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border */
}

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

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

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

.page-news__news-card-content {
    padding: 20px;
}

.page-news__news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__news-card-meta {
    font-size: 14px;
    color: #6FA3FF; /* Secondary color for meta */
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

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

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

.page-news__view-all-button:hover {
    background: #4A8BFF;
}

/* About g088 Section */
.page-news__about-g088-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background: #2F6BFF; /* Primary color as background */
    color: #ffffff;
}

.page-news__about-g088-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news__about-text {
    flex: 2;
}

.page-news__about-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: #f0f8ff; /* Slightly off-white for better readability on blue */
}

.page-news__about-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-news__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 40px 0;
    margin-bottom: 60px;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
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;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}
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: #f5f8ff; /* Light hover for contrast */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color for toggle */
  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: #f9fbfc; /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D;
  font-size: 16px;
}
details.page-news__faq-item .page-news__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Gradient background */
    text-align: center;
    color: #ffffff;
    margin-bottom: 0; /* Last section */
}

.page-news__cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #e0f0ff; /* Light text for contrast */
}

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

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

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

    .page-news__news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-news__about-g088-content {
        flex-direction: column;
        text-align: center;
    }

    .page-news__about-image-wrapper {
        margin-top: 30px;
    }

    .page-news__about-image {
        max-width: 80%;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__cta-button {
        width: 100%;
    }
}

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

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

    .page-news__main-title {
        font-size: clamp(24px, 7vw, 36px); /* Adjust H1 for smaller screens */
    }

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

    .page-news__hero-section {
        margin-bottom: 40px;
    }

    .page-news__hero-content {
        margin-top: 20px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-news__about-g088-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .page-news__about-text p {
        font-size: 16px;
    }

    .page-news__about-image {
        max-width: 90%;
    }

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

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

    /* Mobile specific image adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__about-g088-section,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}