/* style/about.css */

/* Custom Colors */
:root {
  --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-about-card-bg: #11271B;
  --page-about-bg: #08160F;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Main text color for the page */
  background-color: var(--page-about-bg);
  line-height: 1.6;
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content-wrapper {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  position: relative;
  z-index: 1;
  background: rgba(8, 22, 15, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--page-about-border);
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__subtitle {
  font-size: 1.2rem;
  color: var(--page-about-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--page-about-btn-gradient);
  color: var(--page-about-text-main);
  border: none;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--page-about-text-main);
  border: 2px solid var(--page-about-deep-green);
}

.page-about__btn-secondary:hover {
  background: var(--page-about-deep-green);
  color: var(--page-about-text-main);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-about-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--page-about-deep-green);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__text-block {
  font-size: 1.05rem;
  color: var(--page-about-text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__introduction-section,
.page-about__mission-vision-section,
.page-about__technology-security-section,
.page-about__team-section,
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--page-about-bg);
}

.page-about__why-choose-us-section,
.page-about__core-values-section,
.page-about__responsible-gaming-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--page-about-card-bg);
}

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

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

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

.page-about__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: var(--page-about-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 1rem;
  color: var(--page-about-text-secondary);
}

.page-about__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-about__content-grid.reverse-grid {
  flex-direction: row-reverse;
}

.page-about__text-content {
  flex: 1;
}

.page-about__image-content {
  flex: 1;
  min-width: 300px; /* Ensure images are not too small */
}

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

.page-about__sub-title {
  font-size: 1.8rem;
  color: var(--page-about-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__value-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--page-about-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-about-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-about__value-icon {
  font-size: 2.5rem;
  color: var(--page-about-gold);
  line-height: 1;
}

.page-about__value-title {
  font-size: 1.4rem;
  color: var(--page-about-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-text p {
  font-size: 1rem;
  color: var(--page-about-text-secondary);
}

.page-about__team-image-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-about__team-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-about-text-main);
  background: var(--page-about-deep-green);
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-about-gold);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-about-text-secondary);
  border-top: 1px solid var(--page-about-divider);
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-about__hero-content-wrapper {
    margin-top: -50px;
    padding: 30px;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid.reverse-grid {
    flex-direction: column;
  }

  .page-about__image-content {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-about__subtitle {
    font-size: 1rem;
  }

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

  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__mission-vision-section,
  .page-about__core-values-section,
  .page-about__technology-security-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 60px 0;
  }

  .page-about__hero-content-wrapper {
    padding: 20px;
    margin-top: -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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .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-image-wrapper,
  .page-about__hero-content-wrapper,
  .page-about__why-choose-us-section,
  .page-about__feature-card,
  .page-about__content-grid,
  .page-about__text-content,
  .page-about__image-content,
  .page-about__values-list,
  .page-about__value-item,
  .page-about__team-image-wrapper,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__cta-buttons,
  .page-about__cta-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}