/* style/about.css */

/* Base Styles & Typography */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default light background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description,
.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

.page-about__paragraph {
  text-align: left;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
  overflow: hidden;
}

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-about__intro-text {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

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

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

.page-about__hero-section > .page-about__container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

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

/* Mission Vision Section */
.page-about__mission-vision {
  padding: 60px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-about__card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
}

.page-about__value-list li {
  margin-bottom: 10px;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__value-item {
  color: #333333;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 60px 20px;
  background: #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__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.page-about__feature-card:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-about__feature-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 60px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  font-size: 1.1em;
  color: #555555;
}

.page-about__list li::before {
  content: '•';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
}

.page-about__list-item-strong {
  color: #333333;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Team & CTA Section */
.page-about__team-cta {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a7bbd, #26A9E0);
  color: #FFFFFF;
  text-align: center;
}

.page-about__team-cta .page-about__section-title {
  color: #FFFFFF;
}

.page-about__team-cta .page-about__section-description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  color: #333333;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  background: #FFFFFF;
  transition: background 0.3s ease;
}

.page-about__faq-question:hover {
  background: #f0f0f0;
}

.page-about__faq-title {
  margin: 0;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  text-align: left;
}

/* Image sizing for content area - ensure min 200px */
.page-about img:not(.page-about__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

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

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__grid-3,
  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-about__card,
  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__text-block,
  .page-about__image-wrapper {
    min-width: unset;
    max-width: 100%;
  }

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

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

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

  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__text-block,
  .page-about__card,
  .page-about__feature-card,
  .page-about__faq-item,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__image-centered,
  .page-about__image-responsive {
    margin-left: auto;
    margin-right: auto;
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

}