/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color); /* Ensure this matches shared.css body background */
}

/* Ensure contrast for dark background sections */
.page-about__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for contrast */
}

.page-about__light-bg {
  background-color: #FFFFFF; /* Auxiliary color / default light background */
  color: #333333; /* Dark text for contrast */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 500px;
  overflow: hidden;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #FFFFFF;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  /* No fixed font-size, rely on clamp for responsiveness if needed, but not here */
  color: #FFFFFF;
}

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

/* General Container for content sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section for dark/light bg */
}

/* Text Blocks */
.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color for secondary action */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a8cc4;
}

/* Mission and Values Section */
.page-about__mission-values-section .page-about__section-title {
  color: #FFFFFF;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #FFFFFF;
  text-align: left;
}

.page-about__grid-item .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-about__item-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-about__item-description,
.page-about__value-list {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__value-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-about__value-list strong {
  color: #FFFFFF;
}

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

.page-about__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

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

.page-about__card-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1;
}

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto; /* Push image to the bottom */
  display: block;
}

/* Responsible Gaming Section */
.page-about__responsibility-list {
  list-style-type: decimal;
  margin-left: 25px;
  padding-left: 0;
  font-size: 1.05em;
  line-height: 1.8;
  color: #333333;
}

.page-about__responsibility-list strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #FFFFFF;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

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

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

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
}

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

/* Contact CTA Section */
.page-about__contact-cta-section .page-about__section-title {
  color: #26A9E0;
}

/* Image and Video Responsive Styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 15px;
  }

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

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

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

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

  .page-about__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__text-block,
  .page-about__item-description,
  .page-about__value-list,
  .page-about__card-description,
  .page-about__responsibility-list,
  .page-about__faq-answer {
    font-size: 0.95em;
  }

  .page-about__grid-item {
    padding: 20px;
  }

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

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__card-image {
    height: 200px;
  }

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

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__mission-values-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}