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

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

.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 80px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay for text readability */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1e87b7;
}

.page-about__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-tertiary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand primary color */
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__paragraph {
  font-size: 1.05em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333333;
}

.page-about__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg .page-about__paragraph,
.page-about__dark-bg .page-about__list-item {
  color: #f0f0f0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr;
}

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

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-about__feature-card,
.page-about__game-card,
.page-about__commitment-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #333333;
}

.page-about__dark-bg .page-about__feature-card,
.page-about__dark-bg .page-about__game-card,
.page-about__dark-bg .page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__dark-bg .page-about__feature-card .page-about__card-title,
.page-about__dark-bg .page-about__game-card .page-about__card-title,
.page-about__dark-bg .page-about__commitment-item .page-about__item-title {
  color: #ffffff;
}

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

.page-about__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__card-title,
.page-about__item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__dark-bg .page-about__card-title a,
.page-about__dark-bg .page-about__item-title a {
  color: #ffffff;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-about__dark-bg .page-about__card-text {
  color: #f0f0f0;
}

.page-about__cta-buttons--center {
  margin-top: 50px;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-question h3 {
  margin: 0;
  color: #26A9E0;
  font-size: 1.2em;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-about__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-about__cta-final {
  padding: 100px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Links within content */
.page-about a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__dark-bg a {
  color: #e0f4ff;
}

.page-about a:hover {
  text-decoration: underline;
  color: #1e87b7;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* For image-right, text-left layout */
  }

  .page-about__content-grid--reverse .page-about__text-block {
    direction: ltr;
  }

  .page-about__content-grid--reverse .page-about__image-block {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__card-text {
    font-size: 0.95em;
  }

  .page-about__light-bg,
  .page-about__dark-bg,
  .page-about__faq-section,
  .page-about__cta-final {
    padding: 60px 0;
  }

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    direction: ltr; /* Reset for mobile */
  }

  .page-about__features-grid,
  .page-about__games-grid,
  .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__feature-card,
  .page-about__game-card,
  .page-about__commitment-item {
    padding: 25px;
  }

  .page-about__game-image {
    height: 200px;
  }

  .page-about__card-title,
  .page-about__item-title {
    font-size: 1.3em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px;
  }

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

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

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

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all containers containing images or content adapt */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__about-intro,
  .page-about__why-choose,
  .page-about__cockfighting-section,
  .page-about__other-games-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-final,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__games-grid,
  .page-about__commitment-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Ensure min-width for images for non-mobile */
.page-about img:not(.page-about__hero-image) {
    min-width: 200px;
    min-height: 200px;
}