/* style/about.css */

/* Body background is #0a0a0a (dark), so main text color should be light */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: #0a0a0a; /* Ensure dark background for hero */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content-wrapper {
  max-width: 800px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-about__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #26A9E0; /* Brand color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__introduction-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-about__why-choose-us-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__products-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__responsibility-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__future-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__cta-bottom-section {
  background-color: #26A9E0; /* Brand color background for CTA */
  color: #ffffff;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
}

.page-about__section-text {
  font-size: 1.05em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Feature Grid */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* Feature Cards (Why Choose Us) */
.page-about__feature-card {
  background: #1a1a1a; /* Darker background for card */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(38, 169, 224, 0.3); /* Subtle border */
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.4);
}

.page-about__card-icon {
  width: 100%;
  max-width: 150px; /* Adjust size for card icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-about__card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__card-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Game Grid */
.page-about__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  display: block;
  background: #0a0a0a;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.4);
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-about__game-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__game-description {
  font-size: 0.9em;
  color: #e0e0e0;
}

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

.page-about__responsibility-item {
  background: #1a1a1a;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__item-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__item-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

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

.page-about__future-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background: #1a1a1a;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

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

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #26A9E0; /* Highlight when open */
  color: #ffffff;
}

.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-toggle {
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
  background: #222222; /* Slightly different background for answer */
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-about__btn-tertiary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__btn-tertiary:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-about__feature-grid,
  .page-about__feature-grid--large,
  .page-about__game-grid,
  .page-about__responsibility-grid,
  .page-about__future-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__game-image {
    height: 180px;
  }

  .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__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content-wrapper,
  .page-about__feature-item,
  .page-about__feature-card,
  .page-about__game-card,
  .page-about__responsibility-item,
  .page-about__future-item,
  .page-about__faq-item,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by specific elements */
  }

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

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

  .page-about__faq-section {
    padding-top: 10px !important;
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}