/* style/about.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-light: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color from shared.css */
  color: var(--text-light); /* Default text color for the main page content, assuming dark body background */
}

/* Ensure page content is not covered by fixed header */
.page-about__hero-section {
  padding-top: 180px; /* Adjusted for fixed header on desktop */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-about__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width for better presentation */
}

.page-about__hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.page-about__main-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-about__cta-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--text-light);
}

.page-about__section {
  padding: 60px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-about__section:nth-of-type(even) {
  background: #ffffff;
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

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

.page-about__content-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-about__content-block p {
  flex: 1;
  min-width: 300px;
  margin-bottom: 15px;
}

.page-about__content-block strong {
  color: var(--secondary-color);
}

.page-about__image {
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image--left {
  order: -1;
}

.page-about__image--center {
  display: block;
  margin: 0 auto 30px;
  max-width: 700px;
}

.page-about__content-block--centered {
  text-align: center;
  flex-direction: column;
}

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

.page-about__value-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-about__value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

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

.page-about__commitment-item {
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-about__commitment-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.page-about__item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__commitment-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-about__section--responsible-gaming .page-about__cta-link {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__section--responsible-gaming .page-about__cta-link:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-about__section--faq {
  background: #f1f3f5;
  padding: 80px 0;
}

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

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

.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;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

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

.page-about__faq-question:active {
  background: #eeeeee;
}

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

.page-about__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-about__faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-about__faq-cta a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__hero-description {
    font-size: 17px;
  }
  .page-about__cta-button {
    padding: 14px 40px;
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__image {
    max-width: 100%;
  }
  .page-about__content-block p {
    min-width: unset;
    flex: 1 1 100%;
  }
  .page-about__image--left {
    order: unset;
  }
  .page-about__value-card, .page-about__commitment-item {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 22px;
  }
  .page-about__item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 140px; /* Adjusted for fixed header on mobile */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 30px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__content-block {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__values-grid, .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-card, .page-about__commitment-item {
    padding: 20px;
  }
  .page-about__card-icon, .page-about__item-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__item-title {
    font-size: 18px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__faq-answer p {
    font-size: 15px;
  }
  .page-about__faq-cta {
    margin-top: 30px;
    font-size: 16px;
  }
  .page-about__section--responsible-gaming .page-about__cta-link {
    padding: 10px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 26px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
}