/* style/about.css */

/* Base styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-about__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-about__main-title {
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -1px;
  /* Using clamp for responsive font size without fixed large values */
  font-size: clamp(2.5em, 5vw, 3.5em);
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
}

.page-about__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  text-decoration: underline;
  padding: 0;
  font-size: 1em;
  font-weight: normal;
}

.page-about__btn-link:hover {
  color: #1a8cc4;
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.page-about__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose-us .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  color: #333333;
}

.page-about__card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #555555;
}

.page-about__cta-buttons--center {
  margin-top: 50px;
}

/* Core Values Section */
.page-about__core-values {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__value-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__value-icon {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__value-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-text {
  font-size: 1em;
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__responsible-gaming .page-about__section-title {
  color: #ffffff;
}

.page-about__responsible-gaming .page-about__section-description {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  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: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2f7;
  border-bottom: 1px solid #d0e8ef;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #fefefe;
}

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

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__cta-bottom .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-bottom .page-about__section-description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-about__intro-text {
    font-size: 1.1em;
  }

  .page-about__feature-title,
  .page-about__card-title,
  .page-about__value-title {
    font-size: 1.5em;
  }
}

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

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

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

  .page-about__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }

  .page-about__section-description {
    font-size: 1em !important;
    margin-bottom: 25px !important;
  }

  .page-about__hero-section {
    padding: 10px 0 40px 0 !important; /* Small top padding, larger bottom padding */
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

  .page-about__intro-text {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding to prevent overflow */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__feature-image,
  .page-about__value-icon,
  .page-about__feature-item,
  .page-about__feature-card,
  .page-about__value-item,
  .page-about__faq-item,
  .page-about__hero-content,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__feature-title,
  .page-about__card-title,
  .page-about__value-title {
    font-size: 1.3em !important;
  }

  .page-about__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-about__faq-answer {
    padding: 10px 20px 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6em !important;
  }

  .page-about__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em) !important;
  }
}