/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color on dark background */
  background-color: #0A0A0A; /* Background color */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Section styling */
.page-about__dark-section {
  background-color: #0A0A0A; /* Consistent dark background */
  padding: 60px 0;
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to prevent overly tall hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is above image but not overlaying */
  margin-top: 40px; /* Space between image and text */
  max-width: 900px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFF6D6;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__hero-description {
  font-size: 1.15rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Titles */
.page-about__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #F2C14E; /* Primary brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #FFD36B; /* Auxiliary brand color for sub titles */
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.page-about__text-block {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

/* Image with text block */
.page-about__image-text-block {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__image-text-block img {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-about__text-content {
  flex: 1 1 400px;
  max-width: 50%;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__content-image--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Lists */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF6D6;
}

.page-about__list li::before {
  content: '⚡'; /* Using an emoji as a bullet point */
  position: absolute;
  left: 0;
  color: #FFD36B; /* Auxiliary color for bullet */
  font-size: 1.2em;
  top: -2px;
}

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

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

.page-about__feature-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-about__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Primary color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 1rem;
  color: #FFF6D6;
  line-height: 1.7;
  flex-grow: 1; /* Allows text to take available space */
  margin-bottom: 20px;
}

.page-about__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD36B; /* Auxiliary color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-about__card-link:hover {
  color: #F2C14E;
  text-decoration: underline;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  filter: brightness(1.1);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color for secondary button text */
  border: 2px solid #F2C14E; /* Primary color for border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A; /* Dark text on primary color hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E; /* Primary color for question */
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a1a1a;
}

.page-about__faq-title {
  margin: 0;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 600;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Auxiliary color for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a;
  color: #FFF6D6; /* Text Main color for answer */
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Bottom CTA specific styling */
.page-about__cta-bottom {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__image-text-block img,
  .page-about__text-content {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .page-about__image-text-block img {
    margin-bottom: 30px;
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important; /* Important for mobile, body handles offset */
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Smaller on mobile */
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__list li,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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;
  }

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
  
  /* Ensure content images are not smaller than 200px (except specific exceptions) */
  .page-about img:not(.page-about__category-icon):not(.page-about__game-partner-logo) {
      min-width: 200px;
      min-height: 200px;
  }
  
  /* Override for hero and content images that are meant to be larger and scale responsively */
  .page-about__hero-image,
  .page-about__content-image {
      min-width: unset;
      min-height: unset;
  }
}

/* Ensure no CSS filters are applied to images */
.page-about img {
  filter: none !important;
}