/* style/about.css */

/* Base styles for the about page */
.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 from 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: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-light {
  color: #ffffff;
}

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

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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff; /* Default for sections on dark body */
}

.page-about__cta-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:b123,login,betting,platform,banner]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for emphasis */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-about__actions-bottom {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background */
}

.page-about__mission-vision-section .page-about__section-title {
  color: #017439;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
  color: #ffffff;
  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;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Values Section */
.page-about__values-section .page-about__section-title {
  color: #FFFF00; /* Highlighted for dark background */
}

.page-about__value-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-about__value-heading {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* History Section */
.page-about__history-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background */
}

.page-about__history-section .page-about__section-title {
  color: #017439;
}

.page-about__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Security Section */
.page-about__security-section .page-about__section-title {
  color: #FFFF00;
}

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

.page-about__security-features .page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: left;
}

.page-about__security-features .page-about__card-title {
  color: #017439;
}

.page-about__security-features .page-about__card-text {
  color: #e0e0e0;
}

/* Games Section */
.page-about__games-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background */
}

.page-about__games-section .page-about__section-title {
  color: #017439;
}

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

.page-about__game-categories .page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: center;
}

.page-about__game-categories .page-about__card-title a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-about__game-categories .page-about__card-title a:hover {
  text-decoration: underline;
}

.page-about__game-categories .page-about__card-text {
  color: #e0e0e0;
}

/* Commitment Section */
.page-about__commitment-section .page-about__section-title {
  color: #FFFF00;
}

.page-about__commitment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-about__commitment-heading {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__commitment-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background */
}

.page-about__team-section .page-about__section-title {
  color: #017439;
}

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

.page-about__team-grid .page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-about__team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #017439;
  min-width: 200px;
  min-height: 200px;
}

.page-about__team-member-name {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 5px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #FFFF00;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Matches body background */
  text-align: center;
}

.page-about__cta-section .page-about__section-title {
  color: #017439;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__value-heading {
    font-size: 1.3em;
  }
  .page-about__team-member-name {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 15px;
    min-height: 50vh;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-actions {
    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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__actions-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__grid, .page-about__value-list, .page-about__security-features, .page-about__game-categories, .page-about__commitment-list, .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card, .page-about__value-item, .page-about__commitment-item {
    padding: 20px;
  }
  .page-about__image-full-width {
    margin: 20px 0;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
  
  /* Image responsive enforcement */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Container responsive enforcement */
  .page-about__section, .page-about__card, .page-about__container, .page-about__content-wrapper, .page-about__hero-section, .page-about__mission-vision-section, .page-about__values-section, .page-about__history-section, .page-about__security-section, .page-about__games-section, .page-about__commitment-section, .page-about__team-section, .page-about__faq-section, .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  /* Specific padding for hero/video sections to accommodate header */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  /* Buttons in groups */
  .page-about__hero-actions, .page-about__actions-bottom, .page-about__cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}