/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #F8F8F8;
  --button-login: #EA7C07;
}

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

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

.page-about__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: var(--text-light);
}

.page-about__paragraph {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

.page-about__link-inline {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__link-inline:hover {
  opacity: 0.8;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-about__hero-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-about__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

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

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

.page-about__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-about__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

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

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Mission Section */
.page-about__mission-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__mission-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__content-text {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-about__content-image {
  flex: 1 1 35%;
  min-width: 250px;
  text-align: center;
}

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

/* Why Us Section */
.page-about__why-us-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__why-us-section .page-about__container {
  text-align: center;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__feature-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__feature-title--light {
  color: var(--text-light);
}

.page-about__feature-description {
  font-size: 15px;
  color: var(--text-dark);
}

.page-about__feature-description--light {
  color: var(--text-light);
}

.page-about__image-small {
    min-width: 200px;
    min-height: 200px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-about__responsible-gaming-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

/* Contact Section */
.page-about__contact-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

.page-about__contact-section .page-about__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

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

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Specific override for mobile */
  }

  .page-about__hero-section .page-about__container,
  .page-about__mission-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container {
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-about__hero-content,
  .page-about__hero-image,
  .page-about__content-text,
  .page-about__content-image {
    flex: 1 1 100%;
    min-width: unset;
    text-align: center;
  }

  .page-about__hero-title {
    font-size: 32px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

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

  .page-about__feature-item {
    padding: 20px;
  }

  /* Ensure all images are responsive on mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All sections/containers */
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-us-section,
  .page-about__responsible-gaming-section,
  .page-about__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}