/* style/about.css */

/* Base styles for the page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text for dark body background */
  background-color: var(--background-color); /* Dark background */
}

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

/* Sections */
.page-about__hero-section,
.page-about__intro-section,
.page-about__values-section,
.page-about__products-section,
.page-about__security-section,
.page-about__team-section,
.page-about__responsible-gaming,
.page-about__faq-section,
.page-about__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-about__light-bg {
  background-color: var(--card-bg-color); /* Slightly lighter dark for contrast */
  color: var(--text-main-color);
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust based on desired aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is above image if image is background, but here it's below */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
}

.page-about__main-title {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold-color); /* Gold for main title */
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-about__hero-section .page-about__description {
  font-size: 1.2em;
  color: var(--text-main-color);
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  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: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.2);
}

/* Feature Grid (Intro Section) */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-about__feature-item {
  text-align: center;
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__feature-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

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

/* Values Section */
.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-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow-color);
}

.page-about__value-card p {
  color: var(--text-secondary-color);
}

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

.page-about__product-card {
  background-color: var(--card-bg-color);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-about__product-card .page-about__card-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-card .page-about__card-title a:hover {
  color: var(--glow-color);
}

.page-about__product-card p {
  color: var(--text-secondary-color);
}

/* Security Section */
.page-about__security-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(var(--deep-green-color-rgb), 0.6);
}

.page-about__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-about__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2357E38D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  color: var(--text-main-color);
  font-size: 1.1em;
}

/* 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(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--glow-color);
}

.page-about__member-name {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1.1em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-about__member-bio {
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

/* Responsible Gaming Section */
.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-about__responsibility-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232AD16F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  color: var(--text-main-color);
  font-size: 1.1em;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-about__faq-question:hover {
  background-color: var(--card-bg-color);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-secondary-color);
  font-size: 1em;
}

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

.page-about__faq-answer a {
  color: var(--glow-color);
  text-decoration: underline;
}

/* CTA Bottom */
.page-about__cta-bottom {
  padding: 100px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-about__cta-bottom .page-about__section-title {
  color: var(--gold-color);
}

.page-about__cta-bottom .page-about__description {
  color: var(--text-main-color);
}

/* General Image Styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__main-title {
    font-size: 2.4em;
  }

  .page-about__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__security-list {
    text-align: left;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-bottom {
    padding: 60px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__feature-grid,
  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__security-image {
    max-width: 100%;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__feature-item,
  .page-about__value-card,
  .page-about__product-card,
  .page-about__security-content,
  .page-about__team-member,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__hero-image-wrapper {
    height: auto; /* Allow image to define height */
  }

  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__faq-answer {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
}