/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: var(--color-background, #0A0A0A); /* Inherit from shared, fallback to dark */
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__text {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-about__dark-section {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #FFF6D6; /* Text Main */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #333333; /* Dark text for contrast */
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border color */
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Dark background color */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-about__card {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF6D6;
}

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

.page-about__card-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

.page-about__card-image {
  margin-top: 20px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section .page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__feature-card {
  text-align: left;
  padding: 25px;
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-about__feature-text a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__feature-text a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

.page-about__btn-container {
  text-align: center;
  margin-top: 30px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-about__responsible-gaming-content .page-about__image {
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  max-width: 50%;
  height: auto;
  object-fit: cover;
}

.page-about__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-about__responsible-gaming-list li {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #FFF6D6;
  font-size: 1.05rem;
}

.page-about__responsible-gaming-list li strong {
  color: #FFD36B; /* Auxiliary color */
}

.page-about__section-text a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__section-text a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

/* Technology & Security Section */
.page-about__tech-security-section .page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.page-about__tech-security-section .page-about__image {
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  max-width: 50%;
  height: auto;
  object-fit: cover;
}

.page-about__text-block {
  flex-grow: 1;
  text-align: left;
}

.page-about__text-block a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__text-block a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

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

.page-about__faq-item {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFF6D6; /* Text Main */
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item.active .page-about__faq-question {
  background-color: #2a2a2a;
  color: #F2C14E;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  color: #FFD36B;
}

.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-align: left;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-about__faq-answer a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__faq-answer a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

/* CTA Section */
.page-about__cta-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__mission-vision-section .page-about__content-grid,
  .page-about__responsible-gaming-content,
  .page-about__tech-security-section .page-about__content-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
  
  .page-about__responsible-gaming-content .page-about__image,
  .page-about__tech-security-section .page-about__image {
    max-width: 80%;
    margin: 0 auto 30px;
  }

  .page-about__hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .page-about__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@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 header offset */
    padding-bottom: 40px;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__section-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .page-about__dark-section {
    padding: 40px 0;
  }

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

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__card,
  .page-about__section,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__responsible-gaming-content,
  .page-about__tech-security-section .page-about__content-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 10px 0 !important;
  }
  
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-about__responsible-gaming-content .page-about__image,
  .page-about__tech-security-section .page-about__image {
    max-width: 100%;
    margin: 0 auto 20px;
  }

  .page-about__responsible-gaming-list li,
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-about__hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .page-about__card-title {
    font-size: 1.5rem;
  }

  .page-about__feature-title {
    font-size: 1.3rem;
  }
}