/* style/about.css */

:root {
  --page-about-primary-color: #F2C14E;
  --page-about-secondary-color: #FFD36B;
  --page-about-card-bg: #111111;
  --page-about-background-color: #0A0A0A;
  --page-about-text-main-color: #FFF6D6;
  --page-about-border-color: #3A2A12;
  --page-about-glow-color: #FFD36B;
  --page-about-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-about-text-main-color); /* Light text for dark body background */
  background-color: var(--page-about-background-color);
}

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

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--page-about-primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__section-intro {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__text-block p {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: var(--page-about-text-main-color);
}

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

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

.page-about__link {
  color: var(--page-about-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  background: var(--page-about-background-color);
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about__hero-content {
  z-index: 1;
  position: relative;
}

.page-about__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--page-about-text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background-color: var(--page-about-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Mission Section */
.page-about__mission-section .page-about__container {
  flex-direction: row;
  align-items: center;
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main-color);
}

.page-about__why-choose-section .page-about__section-title {
  color: var(--page-about-primary-color);
}

.page-about__why-choose-section .page-about__section-intro {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: var(--page-about-background-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-about-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--page-about-secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__container {
  flex-direction: row-reverse;
  align-items: center;
}

/* Future Outlook Section */
.page-about__future-outlook-section {
  background-color: var(--page-about-card-bg);
}

.page-about__future-outlook-section .page-about__section-title {
  color: var(--page-about-primary-color);
}

.page-about__future-outlook-section .page-about__section-intro {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--page-about-background-color);
}

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main-color);
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1em;
  color: var(--page-about-text-main-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-about-primary-color);
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #e0e0e0;
  font-size: 1.05em;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__container {
    flex-direction: column;
  }

  .page-about__mission-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container {
    flex-direction: column;
  }

  .page-about__section-title {
    font-size: 2.2em;
  }

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

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__section-intro,
  .page-about__text-block p {
    font-size: 1em;
  }

  .page-about__hero-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-about__hero-description {
    font-size: clamp(1em, 4vw, 1.2em);
  }

  .page-about__hero-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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-about__image-responsive,
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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