/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--site-bg, #0A0A0A); /* Default background color */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #ffffff; /* Ensure white text over darkened hero image */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, avoid fixed large values */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Use auxiliary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__intro-text {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #ffffff;
  border-color: #ffffff;
}

/* General Section Styling */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about p {
  margin-bottom: 1em;
  color: #FFF6D6;
}

.page-about ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about li {
  margin-bottom: 10px;
  color: #FFF6D6;
}

/* Dark Background Sections */
.page-about__dark-section {
  background-color: var(--card-bg, #111111); /* Use Card BG for dark sections */
  color: var(--text-main, #FFF6D6);
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title {
  color: #FFD36B;
}

.page-about__dark-section .page-about__section-description {
  color: #FFF6D6;
}

.page-about__dark-section .page-about__sub-title {
  color: #F2C14E;
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__mission-vision-section .page-about__card {
  background-color: var(--background-dark, #0A0A0A); /* Darker background for cards */
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
}

.page-about__mission-vision-section .page-about__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E;
}

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

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0A0A0A);
}

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

.page-about__feature-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
  text-align: left;
}

.page-about__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E;
}

/* Security Section */
.page-about__security-section .page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__security-feature {
  background-color: var(--background-dark, #0A0A0A);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-about__security-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-about__feature-heading {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0A0A0A);
}

.page-about__responsible-gaming-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__responsible-gaming-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__responsible-gaming-text {
  flex: 1;
  color: #FFF6D6;
}

/* Team Section */
.page-about__team-section .page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-member {
  background-color: var(--background-dark, #0A0A0A);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #F2C14E;
}

.page-about__member-name {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #FFD36B;
}

.page-about__member-role {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--site-bg, #0A0A0A);
}

.page-about__contact-cta-section .page-about__cta-buttons {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-about__join-text {
  font-size: 1.2em;
  color: #FFF6D6;
}

.page-about__join-text a {
  color: #FFD36B;
  text-decoration: none;
  font-weight: bold;
}

.page-about__join-text a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg, #111111);
  color: #FFF6D6;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #F2C14E;
  font-weight: 600;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD36B;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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;
  background-color: var(--background-dark, #0A0A0A);
  color: #FFF6D6;
}

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

.page-about__faq-answer p {
  margin: 0;
  padding: 0;
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 15px;
  }
  .page-about__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-about__intro-text {
    font-size: clamp(1em, 1.8vw, 1.1em);
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
  .page-about__responsible-gaming-content {
    flex-direction: column;
  }
  .page-about__responsible-gaming-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__container {
    padding: 25px 15px;
  }
  .page-about__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-about__dark-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__contact-cta-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box;
  }
  .page-about__card,
  .page-about__security-feature,
  .page-about__team-member {
    padding: 20px;
  }
  .page-about__faq-item {
    margin-bottom: 10px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-about__responsible-gaming-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-about__intro-text {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: clamp(1.3em, 6vw, 1.8em);
  }
  .page-about__sub-title {
    font-size: clamp(1.2em, 5vw, 1.6em);
  }
}