/* style/about.css */

/* Root variables for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --body-bg: #08160F; /* Assumed from Body background info */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--body-bg); /* Ensure consistency */
}

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* Use clamp for responsive font sizing, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-about h2 {
  font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
  font-weight: 600;
  text-align: center;
  padding-bottom: 20px;
  position: relative;
}

.page-about h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold-color);
  border-radius: 2px;
}

.page-about h3 {
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-about strong {
  color: var(--gold-color);
}

/* Section styles */
.page-about__section {
  padding: 80px 20px;
  border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__dark-section {
  background-color: var(--body-bg);
  color: var(--text-main);
}

.page-about__light-bg {
  background-color: var(--deep-green-color);
  color: var(--text-main);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Added for mobile safety */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px; /* Base padding, body handles top offset */
  padding-top: 10px; /* Small decorative top padding */
  min-height: 500px; /* Ensure hero has a minimum height */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative; /* Image first in DOM */
  margin-bottom: 40px;
  border-radius: 10px;
}

.page-about__hero-content {
  position: relative; /* Text content after image */
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-decoration: none;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--body-bg);
  transform: translateY(-2px);
}

/* Introduction Section */
.page-about__introduction-section .page-about__text-block {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.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: var(--body-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-about__card-image {
  width: 100%; /* Card images must be large */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__image-fullwidth {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Team Section */
.page-about__team-section .page-about__image-center {
  display: block;
  margin: 30px auto;
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--deep-green-color);
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--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;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--body-bg);
  border-bottom: 1px solid var(--divider-color);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

/* Contact CTA Section */
.page-about__contact-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* Copyright Section */
.page-about__copyright-section {
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--body-bg);
  border-top: 1px solid var(--divider-color);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

  .page-about__section {
    padding: 60px 15px;
  }

  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-about h1 {
    font-size: clamp(1.8rem, 5vw + 1rem, 2.8rem);
  }

  .page-about h2 {
    font-size: clamp(1.5rem, 4vw + 1rem, 2.2rem);
  }

  .page-about h3 {
    font-size: clamp(1.2rem, 3vw + 1rem, 1.8rem);
  }

  .page-about__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
    min-height: 400px;
  }

  .page-about__hero-image,
  .page-about__image-fullwidth,
  .page-about__image-center,
  .page-about__card-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-about__container,
  .page-about__section,
  .page-about__feature-card,
  .page-about__cta-buttons,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__feature-card {
    padding: 20px;
  }

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

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-about__team-section .page-about__image-center {
    max-width: 100%;
  }
}