/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding to account for header offset */
  text-align: center;
  color: #ffffff;
  background-color: #0A2463; /* Main brand color */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

/* General Section Styles */
.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__responsible-gambling-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__mission-values-section,
.page-about__video-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-about__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: inherit;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-subtitle,
.page-about__dark-bg .page-about__text-block p {
  color: #ffffff;
}

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

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__image-block {
  text-align: center;
}

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

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

.page-about__value-card .page-about__card-title {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-about__value-card p,
.page-about__value-card li {
  color: #ffffff;
  font-size: 1em;
  margin-bottom: 10px;
}

.page-about__value-card ul {
  list-style: disc;
  margin-left: 20px;
}

/* Features Grid */
.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-about__feature-card .page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-about__feature-card .page-about__card-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: #555555;
  font-size: 0.95em;
  line-height: 1.7;
}

/* Video Section */
.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-about__video-cta-text {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1em;
  color: #ffffff;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__btn-tertiary {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 25px;
  background-color: transparent;
  color: #0A2463;
  border: 2px solid #0A2463;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.page-about__btn-tertiary:hover {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  line-height: 1.7;
}

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

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

/* Call to Action Section */
.page-about__cta-button {
  width: fit-content;
  margin: 40px auto 0;
}

/* 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;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__mission-values-section,
  .page-about__why-choose-us-section,
  .page-about__video-section,
  .page-about__responsible-gambling-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    width: 90%; /* Adjust width for mobile buttons */
    max-width: 300px; /* Max width for consistency */
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-about__value-card .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__feature-card .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile responsive for images, videos, buttons - ENSURE NO HORIZONTAL SCROLL */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section starts below header */
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure hero section starts below header */
  }
  .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-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}