/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

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

.page-about__section-title {
  font-size: 36px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-about__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description--light {
  color: #f0f0f0;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  background-color: #F4F7FB;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-about__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 40px 20px 60px;
}

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

.page-about__tagline {
  font-size: 1.25rem;
  color: #1F2D3D;
  margin-bottom: 40px;
}

/* Mission Vision Section */
.page-about__mission-vision-section {
  background-color: #F4F7FB;
}

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

.page-about__card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 24px;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.page-about__value-item-title {
  color: #000000; /* Custom Color_1776249996415 */
}

/* History Section */
.page-about__history-section {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #6FA3FF; /* Secondary color */
  transform: translateX(-50%);
}

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #6FA3FF; /* Secondary color */
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  width: 45%;
  text-align: right;
  padding-right: 30px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
  text-align: left;
  padding-left: 30px;
  padding-right: 0;
}

.page-about__timeline-description {
  width: 45%;
  font-size: 16px;
  color: #f0f0f0;
  padding-left: 30px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-description {
  padding-right: 30px;
  padding-left: 0;
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #F4F7FB;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__feature-item {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 22px;
  color: #2F6BFF;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #F4F7FB;
}

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

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

.page-about__text-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #1F2D3D;
}

.page-about__image-content {
  flex: 1;
  text-align: center;
}

.page-about__responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

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

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

.page-about__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #1F2D3D;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #2F6BFF;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #2F6BFF;
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #1F2D3D;
}

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

/* CTA Section */
.page-about__cta-section {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-about__cta-content {
  text-align: center;
}

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

/* General image and button responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Mobile main image uses contain, not cover */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-about__hero-content {
    padding: 30px 15px 40px;
  }

  .page-about__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-about__tagline {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Mission Vision Section */
  .page-about__grid-3-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  /* History Section */
  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    flex-direction: column !important;
    margin-bottom: 40px;
    align-items: flex-start;
  }

  .page-about__timeline-item::before {
    left: 15px;
    transform: translateX(-50%);
    top: 0;
  }

  .page-about__timeline-year,
  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
    width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
    margin-bottom: 10px;
    font-size: 24px;
  }

  .page-about__timeline-description,
  .page-about__timeline-item:nth-child(odd) .page-about__timeline-description {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
    font-size: 15px;
  }

  /* Why Choose Section */
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Responsible Gaming Section */
  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__responsive-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-about__faq-item {
    margin-bottom: 10px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All images and containers must be responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* @media (max-width: 1024px) for tablet, if needed. For now, 768px covers most mobile. */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 0 30px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__grid-3-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__timeline-year {
    font-size: 26px;
  }
  .page-about__timeline-description {
    font-size: 15px;
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}