/* style/about.css */

:root {
  --phdream-primary-color: #F2C14E;
  --phdream-secondary-color: #FFD36B;
  --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phdream-card-bg: #111111;
  --phdream-bg: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border-color: #3A2A12;
  --phdream-glow-color: #FFD36B;
}

.page-about {
  background-color: var(--phdream-bg);
  color: var(--phdream-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  justify-content: center;
  padding: 10px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  margin-top: calc(675px - 100px); /* Adjust based on hero image height and desired overlap */
}

.page-about__main-title {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.2;
  color: var(--phdream-secondary-color);
  margin-bottom: 20px;
}

.page-about__hero-description {
  font-size: 1.2rem;
  color: var(--phdream-text-main);
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--phdream-button-gradient);
  color: #ffffff; /* White text for contrast on gradient */
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--phdream-secondary-color);
  color: var(--phdream-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-about__introduction-section,
.page-about__our-story-section,
.page-about__why-choose-section,
.page-about__game-portfolio-section,
.page-about__responsible-gaming-section,
.page-about__technology-section,
.page-about__community-support-section,
.page-about__join-us-section,
.page-about__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--phdream-border-color);
}

.page-about__introduction-section:last-of-type,
.page-about__faq-section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 2.2rem;
  color: var(--phdream-primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--phdream-secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--phdream-text-main);
  text-align: justify;
}

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

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

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

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__card-title {
  font-size: 1.5rem;
  color: var(--phdream-primary-color);
  margin-bottom: 15px;
}

.page-about__card-description {
  font-size: 1rem;
  color: var(--phdream-text-main);
}

.page-about__game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-about__game-item {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.2);
}

.page-about__game-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--phdream-text-main);
}

.page-about__game-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-about__game-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--phdream-secondary-color);
  margin-bottom: 10px;
}

.page-about__game-description {
  font-size: 0.95rem;
  color: var(--phdream-text-main);
  margin-top: 10px;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border-color);
  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;
  cursor: pointer;
  background-color: #1a1a1a;
  color: var(--phdream-text-main);
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #2a2a2a;
}

.page-about__faq-title {
  margin: 0;
  color: var(--phdream-secondary-color);
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--phdream-primary-color);
}

.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: var(--phdream-text-main);
  background-color: var(--phdream-card-bg);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: calc(675px * 0.7 - 100px); /* Adjust for smaller hero image on tablets */
  }
  .page-about__main-title {
    font-size: 2.5rem;
  }
  .page-about__section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 15px 40px;
  }
  .page-about__hero-image {
    position: relative;
    height: auto;
  }
  .page-about__hero-content {
    margin-top: -80px; /* Less overlap on mobile */
    padding: 30px 15px;
  }
  .page-about__main-title {
    font-size: 1.8rem;
  }
  .page-about__hero-description {
    font-size: 1rem;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-about__introduction-section,
  .page-about__our-story-section,
  .page-about__why-choose-section,
  .page-about__game-portfolio-section,
  .page-about__responsible-gaming-section,
  .page-about__technology-section,
  .page-about__community-support-section,
  .page-about__join-us-section,
  .page-about__faq-section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.6rem;
  }
  .page-about__text-block {
    font-size: 1rem;
  }
  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__game-list {
    grid-template-columns: 1fr;
  }
  .page-about__game-item {
    padding: 15px;
  }
  .page-about__game-name {
    font-size: 1.1rem;
  }
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
  /* All images must be responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image {
    height: 300px; /* Fixed height for hero image on mobile to save space */
    object-fit: cover;
  }
  .page-about__hero-content {
    margin-top: -50px; /* Adjust for mobile hero image height */
  }
}