/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Sections padding and max-width */
.page-about__hero-section,
.page-about__mission-section,
.page-about__security-fairness-section,
.page-about__games-section,
.page-about__responsible-gaming-section,
.page-about__customer-support-section,
.page-about__why-choose-section,
.page-about__faq-section {
  padding: 60px 20px;
  background-color: #0A0A0A; /* Ensure sections have the specified background */
}

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

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

.page-about__hero-content {
  position: relative; /* Not absolute, for normal flow */
  z-index: 1;
  max-width: 900px;
  margin-top: 30px; /* Space between image and content */
  padding: 0 20px;
}

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

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

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

/* Game Categories */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-about__category-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient on hover */
  color: #111111; /* Darker text on hover */
}

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

.page-about__category-title {
  font-size: 1.2rem;
  color: #FFD36B; /* Glow color for titles */
  margin: 0;
}
.page-about__category-card:hover .page-about__category-title {
    color: #111111; /* Darker text on hover */
}


/* Benefits List */
.page-about__benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__benefits-list li {
  background-color: #111111; /* Card BG color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6;
  font-size: 1.05rem;
}

.page-about__benefits-list li strong {
  color: #FFD36B; /* Glow color for strong text */
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for primary button */
  border: 2px solid transparent;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color for secondary button text */
  border: 2px solid #F2C14E; /* Primary color for border */
}

.page-about__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text on hover */
  transform: translateY(-2px);
}

.page-about__btn-small {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 15px;
}

.page-about__btn-small:hover {
  opacity: 0.9;
}

.page-about__btn-full-width {
  width: 100%;
  max-width: 400px; /* Constrain full width button for aesthetics */
  margin: 0 auto;
  display: block;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG color */
  color: #FFF6D6;
  font-weight: 700;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1A1A1A; /* Slightly darker on hover */
}

.page-about__faq-question h3 {
  margin: 0;
  color: #FFF6D6;
  font-size: 1.2rem;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color for toggle */
}

.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;
  color: #FFF6D6;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Important for override, large enough */
  padding: 15px 25px 20px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__security-fairness-section,
  .page-about__games-section,
  .page-about__responsible-gaming-section,
  .page-about__customer-support-section,
  .page-about__why-choose-section,
  .page-about__faq-section {
    padding: 40px 15px;
  }

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    padding: 0 10px;
  }

  .page-about__intro-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 0.95rem;
    padding: 0 5px;
  }

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

  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__security-fairness-section,
  .page-about__games-section,
  .page-about__responsible-gaming-section,
  .page-about__customer-support-section,
  .page-about__why-choose-section,
  .page-about__faq-section,
  .page-about__feature-item,
  .page-about__category-card,
  .page-about__faq-item {
    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;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }

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

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

  .page-about__faq-question h3 {
    font-size: 1.1rem;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-about__category-icon {
    width: 50px;
    height: 50px;
  }
  .page-about__category-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-about__section-title {
    font-size: 1.5rem;
  }
  .page-about__hero-image {
    max-height: 300px;
  }
  .page-about__category-card {
    padding: 15px;
  }
  .page-about__category-icon {
    width: 40px;
    height: 40px;
  }
  .page-about__category-title {
    font-size: 1rem;
  }
}