/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #333333);
  background-color: var(--background-color, #F5F7FA);
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  overflow: hidden;
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  margin-bottom: 20px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15rem;
  color: var(--text-main-color, #333333);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-about__btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-top: 20px;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color, #FF5A4F);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-about__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
  color: var(--text-main-color, #333333);
}

.page-about__introduction-section,
.page-about__games-services-section,
.page-about__support-section,
.page-about__why-choose-section {
  padding: 60px 0;
}

.page-about__dark-section {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__value-title,
.page-about__dark-section .page-about__value-description,
.page-about__dark-section .page-about__value-list li {
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
  background: #ffffff;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-about__value-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__value-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__value-description {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-about__value-list li {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.page-about__value-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary-color, #FF5A4F);
  font-weight: bold;
}

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

.page-about__game-card {
  background: var(--card-bg-color, #FFFFFF);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-about__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-about__game-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.page-about__game-card h3 a {
  color: var(--primary-color, #E53935);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-card h3 a:hover {
  color: var(--secondary-color, #FF5A4F);
}

.page-about__game-description {
  font-size: 0.95rem;
  color: var(--text-main-color, #333333);
  padding: 0 20px 20px;
  line-height: 1.6;
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
}

.page-about__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.page-about__security-text {
  flex: 1;
  max-width: 50%;
}

.page-about__security-text .page-about__text-block {
  color: #ffffff;
  text-align: left;
}

.page-about__security-text .page-about__btn-secondary {
  margin-top: 20px;
  border-color: #ffffff;
  color: #ffffff;
}

.page-about__security-text .page-about__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color, #E53935);
}

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

.page-about__support-item {
  background: var(--card-bg-color, #FFFFFF);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-about__support-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
}

.page-about__support-description {
  font-size: 1rem;
  color: var(--text-main-color, #333333);
  line-height: 1.6;
}

.page-about__support-cta {
  margin-top: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-about__responsible-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.page-about__responsible-text {
  flex: 1;
  max-width: 50%;
}

.page-about__responsible-text .page-about__text-block {
  color: #ffffff;
  text-align: left;
}

.page-about__responsible-text .page-about__btn-primary {
  margin-top: 20px;
}

/* Why Choose Section */
.page-about__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-about__advantages-list li {
  background: var(--card-bg-color, #FFFFFF);
  border-left: 5px solid var(--primary-color, #E53935);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  color: var(--text-main-color, #333333);
  line-height: 1.6;
}

.page-about__advantages-list li strong {
  color: var(--primary-color, #E53935);
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-section .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ffffff;
}

/* Universal image and button styling for mobile */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__hero-section,
.page-about__introduction-section,
.page-about__mission-section,
.page-about__games-services-section,
.page-about__security-section,
.page-about__support-section,
.page-about__responsible-gaming-section,
.page-about__why-choose-section,
.page-about__cta-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }

  .page-about__security-content,
  .page-about__responsible-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__security-image,
  .page-about__security-text,
  .page-about__responsible-image,
  .page-about__responsible-text {
    max-width: 100%;
  }

  .page-about__security-image,
  .page-about__responsible-image {
    margin-bottom: 30px;
  }

  .page-about__security-text .page-about__btn-secondary,
  .page-about__responsible-text .page-about__btn-primary {
    width: 100%;
    max-width: 300px; /* Constrain button width on tablet */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-about__hero-image {
    max-height: 300px;
    margin-bottom: 15px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__hero-buttons,
  .page-about__support-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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;
  }

  .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;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 15px;
  }

  .page-about__introduction-section,
  .page-about__mission-section,
  .page-about__games-services-section,
  .page-about__security-section,
  .page-about__support-section,
  .page-about__responsible-gaming-section,
  .page-about__why-choose-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__text-block {
    font-size: 0.95rem;
    text-align: left;
  }

  .page-about__values-grid,
  .page-about__game-grid,
  .page-about__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__game-card,
  .page-about__support-item,
  .page-about__advantages-list li {
    padding: 25px;
  }

  .page-about__security-content,
  .page-about__responsible-content {
    gap: 20px;
    flex-direction: column;
  }

  .page-about__security-image,
  .page-about__responsible-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  .page-about__security-text,
  .page-about__responsible-text {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-about__security-text .page-about__btn-secondary,
  .page-about__responsible-text .page-about__btn-primary {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-about__advantages-list {
    gap: 15px;
  }

  .page-about__advantages-list li {
    font-size: 0.95rem;
  }

  .page-about__container {
    padding: 0 15px;
  }
}