/* style/news.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #f5f5f5; /* Body background from shared.css */
}

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

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

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-news__keyword-highlight {
  color: #EA7C07;
  font-weight: 600;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #f5f5f5; /* Light background */
}

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

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

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for content block */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.15em;
  color: #333333;
  margin-bottom: 30px;
}

.page-news__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

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

.page-news__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

/* Latest News Section */
.page-news__latest-news {
  padding: 60px 0;
  background-color: #f5f5f5;
}

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

.page-news__news-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  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;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-news__card-title a:hover {
  text-decoration: underline;
  color: #1a7fb8;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #d16b00;
  text-decoration: underline;
}

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

/* Industry Updates Section */
.page-news__industry-updates {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-news__industry-updates .page-news__section-title,
.page-news__industry-updates .page-news__section-description {
  color: #FFFFFF;
}

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

.page-news__update-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__update-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-news__update-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
  color: #FFFFFF;
}

.page-news__update-date {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-news__update-text a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-news__update-text a:hover {
  color: #d16b00;
}

/* Promotions & Events Section */
.page-news__promotions-events {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.page-news__promo-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

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

.page-news__promo-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__promo-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-news__promo-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* About OP88 Section */
.page-news__about-op88 {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-news__feature-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-news__feature-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item details > summary {
  list-style: none;
}

.page-news__faq-item details summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #f0f0f0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

.page-news__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #d16b00;
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__promo-card {
    flex-direction: column;
  }

  .page-news__promo-image,
  .page-news__promo-content {
    width: 100%;
  }

  .page-news__promo-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__main-title {
    font-size: 2.5em;
  }

  .page-news__section-title {
    font-size: 2em;
  }

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

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-cta,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons when stacked */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__latest-news,
  .page-news__industry-updates,
  .page-news__promotions-events,
  .page-news__about-op88,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

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

  .page-news__card-image {
    height: 180px;
  }

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

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__promo-title {
    font-size: 1.5em;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image, video, and container adaptations */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__industry-updates,
  .page-news__promotions-events,
  .page-news__about-op88,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-news__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 2em;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }
}