/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

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

.page-about__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main color for titles */
  padding-top: 60px;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%); /* Darker gradient for hero background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-about__hero-image-container {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-about__hero-content-area {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 30px 15px;
  margin-top: -120px; /* Pull content up over the image slightly */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-about__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  color: #FFD36B; /* Glow for hero title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  background: #F2C14E; /* Main color for background on hover */
  color: #111111;
  transform: translateY(-2px);
}

.page-about__story-section,
.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__partners-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-about__story-content,
.page-about__responsible-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-about__story-text,
.page-about__responsible-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-about__story-image-wrapper,
.page-about__responsible-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-about__story-image,
.page-about__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: block;
  margin: 0 auto;
}

.page-about__story-text p,
.page-about__responsible-text p,
.page-about__values-list-item,
.page-about__faq-answer p,
.page-about__cta-description {
  color: #FFF6D6;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
}

.page-about__link:hover {
  text-decoration: underline;
}

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

.page-about__mission-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
}

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

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

.page-about__values-list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-about__values-list-item::before {
  content: '★';
  color: #FFD36B; /* Glow */
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__mission-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: block;
  margin: 30px auto 0;
}

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

.page-about__advantage-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__advantage-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-about__partners-section {
  text-align: center;
}

.page-about__partners-description {
  font-size: 1.05em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  border: 1px solid #3A2A12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__partner-logo {
  max-width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s ease;
  display: block; /* Ensure it respects width/height */
}

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

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

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  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 25px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter than card bg */
  border-bottom: 1px solid #3A2A12;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  color: #F2C14E; /* Main color */
  margin: 0;
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0A0A0A);
  padding: 60px 0;
  border-top: 1px solid #3A2A12;
}

.page-about__cta-description {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF6D6;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-content-area {
    margin-top: -80px;
  }
}

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

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
  }

  .page-about__hero-content-area {
    margin-top: -60px;
    padding: 20px 10px;
  }

  .page-about__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-about__story-content,
  .page-about__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__story-text,
  .page-about__responsible-text {
    max-width: 100%;
  }

  .page-about__story-image-wrapper,
  .page-about__responsible-image-wrapper {
    max-width: 100%;
  }

  .page-about__mission-grid,
  .page-about__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__item-title {
    font-size: 1.5em;
  }

  .page-about__partners-section {
    padding: 20px 0;
  }

  .page-about__partner-logos {
    gap: 20px;
    padding: 15px;
  }

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

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-title {
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content-area,
  .page-about__story-content,
  .page-about__mission-grid,
  .page-about__advantage-grid,
  .page-about__partner-logos,
  .page-about__faq-list,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__partner-logo {
    max-width: 100px;
    height: 75px;
  }
}