/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-about__section-intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Handled by body padding-top */
  padding-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 1200px;
  height: 675px;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

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

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container fills width */
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

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

/* Dark sections for contrast */
.page-about__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for dark background */
  padding: 60px 0;
}

/* Mission Section */
.page-about__mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-about__mission-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Very subtle white for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__mission-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__item-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

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

.page-about__card-description {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* Journey Section */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #26A9E0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #26A9E0;
  border: 4px solid #ffffff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  font-size: 1.5em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 5px;
}

.page-about__timeline-description {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
}

.page-about__responsible-gaming-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #ffffff; /* Ensure text is light */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.15); /* Slightly darker brand color for summary */
  color: #ffffff;
  list-style: none; /* Hide default marker */
  position: relative;
}

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

.page-about__faq-question::before {
    content: ''; /* Remove default triangle */
    display: none;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
  content: '−'; /* Change to minus sign */
}

/* Join Us Section */
.page-about__join-us-section {
  padding: 60px 0;
  text-align: center;
}

/* --- Responsive Styles --- */

/* General image responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-about__container {
    padding: 30px 15px;
  }

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

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

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

  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 10px;
    text-align: left !important; /* Override odd/even alignment */
  }

  .page-about__timeline-item::after {
    left: 10px;
    right: auto;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even)::after {
    left: 10px;
  }

  .page-about__responsible-gaming-list {
    grid-template-columns: 1fr;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* ~10px top padding for hero on mobile */
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px; /* Adjust max height for mobile hero image */
    margin-bottom: 20px;
  }

  .page-about__hero-image {
    width: 100% !important;
    height: auto !important;
  }

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

  .page-about__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em) !important; /* Smaller H1 on mobile */
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* CTA Buttons */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 15px 10px !important; /* Adjust padding for smaller screens */
    font-size: 1em !important;
  }

  /* General Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All content containers for mobile */
  .page-about__container,
  .page-about__mission-item,
  .page-about__feature-card,
  .page-about__list-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Sections padding */
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__journey-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__join-us-section {
    padding: 40px 0 !important;
  }

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

  .page-about__section-intro-text {
    font-size: 0.95em !important;
    margin-bottom: 30px !important;
  }

  .page-about__mission-grid {
    gap: 30px;
  }

  .page-about__timeline {
    padding: 10px 0;
    margin-top: 30px;
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    padding-left: 50px;
    padding-right: 10px;
  }

  .page-about__timeline-item::after {
    left: 5px;
  }

  .page-about__timeline-year {
    font-size: 1.3em;
  }

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

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

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