/* style/about.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #f0f0f0; /* Light text for dark backgrounds */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --bg-dark: #121212; /* Body background color */
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  --card-text-dark-theme: var(--text-light);
  --card-bg-light-theme: #ffffff;
  --card-text-light-theme: var(--text-dark);
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body background */
}

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

/* Padding for fixed header */
.page-about__hero-section {
  padding-top: 100px; /* Adjust based on shared header height */
  padding-bottom: 60px;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-about__btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark); /* Dark text on gold button */
}

.page-about__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: #f8f8f8;
  color: var(--text-dark);
}

.page-about__light-bg .page-about__section-description,
.page-about__light-bg p {
  color: var(--text-dark);
}

.page-about__light-bg .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__container--flex-reverse {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 40px;
}

.page-about__content-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-about__card {
  background-color: var(--card-bg-dark-theme);
  color: var(--card-text-dark-theme);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-about__light-bg .page-about__card {
  background-color: var(--card-bg-light-theme);
  color: var(--card-text-light-theme);
  border: 1px solid #e0e0e0;
}

.page-about__light-bg .page-about__card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Advantages */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__advantage-item {
  text-align: center;
}

.page-about__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__advantage-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Development History */
.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.page-about__timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 30px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 30px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--bg-dark);
  top: 15px;
  right: -8px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-date {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__timeline-content h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__timeline-content p {
  font-size: 16px;
  color: var(--text-light);
}

.page-about__light-bg .page-about__timeline-content p {
  color: var(--text-dark);
}

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

.page-about__value-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Security and Compliance */
.page-about__security-list,
.page-about__responsibility-list,
.page-about__service-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__security-list li,
.page-about__responsibility-list li,
.page-about__service-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
  color: var(--text-light);
}

.page-about__light-bg .page-about__security-list li,
.page-about__light-bg .page-about__responsibility-list li,
.page-about__light-bg .page-about__service-list li {
  color: var(--text-dark);
}

.page-about__security-list li::before,
.page-about__responsibility-list li::before,
.page-about__service-list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

.page-about__list-highlight {
  color: var(--primary-color);
}

.page-about__light-bg .page-about__list-highlight {
  color: var(--secondary-color);
}

/* Gaming Products */
.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__product-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__product-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__product-item p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__product-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__product-button:hover {
  background: #a30000;
}

/* Promotions */
.page-about__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-about__promotion-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__promotion-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__promotion-button:hover {
  background: #e6c200;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark-theme);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__light-bg .page-about__faq-question {
  background: var(--card-bg-light-theme);
  border: 1px solid #e0e0e0;
  color: var(--card-text-light-theme);
}

.page-about__light-bg .page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-about__light-bg .page-about__faq-question h3 {
  color: var(--text-dark);
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: var(--card-bg-dark-theme);
  border-radius: 0 0 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
}

.page-about__light-bg .page-about__faq-item.active .page-about__faq-answer {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-about__faq-answer p {
  color: var(--text-light);
  margin: 0;
}

.page-about__light-bg .page-about__faq-answer p {
  color: var(--text-dark);
}

/* Contact Us */
.page-about__contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__contact-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__contact-item p {
  margin-bottom: 20px;
}

.page-about__contact-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__contact-button:hover {
  background: #a30000;
}

/* Join Us CTA */
.page-about__join-us {
  text-align: center;
  padding: 80px 20px;
}

/* Copyright */
.page-about__copyright-section {
  padding: 30px 20px;
  text-align: center;
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-about__copyright-text {
  font-size: 14px;
  color: #aaaaaa;
  margin: 0;
}

.page-about .text-highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-about__light-bg .text-highlight {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__container--flex,
  .page-about__container--flex-reverse {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
    text-align: left !important;
  }
  .page-about__timeline-item:nth-child(odd) {
    padding-right: 15px;
  }
  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }
  .page-about__timeline-item::after {
    left: 7px !important;
  }
  .page-about__timeline-date {
    margin-left: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__hero-section {
    padding-top: 80px; /* Adjust for mobile header */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__section-title {
    font-size: 26px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__advantages-grid,
  .page-about__values-grid,
  .page-about__products-grid,
  .page-about__promotions-grid,
  .page-about__contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* FAQ Mobile */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about__security-list li,
  .page-about__responsibility-list li,
  .page-about__service-list li {
    font-size: 15px;
  }
  .page-about__image-block,
  .page-about__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__products-grid .page-about__product-image,
  .page-about__promotions-grid .page-about__promotion-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 22px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-about__timeline-date {
    font-size: 18px;
  }
  .page-about__timeline-content h3 {
    font-size: 18px;
  }
  .page-about__timeline-content p {
    font-size: 14px;
  }
  .page-about__advantage-title,
  .page-about__value-item h3,
  .page-about__product-title,
  .page-about__promotion-title,
  .page-about__contact-item h3 {
    font-size: 20px;
  }
  .page-about__copyright-text {
    font-size: 12px;
  }
}