/* style/about.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  background-color: var(--card-bg-color);
  margin-top: -80px; /* Overlap slightly with image for visual effect */
  position: relative;
  z-index: 10;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__hero-description {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.page-about__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.page-about__btn-inline {
  margin-top: 20px;
}

.page-about__cta-buttons--center {
  margin-top: 40px;
}

/* Mission and Values Sections */
.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-about__text-block {
  flex: 1;
}

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-about__dark-section .page-about__section-description {
  color: #f0f0f0;
}

.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: var(--card-bg-color);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
}

.page-about__value-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-about__game-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

.page-about__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
  padding: 0 15px;
}

.page-about__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-card p {
  font-size: 15px;
  color: var(--text-main-color);
  padding: 0 15px 20px;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__commitment-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5A4F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #ffffff;
}

.page-about__join-us-content {
  text-align: center;
  max-width: 800px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 0 30px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-about__section-title {
    font-size: 30px;
  }

  .page-about__section-description {
    font-size: 16px;
  }

  .page-about__values-grid, .page-about__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Hero Title + CTA) */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
  .page-about__hero-image-wrapper {
    max-height: 300px !important;
  }
  .page-about__hero-content {
    margin-top: -40px !important;
    padding: 25px 15px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    max-width: calc(100% - 30px) !important;
  }
  .page-about__hero-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
  .page-about__hero-description {
    font-size: 15px !important;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px !important;
  }
  .page-about__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 !important;
    padding-right: 15px !important;
  }
  .page-about__btn-inline {
    margin-top: 15px !important;
  }
  .page-about__cta-buttons--center {
    margin-top: 30px !important;
    padding: 0 15px !important;
  }

  /* 2. Single Column Long Text Container */
  .page-about__section-padding {
    padding: 40px 0 !important;
  }
  .page-about__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__content-flex {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .page-about__content-flex--reverse {
    flex-direction: column !important; /* Keep consistent with normal */
  }
  .page-about__text-block p {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  .page-about__section-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
  }
  .page-about__section-description {
    font-size: 15px !important;
    margin-bottom: 30px !important;
  }

  /* 3. General Images and Figures */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block {
    width: 100% !important;
  }
  .page-about__image-responsive {
    width: 100% !important;
  }
  .page-about__game-card img {
     /* Adjust fixed height for mobile */
  }

  /* 4. Buttons and Button Containers (already covered in top section, but ensure general application) */
  .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 !important;
    padding-right: 15px !important;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
  }

  /* 5. Registration Tutorial and FAQ Blocks (Value cards and game cards are similar structural elements) */
  .page-about__values-grid, .page-about__games-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-about__value-card, .page-about__game-card {
    padding: 20px !important;
  }
  .page-about__value-title {
    font-size: 20px !important;
  }
  .page-about__game-title {
    font-size: 18px !important;
  }
  .page-about__commitment-list li {
    font-size: 15px !important;
    background-size: 18px !important;
    padding-left: 25px !important;
  }
}