/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Explicitly set main content background to white */
}

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__section-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 60px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__section-description--light {
  color: #f0f0f0;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles main offset */
  background-color: #26A9E0;
  overflow: hidden;
  min-height: 500px; /* Ensure sufficient height */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-about__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Grid Layouts */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__image-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.page-about__image--margin-top {
  margin-top: 20px;
}

/* Core Values Section */
.page-about__core-values {
  background-color: #26A9E0; /* Brand primary color background */
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-card:hover {
  transform: translateY(-5px);
}

.page-about__value-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-text {
  font-size: 1.05em;
  color: #f0f0f0;
}

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

.page-about__category-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-about__category-title {
  font-size: 1.5em;
  color: #26A9E0;
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-about__category-text {
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1;
}

.page-about__category-card .page-about__btn-tertiary {
  margin: 0 20px 20px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__advantage-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__advantage-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__advantage-text {
  font-size: 1.05em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #f9f9f9;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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: #26A9E0;
  cursor: pointer;
  background-color: #f0f8ff; /* Light background for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #26A9E0;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 7vw, 3em);
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__subtitle {
    font-size: 1.5em;
  }
  .page-about__values-grid,
  .page-about__game-categories,
  .page-about__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-about__subtitle {
    font-size: 1.3em;
  }
  .page-about__text-block p {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__values-grid,
  .page-about__game-categories,
  .page-about__advantages-grid {
    gap: 20px;
  }
  .page-about__value-card,
  .page-about__advantage-card {
    padding: 20px;
  }
  .page-about__category-image {
    height: 180px;
  }
  .page-about__category-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

  /* Mobile image and video responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important; /* Added for explicit width */
    height: auto !important;
    display: block !important;
  }
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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; /* Ensure no overflow */
  }
  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding, body handles main offset */
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__subtitle {
    font-size: 1.2em;
  }
}