/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text needs to be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

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

.page-about__dark-section {
  background-color: rgba(38, 169, 224, 0.15); /* Light transparency of brand color */
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
  min-height: 600px;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
  text-align: center;
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  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: #1f8ac2;
  border-color: #1f8ac2;
}

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

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

/* Mission & Vision */
.page-about__flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-about__vision-item {
  flex: 1 1 calc(50% - 15px);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__vision-item p {
  color: #f0f0f0;
}

/* Core Values */
.page-about__core-values {
  padding: 80px 0;
}

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

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

.page-about__value-card .page-about__value-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Recommended size for card images */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-about__value-card p {
  color: #f0f0f0;
}

/* History */
.page-about__history {
  padding: 80px 0;
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  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;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

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

.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:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-year {
  color: #26A9E0;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__timeline-item p {
  color: #f0f0f0;
}

/* Security Commitment */
.page-about__security-commitment {
  padding: 80px 0;
}

.page-about__security-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-about__feature-item {
  flex: 1 1 calc(33% - 20px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-item p {
  color: #f0f0f0;
}

/* Responsible Gaming */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Team Section */
.page-about__team {
  padding: 80px 0;
}

.page-about__team-image {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Recommended size */
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

/* Customer Support */
.page-about__customer-support {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Future Outlook */
.page-about__future-outlook {
  padding: 80px 0;
}

.page-about__future-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Recommended size */
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  outline: none;
}

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

.page-about__faq-question .page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #FFFFFF;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Global image settings for content area to meet min size */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center images */
  min-width: 200px;
  min-height: 200px;
}

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

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

  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    min-height: 400px;
  }

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

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

  .page-about__flex-group,
  .page-about__values-grid,
  .page-about__security-features {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__vision-item,
  .page-about__value-card,
  .page-about__feature-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 25px;
  }

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

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
    text-align: left;
  }

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

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

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

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

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

  .page-about video,
  .page-about__video {
    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__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

/* Ensure content area images are not smaller than 200px */
.page-about__section img,
.page-about__value-image,
.page-about__team-image,
.page-about__future-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter properties for images */
.page-about img {
  filter: none; /* Reset any potential inherited filter */
}

/* Specific filter for hero image for readability */
.page-about__hero-image {
  filter: brightness(0.4); /* Darken image for text readability, not color change */
}

/* Link color for text blocks */
.page-about p a,
.page-about li a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about p a:hover,
.page-about li a:hover {
  color: #1f8ac2;
}