/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background, so light text */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-about__dark-bg {
  background-color: #1a1a1a;
}

.page-about__heading {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-about__description-center {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-about__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #EA7C07;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding, small top padding for aesthetic */
  text-align: center;
  background-color: #0a0a0a;
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-vision .page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* History Section */
.page-about__history-development {
  text-align: center;
}

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

.page-about__timeline-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  position: relative;
  border-left: 4px solid #26A9E0;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(38, 169, 224, 0.1);
}

.page-about__value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: brightness(1.2);
}

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

.page-about__value-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #EA7C07;
}

.page-about__commitment-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-about__commitment-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Featured Games Section */
.page-about__featured-games {
  text-align: center;
}

.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);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-card-content {
  padding: 20px;
}

.page-about__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-about__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-about__game-text {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px 20px;
}

.page-about__cta-center {
  margin-top: 40px;
}

/* Social Responsibility Section */
.page-about__social-responsibility .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__social-responsibility .page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__social-responsibility .page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* FAQ Section */
.page-about__faq-section {
  text-align: center;
}

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

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFFFFF;
  list-style: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item[open] summary {
  background-color: rgba(38, 169, 224, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__heading {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__mission-vision .page-about__content-grid,
  .page-about__social-responsibility .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__social-responsibility .page-about__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-about__text-block, .page-about__image-block {
    order: unset;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__hero-section {
    padding: 10px 0 40px 0; /* body handles top padding, small top padding for aesthetic */
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Container padding for mobile */
  .page-about__container,
  .page-about__hero-content,
  .page-about__content-grid,
  .page-about__timeline,
  .page-about__values-grid,
  .page-about__commitment-grid,
  .page-about__games-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about__game-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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