/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly white background */
}

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

.page-about__section {
  padding: 80px 0;
  overflow: hidden; /* Prevent content overflow */
}

.page-about__section-title {
  font-size: 36px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #e0f2f1, #ffffff); /* Light gradient background */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-title {
  font-size: 48px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-about__hero-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button Base */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Specific Button Styles */
.page-about__btn-register {
  background: #C30808; /* Register button background */
  color: #FFFFFF; /* White text for contrast, overriding #FFFF00 */
}

.page-about__btn-register:hover {
  background: #a30606;
}

.page-about__btn-login {
  background: #C30808; /* Login button background */
  color: #FFFFFF; /* White text for contrast, overriding #FFFF00 */
}

.page-about__btn-login:hover {
  background: #a30606;
}

.page-about__btn-download {
  background: #017439; /* Primary color for download button */
  color: #FFFFFF;
}

.page-about__btn-download:hover {
  background: #005f2f;
}

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

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2f;
  border-color: #005f2f;
}

/* General Content Layouts */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__text-block {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
  color: #333333; /* Default text color for cards */
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Section Specific Styles */

/* Intro Section */
.page-about__intro-section .page-about__content-wrapper {
  flex-direction: row;
}

/* Security Section */
.page-about__security-section {
  background-color: #017439; /* Dark green background */
  color: #ffffff; /* White text for dark background */
}

.page-about__security-section .page-about__section-title,
.page-about__security-section .page-about__section-description {
  color: #ffffff;
}

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

.page-about__security-item.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-about__security-item-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 700;
}

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

.page-about__game-item.page-about__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-item-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #017439;
  font-weight: 700;
}

.page-about__game-item-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-item-title a:hover {
  color: #005f2f;
  text-decoration: underline;
}

/* Experience Section */
.page-about__experience-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__experience-section .page-about__section-title,
.page-about__experience-section .page-about__section-description {
  color: #ffffff;
}

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

.page-about__experience-item.page-about__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-about__experience-item-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 700;
}

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

.page-about__support-item.page-about__card {
  text-align: center;
}

.page-about__support-item-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #017439;
  font-weight: 700;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Responsibility Section */
.page-about__responsibility-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__responsibility-section .page-about__section-title,
.page-about__responsibility-section .page-about__section-description {
  color: #ffffff;
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__responsibility-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-about__responsibility-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 700;
}

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

.page-about__future-item.page-about__card {
  text-align: center;
}

.page-about__future-item-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #017439;
  font-weight: 700;
}

/* Final CTA Section */
.page-about__cta-final-section {
  background-color: #017439;
  color: #ffffff;
  padding-bottom: 80px;
}

.page-about__cta-final-section .page-about__section-title,
.page-about__cta-final-section .page-about__section-description {
  color: #ffffff;
}

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

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

/* Image specific styles - ensure no small icons */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__section-description {
    font-size: 17px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Images responsiveness for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure image blocks within sections also adapt */
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsiveness for mobile */
  .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;
    padding-right: 15px;
    margin-top: 10px; /* Adjust spacing for stacked buttons */
  }

  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__security-grid,
  .page-about__game-grid,
  .page-about__experience-grid,
  .page-about__support-grid,
  .page-about__responsibility-list,
  .page-about__future-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__content-wrapper {
    gap: 20px;
  }
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-about__intro-section .page-about__image-block img,
.page-about__security-section .page-about__image-block img,
.page-about__games-section .page-about__image-block img,
.page-about__experience-section .page-about__image-block img,
.page-about__support-section .page-about__image-block img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific color contrast for buttons: */
/* Register/Login: background #C30808 (Red), text #FFFF00 (Yellow) -> Fails contrast (4.14:1) */
/* OVERRIDE to #FFFFFF (White) text for #C30808 background (6.13:1) -> PASS */
.page-about__btn-register,
.page-about__btn-login {
  color: #FFFFFF; /* WCAG AA compliant text color on #C30808 background */
}

/* Dark background sections */
.page-about__dark-bg {
  background-color: #017439;
  color: #ffffff;
}
.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg .page-about__card h3,
.page-about__dark-bg .page-about__card p {
  color: #ffffff;
}

/* Light background sections */
.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__section-description,
.page-about__light-bg .page-about__card h3,
.page-about__light-bg .page-about__card p {
  color: #333333;
}
.page-about__light-bg .page-about__game-item-title a {
  color: #017439; /* Link color for light background */
}
.page-about__light-bg .page-about__game-item-title a:hover {
  color: #005f2f;
}