/* style/about.css */
/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color */
}

/* Section styling */
.page-about__section {
  padding: 60px 20px;
  background-color: #0A0A0A;
}

.page-about__dark-section {
  background-color: #111111; /* Card BG for contrast */
}

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

.page-about__text-center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above, text below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0A0A0A;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  max-width: 1920px; /* Adjust based on actual hero image width */
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__text-main {
  color: #FFF6D6; /* Ensure light text on dark backgrounds */
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.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: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #111111; /* Dark text on gold button for contrast */
  border: none;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for secondary button text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-about__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  border-color: #F2C14E; /* Primary color for hover border */
  transform: translateY(-2px);
}

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

.page-about__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-about__feature-description {
  font-size: 1rem;
  color: #FFF6D6;
}

/* Game Categories */
.page-about__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  text-decoration: none;
  color: #FFF6D6;
  min-width: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
}

.page-about__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-about__category-icon {
  width: 30px; /* Allowed small size */
  height: 30px; /* Allowed small size */
  margin-bottom: 10px;
}

.page-about__category-name {
  font-weight: bold;
  font-size: 1rem;
}

/* Commitment Points */
.page-about__commitment-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__commitment-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-about__commitment-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Primary color */
  margin-bottom: 10px;
}

.page-about__commitment-description {
  font-size: 1rem;
  color: #FFF6D6;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFD36B; /* Glow color for question text */
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1e1e1e; /* Slightly lighter dark background on hover */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Primary color for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus sign */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

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

/* Media Partners */
.page-about__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 2x5 grid */
  gap: 20px;
  margin-top: 50px;
  justify-items: center; /* Center items in grid cells */
}

.page-about__partner-item {
  background-color: #0A0A0A; /* Background color */
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3A2A12; /* Border color */
  height: 147px; /* 127px image + 2*10px padding */
  width: 187px; /* 167px image + 2*10px padding */
  box-sizing: border-box;
}

.page-about__partner-logo {
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }

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

  .page-about__hero-image {
    margin-bottom: 20px;
  }

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

  .page-about__intro-text {
    font-size: 1rem;
  }

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

  .page-about__paragraph {
    font-size: 0.95rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__features-grid,
  .page-about__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__category-card {
    min-width: unset;
    width: 48%; /* Two cards per row */
  }

  .page-about__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    gap: 15px;
  }

  .page-about__partner-item {
    width: 100%; /* Adjust width to fit */
    height: auto;
    padding: 8px;
  }

  .page-about__partner-logo {
    width: 100%;
    height: auto;
    max-width: 167px;
    max-height: 127px;
  }

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

  /* All containers with images must be responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__category-card {
    width: 100%; /* One card per row on very small screens */
  }
  .page-about__partners-grid {
    grid-template-columns: 1fr; /* 1 column for very small screens */
  }
}