/* style/about.css */

/* Body background color is #1a1a2e (dark), so use light text colors */
.page-about {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: #1a1a2e; /* Match body background */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #f0f2f5; /* Light background for contrast */
  color: #333333;
}

.page-about__hero-section {
  position: relative;
  padding: 0; /* Image takes full height */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
}

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

.page-about__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-about__light-bg .page-about__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-about__light-bg .page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section */
}

.page-about__sub-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
  color: inherit;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-about__text-block {
  flex: 1;
  padding: 20px;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image,
.page-about__team-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

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

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-about__feature-icon {
  width: 200px; /* Min size */
  height: 150px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__feature-text {
  font-size: 1rem;
  line-height: 1.6;
}

.page-about__benefits-list,
.page-about__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-about__benefit-item,
.page-about__responsible-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
}

.page-about__light-bg .page-about__benefit-item,
.page-about__light-bg .page-about__responsible-item {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-about__benefit-item::before,
.page-about__responsible-item::before {
  content: '✔';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 30px;
  text-align: center;
}

.page-about__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex:nth-child(even) {
    flex-direction: column;
  }
}

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

  .page-about__hero-section {
    min-height: 400px;
  }

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

  .page-about__subtitle {
    font-size: 1rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-about__heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-about__sub-heading {
    font-size: 1.3rem;
  }

  .page-about__text {
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 0 15px;
  }

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

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

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

  .page-about__feature-icon {
    width: 200px; /* Enforce min width */
    height: 150px; /* Enforce min height */
  }

  .page-about__image,
  .page-about__team-image,
  .page-about__hero-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__image-block,
  .page-about__hero-image-wrapper,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__benefits-list,
  .page-about__responsible-list,
  .page-about__cta-bottom .page-about__container,
  .page-about__who-we-are .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__responsible-gaming .page-about__container,
  .page-about__team .page-about__container,
  .page-about__faq-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__faq-question {
    font-size: 1.05rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
    padding-top: 0;
  }
}