/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.page-about__dark-bg {
  background-color: #1a1a1a; /* Darker section background */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark section background */
  color: #f0f0f0;
  padding: 80px 0;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 20px 60px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-color: #000000; /* Deep black background for hero */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.8em;
  color: #FFD700; /* Gold color */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* 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;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

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

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__mission-vision-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-about__mission-vision-section .page-about__card-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

/* History Section */
.page-about__history-section .page-about__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__history-section .page-about__image-left {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__history-section .page-about__text-content {
  flex: 1;
  max-width: 50%;
}

.page-about__history-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__history-section li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-about__history-section li::before {
  content: '⚡'; /* Unicode lightning bolt */
  position: absolute;
  left: 0;
  color: #FFD700;
}

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

.page-about__values-section .page-about__dark-bg-card {
  background-color: #8B0000; /* Dark red accent */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.page-about__values-section .page-about__card-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__games-section .page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card on dark bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

.page-about__games-section .page-about__game-card:hover {
  transform: translateY(-10px);
}

.page-about__games-section .page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__games-section .page-about__game-title {
  font-size: 1.4em;
  margin: 15px 0;
  color: #FFD700;
  padding: 0 15px;
}

.page-about__games-section .page-about__game-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__games-section .page-about__game-title a:hover {
  color: #e6c200;
}

.page-about__games-section .page-about__game-card p {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: #cccccc;
}

/* Tech Security Section */
.page-about__tech-security-section .page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__tech-security-section .page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-about__tech-security-section .page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid #FFD700;
  padding: 10px;
}

.page-about__tech-security-section .page-about__feature-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Team Support Section */
.page-about__team-support-section .page-about__team-support-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.page-about__team-support-section .page-about__team-content,
.page-about__team-support-section .page-about__support-content {
  flex: 1;
}

.page-about__team-support-section .page-about__team-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  object-fit: cover;
}

.page-about__team-support-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__team-support-section li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-about__team-support-section li::before {
  content: '✅'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: #FFD700;
}

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

.page-about__responsibility-section .page-about__dark-bg-card {
  background-color: rgba(139, 0, 0, 0.8); /* Dark red with transparency */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.page-about__responsibility-section .page-about__card-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Why Choose Section */
.page-about__why-choose-section .page-about__why-list {
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-about__why-choose-section li {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter card on dark bg */
  padding: 25px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-about__why-choose-section li::before {
  content: '✨'; /* Sparkle icon */
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px 20px;
}

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

/* Call to Action Section */
.page-about__call-to-action-section .page-about__cta-content {
  text-align: center;
  padding: 60px 20px;
}

.page-about__call-to-action-section .page-about__section-title {
  color: #8B0000; /* Dark red for contrast */
  font-size: 3em;
}

.page-about__call-to-action-section .page-about__text-block {
  color: #333333; /* Dark text for light background */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-about__sub-title {
    font-size: 1.8em;
  }

  .page-about__history-section .page-about__image-text-layout {
    flex-direction: column;
  }

  .page-about__history-section .page-about__image-left,
  .page-about__history-section .page-about__text-content {
    max-width: 100%;
  }

  .page-about__team-support-section .page-about__team-support-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__btn-secondary {
    margin-left: 0;
  }

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__dark-bg,
  .page-about__light-bg {
    padding: 60px 0;
  }

  /* Image responsiveness for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-text-layout .page-about__image-left {
    height: 300px; /* Example fixed height for better mobile layout */
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__games-section,
  .page-about__tech-security-section,
  .page-about__team-support-section,
  .page-about__responsibility-section,
  .page-about__why-choose-section,
  .page-about__faq-section,
  .page-about__call-to-action-section,
  .page-about__game-card,
  .page-about__feature-card,
  .page-about__why-choose-section li,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-about__faq-list {
    padding: 0;
  }
  
  .page-about__faq-item {
    padding-left: 0;
    padding-right: 0;
  }

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

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

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