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

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

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-about-text-main);
  line-height: 1.2;
}

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

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--page-about-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--page-about-text-main);
}

/* Color classes for contrast */
.page-about__dark-bg {
  background-color: var(--page-about-background);
  color: var(--page-about-text-main);
}

.page-about__light-bg {
  background-color: #f0f0f0; /* Using a lighter grey for contrast with dark text */
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__text-main {
  color: #333333;
}

.page-about__light-bg .page-about__text-secondary {
  color: #555555;
}

.page-about__card-bg {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__text-secondary {
  color: var(--page-about-text-secondary);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 20px 80px; /* Small top padding, more bottom padding for content */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size for H1 */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-primary-color);
}

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

.page-about__btn-link {
  background-color: transparent;
  color: var(--page-about-secondary-color);
  border: none;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-about__btn-link:hover {
  color: var(--page-about-gold-color);
}

/* Content Grid Layouts */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text layout */
}

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

.page-about__image-left,
.page-about__image-right,
.page-about__image-center {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-about__image-center {
  margin: 40px auto;
  max-width: 80%;
}

/* Sections */
.page-about__introduction-section,
.page-about__mission-vision-section,
.page-about__values-section,
.page-about__products-section,
.page-about__security-section,
.page-about__responsible-gambling-section,
.page-about__promotions-section,
.page-about__support-section,
.page-about__history-section,
.page-about__why-choose-section,
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__value-card {
  text-align: center;
}

.page-about__value-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-about__product-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__product-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__product-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* CTA Bottom */
.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  list-style: none; /* Remove default marker */
  outline: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-about__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open, handled by JS */
}

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

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

.page-about__faq-answer a {
  color: var(--page-about-secondary-color);
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: var(--page-about-gold-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__hero-content {
    padding: 20px 0;
  }

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

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

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid:nth-child(even) {
    flex-direction: column; /* Ensure consistent stacking on smaller screens */
  }

  .page-about__image-left,
  .page-about__image-right {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    min-height: 450px;
    padding: 10px 15px 60px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
    margin-bottom: 25px;
  }

  .page-about__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .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__hero-cta-group,
  .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__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__security-section,
  .page-about__responsible-gambling-section,
  .page-about__promotions-section,
  .page-about__support-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__content-grid {
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-about__image-left,
  .page-about__image-right,
  .page-about__image-center,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__values-grid,
  .page-about__products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card-bg {
    padding: 20px;
  }

  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

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

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

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