/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Light color for titles on dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* Color contrast handling */
.page-about__dark-bg {
  background-color: #121212; /* Using body background color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-about__light-bg .page-about__section-title {
  color: #017439; /* Brand color for titles on light sections */
}

.page-about__light-bg .page-about__text-block {
  color: #333333;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top for desktop */
  background-color: #017439; /* Use brand color for hero background */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let content stand out */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

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

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* 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, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-about__light-bg .page-about__btn-secondary {
  color: #017439;
  border-color: #017439;
}

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

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

/* Mission & Vision Section */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  /* Uses .page-about__card styles */
}

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

/* Why Choose Us Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Use yellow for feature titles */
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: #f0f0f0;
}

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

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

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-about__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2em;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.page-about__video-link:hover .page-about__video-overlay {
  opacity: 0.8;
}

.page-about__play-button {
  font-size: 3em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-about__video-cta {
  font-size: 1.2em;
  font-weight: bold;
}

/* Games Overview Section */
.page-about__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter than section background */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  min-height: 350px; /* Ensure cards have some height */
}

.page-about__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-about__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-about__game-title a {
  color: #FFFF00; /* Yellow for game titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #ffffff;
}

.page-about__game-card p {
  color: #f0f0f0;
}

/* Security & Fair Play Section */
.page-about__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section a {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-about__responsible-gaming-section a:hover {
  color: #ffffff;
}

.page-about__image-centered {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

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

.page-about__member-name {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__member-bio {
  color: #e0e0e0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439; /* Brand color for questions */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−";
}

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #333333; /* Darker color for better contrast */
  border-top: 1px solid #e0e0e0;
}

.page-about__faq-answer p {
  margin: 0;
}

.page-about__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #00562e;
}


/* Call to Action Section */
.page-about__cta-section {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile hero section padding */
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__mission-vision-grid,
  .page-about__features-grid,
  .page-about__games-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  /* Force responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive videos */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive buttons */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force responsive containers for images/videos/buttons */
  .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; /* Prevent overflow */
  }
}
}