/* style/about.css */

/* Base styles */
.page-about {
  color: var(--text-main);
  background-color: var(--background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__text-block {
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__text-secondary {
  color: var(--text-secondary);
}

/* Color classes for contrast */
.page-about__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__card-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

/* Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  border-color: var(--gold);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-about__main-title {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-about__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Who We Are Section */
.page-about__who-we-are .page-about__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

/* Mission Section */
.page-about__our-mission {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.page-about__mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Why Choose Section */
.page-about__why-choose {
  text-align: center;
}

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

.page-about__feature-card {
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Security and Responsible Gaming Sections */
.page-about__security-grid,
.page-about__responsible-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__security-image-wrapper,
.page-about__responsible-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__security-content .page-about__text-block,
.page-about__responsible-content .page-about__text-block {
  text-align: justify;
}

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

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

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

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-about__faq-item[open] > .page-about__faq-question,
.page-about__faq-item.active .page-about__faq-question {
  background-color: var(--deep-green);
}

.page-about__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--glow);
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle,
.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer,
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding-top: 10px;
}

/* Contact CTA Section */
.page-about__contact-cta {
  text-align: center;
  border-top: 1px solid var(--divider);
  padding-bottom: 80px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__mission-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__security-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .page-about__responsible-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 0;
  }
  .page-about__hero-section {
    padding-top: 60px; /* Reset for desktop */
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__subtitle {
    font-size: 18px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
  .page-about__feature-title {
    font-size: 22px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__hero-image-wrapper,
  .page-about__mission-image-wrapper,
  .page-about__security-image-wrapper,
  .page-about__responsible-image-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__who-we-are,
  .page-about__our-mission,
  .page-about__why-choose,
  .page-about__security-fairness,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}