/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--dark-bg) */
}

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

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

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  text-align: center;
}

.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;
  color: #ffffff;
}

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

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

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

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

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

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

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-about__introduction .page-about__text-block {
  color: #333333;
}

.page-about__introduction .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-about__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333333;
}

.page-about__list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__list-highlight {
  color: #26A9E0;
}

/* History Section */
.page-about__history .page-about__section-title,
.page-about__history .page-about__text-block {
  color: #ffffff;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 50px 0;
}

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

.page-about__timeline-item {
  width: 50%;
  padding: 20px;
  position: relative;
  text-align: right;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(even) {
  text-align: left;
  margin-left: 50%;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #EA7C07;
  border-radius: 50%;
  border: 2px solid #ffffff;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -8px;
}

.page-about__timeline-item:nth-child(even)::before {
  left: -8px;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: 700;
  color: #EA7C07;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__section-title,
.page-about__why-choose-us .page-about__text-block {
  color: #333333;
}

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

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

.page-about__feature-card .page-about__card-title {
  color: #26A9E0;
  text-align: center;
  margin-bottom: 15px;
}

.page-about__feature-card .page-about__card-text {
  text-align: center;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Pushes image to bottom if content varies */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__text-block {
  color: #ffffff;
}

/* Future Outlook Section */
.page-about__future-outlook .page-about__section-title,
.page-about__future-outlook .page-about__text-block {
  color: #333333;
}

/* Contact Section */
.page-about__contact .page-about__section-title,
.page-about__contact .page-about__text-block {
  color: #ffffff;
}

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

.page-about__contact-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__contact-card .page-about__card-title {
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__contact-card .page-about__card-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__small-button {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #26A9E0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  color: #333333;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #eef7fc;
  border-bottom-color: #26A9E0;
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 20px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }
  .page-about__timeline::before {
    left: 20px;
    transform: translateX(0);
  }
  .page-about__timeline-item {
    width: 100%;
    text-align: left;
    padding-left: 50px;
    margin-left: 0;
  }
  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 14px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__hero-section {
    padding: 10px 15px 40px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-about__mission-vision-values,
  .page-about__features-grid,
  .page-about__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card,
  .page-about__feature-card,
  .page-about__contact-card {
    padding: 25px;
  }
  .page-about__text-block {
    font-size: 1em;
  }

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

  /* Mobile video responsiveness (if any, though not used here) */
  .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: 10px !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .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;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }

  /* General content area padding for mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-about__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }
  .page-about__timeline-year {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
}