/* style/about.css */
/* 
  Body padding-top is handled by shared.css using var(--header-offset).
  This page's sections should not re-apply this variable to avoid double spacing.
*/

:root {
  /* Custom Colors from requirements */
  --page-about-bg: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
  --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  background-color: var(--page-about-bg);
  color: var(--page-about-text-main); /* Ensure light text on dark background */
  font-family: 'Arial', sans-serif; /* Example font, adjust if specific font is provided */
  line-height: 1.6;
}

.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; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__hero-content {
  position: relative; /* Not absolutely positioned over image */
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.page-about__main-title {
  color: var(--page-about-text-main);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3); /* Subtle glow for brand feel */
}

.page-about__intro-text {
  color: var(--page-about-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  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: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  text-align: center; /* Center text within button */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background: var(--page-about-btn-gradient);
  color: var(--page-about-text-main); /* White text on green gradient */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--page-about-text-main); /* White text on transparent */
  border: 2px solid var(--page-about-border);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Subtle hover effect */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  border-bottom: 1px solid var(--page-about-divider);
}

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

.page-about__section-title {
  color: var(--page-about-text-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-about__sub-title {
  color: var(--page-about-gold);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-about__lead-text {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-about-text-secondary);
}

/* Content Grid for sections with image and text */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text"; /* Default order for desktop */
}

.page-about__content-grid--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}


.page-about__image-block {
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-about__value-card {
  background: var(--page-about-card-bg); /* Dark card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--page-about-border);
  color: var(--page-about-text-main); /* Light text on dark card */
}

.page-about__value-card .page-about__card-title {
  color: var(--page-about-gold);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-about__value-card p {
  color: var(--page-about-text-secondary);
  font-size: 0.95rem;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

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

.page-about__faq-item {
  background: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-about-text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-about-text-main);
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: var(--page-about-deep-green);
  color: var(--page-about-gold);
}

.page-about__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

.page-about__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on summary itself */
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Allow click on summary itself */
}

/* Remove default details arrow */
.page-about__faq-item summary {
  list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

/* Contact CTA Section */
.page-about__section--contact-cta {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid,
  .page-about__responsible-gaming-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-about__content-grid--reverse {
    grid-template-areas: unset; /* Reset grid area for single column */
  }

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

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px; /* Add side padding for mobile */
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-about__main-title {
    font-size: 2.2rem;
  }

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

  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__section {
    padding: 60px 0;
  }

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

  .page-about__sub-title {
    font-size: 1.3rem;
  }

  .page-about p,
  .page-about__lead-text,
  .page-about__faq-question,
  .page-about__faq-answer {
    font-size: 0.95rem;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers for mobile */
  .page-about__image-block,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

/* Ensure all elements containing images/videos/buttons are responsive */
.page-about__section,
.page-about__card,
.page-about__container,
.page-about__content-grid,
.page-about__values-grid,
.page-about__responsible-gaming-content,
.page-about__faq-list,
.page-about__cta-buttons {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

@media (max-width: 768px) {
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__responsible-gaming-content,
  .page-about__faq-list,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to main containers on mobile */
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Specific override for CTA buttons to handle flex-wrap */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Force vertical stack */
    gap: 15px !important;
  }
}