/* style/about.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-bg-1: #0d0d0d; /* Giả định từ shared.css */
  --light-text: #ffffff;
  --dark-text: #333333;
  --medium-gray: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-about {
  color: var(--light-text); /* Mặc định cho nền tối */
  background-color: var(--dark-bg-1);
  line-height: 1.6;
}

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

.page-about__intro-section {
  padding-top: 120px; /* Đảm bảo nội dung không bị che bởi header cố định */
  padding-bottom: 60px;
  text-align: center;
  background: var(--dark-bg-1);
}

.page-about__main-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--light-text);
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__mission-vision-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-about__mission-vision-section .page-about__container {
  display: flex;
  gap: 30px;
}

.page-about__card {
  background: #222222;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__light-bg {
  background: #333333; /* Nền tối hơn để giữ contrast */
  color: var(--light-text);
}

.page-about__card-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--light-text);
}

.page-about__card p {
  font-size: 16px;
  color: #cccccc;
}

.page-about__platform-features-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-about__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-about__feature-item {
  text-align: center;
}

.page-about__feature-icon {
  width: 100px; /* Tăng kích thước icon */
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--light-text);
  margin-bottom: 10px;
}

.page-about__feature-item p {
  font-size: 15px;
  color: #cccccc;
}

.page-about__core-games-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-about__game-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-about__game-tab-button {
  background: #333333;
  color: var(--light-text);
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__game-tab-button:hover {
  background: var(--primary-color);
}

.page-about__game-tab-button.active {
  background: var(--primary-color);
  color: var(--light-text);
}

.page-about__game-content {
  display: none;
}

.page-about__game-content.active {
  display: block;
}

.page-about__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #222222;
  padding: 40px;
}

.page-about__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__game-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
  max-width: 800px;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-about__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__promotions-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-about__dark-section {
  background: var(--primary-color);
  color: var(--light-text);
}

.page-about__section-title--white {
  color: var(--light-text);
}

.page-about__text-white {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
  font-size: 17px;
}

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

.page-about__promotion-item {
  text-align: center;
  background: #222222;
  color: var(--light-text);
}

.page-about__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.page-about__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-about__promotion-item p {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-about__promotion-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__promotion-link:hover {
  color: #e0a800;
  text-decoration: underline;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
}

.page-about__btn-secondary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__latest-news-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-about__news-item {
  text-align: left;
  background: #222222;
  color: var(--light-text);
  overflow: hidden;
}

.page-about__news-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.page-about__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-about__news-title a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__news-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-about__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-about__news-date {
  font-size: 14px;
  color: #999999;
  display: block;
  padding: 0 20px 20px;
}

.page-about__view-all-news {
  text-align: center;
  margin-top: 40px;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #222222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__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 20px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 20px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.page-about__faq-answer .page-about__faq-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-about__faq-answer .page-about__faq-link:hover {
  text-decoration: underline;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333;
  border: 1px solid #444444;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-about__faq-question:active {
  background: #555555;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--light-text);
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--light-text);
  transform: rotate(45deg);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__description {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 24px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__features-grid, .page-about__promotions-grid, .page-about__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__mission-vision-section .page-about__container {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__game-subtitle {
    font-size: 22px;
  }
  .page-about__btn-primary {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-about__intro-section {
    padding-top: 100px !important; /* Mobile override */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__description {
    font-size: 15px;
  }
  .page-about__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__features-grid, .page-about__promotions-grid, .page-about__news-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__game-tab-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-about__game-card {
    padding: 30px 20px;
  }
  .page-about__game-subtitle {
    font-size: 20px;
  }
  .page-about__game-card p {
    font-size: 15px;
  }
  .page-about__btn-primary {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-about__btn-secondary {
    padding: 8px 18px;
    font-size: 14px;
  }
  .page-about__news-title {
    font-size: 18px;
  }
  .page-about__news-excerpt {
    font-size: 14px;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__platform-features-section,
  .page-about__core-games-section,
  .page-about__promotions-section,
  .page-about__latest-news-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}