/* style/about.css */

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

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

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

.page-about__dark-bg {
  background-color: #003366; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-about__heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for headings on dark backgrounds */
  font-weight: bold;
}

.page-about__light-bg .page-about__heading {
  color: #003366; /* Deep blue for headings on light backgrounds */
}

.page-about__sub-heading {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD700; /* Gold accent */
}

.page-about__light-bg .page-about__sub-heading {
  color: #003366; /* Deep blue */
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__light-bg .page-about__text {
  color: #333333;
}

.page-about__text-center {
  text-align: center;
}

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

.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; /* Darken image for text readability */
  filter: none; /* Ensure no CSS filter */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold accent */
  color: #003366; /* Deep blue text for contrast */
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin-top: 20px;
}

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

/* --- Content Grids --- */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

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

.page-about__value-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__value-item .page-about__sub-heading {
  color: #003366;
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__value-item .page-about__text {
  color: #555555;
  font-size: 1em;
  text-align: center;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%; /* Make icons circular if desired */
  filter: none; /* Ensure no CSS filter */
}

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

.page-about__reason-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__reason-item .page-about__sub-heading {
  color: #003366;
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__reason-item .page-about__text {
  color: #555555;
  font-size: 1em;
  text-align: center;
}

/* --- Images --- */
.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

/* Ensure no small icons, minimum size requirement */
.page-about__image,
.page-about__value-icon,
.page-about__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* --- Links within text --- */
.page-about__text a {
  color: #003366;
  text-decoration: underline;
  font-weight: bold;
}

.page-about__dark-bg .page-about__text a {
  color: #FFD700;
}

.page-about__text a:hover {
  color: #FFD700;
}

.page-about__dark-bg .page-about__text a:hover {
  color: #ffffff;
}

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

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  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;
  color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 450px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  
  /* Mobile button responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Button containers mobile adaptation */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    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__content-grid,
  .page-about__values-grid,
  .page-about__reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__container {
    padding: 20px 15px; /* Add side padding for mobile */
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__sub-heading {
    font-size: 1.4em;
  }
  .page-about__text {
    font-size: 1em;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness for image/video wrappers */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for content sections in mobile to prevent overflow */
  .page-about__introduction .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__core-values .page-about__container,
  .page-about__history .page-about__container,
  .page-about__why-choose .page-about__container,
  .page-about__security-commitment .page-about__container,
  .page-about__responsible-gaming .page-about__container,
  .page-about__contact-cta .page-about__container,
  .page-about__faq .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
  .page-about__sub-heading {
    font-size: 1.2em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }
}