/* style/about.css */

/* Base styles for the About Us 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 is handled by shared.css (#222) */
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
  min-height: 600px;
  background-color: #017439; /* Brand color as background for hero */
  color: #ffffff;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  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: #e00b0b;
  border-color: #e00b0b;
}

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

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

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #333; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-about__mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-about__mission-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-about__mission-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__mission-subtitle {
  font-size: 1.8rem;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #222; /* Body background */
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 25px;
  display: block;
  border-radius: 8px;
}

.page-about__feature-title {
  font-size: 1.6rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Responsible Gaming & Tech Innovation Sections */
.page-about__responsible-gaming-section,
.page-about__tech-innovation-section {
  padding: 80px 0;
}

.page-about__responsible-gaming-section {
  background-color: #333;
}

.page-about__tech-innovation-section {
  background-color: #222;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-about__content-text {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  text-align: center;
}

.page-about__image-full {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  background-color: #017439;
}

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

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

.page-about__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #333;
  color: #ffffff;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-about__faq-cta-buttons {
    text-align: center;
    margin-top: 40px;
}

/* Final CTA Section */
.page-about__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-about__final-cta-section .page-about__section-title {
  color: #ffffff;
}

.page-about__final-cta-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3rem;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__mission-subtitle,
  .page-about__feature-title {
    font-size: 1.5rem;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__content-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-about__hero-title {
    font-size: 2.2rem;
  }
  .page-about__hero-description {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-about__mission-section,
  .page-about__why-choose-us,
  .page-about__responsible-gaming-section,
  .page-about__tech-innovation-section,
  .page-about__video-section,
  .page-about__faq-section,
  .page-about__final-cta-section {
    padding: 50px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Image and Video Responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__mission-image, .page-about__feature-icon, .page-about__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about video, .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__feature-card {
    min-height: auto;
  }
  .page-about__content-flex,
  .page-about__content-flex--reverse {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__content-image {
    order: -1;
    margin-bottom: 20px;
  }
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8rem;
  }
  .page-about__section-title {
    font-size: 1.5rem;
  }
  .page-about__mission-subtitle,
  .page-about__feature-title {
    font-size: 1.3rem;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
  }
}