/* style/news.css */
:root {
  --primary-color: #002060; /* Hải quân/Hoàng gia xanh */
  --secondary-color: #FFD700; /* Vàng kim */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so use light text */
  background-color: var(--background-dark);
}

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

.page-news__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--secondary-color); /* Vàng kim cho tiêu đề nổi bật */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

/* ---------------------------------- */
/* Video Section */
/* ---------------------------------- */
.page-news__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--background-dark) 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-news__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: #1a1a1a; /* Placeholder background for video */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-news__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-news__video-link:hover .page-news__video-overlay {
  opacity: 1;
}

.page-news__video-click-hint {
  color: var(--text-light);
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(var(--secondary-color-rgb, 255, 215, 0), 0.85); /* Sử dụng RGB từ secondary-color */
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-news__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-news__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-news__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------- */
/* Title Section */
/* ---------------------------------- */
.page-news__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-news__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #cccccc;
  line-height: 1.7;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 16px 45px;
  font-size: 19px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
  background-color: #001a4d; /* Slightly darker primary */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------- */
/* Latest Articles Section */
/* ---------------------------------- */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-news__latest-articles-section .page-news__section-title {
  color: var(--primary-color); /* Dark blue for title on light background */
  text-shadow: none;
}

.page-news__latest-articles-section .page-news__section-description {
  color: var(--text-dark);
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px 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(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-news__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__article-date {
  font-size: 14px;
  color: #888888;
  display: block;
}

.page-news__view-more-cta {
  text-align: center;
  margin-top: 60px;
}

/* ---------------------------------- */
/* Brand Section */
/* ---------------------------------- */
.page-news__brand-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__brand-section .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__brand-section .page-news__section-description {
  color: #e0e0e0;
}

.page-news__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-news__brand-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__brand-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-news__brand-icon {
  width: 150px; /* Increased size for content image, not small icon */
  height: 150px;
  object-fit: contain;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); /* Gold glow */
}

.page-news__brand-item-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-news__brand-item-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* ---------------------------------- */
/* FAQ Section */
/* ---------------------------------- */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-news__faq-section .page-news__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-news__faq-section .page-news__section-description {
  color: var(--text-dark);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
  color: var(--secondary-color);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px dashed var(--border-color);
  border-radius: 0 0 10px 10px;
}

.page-news__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

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

.page-news__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: var(--secondary-color);
}

/* ---------------------------------- */
/* More Info Section (Responsible Gaming) */
/* ---------------------------------- */
.page-news__more-info-section {
  padding: 80px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news__more-info-section .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__more-info-section .page-news__section-description {
  color: #cccccc;
  margin-bottom: 25px;
  font-size: 18px;
}

.page-news__more-info-section .page-news__cta-buttons {
  margin-top: 50px;
}

/* ---------------------------------- */
/* Responsive Design */
/* ---------------------------------- */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 42px;
  }
  .page-news__section-title {
    font-size: 34px;
  }
  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-news__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-news__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain; /* Use contain to ensure video is fully visible */
  }
  
  .page-news__video-cta {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-news__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__video-click-hint {
    font-size: 18px;
    padding: 10px 20px;
  }

  .page-news__title-section,
  .page-news__latest-articles-section,
  .page-news__brand-section,
  .page-news__faq-section,
  .page-news__more-info-section {
    padding: 50px 15px;
  }

  .page-news__main-title {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .page-news__title-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  .page-news__section-title {
    font-size: 28px;
    padding-top: 0;
  }

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 30px !important;
    font-size: 17px !important;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

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

  .page-news__article-title {
    font-size: 20px;
  }

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

  .page-news__brand-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .page-news__brand-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .page-news__brand-item-title {
    font-size: 22px;
  }

  .page-news__brand-item-text {
    font-size: 15px;
  }

  .page-news__faq-list {
    margin-top: 30px;
  }

  .page-news__faq-question {
    padding: 18px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 17px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

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

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 18px 20px !important;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* General image responsive styles */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-news__container,
  .page-news__article-card,
  .page-news__brand-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Reset padding for specific elements that already handle it */
  .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__latest-articles-section .page-news__container,
  .page-news__brand-section .page-news__container,
  .page-news__faq-section .page-news__container,
  .page-news__more-info-section .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__video-click-hint {
    font-size: 16px;
    padding: 8px 15px;
  }
}