/* style/about.css */

/* Base Styles for Page About */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
}

.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: 40px;
  font-weight: bold;
}

.page-about__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #0a0a0a; /* Dark background from body, contrast with white text */
  color: #ffffff;
  padding: 80px 0;
}

/* Hero Section */
.page-about__hero-section {
  padding: 120px 0 80px 0; /* Adjusted for header offset */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:code_win79,online_gaming,sports_betting,casino,modern,dynamic]');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

/* 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: all 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; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

/* Intro Section */
.page-about__intro-section .page-about__section-title {
  color: #ffffff;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__section-title {
  color: #ffffff;
}

.page-about__mission-vision h3 {
  font-size: 1.8em;
  color: #FFFF00;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__mission-vision p {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Products & Services Section */
.page-about__products-services .page-about__section-title {
  color: #ffffff;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

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

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__card-title a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__card-title a:hover {
  color: #e00a0a;
}

.page-about__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Security & Support Section */
.page-about__security-support .page-about__section-title {
  color: #ffffff;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-item h3 {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-about__commitment p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Move image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 100px 0 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-about__hero-buttons,
  .page-about__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__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__dark-section,
  .page-about__light-bg {
    padding: 60px 0;
  }

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

  .page-about__products-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-about__faq-answer {
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 15px;
  }

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

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