/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Background color for the body/main content */
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #E53935; /* Primary brand color for hero background */
  color: #ffffff;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  /* clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to width */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935; /* Primary brand color for titles */
}

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

.page-about__mission-vision-section,
.page-about__game-overview-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Light background for these sections */
  color: #333333;
}

.page-about__why-choose-section,
.page-about__security-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background for these sections */
  color: #ffffff;
}

.page-about__why-choose-section .page-about__section-title,
.page-about__security-section .page-about__section-title {
  color: #ffffff;
}

.page-about__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__content-grid > .page-about__text-block,
.page-about__content-grid > .page-about__image-block {
  flex: 1;
  min-width: 300px;
}

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

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

.page-about__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23E53935"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-card .page-about__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FF5A4F; /* Auxiliary color for card titles */
}

.page-about__feature-card p {
  font-size: 0.95em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

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

  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

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

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

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

  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__game-overview-section,
  .page-about__security-section,
  .page-about__cta-section {
    padding: 50px 0;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid > .page-about__image-block {
    order: -1; /* Image first on mobile */
  }

  .page-about__image-block img,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-block,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__cta-buttons,
  .page-about__hero-image-wrapper,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

/* Color contrast specific rules (as per prompt) */
.page-about__light-bg {
  color: #333333; /* For light backgrounds */
  background: #F5F7FA;
}

.page-about__dark-section {
  color: #ffffff; /* For dark backgrounds */
  background: #E53935;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Ensure all images maintain original color */
.page-about img {
  filter: none; /* Explicitly disable any filters */
}

/* No filter on feature list checkmark SVG */
.page-about__feature-list li {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23E53935"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}