/* style/about.css */
/* Body background color is from shared.css, assumed dark (#0A0A0A). Text color for main content will be light (#FFF6D6). */

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

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

.page-about__hero-description {
  font-size: 1.15rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #3A2A12; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1); /* Slight background on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-about__intro-section,
.page-about__history-section,
.page-about__values-section,
.page-about__team-section,
.page-about__responsible-gaming-section,
.page-about__security-section,
.page-about__support-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-about__cta-section {
    border-bottom: none;
}

.page-about__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF6D6; /* Text Main */
}

.page-about__highlight {
  color: #FFD36B; /* Glow */
  font-weight: 600;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

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

.page-about__value-card {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6; /* Text Main */
}

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

.page-about__value-description {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

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

.page-about__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6; /* Text Main */
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item summary:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFD36B; /* Glow */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

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

.page-about__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-about__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 45px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #111111; /* Dark text for contrast */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }

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

  .page-about__floating-buttons {
    right: 15px;
    bottom: 15px;
  }
}

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

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

  .page-about__hero-section {
    padding: 10px 15px 40px;
  }

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

  .page-about__hero-description {
    font-size: 1rem;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Constrain width for single buttons */
    margin: 10px auto !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__intro-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__responsible-gaming-section,
  .page-about__security-section,
  .page-about__support-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

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

  .page-about__value-card {
    padding: 25px;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-about__floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .page-about__floating-btn {
    width: 90px;
    height: 40px;
    font-size: 0.85rem;
  }

  /* Force images to be responsive and prevent overflow */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__value-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image-wrapper { padding-left: 0; padding-right: 0; }

  /* Ensure buttons in a group wrap or stack */
  .page-about__cta-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}