/* style/about.css */

:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f1f3f5;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default for page-about, overridden by section-specific styles */
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Fixed header padding for the first content section */
.page-about__intro-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  background-color: var(--primary-color); /* Dark background for intro */
  color: var(--text-color-light);
  padding-bottom: 60px;
}

.page-about__intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-about__intro-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  object-fit: cover;
}

.page-about__heading-primary {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
}

.page-about__heading-secondary {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--primary-color); /* Dark text for light sections */
  line-height: 1.3;
}

.page-about__heading-secondary--light {
  color: var(--text-color-light); /* Light text for dark sections */
}

.page-about__heading-tertiary {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-color-dark); /* Default for light backgrounds */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__paragraph--light {
  color: var(--text-color-light); /* For dark backgrounds */
}

.page-about__highlight {
  color: var(--secondary-color); /* Gold highlight */
  font-weight: bold;
}

.page-about__strong {
  font-weight: bold;
}

.page-about__text-link {
  color: var(--primary-color); /* Link color on light backgrounds */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-about__text-link--light {
  color: var(--secondary-color); /* Link color on dark backgrounds */
}

.page-about__text-link--light:hover {
  color: var(--text-color-light);
  text-decoration: underline;
}

/* CTA Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.page-about__btn-primary {
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark text on gold */
}

.page-about__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: var(--primary-color); /* Dark blue button */
  color: var(--text-color-light); /* Light text on dark blue */
}

.page-about__btn-secondary:hover {
  background: #12223f; /* Slightly darker blue */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Section Specific Styles */
.page-about__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-about__light-bg {
  background-color: var(--background-light); /* Light gray background */
  color: var(--text-color-dark);
}

/* Mission & Values Section */
.page-about__mission-values {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__value-icon {
  width: 120px; /* Display size */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Expertise Section */
.page-about__expertise {
  padding-bottom: 60px;
}

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

.page-about__expertise-item .page-about__heading-tertiary {
  color: var(--primary-color);
}

.page-about__expertise-item .page-about__paragraph {
  color: var(--text-color-dark);
}

.page-about__expertise-image {
  width: 100%;
  max-width: 300px; 
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__cta-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-about__responsible-gambling .page-about__heading-secondary {
  color: var(--primary-color);
}

.page-about__responsible-gambling .page-about__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__responsive-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-about__faq-section .page-about__heading-secondary {
  color: var(--primary-color);
}

.page-about__faq-section .page-about__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark); /* Ensure text is dark on light background */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color); /* Question text color */
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit; /* Inherit color from parent (.page-about__faq-question) */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color); /* Darker color when active */
  transform: rotate(45deg); /* Example: rotate for 'X' effect */
}

/* Contact CTA Section */
.page-about__contact-cta {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-about__contact-cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__heading-primary {
    font-size: 36px;
  }
  .page-about__heading-secondary {
    font-size: 30px;
  }
  .page-about__heading-tertiary {
    font-size: 22px;
  }
  .page-about__paragraph {
    font-size: 16px;
  }
  .page-about__value-icon {
    width: 100px;
    height: 100px;
  }
  .page-about__expertise-image {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .page-about__intro-section {
    padding-top: 160px !important; /* Mobile: Adjust for mobile fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__heading-primary {
    font-size: 28px;
  }
  .page-about__heading-secondary {
    font-size: 24px;
  }
  .page-about__heading-tertiary {
    font-size: 20px;
  }
  .page-about__paragraph {
    font-size: 15px;
  }
  .page-about__values-grid,
  .page-about__expertise-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__expertise-image {
    max-width: 100%;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  /* FAQ mobile styles */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
}