/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
  --login-button-color: #EA7C07;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color);
  background-color: var(--background-light);
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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: var(--light-text-color);
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-about__btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  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;
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-about__story-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-about__story-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--dark-text-color);
}

.page-about__story-image-wrapper {
  text-align: center;
}

.page-about__story-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__features-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--light-text-color);
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
}

.page-about__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-about__feature-description {
  font-size: 1em;
  color: var(--light-text-color);
}

.page-about__security-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-about__security-image {
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__games-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-about__games-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: var(--dark-text-color);
}

.page-about__game-category {
  margin-bottom: 30px;
}

.page-about__game-category-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
}

.page-about__game-category p {
  font-size: 1.05em;
  color: var(--dark-text-color);
}

.page-about__games-image-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__games-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--light-text-color);
}

.page-about__responsible-gaming-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

.page-about__video-section {
  padding: 60px 0;
  background-color: var(--background-light);
  text-align: center;
}

.page-about__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--dark-text-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for the video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-about__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--dark-text-color);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--dark-text-color);
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  text-align: center;
  color: var(--light-text-color);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__story-grid {
    grid-template-columns: 1fr;
  }
  .page-about__story-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
  .page-about__security-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    margin-left: 0; /* Remove margin for stacking */
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__story-text p,
  .page-about__feature-description,
  .page-about__responsible-gaming-description,
  .page-about__video-description,
  .page-about__cta-description,
  .page-about__faq-answer p {
    font-size: 0.95em;
  }
  .page-about__game-category-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__story-image-wrapper,
  .page-about__security-image-wrapper,
  .page-about__games-image-wrapper,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .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;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
}