/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color for dark background */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Section styling */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-about__light-bg {
  background-color: #11271B; /* Custom card/light section background color */
  color: #F2FFF6; /* Main text color for contrast */
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold color for titles */
  font-weight: bold;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Secondary text color */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: #F2FFF6;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  color: #F2C14E; /* Gold color for H1 */
  line-height: 1.2;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom main text color */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Custom main text color */
  border: 2px solid #2E7A4E; /* Custom border color */
}

.page-about__btn-secondary:hover {
  background: #2E7A4E; /* Custom border color as background on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Content Rows with Image and Text */
.page-about__content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-about__content-row--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
}

.page-about__text-block h3 {
  color: #F2C14E;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-about__text-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-about__text-block li {
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Why Choose Us Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__feature-card {
  background-color: #11271B; /* Custom card background */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2E7A4E; /* Custom border color */
  color: #F2FFF6;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: #A7D9B8;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #11271B; /* Custom card background */
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Deeper green for question background */
  color: #F2FFF6;
  position: relative;
  list-style: none; /* Remove default marker for details summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color for toggle icon */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
}

.page-about__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    min-height: 500px;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-row {
    flex-direction: column;
    text-align: center;
  }
  .page-about__content-row--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }
  .page-about__text-block,
  .page-about__image-block {
    width: 100%;
  }
  .page-about__text-block h3 {
    text-align: center;
  }
  .page-about__text-block ul {
    text-align: left; /* Keep list left aligned */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Mobile specific padding for content sections */
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-about__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* body handles --header-offset, this is just for visual spacing */
  }
  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Smaller H1 on mobile */
  }
  .page-about__description {
    font-size: 1em;
  }

  /* CTA Buttons */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }
  .page-about__image-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Content area images CSS size lower bound */
  .page-about__content-area img,
  .page-about__mission-vision img,
  .page-about__games-products img,
  .page-about__responsible-gaming img,
  .page-about__team-technology img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Features Grid */
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ */
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}