/* style/about.css */

/* BEM naming: page-about__element-name */

/* Base styles for page-about, prioritizing custom colors */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 60px; /* Space above footer */
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-about__main-title {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-about__description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__section-title {
  color: #F2C14E; /* Gold */
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

.page-about__sub-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__paragraph {
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-about__intro-section, .page-about__responsibility-section, .page-about__future-section {
  padding: 40px 0;
}

.page-about__why-choose-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-about__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  color: #F2C14E; /* Gold */
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  color: #F2FFF6; /* Text Main */
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  width: 100%;
}

.page-about__game-list-item {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__game-list-item p {
  color: #F2FFF6;
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.page-about__link-button {
  display: inline-block;
  background: #2E7A4E; /* Border color for background */
  color: #F2FFF6; /* Text Main */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-about__link-button:hover {
  background-color: #13994A; /* Darker green from button gradient */
}

.page-about__team-section {
  padding: 60px 0;
}

.page-about__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__team-image {
  flex: 1 1 40%;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__team-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2C14E; /* Gold */
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter Border color */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #F2FFF6; /* Text Main */
  line-height: 1.7;
}

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

.page-about__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* Divider */
.page-about__divider {
  height: 1px;
  background-color: #1E3A2A; /* Divider */
  margin: 40px auto;
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: 20px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__description {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }
  .page-about__sub-title {
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  }
  .page-about__team-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__team-image {
    max-width: 100%;
  }
}

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

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

  /* Hero section */
  .page-about__hero-section {
    padding: 10px 0 40px;
  }
  .page-about__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Sections and titles */
  .page-about__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-about__sub-title {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about__paragraph {
    font-size: 0.9rem;
  }

  /* Grid layout for cards */
  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__card-title {
    font-size: 1.3rem;
  }
  .page-about__card-text {
    font-size: 0.9rem;
  }

  /* Link buttons */
  .page-about__link-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Team section */
  .page-about__team-content {
    gap: 20px;
  }
  .page-about__team-image {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* FAQ section */
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__team-content,
  .page-about__faq-list,
  .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;
  }
  
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}