/* style/about.css */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.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: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  box-sizing: border-box;
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
}

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #017439; /* Main brand color for border */
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__mission-vision-section .page-about__section-intro {
  color: #333333;
}

.page-about__mission-image {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__security-image {
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-about__history-section .page-about__section-title,
.page-about__history-section .page-about__section-intro {
  color: #333333;
}

.page-about__team-image {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

.page-about__responsible-gambling-section .page-about__section-title,
.page-about__responsible-gambling-section .page-about__section-intro {
  color: #ffffff;
}

.page-about__responsible-gambling-section .page-about__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
  margin-top: 30px;
}

.page-about__responsible-gambling-section .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

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

.page-about__faq-section .page-about__section-title {
  color: #333333;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.page-about__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-item:last-child {
  border-bottom: none;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or use '-' directly */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #666666;
}

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

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

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-intro {
  color: #ffffff;
}

.page-about__cta-section .page-about__btn-primary {
  margin-top: 40px;
}

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

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__hero-section {
    height: auto;
    min-height: 70vh;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered */
  }

  .page-about__hero-content {
    padding: 15px;
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description {
    font-size: 1.2em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-about__section-intro {
    font-size: 1em;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card {
    padding: 25px;
  }

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image,
  .page-about__mission-image,
  .page-about__security-image,
  .page-about__team-image {
    width: 100% !important; /* Ensure image fills container */
  }

  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__history-section,
  .page-about__responsible-gambling-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-about__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__hero-cta-buttons a {
    margin: 0 auto; /* Center buttons if they stack */
  }
}

/* Ensure content images are not smaller than 200px (desktop) */
.page-about__mission-image,
.page-about__security-image,
.page-about__team-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filter for images */
.page-about img {
  filter: none;
}