/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000; /* Ensure this matches shared.css body background for contrast */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Gold accent for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: #007bff; /* Blue accent for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffc107; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-about__hero-button:hover {
  background-color: #0056b3;
  border-color: #ffc107;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: #000;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #f0f0f0; /* Light text for cards */
}

.page-about__card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 123, 255, 0.2); /* Hover effect with primary color */
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

.page-about__card-title {
  font-size: 1.5em;
  color: #ffc107; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Mission and Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #000;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__content-text {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  text-align: center;
}

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

/* Commitments Section */
.page-about__commitments-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-about__commitment-card {
  background-color: rgba(0, 123, 255, 0.15); /* Primary color tint for commitment cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-about__commitment-title {
  font-size: 1.6em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__commitment-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #000;
}

.page-about__team-image-wrapper {
  text-align: center;
  margin: 40px 0;
}

/* Partners and Tech Section */
.page-about__partners-tech-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-about__tech-image-wrapper {
  text-align: center;
  margin: 40px 0;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  padding: 80px 0;
  background-color: #000;
}

.page-about__responsible-image-wrapper {
  text-align: center;
  margin: 40px 0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #007bff; /* Primary color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #0056b3;
}

.page-about__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffc107; /* Gold accent for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
  content: '−'; /* Change to minus sign */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-about__faq-answer p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1em;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary brand color for CTA */
  text-align: center;
  color: #ffffff;
}

.page-about__cta-title {
  font-size: 2.5em;
  color: #ffc107;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Gold for CTA button */
  color: #000000; /* Black text for contrast */
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-about__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-about__subsection-title {
    font-size: 1.5em;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__grid-layout, .page-about__commitment-cards {
    grid-template-columns: 1fr;
  }
  .page-about__card, .page-about__commitment-card {
    padding: 25px;
  }
  .page-about__card-title, .page-about__commitment-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }

  /* Mobile responsive for images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__advantages-section,
  .page-about__mission-vision-section,
  .page-about__commitments-section,
  .page-about__team-section,
  .page-about__partners-tech-section,
  .page-about__responsible-gambling-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__container,
  .page-about__card,
  .page-about__commitment-card,
  .page-about__faq-item,
  .page-about__faq-answer,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-about__hero-button,
  .page-about__cta-button,
  .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__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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}