/* style/about.css */

:root {
  --go8pro-primary-color: #017439;
  --go8pro-secondary-color: #FFFFFF;
  --go8pro-text-dark: #333333;
  --go8pro-text-light: #FFFFFF;
  --go8pro-register-color: #C30808;
  --go8pro-login-color: #C30808;
  --go8pro-font-yellow: #FFFF00;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--go8pro-text-dark); /* Default text color for light body background */
  background-color: var(--go8pro-secondary-color); /* Matches body background #FFFFFF */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: var(--go8pro-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: var(--go8pro-text-dark);
}

.page-about__text-block {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 1.05em;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: linear-gradient(135deg, var(--go8pro-primary-color) 0%, #005a2b 100%);
  color: var(--go8pro-text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin: 40px auto 20px auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-about__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--go8pro-text-light);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--go8pro-text-light);
}

.page-about__hero-cta {
  background-color: var(--go8pro-register-color); /* Use #C30808 for Register */
  color: var(--go8pro-font-yellow); /* Use #FFFF00 for Register/Login font */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.page-about__hero-cta:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

/* Story Section */
.page-about__story-section {
  padding: 60px 0;
  background-color: var(--go8pro-secondary-color);
  color: var(--go8pro-text-dark);
}

.page-about__story-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.page-about__story-subtitle {
  font-size: 2em;
  color: var(--go8pro-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__story-image-wrapper {
  padding: 20px;
  background-color: var(--go8pro-secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 60px 0;
  background: linear-gradient(45deg, #005a2b 0%, var(--go8pro-primary-color) 100%);
  color: var(--go8pro-text-light);
}

.page-about__mission-vision-section .page-about__section-title {
  color: var(--go8pro-text-light);
}

.page-about__mission-vision-section .page-about__section-intro-text {
  color: var(--go8pro-text-light);
}

.page-about__mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__mv-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__mv-subtitle {
  font-size: 1.8em;
  color: var(--go8pro-text-light);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__mv-image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-about__mv-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-about__mt-40 {
  margin-top: 40px;
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__value-title {
  font-size: 1.5em;
  color: var(--go8pro-text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
  background-color: var(--go8pro-secondary-color);
  color: var(--go8pro-text-dark);
}

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

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--go8pro-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #005a2b 0%, var(--go8pro-primary-color) 100%);
  color: var(--go8pro-text-light);
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: var(--go8pro-text-light);
}

.page-about__responsible-gaming-section .page-about__section-intro-text {
  color: var(--go8pro-text-light);
}

.page-about__rg-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.page-about__rg-subtitle {
  font-size: 2em;
  color: var(--go8pro-text-light);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__rg-image-wrapper {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__rg-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* CTA Section */
.page-about__cta-section {
  padding: 60px 0;
  background-color: var(--go8pro-secondary-color);
  text-align: center;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--go8pro-register-color); /* #C30808 */
  color: var(--go8pro-font-yellow); /* #FFFF00 */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-about__btn-secondary {
  background-color: var(--go8pro-secondary-color); /* #FFFFFF */
  color: var(--go8pro-primary-color); /* #017439 */
  border: 2px solid var(--go8pro-primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--go8pro-primary-color);
  color: var(--go8pro-text-light);
  transform: translateY(-3px);
}

/* Global image and container responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section, .page-about__card, .page-about__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-about__story-image-wrapper {
    order: -1; /* Move image above text on smaller screens */
  }
  .page-about__mv-grid {
    grid-template-columns: 1fr;
  }
  .page-about__rg-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-about__rg-image-wrapper {
    order: -1;
  }
  .page-about__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__story-subtitle, .page-about__mv-subtitle, .page-about__rg-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 30px 15px !important;
  }

  /* Hero Section - Mobile */
  .page-about__hero-section {
    padding-top: 10px !important;
  }
  .page-about__hero-title {
    font-size: 2em !important;
    line-height: 1.3 !important;
  }
  .page-about__hero-description {
    font-size: 1em !important;
  }
  .page-about__hero-image-wrapper {
    margin-top: 10px !important;
  }
  .page-about__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    max-height: none !important;
    aspect-ratio: unset !important;
  }
  .page-about__hero-cta {
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  /* General Section Titles - Mobile */
  .page-about__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  /* Story Section - Mobile */
  .page-about__story-subtitle {
    font-size: 1.5em !important;
  }
  .page-about__story-grid {
    gap: 30px !important;
  }

  /* Mission & Vision Section - Mobile */
  .page-about__mv-grid {
    gap: 30px !important;
  }
  .page-about__mv-item {
    padding: 20px !important;
  }
  .page-about__mv-subtitle {
    font-size: 1.4em !important;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-about__value-title {
    font-size: 1.3em !important;
  }

  /* Why Choose Section - Mobile */
  .page-about__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .page-about__feature-item {
    padding: 25px !important;
  }
  .page-about__feature-title {
    font-size: 1.4em !important;
  }
  .page-about__feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 15px !important;
  }

  /* Responsible Gaming Section - Mobile */
  .page-about__rg-grid {
    gap: 30px !important;
  }
  .page-about__rg-subtitle {
    font-size: 1.5em !important;
  }

  /* CTA Section - Mobile */
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* Universal Image and Container Mobile Adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}