/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
}

.page-about__hero-image-wrap {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-about__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  margin: -100px auto 0;
  position: relative;
  z-index: 1;
  background: rgba(17, 17, 17, 0.8); /* Card B G with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__intro-text {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-about__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast */
  border: 2px solid transparent;
}

.page-about__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn--secondary {
  background: #111111; /* Card B G */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color border */
}

.page-about__btn--secondary:hover {
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text for contrast */
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__section {
  padding: 60px 0;
  border-top: 1px solid #3A2A12; /* Border */
}

.page-about__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Auxiliary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #F2C14E; /* Main color */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.05em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__image-and-text:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__image-wrap {
  flex: 1;
  min-width: 300px;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__value-list,
.page-about__gaming-guidelines {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__list-item {
  background: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #FFF6D6; /* Text Main */
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__list-item strong {
  color: #F2C14E; /* Main color */
}

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

.page-about__feature-card {
  background: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #3A2A12; /* Border */
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
}

.page-about__responsible-gaming-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-about__responsible-gaming-content .page-about__image-wrap {
  flex: 1;
  min-width: 300px;
}

.page-about__responsible-gaming-content .page-about__gaming-guidelines {
  flex: 1;
}

.page-about__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #0A0A0A; /* Ensure full width dark background */
}

.page-about__cta-bottom .page-about__container {
  background: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------- */
/* Mobile Responsive Styles (max-width: 768px) */
/* -------------------------------------- */
@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
  }

  /* 1. Top section (Hero) padding/spacing/stacking */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
  }

  .page-about__hero-content {
    padding: 20px;
    margin-top: -60px; /* Adjust overlap for mobile */
  }

  .page-about__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text container (sections, cards) */
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-about__text-block,
  .page-about__list-item,
  .page-about__card-text {
    font-size: 0.95em;
  }

  .page-about__image-and-text {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .page-about__image-and-text:nth-child(even) {
    flex-direction: column;
  }

  .page-about__image-wrap {
    width: 100%;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .page-about__cta-bottom .page-about__container {
    padding: 30px 15px;
  }

  /* 3. General images and figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers that might hold images or cause overflow */
  .page-about__section,
  .page-about__feature-card,
  .page-about__hero-image-wrap,
  .page-about__image-and-text,
  .page-about__responsible-gaming-content,
  .page-about__cta-bottom .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. Buttons and button containers (already covered above in hero section) */
  /* Ensuring button containers also have proper padding/width */
  .page-about__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* 5. Registration tutorial and FAQ blocks (N/A for this page, but structure required) */
  /* If there were specific FAQ items, they would be styled here. */
  /* Example placeholder for FAQ, if it were present: */
  /* .page-about__faq-item { margin-bottom: 15px; } */
  /* .page-about__faq-question { padding: 15px; font-size: 1em; } */
  /* .page-about__faq-answer { padding: 10px 15px; font-size: 0.9em; } */
}

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

  .page-about__hero-content {
    margin-top: -80px;
  }

  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__image-and-text {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__image-and-text:nth-child(even) {
    flex-direction: column;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }
}