/* style/about.css */

/* --- Base Styles --- */
.page-about {
  color: #ffffff; /* Body background is dark #0a0a0a, so text must be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

.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__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

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

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background-color: #26A9E0;
  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;
}

/* Large button variant */
.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* --- Introduction Section --- */
.page-about__introduction .page-about__section-title {
  color: #26A9E0;
}

.page-about__introduction .page-about__image-content {
  margin-top: 40px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  max-width: 800px; /* Constrain image width */
  margin-left: auto;
  margin-right: auto;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__mission-vision .page-about__section-title {
  color: #26A9E0;
}

.page-about__flex-group {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle border */
  box-sizing: border-box;
}

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

.page-about__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Core Values Section --- */
.page-about__core-values .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__value-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-about__core-values .page-about__image-content {
  margin-top: 40px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  max-width: 800px; /* Constrain image width */
  margin-left: auto;
  margin-right: auto;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__why-choose-us .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__why-choose-us .page-about__image-content {
  margin-top: 40px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  max-width: 1000px; /* Constrain image width */
  margin-left: auto;
  margin-right: auto;
}

/* --- Security & Responsible Gaming Section --- */
.page-about__security-responsible-gaming .page-about__section-title {
  color: #26A9E0;
}

.page-about__security-responsible-gaming .page-about__image-content {
  margin-top: 40px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  max-width: 800px; /* Constrain image width */
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact CTA Section --- */
.page-about__contact-cta {
  padding: 80px 0;
}

.page-about__contact-cta .page-about__container.page-about__dark-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text on brand color background */
  padding: 50px 30px;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__contact-cta .page-about__section-title {
  color: #ffffff; /* White title on brand color background */
  margin-bottom: 25px;
}

.page-about__contact-cta .page-about__text-block {
  color: #ffffff;
  margin-bottom: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-about__text-block,
  .page-about__hero-description,
  .page-about__card-text,
  .page-about__value-description,
  .page-about__feature-description {
    font-size: 1em;
  }

  /* Mobile image, video, button adaptation - IMPORTANT */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__flex-group,
  .page-about__values-grid,
  .page-about__feature-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

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

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__flex-group {
    flex-direction: column !important;
  }

  .page-about__card {
    min-width: unset !important;
  }
  
  .page-about__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
  }
}