/* style/about.css */

/* --- CSS Variables (for custom colors) --- */
:root {
  --main-color: #11A84E;
  --main-color-rgb: 17, 168, 78;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* --- Base Styles --- */
.page-about {
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--bg-color); /* #08160F */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 1.1em;
}

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

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--gold-color); /* #F2C14E */
  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: linear-gradient(90deg, transparent, var(--main-color), transparent); /* #11A84E */
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: var(--main-color); /* #11A84E */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-about__dark-section {
  background-color: var(--card-bg-color); /* #11271B */
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  cursor: pointer;
}

.page-about__btn-primary {
  background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--main-color-rgb), 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--main-color); /* #11A84E */
  border: 2px solid var(--main-color); /* #11A84E */
}

.page-about__btn-secondary:hover {
  background-color: var(--main-color); /* #11A84E */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--main-color-rgb), 0.2);
}

.page-about__btn-large {
  padding: 16px 40px;
  font-size: 1.1em;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 60px;
  background-color: var(--bg-color); /* Ensure dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: 3.5em;
  font-weight: 700;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: 1.2em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Mission & Vision Section --- */
.page-about__mission-vision {
  background-color: var(--bg-color); /* #08160F */
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid:last-of-type {
  margin-bottom: 0;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

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

/* --- Core Values Section --- */
.page-about__core-values {
  background-color: var(--card-bg-color); /* #11271B */
}

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

.page-about__value-card {
  background-color: var(--deep-green-color); /* #0A4B2C */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color); /* #2E7A4E */
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--main-color-rgb), 0.3);
}

.page-about__value-card p {
  color: var(--text-secondary-color); /* #A7D9B8 */
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
  background-color: var(--bg-color); /* #08160F */
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
}

.page-about__feature-item {
  background-color: var(--card-bg-color); /* #11271B */
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid var(--main-color); /* #11A84E */
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.page-about__feature-item:last-child {
  margin-bottom: 0;
}

.page-about__feature-title {
  color: var(--gold-color); /* #F2C14E */
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.page-about__feature-item p {
  color: var(--text-secondary-color); /* #A7D9B8 */
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming {
  background-color: var(--card-bg-color); /* #11271B */
}

/* --- FAQ Section --- */
.page-about__faq-section {
  background-color: var(--bg-color); /* #08160F */
}

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

.page-about__faq-item {
  background-color: var(--deep-green-color); /* #0A4B2C */
  border: 1px solid var(--divider-color); /* #1E3A2A */
  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;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--card-bg-color); /* #11271B */
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
  list-style: none; /* For details/summary */
}

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

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color); /* #11A84E */
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--main-color); /* #11A84E */
}

.page-about__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary-color); /* #A7D9B8 */
}

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

.page-about__faq-link {
  color: var(--gold-color); /* #F2C14E */
  text-decoration: underline;
}

.page-about__faq-link:hover {
  color: var(--main-color); /* #11A84E */
}

/* --- CTA Section --- */
.page-about__cta-section {
  background: linear-gradient(135deg, var(--card-bg-color), var(--bg-color)); /* Mix deep green and darker green */
  text-align: center;
  padding: 80px 20px;
  border-top: 5px solid var(--main-color); /* #11A84E */
}

.page-about__cta-title {
  font-size: 2.5em;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Image and Video Responsiveness --- */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper,
.page-about__image-block,
.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3em;
  }

  .page-about__section-title {
    font-size: 2.5em;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column; /* Stays column for consistency on smaller screens */
  }

  .page-about__cta-title {
    font-size: 2em;
  }
}

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

  .page-about__container {
    padding: 0 !important; /* Managed by direct child sections */
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

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

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for responsive H1 */
    margin-bottom: 15px;
  }

  .page-about__lead-text {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-large,
  .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 !important;
    padding-right: 15px !important;
  }

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

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__value-card {
    padding: 25px;
  }

  .page-about__image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-block,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__cta-title {
    font-size: 1.8em;
  }

  .page-about__cta-description {
    font-size: 1em;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}