/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background); /* Overall page background */
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow);
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-about__card-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.page-about__card-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-about__card-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.page-about__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--background);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top spacing, body handles header offset */
  padding-bottom: 60px;
  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);
}

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

.page-about__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

/* Intro Section */
.page-about__intro-section {
  padding: 60px 0;
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: var(--background);
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__vision-content {
  text-align: left;
}

.page-about__vision-content .page-about__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: var(--text-secondary);
}

.page-about__vision-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__vision-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-about__why-choose {
  padding: 80px 0;
}

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

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Services & Games Section */
.page-about__services-games {
  padding: 80px 0;
}

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

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

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Security & Responsibility Section */
.page-about__security-responsibility {
  padding: 80px 0;
}

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

.page-about__security-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__security-item .page-about__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: var(--text-secondary);
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--background);
}

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

.page-about__team-member .page-about__card {
  padding: 20px;
}

.page-about__team-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__member-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Milestones Section */
.page-about__milestones-section {
  padding: 80px 0;
}

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

.page-about__milestone-item {
  position: relative;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__milestone-year {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--glow);
  margin-bottom: 15px;
}

.page-about__milestone-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border);
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: left;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Dark background section specific styles */
.page-about__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__card-title {
  color: var(--gold);
}

.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__card-text {
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-about__vision-content {
    order: 2;
  }

  .page-about__vision-image-wrapper {
    order: 1;
    margin-bottom: 40px;
  }

  .page-about__vision-content .page-about__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: 20px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .page-about__text-block {
    font-size: 0.95rem;
  }

  .page-about__features-grid,
  .page-about__games-grid,
  .page-about__security-grid,
  .page-about__team-grid,
  .page-about__milestones-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__team-image {
    height: 200px;
  }

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

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile responsive for images, videos, buttons */
  .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__intro-section,
  .page-about__mission-vision,
  .page-about__why-choose,
  .page-about__services-games,
  .page-about__security-responsibility,
  .page-about__team-section,
  .page-about__milestones-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__hero-cta-group,
  .page-about__cta-bottom {
    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; /* body already handles --header-offset */
  }

  /* Buttons specific mobile styles */
  .page-about__cta-button,
  .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;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}