/* style/news-detail-latest-update.css */

/* Base styles for the page content, ensuring contrast with default light body background */
.page-news-detail-latest-update {
  color: #333333; /* Deep gray for readability on light backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news-detail-latest-update__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news-detail-latest-update__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  background-color: #f8f8f8; /* Light background for the section */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news-detail-latest-update__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-detail-latest-update__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news-detail-latest-update__main-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news-detail-latest-update__meta-info {
  font-size: 16px;
  color: #666666;
  margin-bottom: 30px;
}

/* Content Area */
.page-news-detail-latest-update__content-area {
  padding: 40px 0;
  background-color: #ffffff;
}

.page-news-detail-latest-update__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: #333333;
}

.page-news-detail-latest-update__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news-detail-latest-update__article-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-news-detail-latest-update__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-news-detail-latest-update__list-item {
  font-size: 17px;
  margin-bottom: 10px;
  color: #333333;
}

/* Call to Action Group */
.page-news-detail-latest-update__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-news-detail-latest-update__btn-primary,
.page-news-detail-latest-update__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-news-detail-latest-update__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-news-detail-latest-update__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-news-detail-latest-update__btn-secondary {
  background-color: #ffffff; /* White background */
  color: #26A9E0; /* Brand primary color text */
  border: 2px solid #26A9E0;
}

.page-news-detail-latest-update__btn-secondary:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
}

/* Related News Section */
.page-news-detail-latest-update__related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news-detail-latest-update__related-news-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news-detail-latest-update__related-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

.page-news-detail-latest-update__related-news-excerpt {
  font-size: 15px;
  color: #666666;
}

/* Bottom CTA */
.page-news-detail-latest-update__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-news-detail-latest-update__container {
    padding: 0 15px !important;
  }

  .page-news-detail-latest-update__hero-section {
    padding: 10px 0 30px 0 !important;
  }

  .page-news-detail-latest-update__main-title {
    font-size: clamp(24px, 6vw, 36px) !important;
  }

  .page-news-detail-latest-update__meta-info {
    font-size: 15px !important;
  }

  .page-news-detail-latest-update__paragraph,
  .page-news-detail-latest-update__list-item {
    font-size: 16px !important;
  }

  .page-news-detail-latest-update__sub-title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }

  .page-news-detail-latest-update img,
  .page-news-detail-latest-update video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news-detail-latest-update__hero-image,
  .page-news-detail-latest-update__article-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-news-detail-latest-update__cta-group {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-news-detail-latest-update__btn-primary,
  .page-news-detail-latest-update__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-news-detail-latest-update__related-news-grid {
    grid-template-columns: 1fr !important;
  }

  .page-news-detail-latest-update__related-news-card {
    padding: 20px !important;
  }

  .page-news-detail-latest-update__related-news-title {
    font-size: 18px !important;
  }

  .page-news-detail-latest-update__cta-bottom {
    padding: 25px !important;
  }

  /* Ensure all content containers are responsive */
  .page-news-detail-latest-update__hero-section,
  .page-news-detail-latest-update__content-area,
  .page-news-detail-latest-update__cta-group,
  .page-news-detail-latest-update__related-news-grid,
  .page-news-detail-latest-update__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}