/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom scheme */
  background-color: var(--background, #08160F); /* Default background color from custom scheme */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly */
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.9); /* Card BG with opacity */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  color: #ffffff;
  border-color: var(--glow, #57E38D);
}

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--glow, #57E38D);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* Mission and Vision */
.page-about__mission-vision .page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Core Values */
.page-about__core-values .page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-about__value-item {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--glow, #57E38D);
}

.page-about__value-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

/* History Section */
.page-about__history-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-about__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  text-align: center;
}

.page-about__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  padding: 20px 0;
  max-width: 800px;
  width: 100%;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--divider, #1E3A2A);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  background-color: var(--card-bg, #11271B);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: var(--glow, #57E38D);
  border: 3px solid var(--background, #08160F);
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__history-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #F2FFF6);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-about__feature-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
}

/* Responsible Gaming */
.page-about__responsible-gaming .page-about__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-about__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

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

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  list-style: none; /* For details/summary */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

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

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

.page-about__faq-more {
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__link {
  color: var(--glow, #57E38D);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* Bottom CTA */
.page-about__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-about__cta-bottom .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__cta-bottom .page-about__section-title::after {
  background: var(--gold, #F2C14E);
}

.page-about__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-about__timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-about__timeline-item {
    width: calc(50% - 20px);
  }

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

  .page-about__timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(20px);
    text-align: left;
    padding-left: 40px;
  }

  .page-about__timeline-item:nth-child(odd)::before {
    left: auto;
    right: -20px;
    transform: translate(0, -50%);
  }

  .page-about__timeline-item:nth-child(even)::before {
    left: -20px;
    right: auto;
    transform: translate(0, -50%);
  }
}

@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: 2rem;
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-about__mission-vision .page-about__content-grid,
  .page-about__core-values .page-about__values-grid,
  .page-about__why-choose-us .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card-image,
  .page-about__feature-image,
  .page-about__history-image,
  .page-about__responsible-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__value-item,
  .page-about__faq-item,
  .page-about__cta-bottom,
  .page-about__history-content,
  .page-about__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__timeline::before {
    left: 20px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    width: 100%;
    left: 0;
    transform: translateX(0);
    text-align: left;
    padding-left: 40px;
  }

  .page-about__timeline-item::before {
    left: 12px;
    transform: translate(0, -50%);
  }

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

  .page-about__timeline-item:nth-child(even) {
    padding-right: 20px;
  }

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

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

  .page-about__video-section {
    padding-top: 10px !important;
  }
}