/* style/about.css */

/* General page styles */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-about__link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.5em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* Buttons */
.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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1a7bbd;
  border-color: #1a7bbd;
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Content Sections */
.page-about__content-section {
  padding: 60px 0;
}

.page-about__content-section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-about__value-list,
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__value-item,
.page-about__game-item {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333333;
}

.page-about__value-item strong,
.page-about__game-item strong {
  color: #26A9E0;
}

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

.page-about__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

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

/* CTA Section */
.page-about__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-about__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-buttons .page-about__btn-primary {
  background-color: #EA7C07; /* Custom color for login/register */
  border-color: #EA7C07;
}

.page-about__cta-buttons .page-about__btn-primary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

.page-about__cta-buttons .page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-about__cta-buttons .page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #26A9E0;
  border-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__subsection-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__subsection-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__value-item, .page-about__game-item {
    padding: 15px;
    font-size: 1em;
  }
  .page-about__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    height: 400px;
  }
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
}