/* style/about.css */

/* Base Styles & Typography */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__main-title {
  font-size: 3.2em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  color: #26A9E0;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-about p {
  margin-bottom: 15px;
  color: inherit;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: inherit;
}

.page-about__list li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  padding: 120px 0 80px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_about:1920x1080:win88club,about,hero,platform_overview,trust,security]') center/cover no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

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

/* Grid Layout */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__reverse-grid {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-wrapper {
  text-align: center;
}

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

/* Cards */
.page-about__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__card .page-about__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

/* Testimonials */
.page-about__testimonials-section {
  margin-top: 80px;
  text-align: center;
}

.page-about__testimonial-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-about__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-about__testimonial-author {
  font-weight: bold;
  color: #26A9E0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

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

.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;
  color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-about__reverse-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-block {
    order: 2;
  }

  .page-about__image-wrapper {
    order: 1;
  }
}

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

  .page-about__hero-section {
    padding: var(--header-offset, 120px) 20px 60px; /* Ensure offset is applied */
    min-height: 400px;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__container,
  .page-about__section .page-about__content-block {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__card,
  .page-about__section,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

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

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__faq-title {
    font-size: 1em;
  }
}