/* style/news-industry-insights.css */

/* Biến CSS */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #001a33; /* Màu nền tối hơn một chút so với primary-color */
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Thiết lập chung cho trang */
.page-news-industry-insights {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Mặc định chữ sáng vì body nền tối */
  background-color: #0a0a0a; /* Thừa kế từ shared.css, nhưng đảm bảo */
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
}

.page-news-industry-insights__hero-section,
.page-news-industry-insights__content-section,
.page-news-industry-insights__feature-section,
.page-news-industry-insights__games-section,
.page-news-industry-insights__cta-section,
.page-news-industry-insights__faq-section,
.page-news-industry-insights__blog-preview-section {
  padding: 60px 20px;
  text-align: center;
}

.page-news-industry-insights__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news-industry-insights__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Container chung */
.page-news-industry-insights__hero-container,
.page-news-industry-insights__content-container,
.page-news-industry-insights__feature-container,
.page-news-industry-insights__games-container,
.page-news-industry-insights__cta-container,
.page-news-industry-insights__faq-container,
.page-news-industry-insights__blog-preview-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tiêu đề và Mô tả */
.page-news-industry-insights__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--text-light);
}

.page-news-industry-insights__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-news-industry-insights__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news-industry-insights__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news-industry-insights__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news-industry-insights__text-block a:hover {
  color: var(--text-light);
}

.page-news-industry-insights__hero-title .highlight,
.page-news-industry-insights__section-title .highlight {
  color: var(--secondary-color);
}

/* Nút CTA */
.page-news-industry-insights__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-news-industry-insights__btn-primary,
.page-news-industry-insights__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px var(--shadow-dark);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news-industry-insights__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-news-industry-insights__btn-primary:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

.page-news-industry-insights__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-news-industry-insights__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

.page-news-industry-insights__view-all-button-wrapper {
  margin-top: 50px;
}

/* Hình ảnh chính */
.page-news-industry-insights__image-wrapper {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Phần tính năng/Card */
.page-news-industry-insights__feature-grid,
.page-news-industry-insights__game-categories,
.page-news-industry-insights__blog-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}

.page-news-industry-insights__feature-card,
.page-news-industry-insights__game-card,
.page-news-industry-insights__blog-item {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Đảm bảo chiều cao đồng nhất */
  display: flex;
  flex-direction: column;
}

.page-news-industry-insights__feature-card:hover,
.page-news-industry-insights__game-card:hover,
.page-news-industry-insights__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.page-news-industry-insights__card-icon {
  width: 100%; /* Kích thước lớn hơn cho hình ảnh */
  height: 200px; /* Chiều cao cố định */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

.page-news-industry-insights__game-image,
.page-news-industry-insights__blog-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho ảnh game/blog */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

.page-news-industry-insights__card-title,
.page-news-industry-insights__blog-item-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
  flex-grow: 1; /* Đảm bảo tiêu đề chiếm đủ không gian */
}

.page-news-industry-insights__card-title a,
.page-news-industry-insights__blog-item-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news-industry-insights__card-title a:hover,
.page-news-industry-insights__blog-item-title a:hover {
  color: var(--text-light);
}

.page-news-industry-insights__card-description,
.page-news-industry-insights__blog-item-excerpt {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.page-news-industry-insights__blog-item-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto; /* Đẩy ngày xuống cuối */
}

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

/* FAQ */
.page-news-industry-insights__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-news-industry-insights__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.page-news-industry-insights__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news-industry-insights__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-news-industry-insights__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-news-industry-insights__faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-news-industry-insights__faq-question h3 a:hover {
  text-decoration: underline;
}

.page-news-industry-insights__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: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.page-news-industry-insights__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ lớn để chứa nội dung */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-news-industry-insights__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-news-industry-insights__faq-answer p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-news-industry-insights__faq-answer p a:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-industry-insights__hero-title {
    font-size: 2.8em;
  }

  .page-news-industry-insights__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news-industry-insights {
    padding-top: 100px !important; /* Khoảng cách cho header cố định trên mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news-industry-insights__hero-section,
  .page-news-industry-insights__content-section,
  .page-news-industry-insights__feature-section,
  .page-news-industry-insights__games-section,
  .page-news-industry-insights__cta-section,
  .page-news-industry-insights__faq-section,
  .page-news-industry-insights__blog-preview-section {
    padding: 40px 15px;
  }

  .page-news-industry-insights__hero-title {
    font-size: 2.2em;
  }

  .page-news-industry-insights__hero-description {
    font-size: 1em;
  }

  .page-news-industry-insights__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news-industry-insights__text-block {
    font-size: 1em;
  }

  .page-news-industry-insights__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news-industry-insights__btn-primary,
  .page-news-industry-insights__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news-industry-insights__image-wrapper {
    margin-bottom: 30px;
    border-radius: 5px;
  }

  .page-news-industry-insights__main-image,
  .page-news-industry-insights__card-icon,
  .page-news-industry-insights__game-image,
  .page-news-industry-insights__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-industry-insights__feature-grid,
  .page-news-industry-insights__game-categories,
  .page-news-industry-insights__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news-industry-insights__feature-card,
  .page-news-industry-insights__game-card,
  .page-news-industry-insights__blog-item {
    padding: 25px;
    border-radius: 8px;
  }

  .page-news-industry-insights__card-title,
  .page-news-industry-insights__blog-item-title {
    font-size: 1.2em;
  }

  .page-news-industry-insights__faq-list {
    margin-top: 30px;
  }

  .page-news-industry-insights__faq-question {
    padding: 15px 20px;
    border-radius: 5px;
  }

  .page-news-industry-insights__faq-question h3 {
    font-size: 1em;
  }

  .page-news-industry-insights__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-news-industry-insights__faq-answer {
    padding: 0 20px;
  }

  .page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Đảm bảo tất cả hình ảnh không bị vượt quá khung chứa */
.page-news-industry-insights img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news-industry-insights__image-wrapper,
.page-news-industry-insights__feature-card,
.page-news-industry-insights__game-card,
.page-news-industry-insights__blog-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Màu sắc đảm bảo độ tương phản */
.page-news-industry-insights__dark-bg h1,
.page-news-industry-insights__dark-bg h2,
.page-news-industry-insights__dark-bg h3,
.page-news-industry-insights__dark-bg p,
.page-news-industry-insights__dark-bg li {
  color: var(--text-light);
}

.page-news-industry-insights__light-bg h1,
.page-news-industry-insights__light-bg h2,
.page-news-industry-insights__light-bg h3,
.page-news-industry-insights__light-bg p,
.page-news-industry-insights__light-bg li {
  color: var(--text-dark);
}

.page-news-industry-insights__btn-primary {
  color: var(--primary-color);
}

.page-news-industry-insights__btn-secondary {
  color: var(--secondary-color);
}

.page-news-industry-insights__btn-secondary:hover {
  color: var(--primary-color);
}