/* style/about.css */

/* Base styles for the page content */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-about__section-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

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

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

.page-about__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-about__button {
  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, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__button--primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__button--primary:hover {
  background-color: #005f2c; /* Slightly darker green */
  border-color: #005f2c;
}

.page-about__button--secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-about__button--secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

/* Introduction Section */
.page-about__introduction-section {
  background-color: #1a1a1a; /* Darker background for content */
  padding: 100px 0;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element for max-width */
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: #017439; /* Brand primary color as background */
  color: #ffffff;
  padding: 100px 0;
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__card:hover {
  transform: translateY(-10px);
}

.page-about__card-image {
  width: 100%;
  max-width: 150px; /* Adjust size for small feature images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

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

.page-about__card-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
  flex-grow: 1; /* Allow text to grow and push image/title up */
}

/* Game Diversity Section */
.page-about__game-diversity-section {
  background-color: #121212; /* Match body background */
  padding: 100px 0;
}

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

.page-about__game-category {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter card background for this section */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__game-category:hover {
  transform: translateY(-5px);
}

.page-about__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__game-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__game-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 100px 0;
}

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

.page-about__commitment-section .page-about__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-about__card--commitment {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly more opaque for contrast */
  color: #ffffff;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #1a1a1a;
  padding: 100px 0;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.page-about__cta-text {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 700px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  width: 100%; /* Ensure container respects width for responsiveness */
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
  display: block;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #121212;
  padding: 100px 0;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  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: 20px 25px;
  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-question-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439; /* Brand primary color */
  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: rgba(255, 255, 255, 0.8);
  font-size: 1.05em;
  text-align: left;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px;
}

/* Contact Section */
.page-about__contact-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 100px 0;
}

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

.page-about__contact-section .page-about__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-about__contact-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__contact-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__contact-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 2fr 1fr; /* Text on left, image on right */
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__section-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-about__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__hero-cta-group .page-about__button {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-about__text-block p {
    font-size: 1em;
  }
  
  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% of parent */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Image containers */
  .page-about__image-block,
  .page-about__cta-container,
  .page-about__features-grid,
  .page-about__game-categories,
  .page-about__commitment-grid,
  .page-about__contact-info-grid,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__card-image {
    max-width: 100px; /* Smaller on mobile for features */
    height: auto;
  }

  .page-about__game-image {
    max-width: 100%;
    height: auto;
  }

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

  .page-about__faq-question-title {
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
  
  .page-about__contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .page-about__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding-left: 15px; /* Add padding to prevent image touching edges */
    padding-right: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__button {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.9em;
  }
}