/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background: linear-gradient(rgba(1, 116, 57, 0.9), rgba(1, 116, 57, 0.9)), url('[GALLERY:bg:1920x1080:online_gaming_background,abstract_lines,digital_patterns]') no-repeat center center/cover;
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use specific color for main title */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Specific color for register/login */
  color: #FFFF00; /* Specific font color for register/login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #d82c2c;
  color: #FFFFFF;
  border-color: #d82c2c;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

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

.page-about__about-us-intro {
  background-color: #0a0a0a; /* Match body background */
  color: #ffffff;
}

.page-about__heading {
  font-size: 2.5em;
  color: #FFFF00; /* Highlight headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__center-text {
  text-align: center;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reverse {
  grid-template-areas: "content image";
}

.page-about__grid-layout--reverse .page-about__image-wrapper {
  grid-area: image;
}

.page-about__grid-layout--reverse .page-about__content-block {
  grid-area: content;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__core-values {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-card .page-about__sub-heading {
  color: #FFFF00; /* Highlight sub-headings in value cards */
  margin-top: 0;
}

.page-about__value-card .page-about__paragraph {
  color: #f0f0f0;
  margin-bottom: 0;
}

.page-about__why-choose-us {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__why-choose-us .page-about__heading {
  color: #FFFF00;
}

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

.page-about__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__benefit-card .page-about__sub-heading {
  color: #FFFF00;
  margin-top: 0;
}

.page-about__benefit-card .page-about__paragraph {
  color: #f0f0f0;
  margin-bottom: 0;
}

.page-about__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__faq-section .page-about__heading {
  color: #FFFF00;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* This will be handled by JS */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 0;
}

.page-about__cta-final {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-about__cta-final .page-about__heading {
  color: #FFFF00;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

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

  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-about__grid-layout--reverse {
    grid-template-areas: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__main-title {
    font-size: 2.2em;
    line-height: 1.2;
  }

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

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

  .page-about__paragraph {
    font-size: 0.95em;
  }

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

  .page-about__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-about__value-card, .page-about__benefit-card {
    padding: 20px;
  }

  .page-about__faq-list {
    margin-top: 30px;
  }

  .page-about__faq-question {
    padding: 15px;
    font-size: 1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}