/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__section {
  padding: 80px 0;
}

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

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

.page-about__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__values-section .page-about__container, 
.page-about__advantages-section .page-about__container, 
.page-about__team-section .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__values-section .page-about__image-wrapper,
.page-about__advantages-section .page-about__image-wrapper,
.page-about__team-section .page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__values-section .page-about__content-wrapper,
.page-about__advantages-section .page-about__content-wrapper,
.page-about__team-section .page-about__content-wrapper {
  flex: 1;
}

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

.page-about__values-list {
  list-style: none;
  padding: 0;
}

.page-about__values-item {
  margin-bottom: 25px;
}

.page-about__values-heading {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__values-item p {
  color: #f0f0f0;
  text-align: justify;
}

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

.page-about__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-about__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 20px 10px;
}

.page-about__game-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #EA7C07;
}

.page-about__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  text-align: justify;
  flex-grow: 1;
}

.page-about__btn-container {
  text-align: center;
  margin-top: 40px;
}

.page-about__advantages-list {
  list-style: none;
  padding: 0;
}

.page-about__advantages-item {
  margin-bottom: 25px;
}

.page-about__advantages-heading {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__advantages-item p {
  color: #f0f0f0;
  text-align: justify;
}

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

.page-about__security-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__security-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__security-heading {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__security-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  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: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for consistency */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  text-align: justify;
}

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

.page-about__cta-section {
  text-align: center;
  padding: 60px 0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
  border-color: #1a7bbd;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__values-section .page-about__container,
  .page-about__advantages-section .page-about__container,
  .page-about__team-section .page-about__container {
    flex-direction: column;
  }
  .page-about__advantages-section .page-about__container {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__section {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-text {
    font-size: 1em;
  }
  .page-about__values-heading,
  .page-about__advantages-heading,
  .page-about__security-heading {
    font-size: 1.3em;
  }
  .page-about__game-grid,
  .page-about__security-features {
    grid-template-columns: 1fr;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image and Video Responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__hero-section,
  .page-about__section,
  .page-about__game-card,
  .page-about__security-card,
  .page-about__faq-item,
  .page-about__cta-section,
  .page-about__btn-container,
  .page-about__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about__values-section .page-about__container,
  .page-about__advantages-section .page-about__container,
  .page-about__team-section .page-about__container {
    gap: 20px;
  }
}