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

.page-news__hero-section {
  background: #F4F7FB;
  padding: 40px 0;
  text-align: center;
  color: #1F2D3D;
}

.page-news__hero-title {
  font-size: clamp(2em, 3.2vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1F2D3D;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: clamp(1em, 1.1vw, 1.1em);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #1F2D3D;
}

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

.page-news__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  font-weight: 700;
  color: #1F2D3D;
  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, #4A8BFF 0%, #2F6BFF 100%);
  border-radius: 2px;
}

.page-news__section-description {
  text-align: center;
  font-size: clamp(0.95em, 1.05vw, 1.05em);
  line-height: 1.6;
  margin-bottom: 50px;
  color: #1F2D3D;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__latest-news, .page-news__categories-section, .page-news__about-bl88-news, .page-news__faq-section, .page-news__cta-section {
  padding: 60px 0;
  background: #FFFFFF;
  color: #1F2D3D;
}

.page-news__latest-news {
  background: #F4F7FB;
}

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

.page-news__news-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #000000;
  line-height: 1.4;
}

.page-news__card-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: #666;
  text-align: right;
}

.page-news__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-primary, .page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.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;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

.page-news__btn-secondary:hover {
  background: #f0f8ff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

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

.page-news__category-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-news__category-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__category-desc {
  font-size: 0.95em;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-news__about-bl88-news {
  background: #F4F7FB;
}

.page-news__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.page-news__content-image {
  flex: 0 0 600px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.page-news__text-block {
  flex: 1;
  min-width: 300px;
}

.page-news__text-block p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
}

/* FAQ Styles */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
}
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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

.page-news__cta-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-news__cta-section .page-news__section-title, .page-news__cta-section .page-news__section-description {
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__content-wrapper {
    flex-direction: column;
  }
  .page-news__content-image {
    flex: none;
    width: 100%;
    max-width: 800px; /* Adjust max-width for tablet */
    margin: 0 auto;
  }
  .page-news__text-block {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 20px 0;
  }
  .page-news__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__latest-news, .page-news__categories-section, .page-news__about-bl88-news, .page-news__faq-section, .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-excerpt {
    font-size: 0.9em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__category-card {
    padding: 25px;
  }
  .page-news__category-title {
    font-size: 1.3em;
  }
  .page-news__content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1em; }
  .page-news__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image,
  .page-news__card-image,
  .page-news__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-news__container,
  .page-news__latest-news,
  .page-news__categories-section,
  .page-news__about-bl88-news,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__news-card,
  .page-news__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__latest-news .page-news__container,
  .page-news__categories-section .page-news__container,
  .page-news__about-bl88-news .page-news__container,
  .page-news__faq-section .page-news__container,
  .page-news__cta-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__news-card .page-news__card-content,
  .page-news__category-card {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__news-grid, .page-news__categories-grid {
    padding: 0 15px;
  }
}