/* style/about.css */

/* Variables */
:root {
  --primary-color-dark: #1A202C;
  --secondary-color-gold: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --accent-color-red: #E53E3E;
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--primary-color-dark); /* Inherited from shared.css body */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:about_hero:1920x1080:thabetco,online_gambling,about_us,hero,vietnam,gaming_platform]');
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color-gold);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--secondary-color-gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-about__text-center {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* Background color variations */
.page-about__dark-bg {
  background-color: var(--primary-color-dark);
  color: var(--text-color-light);
}

.page-about__light-bg {
  background-color: #f8f9fa;
  color: var(--text-color-dark);
}

.page-about__mission-vision,
.page-about__history,
.page-about__why-choose,
.page-about__responsible-gaming,
.page-about__team,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-wrapper {
  text-align: center;
}

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__list-item::before {
  content: '✔';
  color: var(--secondary-color-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-about__feature-card {
  background-color: var(--primary-color-dark);
  color: var(--text-color-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__feature-icon {
  width: 200px; /* Min size 200x200 */
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
}

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

.page-about__feature-description {
  font-size: 1em;
  margin-bottom: 20px;
}

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

.page-about__team-member-card {
  background-color: var(--primary-color-dark);
  color: var(--text-color-light);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-member-photo {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--secondary-color-gold);
}

.page-about__team-member-name {
  font-size: 1.5em;
  color: var(--secondary-color-gold);
  margin-bottom: 5px;
}

.page-about__team-member-role {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 15px;
}

.page-about__team-member-description {
  font-size: 0.95em;
  line-height: 1.7;
}

.page-about__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__video-link-overlay {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  cursor: pointer;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__video-link-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: background 0.3s ease;
}

.page-about__video-link-overlay:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

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

.page-about__faq-item {
  background-color: var(--primary-color-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--primary-color-dark);
  color: var(--text-color-light);
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #2a3447;
}

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--text-color-light);
}

.page-about__faq-toggle {
  font-size: 1.8em;
  color: var(--secondary-color-gold);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a3447;
  color: var(--text-color-light);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-about__cta-section {
  text-align: center;
  padding: 100px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:about_cta:1920x1080:thabetco,call_to_action,register,join_now,online_gaming_community]');
  background-size: cover;
  background-position: center;
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--secondary-color-gold);
  color: var(--primary-color-dark);
  border: 2px solid var(--secondary-color-gold);
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-about__btn-secondary:hover {
  background-color: var(--secondary-color-gold);
  color: var(--primary-color-dark);
}

.page-about__link {
  color: var(--secondary-color-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-about__link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__content-block {
    order: 2;
  }
  .page-about__image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__mission-vision,
  .page-about__history,
  .page-about__why-choose,
  .page-about__responsible-gaming,
  .page-about__team,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__text,
  .page-about__text-center,
  .page-about__list-item,
  .page-about__feature-description,
  .page-about__team-member-description {
    font-size: 0.95em;
  }

  /* Image Responsive Adaptations */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-wrapper,
  .page-about__feature-card,
  .page-about__team-member-card,
  .page-about__video-wrapper,
  .page-about__cta-content,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Button Responsive Adaptations */
  .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;
    flex-direction: column;
  }

  /* FAQ Responsive Adaptations */
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
  .page-about__faq-toggle {
    font-size: 1.5em;
  }
}

/* Ensure images maintain original color */
.page-about img {
  filter: none !important;
}