/* style/about.css */
/* 
  Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); }
  This page should not re-apply padding-top with var(--header-offset) to avoid double spacing.
*/

/* General styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--bg-primary); /* Use deep green background */
  line-height: 1.6;
  font-size: 16px;
}

/* Color variables based on custom palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-primary: #08160F; /* Background */
  --bg-card: #11271B; /* Card BG */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green-color: #0A4B2C; /* Deep Green */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about__section-spacing {
  padding: 80px 0;
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H2 */
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__text-block {
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

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

.page-about__text-block a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-primary);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image */
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 60px); /* H1 font size with clamp */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-about__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
  opacity: 0.9;
}

/* Story Section */
.page-about__story-section {
  background-color: var(--bg-primary);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--deep-green-color); /* Darker background for contrast */
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__mission-card,
.page-about__vision-card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

/* Values Section */
.page-about__values-section {
  background-color: var(--bg-primary);
}

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

.page-about__value-card {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 0 8px var(--glow-color)); /* Subtle glow */
}

.page-about__value-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: var(--deep-green-color);
}

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

.page-about__feature-card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__feature-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: justify;
}

/* Responsible Gaming & Team Sections */
.page-about__responsible-gaming-section,
.page-about__team-section {
  background-color: var(--bg-primary);
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
  font-size: 18px;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1); /* Use primary color with transparency */
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--secondary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}
.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-about__cta-section {
  background-color: var(--bg-primary);
  text-align: center;
  padding-bottom: 80px; /* Ensure space below buttons */
}

.page-about__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-about__cta-button--secondary {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: none;
}

.page-about__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-main);
  box-shadow: 0 0 10px var(--secondary-color);
}

/* Dark background text color override for specific sections */
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__feature-description {
  color: var(--text-secondary); /* Ensure light text on dark background */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-about__section-spacing {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  .page-about__hero-content {
    padding: 0 15px 40px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for smaller screens */
  }

  .page-about__description {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px); /* Adjust H2 for smaller screens */
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .page-about__mission-vision-grid,
  .page-about__values-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    gap: 20px;
  }

  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding for full-width buttons */
    padding-right: 15px; /* Add padding for full-width buttons */
  }

  .page-about__cta-button--large {
    font-size: 18px;
    padding: 15px 25px;
  }

  .page-about__cta-content {
    gap: 15px; /* Smaller gap between buttons */
  }

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

  /* Responsive image containers */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__value-card,
  .page-about__feature-card,
  .page-about__faq-item,
  .page-about__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero section on mobile */
  .page-about__hero-section {
    padding-top: 10px !important; /* Keep small padding, body handles header offset */
  }

  /* FAQ specific mobile styles */
  .page-about__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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