/* style/about.css */

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

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

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

.page-about__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__link:hover {
  color: var(--glow-color, #57E38D);
}

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

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

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.1;
}

/* CTA Button */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Section Styling */
.page-about__dark-section {
  background-color: var(--card-bg-color, #11271B);
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__description,
.page-about__dark-section .page-about__text-block {
  color: var(--text-main-color, #F2FFF6);
}

/* Vision & Mission Section */
.page-about__vision-mission-section .page-about__container {
  max-width: 900px;
  padding: 60px 20px;
}

.page-about__vision-mission-section .page-about__text-block {
  text-align: center;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-about__why-choose-us-section .page-about__description-text {
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__feature-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

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

/* History Section */
.page-about__history-section {
  padding: 60px 0;
}

.page-about__history-timeline {
  position: relative;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gold-color, #F2C14E);
  border: 2px solid var(--deep-green-color, #0A4B2C);
  top: 28px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -6px;
  transform: translateX(50%);
}

.page-about__timeline-item:nth-child(even)::before {
  left: -6px;
  transform: translateX(-50%);
}

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

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-about__responsible-gaming-section .page-about__container {
  max-width: 900px;
}

.page-about__responsible-gaming-section .page-about__text-block {
  text-align: center;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg-color, #11271B);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-about__container {
    padding: 20px 15px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Constrain max-width for better look on smaller screens */
    padding: 12px 20px;
    font-size: 1rem;
    margin: 0 auto;
    display: block;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__history-timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 20px;
    text-align: left;
  }

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

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

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

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

  .page-about__cta-section {
    padding: 60px 0;
  }

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

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

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__vision-mission-section,
  .page-about__why-choose-us-section,
  .page-about__history-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-section,
  .page-about__faq-section,
  .page-about__features-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .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;
  }
}

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Apply custom colors */
.page-about__btn-primary {
  background: var(--button-gradient);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly altered hover for gradient effect */
}

.page-about__card,
.page-about__faq-item {
  background-color: var(--card-bg-color);
  border-color: var(--border-color);
}

.page-about__dark-section {
  background-color: var(--card-bg-color);
}

.page-about {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-about__section-title {
  color: var(--text-main-color);
}

.page-about__description,
.page-about__text-block,
.page-about__feature-text,
.page-about__timeline-description,
.page-about__faq-answer {
  color: var(--text-secondary-color);
}

.page-about__link {
  color: var(--gold-color);
}

.page-about__link:hover {
  color: var(--glow-color);
}

.page-about__feature-title,
.page-about__main-title,
.page-about__timeline-year {
  color: var(--gold-color);
}

.page-about__faq-question {
  color: var(--text-main-color);
}

.page-about__faq-toggle {
  color: var(--gold-color);
}

.page-about__history-timeline::before {
  background-color: var(--divider-color);
}

.page-about__timeline-item::before {
  background-color: var(--gold-color);
  border-color: var(--deep-green-color);
}