/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherit from shared.css, which is #0A1931 */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section {
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: #0A1931;
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #E0B400;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__subtitle {
  font-size: 1.8em;
  color: #E0B400;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-color: #0A1931; /* Ensure dark background */
}

.page-about__hero-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
  z-index: 1;
  max-width: 600px;
  margin-left: 20px;
}

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

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

.page-about__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #E0B400;
  color: #0A1931;
  border: 2px solid #E0B400;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A1931;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 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-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(224, 180, 0, 0.5)); /* Subtle glow for icons */
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #E0B400;
  margin-bottom: 10px;
}

/* Team Section */
.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-about__team-member-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-about__team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #E0B400;
}

.page-about__team-member-name {
  font-size: 1.5em;
  color: #0A1931;
  margin-bottom: 10px;
}

.page-about__team-member-role {
  font-size: 1em;
  color: #555555;
}

/* Achievements Section */
.page-about__achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__achievement-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-about__achievement-title {
  font-size: 1.6em;
  color: #0A1931;
  margin-bottom: 20px;
  text-align: center;
}

.page-about__achievement-list {
  list-style-type: none;
  padding: 0;
}

.page-about__achievement-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #555555;
}

.page-about__achievement-list li::before {
  content: '🏆'; /* Unicode character for trophy */
  position: absolute;
  left: 0;
  color: #E0B400;
  font-size: 1.2em;
  top: 0;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

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

.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);
}

.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.03);
  color: #f0f0f0;
}

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

.page-about__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

.page-about__contact-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-about__contact-title {
  font-size: 1.5em;
  color: #0A1931;
  margin-bottom: 15px;
}

.page-about__contact-card p {
  margin-bottom: 20px;
  color: #555555;
}

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

.page-about__cta-bottom-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Global image styles for responsiveness and minimum size */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-section {
    flex-direction: column;
    padding: 80px 0;
    text-align: center;
  }

  .page-about__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

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

  .page-about__hero-image-wrapper {
    justify-content: center;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__hero-section {
    padding: 60px 0;
    min-height: auto;
  }

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

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

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px; /* Add padding to container */
  }

  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__achievements-grid,
  .page-about__contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-about__subtitle {
    font-size: 1.5em;
  }

  .page-about__feature-card,
  .page-about__team-member-card,
  .page-about__achievement-card,
  .page-about__contact-card {
    padding: 25px;
  }

  .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: 15px 20px;
  }

  .page-about__cta-bottom-section {
    padding: 50px 0;
  }

  .page-about__cta-bottom-content {
    padding: 30px;
  }

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

  .page-about__cta-bottom-description {
    font-size: 1em;
  }

  /* Force responsive images for all content images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure containers for images/videos/buttons handle overflow */
  .page-about__hero-section,
  .page-about__mission-section .page-about__container,
  .page-about__why-choose-us-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__responsible-gambling-section .page-about__container,
  .page-about__achievements-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__contact-section .page-about__container,
  .page-about__cta-bottom-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}