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

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

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

.page-about__section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.page-about__section-title {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 40px;
  font-weight: bold;
  text-align: center;
}

.page-about__sub-title {
  font-size: 24px;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__section-description {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87b7;
  border-color: #1e87b7;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body has main offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f0f8ff;
}

.page-about__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__mission-vision-section .page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__mission-vision-section .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-about__vision-block {
  grid-column: span 2; /* Make vision block span full width */
  text-align: left;
  padding-top: 30px;
}

/* Why Choose Us Section */
.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: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  display: block;
}

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

.page-about__card-description {
  font-size: 16px;
  color: #666;
}

/* History Section */
.page-about__history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__history-content .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-about__milestones-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__milestones-list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: #444;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__responsible-gaming-section .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-about__responsible-gaming-section a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__responsible-gaming-section a:hover {
  color: #1e87b7;
}

/* Partnerships Section */
.page-about__partnership-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__partnership-content .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.page-about__contact-section .page-about__section-description {
  max-width: 700px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

.page-about__faq-more-btn {
    margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 20px 30px;
  }

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

  .page-about__section-title {
    font-size: 32px;
  }

  .page-about__sub-title {
    font-size: 22px;
  }

  .page-about__hero-image img {
    max-height: 500px;
  }
}

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

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px; /* Added padding for titles on mobile */
  }

  .page-about__sub-title {
    font-size: 20px;
    padding: 0 15px; /* Added padding for subtitles on mobile */
  }

  .page-about__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-about__hero-image {
    max-height: 300px;
  }

  .page-about__hero-image img {
    object-fit: contain !important; /* HERO mobile: contain */
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-about__cta-button {
    width: 100% !important; /* Button mobile: full width */
    max-width: 100% !important;
    padding: 12px 15px !important;
    margin: 5px 0 !important; /* Adjust margin for stacked buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-buttons-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding: 0 15px;
  }

  .page-about__mission-vision-section .page-about__content-grid,
  .page-about__history-content,
  .page-about__responsible-gaming-section .page-about__content-grid,
  .page-about__partnership-content {
    grid-template-columns: 1fr; /* Single column layout for content grids */
    gap: 30px;
    padding: 0 15px;
  }

  .page-about__mission-vision-section .page-about__text-block,
  .page-about__mission-vision-section .page-about__image-block,
  .page-about__vision-block,
  .page-about__history-content .page-about__text-block,
  .page-about__history-content .page-about__image-block,
  .page-about__responsible-gaming-section .page-about__text-block,
  .page-about__responsible-gaming-section .page-about__image-block,
  .page-about__partnership-content .page-about__text-block,
  .page-about__partnership-content .page-about__image-block {
    grid-column: span 1; /* Reset grid span for single column */
    text-align: center; /* Center text blocks */
  }

  .page-about__mission-vision-section .page-about__image-block img,
  .page-about__history-content .page-about__image-block img,
  .page-about__responsible-gaming-section .page-about__image-block img,
  .page-about__partnership-content .page-about__image-block img,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

  .page-about__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__milestones-list {
    text-align: left; /* Keep list items left-aligned */
    padding-left: 20px; /* Adjust padding for list */
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-about__faq-qtext {
    font-size: 15px;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  .page-about__faq-more-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 15px !important;
  }

  /* General content area padding and max-width for mobile */
  .page-about__text-block,
  .page-about__section-description,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}