/* style/about.css */

/* Base styles for page-about, assuming dark body background from shared.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default light text color */
  background-color: var(--bg-color, #08160F);
  line-height: 1.6;
}

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

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__sub-title--light {
  color: var(--text-main, #F2FFF6);
}

.page-about__description-text {
  font-size: 18px;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-about__description-text--light {
  color: var(--text-secondary, #A7D9B8);
}

.page-about p {
  margin-bottom: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__text-light {
  color: var(--text-secondary, #A7D9B8);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color, #08160F);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 50px;
}

.page-about__main-title {
  font-size: clamp(36px, 6vw, 56px);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-about__btn-text {
  color: var(--gold, #F2C14E);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-about__btn-text:hover {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-about__btn-text--light {
  color: var(--gold, #F2C14E);
}

/* Video Section */
.page-about__video-section {
  position: relative;
  width: 100%;
  padding: 10px 0; /* Small top padding, body handles header offset */
  background-color: var(--bg-color, #08160F);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__video-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Mission & Vision / Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* History Timeline */
.page-about__dark-section {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

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

.page-about__timeline-item {
  background-color: var(--deep-green, #0A4B2C);
  padding: 30px;
  border-radius: 10px;
  border-left: 5px solid var(--gold, #F2C14E);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__timeline-event {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__feature-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-card p {
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
}

.page-about__feature-card .page-about__image-responsive {
  margin-top: 20px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsible Gaming */
.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-about__responsible-gaming-text {
  flex: 2;
}

.page-about__responsible-gaming-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
  background-color: var(--main-color, #11A84E);
}

.page-about__faq-item summary::-webkit-details-marker, /* Hide marker for Webkit */
.page-about__faq-item summary::marker {
  display: none;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-left: 15px;
  width: 24px;
  text-align: center;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
}

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

/* CTA Section at bottom */
.page-about__cta-section {
  text-align: center;
  background-color: var(--card-bg, #11271B);
  padding: 80px 0;
}

.page-about__cta-content {
  max-width: 800px;
}

.page-about__cta-content .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-content .page-about__description-text {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }

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

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__responsible-gaming-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__container,
  .page-about__video-container {
    padding: 0 15px !important;
  }

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

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

  .page-about__main-title {
    font-size: 30px;
  }

  .page-about__hero-description {
    font-size: 16px;
  }

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

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

  /* Image responsive enforcement */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-section,
  .page-about__feature-card,
  .page-about__timeline-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

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

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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