/* style/about.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #DC143C; /* Đỏ thẫm */
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --bg-dark: #222;
  --bg-card-dark: rgba(255, 255, 255, 0.08);
  --bg-card-light: #ffffff;
  --border-color-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

.page-about {
  color: var(--text-light); /* Body background #222 is dark, so use light text */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

/* Hero Section */
.page-about__hero-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.9), rgba(50, 50, 50, 0.9)), url('[GALLERY:about:clb88,hero,background,vechungtoi]') no-repeat center center/cover;
  background-blend-mode: multiply;
}

.page-about__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px var(--shadow-dark);
  font-weight: 700;
}

.page-about__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
  line-height: 1.6;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-dark);
  text-align: center;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-about__cta-button--primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-dark);
}

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

.page-about__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-dark);
}

/* General Section Styling */
.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  text-shadow: 1px 1px 3px var(--shadow-dark);
}

.page-about__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-about__grid-item {
  background-color: var(--bg-card-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-dark);
  text-align: center;
}

.page-about__grid-item p {
  color: var(--text-light);
  line-height: 1.7;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.page-about__values-section .page-about__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-heading {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-item p {
  font-size: 0.95em;
  line-height: 1.6;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-about__history-section p {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border: 4px solid var(--bg-dark);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__timeline-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-card-dark);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-dark);
  text-align: inherit; /* Inherit from parent */
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.page-about__security-fairness-section .page-about__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__security-fairness-section p {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-about__feature-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__mt-40 {
  margin-top: 40px;
}

/* Games Variety Section */
.page-about__games-variety-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-about__games-variety-section p {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
}

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

.page-about__game-card {
  background-color: var(--bg-card-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-about__game-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-about__game-card p {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
}

.page-about__game-link {
  display: block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 12px 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-about__game-link:hover {
  background-color: darken(var(--secondary-color), 10%);
}

/* Promotions Section */
.page-about__promotions-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.page-about__promotions-section .page-about__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__promotions-section p {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-about__promo-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-about__promo-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-about__promo-card p {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
}

.page-about__cta-button--small {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--primary-color);
  color: var(--text-dark);
  margin: 20px auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--small:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-about__promo-note {
  font-size: 1.2em;
  margin-top: 40px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  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: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about__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-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  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;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

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

.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;
  color: var(--text-light);
  background: var(--bg-card-dark);
  border-radius: 0 0 5px 5px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-light);
}

/* Contact Section */
.page-about__contact-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
}

.page-about__contact-section .page-about__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__contact-section p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__contact-info {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-about__contact-info p {
  margin-bottom: 10px;
}

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

.page-about__contact-link:hover {
  color: lighten(var(--primary-color), 10%);
  text-decoration: underline;
}

.page-about__contact-note {
  margin-top: 40px;
  font-style: italic;
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 10px;
    right: auto;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even)::after {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 15px;
    line-height: 1.6;
  }

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

  .page-about__hero-section {
    padding: 40px 0;
  }

  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
    padding-top: 40px;
    margin-bottom: 30px;
  }

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

  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__security-fairness-section,
  .page-about__games-variety-section,
  .page-about__promotions-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 50px 0;
  }

  .page-about__history-section p,
  .page-about__security-fairness-section p,
  .page-about__games-variety-section p,
  .page-about__promotions-section p {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    padding: 10px 15px 10px 45px;
    width: 100%;
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 5px;
    top: 15px;
  }

  .page-about__timeline-year {
    font-size: 1.4em;
  }

  .page-about__timeline-item p {
    font-size: 0.95em;
  }

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__game-image,
  .page-about__promo-image {
    height: 180px;
  }

  .page-about__game-title,
  .page-about__promo-title {
    font-size: 1.4em;
  }

  .page-about__cta-button--small {
    font-size: 0.85em;
    padding: 10px 20px;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__promo-note {
    font-size: 1em;
    margin-top: 30px;
  }

  .page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-question h3 {
    font-size: 1em;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about img,
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important; /* Ensure video fits within bounds */
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}