/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text 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-heading {
  font-size: 2.5em;
  color: #017439; /* Brand color for headings */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-headings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-about ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-about li {
  margin-bottom: 0.5em;
  color: #f0f0f0;
}

.page-about a {
  color: #FFFF00; /* Yellow for links to stand out */
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

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

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-about__main-heading {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

.page-about__btn-register,
.page-about__btn-login {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
}

.page-about__btn-register:hover {
  background-color: #a30606;
}

.page-about__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
}

.page-about__btn-login:hover {
  background-color: #a30606;
}

/* General Content Sections */
.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__development-achievements-section,
.page-about__responsible-gambling-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 60px 0;
}

.page-about__mission-vision-section,
.page-about__development-achievements-section {
  background-color: rgba(1, 116, 57, 0.1); /* Light transparent brand color */
}

.page-about__why-choose-section,
.page-about__responsible-gambling-section {
  background-color: rgba(255, 255, 255, 0.05); /* Very light transparent white */
}

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

.page-about__content-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-about__content-grid-reverse {
  direction: rtl;
}

.page-about__content-grid-reverse > * {
  direction: ltr;
}

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

.page-about__game-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__game-list li {
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-about__game-list li a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.page-about__game-list li a:hover {
  text-decoration: underline;
}

/* Video Section */
.page-about__video-section {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 8px;
}

.page-about__video-wrapper .page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-about__video-link {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  cursor: pointer;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: rgba(1, 116, 57, 0.15);
}

.page-about__faq-list {
  margin-top: 40px;
}

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

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

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

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker background for answer */
  color: #f0f0f0;
}

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

/* Call to Action Section */
.page-about__cta-section {
  background-color: #017439; /* Brand color for CTA background */
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #ffffff; /* White background */
  color: #017439; /* Brand color text */
  border: 2px solid #ffffff;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid,
  .page-about__content-grid-two-col {
    grid-template-columns: 1fr;
  }

  .page-about__content-grid-reverse {
    direction: ltr; /* Reset for smaller screens */
  }

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

  .page-about__main-heading {
    font-size: 2.5em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__sub-heading {
    font-size: 1.5em;
  }
}

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

  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__main-heading {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-register,
  .page-about__btn-login,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-about__sub-heading {
    font-size: 1.3em;
  }

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

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__mission-vision-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__development-achievements-section .page-about__container,
  .page-about__responsible-gambling-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container,
  .page-about__content-grid-two-col,
  .page-about__content-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

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

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

@media (max-width: 480px) {
  .page-about__main-heading {
    font-size: 1.8em;
  }

  .page-about__section-heading {
    font-size: 1.6em;
  }

  .page-about__sub-heading {
    font-size: 1.2em;
  }

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