/* style/about.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-yellow: #FFFF00;
  --background-white: #FFFFFF;
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #01a850); /* Gradient using primary color */
  color: var(--text-light);
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
  z-index: 2;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--button-text-yellow); /* Using yellow for highlight */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-about__hero-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  color: var(--button-text-yellow);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-register {
  background: var(--button-register-bg);
}

.page-about__btn-register:hover {
  background: #e02020;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
}

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

.page-about__mission-section .page-about__text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-about__mission-section .page-about__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-about__mission-section .page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-about__mission-section .page-about__image-block img,
.page-about__responsible-gaming .page-about__image-block img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-about__why-choose-us {
  background: var(--primary-color);
  color: var(--text-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
  color: var(--button-text-yellow);
}

.page-about__why-choose-us .page-about__section-subtitle {
  color: var(--text-light);
}

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

.page-about__feature-card {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__feature-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
  min-width: 200px;
}

.page-about__feature-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-about__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__cta-group .page-about__cta-button {
  margin-top: 0;
}

.page-about__responsible-gaming .page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap-reverse; /* Image on right, text on left for this section */
}

.page-about__responsible-gaming .page-about__text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-about__responsible-gaming .page-about__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-about__responsible-gaming .page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

/* FAQ Section */
.page-about__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #C30808; /* Red for active state */
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-about__hero-content {
    text-align: center;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-image {
    max-width: 80%;
  }
  .page-about__mission-section .page-about__content-grid,
  .page-about__responsible-gaming .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__mission-section .page-about__text-block,
  .page-about__responsible-gaming .page-about__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__container {
    padding: 60px 15px;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__section-subtitle {
    font-size: 1.1em;
    margin-bottom: 40px;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-card h3 {
    font-size: 1.3em;
  }
  .page-about__feature-card img,
  .page-about__mission-section .page-about__image-block img,
  .page-about__responsible-gaming .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    min-width: 200px !important;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 1.5em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}