/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-bottom: 50px;
}

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

.page-about__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-top: var(--header-offset, 120px); /* Desktop default */
  padding-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about__hero-text-block {
  position: relative;
  z-index: 2;
  color: #111111; /* Dark text on light gradient background for contrast */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-top: -80px; /* Overlap slightly for visual appeal */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #333333;
  letter-spacing: -0.02em;
}

.page-about__intro-text {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555555;
}

.page-about__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff; /* White text on dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

.page-about__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  transform: translateY(-3px);
  background: #F2C14E; /* Main Color */
  color: #111111; /* Card BG */
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FFD36B, transparent);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #FFD36B; /* Auxiliary Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #FFF6D6; /* Text Main */
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #FFF6D6; /* Text Main */
}

.page-about__list li::before {
  content: '★'; /* Star icon */
  position: absolute;
  left: 0;
  color: #F2C14E; /* Main Color */
  font-size: 1.2em;
  line-height: 1;
}

.page-about__story-section,
.page-about__gaming-section,
.page-about__responsible-gaming-section,
.page-about__choose-us-section,
.page-about__community-section {
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "text image";
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__content-grid--reverse .page-about__image {
  grid-area: image;
}

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

.page-about__dark-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #0A0A0A; /* Ensure contrast, this is the main background, so it will be dark */
  color: #FFF6D6; /* Text Main */
  padding: 60px 0;
}

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

.page-about__value-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.3);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E; /* Main Color */
  margin-bottom: 10px;
}

.page-about__card-title + p {
  color: #FFF6D6; /* Text Main */
}

.page-about__button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-about__partners-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-about__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.page-about__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.page-about__faq-section {
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a1a1a;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Auxiliary Color */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  color: #F2C14E; /* Main Color */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

.page-about__faq-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
}

.page-about__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #111111; /* Card BG */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-text-block {
    margin-top: -60px;
    padding: 25px;
  }

  .page-about__content-grid {
    gap: 30px;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile default */
    padding-bottom: 30px;
  }

  .page-about__hero-text-block {
    margin-top: -40px;
    padding: 20px;
    max-width: 90%;
  }

  .page-about__main-title {
    font-size: 2rem;
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__button-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.2rem;
  }

  .page-about__story-section,
  .page-about__gaming-section,
  .page-about__responsible-gaming-section,
  .page-about__choose-us-section,
  .page-about__community-section,
  .page-about__dark-section,
  .page-about__light-bg,
  .page-about__partners-section,
  .page-about__faq-section,
  .page-about__final-cta-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    grid-template-areas: unset; /* Reset grid areas for mobile */
  }

  .page-about__content-grid--reverse .page-about__text-block {
    grid-area: unset;
  }
  
  .page-about__content-grid--reverse .page-about__image {
    grid-area: unset;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content-wrapper,
  .page-about__hero-text-block,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__partners-grid,
  .page-about__faq-list,
  .page-about__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__partner-logo {
    width: 120px;
    height: 90px;
  }
}