/* style/about.css */

/* --- Base Styles & Layout --- */
.page-about {
  /* Assuming body has --bg-color from shared.css, which is #08160F (dark) */
  /* So, default text color for the page should be light */
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

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

.page-about__section-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #22C768; /* Auxiliary color for sub-titles */
}

.page-about__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

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

.page-about__link-more {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__link-more:hover {
  color: #2AD16F; /* Lighter green from button gradient */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset; added bottom padding */
  min-height: 500px; /* Ensure hero section has a minimum height */
  background-color: #0A4B2C; /* Deep Green as a fallback/background for hero */
}

.page-about__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit image height */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above other elements */
  z-index: 10;
  text-align: center;
  padding: 30px;
  max-width: 900px;
  background: rgba(17, 39, 27, 0.9); /* Card B G with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px; /* Space above the next section */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 8px #57E38D; /* Glow */
}

.page-about__intro-text {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Content Wrapper for Text/Image blocks --- */
.page-about__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

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

.page-about__text-block,
.page-about__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure no extra space below image */
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Lighter green from button gradient */
  border: 2px solid #2AD16F;
  box-shadow: 0 0 10px rgba(34, 199, 104, 0.2);
}

.page-about__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6; /* Text Main */
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary--center,
.page-about__btn-secondary--center {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block; /* Make it a block element to center with margin auto */
  width: fit-content; /* Adjust width to content */
}

/* --- Benefit Cards --- */
.page-about__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__benefit-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-about__benefit-card p {
  color: #A7D9B8; /* Text Secondary */
}

/* --- Game Diversity Section --- */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* --- Promotions Section --- */
.page-about__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__promo-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-about__promo-card p {
  color: #A7D9B8; /* Text Secondary */
}

/* --- Responsible Gaming Section --- */
.page-about__list--two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
}

.page-about__list--two-cols .page-about__list-item {
  margin-bottom: 0; /* Remove extra margin for grid items */
}

/* --- Future Section --- */
.page-about__list--iconed .page-about__list-item::before {
  content: '★'; /* Use a star icon for future vision */
  color: #F2C14E; /* Gold */
}

/* --- FAQ Section --- */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
  background-color: #13994A; /* Darker green from button gradient */
}

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

.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: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-about__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-about__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
  font-weight: bold;
}

/* --- Dark/Light Background Specific Styles (Contrast Assurance) --- */
.page-about__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__card-title {
  color: #F2FFF6; /* Text Main */
}

.page-about__dark-bg .page-about__description,
.page-about__dark-bg p,
.page-about__dark-bg .page-about__list-item {
  color: #A7D9B8; /* Text Secondary */
}

.page-about__light-bg {
  background-color: #08160F; /* Main background color, but conceptually 'lighter' for text contrast purposes */
  color: #F2FFF6; /* Text Main */
}
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__card-title {
  color: #F2FFF6; /* Text Main */
}

.page-about__light-bg .page-about__description,
.page-about__light-bg p,
.page-about__light-bg .page-about__list-item {
  color: #A7D9B8; /* Text Secondary */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__sub-title {
    font-size: 1.6em;
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__sub-title {
    font-size: 1.4em;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

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

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-about__text-block,
  .page-about__image-block {
    max-width: 100%;
    min-width: unset; /* Reset min-width for mobile */
  }

  .page-about__benefits-grid,
  .page-about__game-categories,
  .page-about__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__list--two-cols {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px auto;
  }

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

  /* All containers with images/videos/buttons */
  .page-about__section,
  .page-about__hero-section,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__benefits-grid,
  .page-about__game-categories,
  .page-about__promotions-grid,
  .page-about__faq-list,
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__benefits-grid,
  .page-about__game-categories,
  .page-about__promotions-grid,
  .page-about__list--two-cols {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Button responsive adaptations */
  .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;
    display: block; /* Ensure buttons stack */
  }

  .page-about__btn-primary--center,
  .page-about__btn-secondary--center {
    width: 100% !important; /* Full width for centered buttons */
    margin-left: 0;
    margin-right: 0;
  }

  /* FAQ specific mobile styles */
  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }
}