/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-about__dark-section {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333;
  padding: 60px 0;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  min-height: 600px;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

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

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

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

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
}

.page-about__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  color: inherit;
}

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

.page-about__image--center {
  margin: 40px auto;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #26A9E0;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.page-about__timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #26A9E0;
  border: 2px solid #ffffff;
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -30px;
  background: #ffffff;
  padding: 0 10px;
  z-index: 1;
}

.page-about__timeline-item p {
  width: calc(50% - 40px);
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1em;
  color: #333333;
}

.page-about__timeline-item:nth-child(odd) p {
  text-align: right;
}

.page-about__responsible-gaming-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-about__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-about__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 10px;
  padding: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__text-block, .page-about__image {
    flex: none;
    width: 100%;
  }
  .page-about__timeline::before {
    left: 20px;
    transform: translateX(0);
  }
  .page-about__timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
  }
  .page-about__timeline-item::before {
    left: 0;
    transform: translateX(0);
    top: 0;
  }
  .page-about__timeline-year {
    position: static;
    transform: none;
    text-align: left;
    margin-bottom: 10px;
    background: none;
    padding: 0;
    color: #333333;
  }
  .page-about__timeline-item p {
    width: calc(100% - 20px);
    margin-left: 20px;
    text-align: left;
  }
}

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

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

  .page-about__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness for all images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container responsiveness */
  .page-about__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content sections and cards responsiveness */
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__history-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  
  .page-about__feature-card,
  .page-about__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__text-block p {
    font-size: 0.95em;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
}