/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Màu cam cho login/nút phụ */
  --background-color-light: #FFFFFF;
  --background-color-dark: #26A9E0;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --border-color: #e0e0e0;
  --card-bg-light: #FFFFFF;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light background body */
  line-height: 1.6;
  font-size: 16px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #a0ddee 100%); /* Lighter gradient for hero */
  color: var(--text-color-light);
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #ff8c00; /* Slightly darker orange */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section */
}

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

.page-about__intro-text {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__image-block {
  flex: 1;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-about__image-block--center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-about__image-block--center img {
  max-width: 80%;
}

/* Value Cards */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-about__value-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__section--light-bg .page-about__value-card {
  background: var(--card-bg-light);
  color: var(--text-color-dark);
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-about__section--light-bg .page-about__value-title {
  color: var(--primary-color);
}

.page-about__value-card p {
  font-size: 16px;
  line-height: 1.6;
  color: inherit;
}

/* Feature Cards (Games/Services) */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__feature-card {
  background: var(--card-bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-about__feature-link:hover {
  background: #1e87b9; /* Darker primary color */
}

/* Responsible Gambling List */
.page-about__responsible-gambling-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-about__responsible-gambling-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background: var(--card-bg-light);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__list-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.page-about__responsible-gambling-list li p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-color-dark);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-dark); /* Darker background for dark section */
  border-radius: 0 0 5px 5px;
}

.page-about__section--light-bg .page-about__faq-item.active .page-about__faq-answer {
  background: #f9f9f9;
  color: var(--text-color-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15); /* Lighter background for question in dark section */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__section--light-bg .page-about__faq-question {
  background: #fff;
  border: 1px solid var(--border-color);
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-about__section--light-bg .page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.35);
}

.page-about__section--light-bg .page-about__faq-question:active {
  background: #eeeeee;
}

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

.page-about__section--light-bg .page-about__faq-question h3 {
  color: var(--text-color-dark);
}

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

.page-about__section--light-bg .page-about__faq-toggle {
  color: #666;
}

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

.page-about__section--light-bg .page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
}

/* Call to Action Section */
.page-about__section--cta {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a7bb5 100%);
  color: var(--text-color-light);
}

.page-about__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-about__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--text-color-light);
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  background: var(--secondary-color);
}

.page-about__cta-button--large:hover {
  background: #ff8c00;
}

/* General Button Styles */
.page-about__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.page-about__btn-primary:hover {
  background: #ff8c00;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 50px 15px;
  }
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__description {
    font-size: 17px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column-reverse;
  }
  .page-about__image-block--center img {
    max-width: 90%;
  }
  .page-about__values-grid, .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__description {
    font-size: 16px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-about__section {
    padding: 60px 15px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__content-grid {
    gap: 30px;
  }
  .page-about__text-block p {
    font-size: 16px;
  }
  .page-about__values-grid, .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__value-title, .page-about__feature-title {
    font-size: 22px;
  }
  .page-about__responsible-gambling-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-about__list-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-about__responsible-gambling-list li p {
    font-size: 16px;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about__section--cta {
    padding: 80px 15px;
  }
  .page-about__cta-title {
    font-size: 32px;
  }
  .page-about__cta-description {
    font-size: 18px;
  }
  .page-about__cta-button--large {
    padding: 15px 40px;
    font-size: 20px;
  }
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__value-card,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile button responsiveness */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}