/* style/about.css */

/* --- General Page Styling --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, light text on dark background */
  background-color: var(--background-color, #08160F); /* Ensure consistent background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-green, #0A4B2C) 0%, var(--gold, #F2C14E) 50%, var(--deep-green, #0A4B2C) 100%);
  border-radius: 2px;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 30px;
}

.page-about h2,
.page-about h3 {
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about h3 {
  font-size: 1.5em;
  color: var(--glow, #57E38D);
}

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

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding for the first section */
  background-color: var(--background-color, #08160F);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container max-width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

/* --- Buttons --- */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__cta-buttons--inline {
  justify-content: flex-start; /* For sections where buttons are aligned left with text */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D); /* Green Glow text */
  border: 2px solid var(--glow, #57E38D);
}

.page-about__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--background-color, #08160F); /* Dark text on green glow hover */
}

/* --- Content Sections --- */
.page-about__mission-vision-section,
.page-about__history-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__cta-bottom-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: var(--card-bg, #11271B); /* Card BG color for dark sections */
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr; /* Maintain same grid structure */
}

.page-about__content-grid--reverse .page-about__image-block {
  order: 2; /* Reverse order for image and text on desktop */
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 1;
}

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

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
}

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

.page-about__faq-item {
  background-color: var(--background-color, #08160F); /* Darker background for FAQ item */
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-grid--reverse .page-about__image-block {
    order: unset; /* Reset order for mobile */
  }

  .page-about__content-grid--reverse .page-about__text-block {
    order: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

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

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

  .page-about__description {
    font-size: 1em;
  }

  .page-about__container {
    padding: 0 15px !important; /* Add horizontal padding for containers */
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-about__hero-image-wrapper,
  .page-about__image-block {
    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; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-about__cta-buttons--inline {
    flex-direction: column;
    align-items: center;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Ensure text padding within button */
    padding-right: 15px;
  }

  /* Sections padding */
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-bottom-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  /* FAQ items */
  .page-about__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-about__text-block,
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

/* Ensure body padding-top is handled by shared.css */