/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-about__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for sections to contrast with body #121212 */
  color: #ffffff;
}

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

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

.page-about__section-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-about__subsection-title {
  font-size: clamp(1.5em, 3vw, 2em); /* Responsive font size for H3 */
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__text-block,
.page-about__card-text,
.page-about__list-item,
.page-about p,
.page-about li {
  font-size: 1.1em;
  margin-bottom: 1em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above any potential background */
}

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

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

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 60px 20px;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  object-fit: cover;
}

/* Core Values Section */
.page-about__core-values {
  padding: 60px 20px;
}

.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.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 60px 20px;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__feature-list .page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__feature-list .page-about__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 60px 20px;
  text-align: center;
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: inline-block; /* Center the list items */
  text-align: left;
}

.page-about__responsibility-list .page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__responsibility-list .page-about__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1;
}

.page-about__btn-text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__btn-text-link:hover {
  color: #1e87c0;
}

/* Team Section */
.page-about__team-intro {
  padding: 60px 20px;
}

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

.page-about__team-member {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #26A9E0;
}

.page-about__member-name {
  font-size: 1.4em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For <details> summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For <details> summary */
}

.page-about__faq-qtext {
  color: #ffffff;
}

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

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

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* Contact CTA Section */
.page-about__contact-cta {
  padding: 60px 20px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding: 10px 15px 40px; /* Adjust padding for mobile */
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* More aggressive clamp for H1 on mobile */
  }

  .page-about__description {
    font-size: 1em;
  }

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

  .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;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__subsection-title {
    font-size: clamp(1.3em, 6vw, 1.8em);
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__list-item,
  .page-about p,
  .page-about li {
    font-size: 0.95em;
  }

  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__hero-image,
  .page-about__image-content,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__mission-vision,
  .page-about__core-values,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__team-intro,
  .page-about__faq-section,
  .page-about__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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