/* style/about.css */

/* --- Base Styles for page-about --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Text Main: #F2FFF6 on dark background #08160F */
  background-color: var(--bg-color, #08160F); /* Background: #08160F */
}

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

.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color, #1E3A2A); /* Divider: #1E3A2A */
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--glow-color, #57E38D); /* Glow: #57E38D */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-about__paragraph {
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8); /* Text Secondary: #A7D9B8 */
}

.page-about__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-about__list-item {
  margin-bottom: 10px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__text-link {
  color: var(--main-color, #11A84E); /* Main Color: #11A84E */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--gold-color, #F2C14E); /* Gold: #F2C14E */
}

/* --- 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: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  background-color: var(--bg-color, #08160F);
}

.page-about__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__main-title {
  font-size: clamp(32px, 5vw, 58px); /* H1 font size with clamp */
  color: var(--glow-color, #57E38D);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.page-about__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex; /* Use inline-flex for button content alignment */
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* White text for primary button */
  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(34, 199, 104, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

/* --- Image Content --- */
.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 800px; /* Max width for content images */
}

/* --- Grid List for Game Products --- */
.page-about__list--grid {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-about__list--grid .page-about__list-item {
  background-color: var(--card-bg-color, #11271B); /* Card BG: #11271B */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__list--grid .page-about__list-item:hover {
  transform: translateY(-5px);
}

.page-about__list--grid .page-about__list-item strong {
  color: var(--text-main-color, #F2FFF6);
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* --- FAQ Section --- */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  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: 20px 25px;
  cursor: pointer;
  outline: none;
  color: var(--text-main-color, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C); /* Deep Green: #0A4B2C */
}

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

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

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

/* Ensure paragraph inside FAQ answer also gets secondary text color */
.page-about__faq-answer .page-about__paragraph {
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(20px, 4vw, 28px);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-about__hero-image {
    max-height: 400px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-about__intro-text {
    font-size: clamp(15px, 3vw, 18px);
  }

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

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

  /* Mobile buttons */
  .page-about__cta-button,
  .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; */ /* Add some padding if needed, but width 100% is key */
    /* padding-right: 15px; */
  }
  
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  /* Video section top padding on mobile */
  .page-about__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__list--grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}

/* Define CSS Variables for custom colors */
:root {
  --main-color: #11A84E; /* Primary */
  --secondary-color: #22C768; /* Auxiliary */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --card-bg-color: #11271B; /* Card BG */
  --bg-color: #08160F; /* Background */
  --text-main-color: #F2FFF6; /* Text Main */
  --text-secondary-color: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green-color: #0A4B2C; /* Deep Green */
}

/* Apply color variables to elements to ensure consistency and contrast */
.page-about__hero-content .page-about__main-title,
.page-about__section-title,
.page-about__sub-title,
.page-about__list-item strong {
  color: var(--text-main-color);
}

.page-about__paragraph,
.page-about__list-item {
  color: var(--text-secondary-color);
}

.page-about__faq-item summary {
  color: var(--text-main-color);
}

.page-about__faq-toggle {
  color: var(--glow-color);
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Explicitly white for contrast on green gradient */
}

.page-about__btn-secondary {
  border-color: var(--main-color);
  color: var(--main-color);
}

.page-about__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
}

.page-about__faq-item {
  background-color: var(--card-bg-color);
}

.page-about__faq-item summary:hover {
  background-color: var(--deep-green-color);
}