/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text should be light */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

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

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

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

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

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

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

.page-about__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 8px 0;
  text-align: left;
}

.page-about__btn-link:hover {
  text-decoration: underline;
  color: #1e87c0;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a2e; /* Dark background from body */
  background-image: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)), url('[GALLERY:hero_main:1920x1080:9bet app,about us,hero,platform overview,betting]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

/* --- Intro Section --- */
.page-about__intro-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__intro-section .page-about__section-title,
.page-about__intro-section .page-about__sub-title {
  color: #26A9E0;
}

.page-about__intro-section .page-about__section-description,
.page-about__intro-section p {
  color: #333333;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reverse {
  grid-template-columns: 1fr; /* Default for mobile, reversed by media query */
}

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

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

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-top: 20px;
  color: #333333;
}

.page-about__list li {
  margin-bottom: 10px;
}

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

/* --- Values Section --- */
.page-about__values-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__values-section .page-about__section-title {
  color: #ffffff;
}

.page-about__values-section .page-about__section-description {
  color: #f0f0f0;
}

.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-color: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__cta-section {
  text-align: center;
  margin-top: 50px;
}

.page-about__cta-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* --- Security Section --- */
.page-about__security-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__security-section .page-about__section-title,
.page-about__security-section .page-about__sub-title {
  color: #26A9E0;
}

.page-about__security-section .page-about__section-description,
.page-about__security-section p {
  color: #333333;
}

/* --- Products Section --- */
.page-about__products-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__products-section .page-about__section-title {
  color: #ffffff;
}

.page-about__products-section .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__product-card {
  background-color: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__product-card .page-about__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-about__product-card p {
  color: #f0f0f0;
  padding: 0 20px 15px;
  flex-grow: 1; /* Ensure text block takes available space */
}

.page-about__product-card .page-about__btn-link {
  display: block;
  text-align: center;
  padding: 10px 20px 15px;
  color: #26A9E0;
  text-decoration: none;
}

.page-about__product-card .page-about__btn-link:hover {
  text-decoration: underline;
}

.page-about__cta-section--center {
  text-align: center;
}

/* --- Video Section --- */
.page-about__video-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__video-section .page-about__section-title,
.page-about__video-section .page-about__section-description {
  color: #26A9E0;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 8px;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
  cursor: pointer; /* Indicate it's clickable */
}


/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

.page-about__faq-section .page-about__section-description {
  color: #f0f0f0;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(38, 169, 224, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

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

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

.page-about__faq-answer a:hover {
  color: #1e87c0;
}

/* --- Final CTA Section --- */
.page-about__cta-final-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  text-align: center;
}

.page-about__cta-final-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__cta-final-section .page-about__section-description {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-final-content {
  padding: 40px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}


/* --- Responsive Design --- */
@media (min-width: 769px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__grid-layout--reverse {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__grid-layout--reverse .page-about__text-block {
    order: 2;
  }
  .page-about__grid-layout--reverse .page-about__image-wrapper {
    order: 1;
  }
}

@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons touching edges */
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

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

  .page-about__section-description {
    font-size: 0.95em;
  }

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

  .page-about__grid-layout--reverse .page-about__text-block,
  .page-about__grid-layout--reverse .page-about__image-wrapper {
    order: unset; /* Reset order for mobile */
  }

  .page-about__values-grid,
  .page-about__products-grid {
    grid-template-columns: 1fr;
  }

  .page-about__product-image {
    height: 180px;
  }

  .page-about__video-wrapper {
    /* No need for padding-top here as video-section handles it */
  }
  
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* General content area padding for mobile */
  .page-about__container.page-about__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about__cta-final-content {
    padding: 20px;
  }
}

/* Ensure images do not use filters */
.page-about img {
  filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-about img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}

/* Override specific small image styles if any */
.page-about__image {
  min-width: 200px;
  min-height: 200px;
}
.page-about__product-image {
  min-width: 200px;
  min-height: 200px;
}