/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: transparent; /* inherited from shared.css body background */
}

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

.page-about__dark-bg {
  background-color: #1A1A2E; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #E9C46A; /* Secondary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 600px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-about__hero-title {
  font-size: 3.5em;
  color: #E9C46A;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #E9C46A; /* Secondary brand color */
  color: #1A1A2E; /* Primary brand color for text */
  border: 2px solid #E9C46A;
}

.page-about__btn-primary:hover {
  background-color: #F4A261; /* Slightly different accent color on hover */
  border-color: #F4A261;
}

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

.page-about__btn-secondary:hover {
  background-color: #E9C46A;
  color: #1A1A2E;
}

.page-about__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Vision Section */
.page-about__vision-container {
  text-align: center;
}

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

.page-about__vision-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f0f0f0;
}

.page-about__vision-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-about__vision-subtitle {
  font-size: 1.8em;
  color: #E9C46A;
  margin-bottom: 15px;
}

.page-about__vision-item p {
  font-size: 1em;
  color: #cccccc;
}

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

.page-about__service-card {
  background: #1A1A2E; /* Primary color for service cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

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

.page-about__service-card p {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-about__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-about__security-image {
  flex: 1;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-about__security-text p {
  color: #f0f0f0;
  margin-bottom: 1em;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-about__responsible-gaming-text {
  flex: 1;
}

.page-about__responsible-gaming-text p {
  color: #f0f0f0;
  margin-bottom: 1em;
}

.page-about__responsible-gaming-image {
  flex: 1;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Team Section */
.page-about__team-container {
  text-align: center;
}

.page-about__team-image-wrapper {
  margin-top: 40px;
}

.page-about__team-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  object-fit: cover;
}

/* Partnership Section - uses text-block styles */

/* FAQ Section */
.page-about__faq-container {
  text-align: center;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px 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: #1A1A2E;
  color: #E9C46A;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #2a2a4e;
}

.page-about__faq-title {
  margin: 0;
  color: #E9C46A;
  font-size: 1em; /* Adjust to fit within question div */
}

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

.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;
  background-color: #1A1A2E;
  color: #cccccc;
  text-align: left;
}

.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-top: 0;
  margin-bottom: 0;
  color: #cccccc;
}

.page-about__faq-answer a {
  color: #E9C46A;
  text-decoration: underline;
}

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

.page-about__cta-title {
  font-size: 2.8em;
  color: #E9C46A;
  margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__security-content,
  .page-about__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }
  .page-about__security-image, .page-about__responsible-gaming-image {
    max-width: 80%;
  }
  .page-about__responsible-gaming-content .page-about__responsible-gaming-image {
    order: -1; /* Image first on mobile for this section */
  }
}

@media (max-width: 768px) {
  .page-about__content-area {
    padding: 30px 15px;
  }
  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__vision-grid,
  .page-about__services-grid {
    grid-template-columns: 1fr;
  }
  .page-about__security-image, .page-about__responsible-gaming-image, .page-about__team-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__hero-image, .page-about__vision-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General image responsiveness for content areas */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__vision-item,
  .page-about__service-card,
  .page-about__security-content,
  .page-about__responsible-gaming-content,
  .page-about__team-image-wrapper,
  .page-about__cta-container,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
  }
  .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;
    margin-bottom: 15px; /* Stack buttons */
  }
  .page-about__cta-section .page-about__btn-primary {
    margin-bottom: 0;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__vision-subtitle,
  .page-about__service-card .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}