/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming body background is light */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding, this is decorative */
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 100%;
}

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

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

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

.page-about__btn-primary {
  background-color: var(--button-login); /* Use specific login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--button-login), 10%);
  border-color: darken(var(--button-login), 10%);
}

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

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

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

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

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

.page-about__subsection-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-about__introduction .page-about__text-block {
  text-align: justify;
}

.page-about__vision-mission {
  background-color: var(--secondary-color);
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__why-choose-us {
  background-color: #f8f8f8;
}

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

.page-about__feature-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-dark);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-about__card-description {
  font-size: 1em;
}

.page-about__responsible-gaming {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__text-block {
  color: var(--text-light);
}

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

.page-about__responsible-gaming .page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-about__faq-section {
  background-color: var(--secondary-color);
}

.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.5;
  background-color: #fdfdfd;
  color: var(--text-dark);
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-about__cta-bottom .page-about__section-title,
.page-about__cta-bottom .page-about__text-block {
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__subsection-title {
    font-size: 1.4em;
  }

  .page-about__text-block {
    font-size: 1em;
  }

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

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

  .page-about__section,
  .page-about__container,
  .page-about__feature-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image,
  .page-about__image-full-width,
  .page-about__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Ensure they fill space without overflow */
    height: auto !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}