/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for clarity */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Sections */
.page-about__intro-section,
.page-about__values-section,
.page-about__why-choose-us,
.page-about__responsible-gaming,
.page-about__faq-section,
.page-about__cta-bottom {
  padding: 80px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
}

.page-about__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

/* Intro Section */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-about__value-card p {
  font-size: 1em;
  color: #e0e0e0;
}

/* Why Choose Us Section */
.page-about__why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__reason-card {
  background-color: #ffffff;
  color: #333333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__reason-card .page-about__card-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-about__reason-card p {
  font-size: 0.95em;
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__text-content {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
  font-size: 1.1em;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

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

.page-about__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Call to Action Bottom Section */
.page-about__cta-bottom {
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

.page-about__cta-bottom .page-about__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__cta-bottom .page-about__text-content {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__text-block, .page-about__image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__intro-section, .page-about__values-section, .page-about__why-choose-us, .page-about__responsible-gaming, .page-about__faq-section, .page-about__cta-bottom {
    padding: 50px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__image-wrapper,
  .page-about__reason-card,
  .page-about__value-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

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