/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for better text contrast if text was overlayed, though not overlapping here. */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  margin-top: -80px; /* Pull content slightly up over the bottom of the image */
  color: #F2FFF6; /* Text Main */
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

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

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

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-about__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.2);
}

.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__section:nth-of-type(odd) {
  background-color: #08160F; /* Background */
}

.page-about__section:nth-of-type(even) {
  background-color: #11271B; /* Card BG */
}

.page-about__dark-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__heading {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-about__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__image-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-about__image-content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-about__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it respects max-width */
}

.page-about__content-text {
  flex: 1;
  max-width: 50%;
  color: #F2FFF6; /* Text Main */
}

.page-about__sub-heading {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #57E38D; /* Glow */
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow */
  font-weight: bold;
}

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

.page-about__grid-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Text Main */
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-about__btn-text {
  display: inline-block;
  margin-top: auto; /* Push to bottom */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: #57E38D; /* Glow */
  border: 1px solid #2E7A4E; /* Border */
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-text:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #F2FFF6; /* Text Main */
}

.page-about__cta-center {
  margin-top: 60px;
}

.page-about__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
  background-color: #08160F; /* Background */
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-about__call-to-action {
  background-color: #11271B; /* Card BG */
  padding-top: 60px;
  padding-bottom: 80px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -60px;
  }

  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__heading {
    font-size: 2.2em;
  }

  .page-about__image-content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-image,
  .page-about__content-text {
    max-width: 100%;
  }

  .page-about__image-content-wrapper--reversed {
    flex-direction: column;
  }
}

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

  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

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

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

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

  .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__section {
    padding: 50px 0;
  }

  .page-about__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-about__image-content-wrapper {
    margin-top: 30px;
  }

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__content-text {
    max-width: 100%;
  }

  .page-about__sub-heading {
    font-size: 1.5em;
  }

  .page-about__grid-layout {
    gap: 20px;
    margin-top: 30px;
  }

  .page-about__card-image {
    height: 180px;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-about__faq-toggle {
    font-size: 1.2em;
  }

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

  /* Ensure all content area images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__game-diversity .page-about__grid-item,
  .page-about__promotions .page-about__grid-item,
  .page-about__image-content-wrapper,
  .page-about__cta-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__heading {
    font-size: 1.6em;
  }

  .page-about__sub-heading {
    font-size: 1.3em;
  }

  .page-about__card-image {
    height: 160px;
  }

  .page-about__card-title {
    font-size: 1.2em;
  }
}