/* style/about.css */
:root {
  --primary-color: #4A148C; /* Deep Purple */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f8f9fa;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

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

.page-about__section {
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

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

/* Ensure first section has padding-top to clear fixed header */
.page-about__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a0a5b 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-about__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.page-about__brand-intro {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__brand-content h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__brand-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__values-list li {
  background: var(--card-background-dark);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  border-left: 4px solid var(--secondary-color);
}

.page-about__values-list li strong {
  color: var(--secondary-color);
}

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

.page-about__why-choose {
  background: var(--primary-color);
}

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

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

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

.page-about__card-icon {
  width: 120px; /* Min size 200x200px, but icon can be smaller visually and scaled up */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__responsible-gaming {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__content-block--reversed {
  flex-direction: column-reverse; /* Image on right, content on left for desktop */
}

.page-about__content-block p {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  text-align: justify;
}

.page-about__image-left, .page-about__image-right {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  box-sizing: border-box;
}

.page-about__faq-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--card-background-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-radius: 8px;
}

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

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

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

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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 25px;
  opacity: 0;
  color: var(--text-light);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

.page-about__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #e6c200;
}

.page-about__contact-cta {
  background: linear-gradient(45deg, #2a0a5b 0%, var(--primary-color) 100%);
  text-align: center;
}

.page-about__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__description--light {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-block {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .page-about__content-block--reversed {
    flex-direction: row-reverse;
  }
  .page-about__content-block p {
    flex: 1;
    max-width: 55%;
  }
  .page-about__image-left, .page-about__image-right {
    flex-shrink: 0;
    width: 40%;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__hero-description,
  .page-about__description--light {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__brand-content h3 {
    font-size: 1.5em;
  }
  .page-about__brand-content p,
  .page-about__values-list li,
  .page-about__card p {
    font-size: 0.95em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  .page-about__card-title {
    font-size: 1.4em;
  }
  .page-about__image-full,
  .page-about__image-left,
  .page-about__image-right {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 15px 0 !important;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 1.1em;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__faq-answer p {
    font-size: 0.95em;
  }
}

/* Ensure all images are responsive and do not overflow */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-about__container,
.page-about__section,
.page-about__content-block,
.page-about__grid,
.page-about__card,
.page-about__cta-buttons,
.page-about__faq-list,
.page-about__faq-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow of child elements */
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__section,
  .page-about__content-block,
  .page-about__grid,
  .page-about__card,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .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;
  }
  .page-about__hero-section,
  .page-about__brand-intro,
  .page-about__why-choose,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__contact-cta {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}