/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
  background-color: #0A0A0A; /* Background color */
}

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

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

.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;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content slightly over image for visual flow */
  background: rgba(10, 10, 10, 0.7); /* Dark semi-transparent background for text clarity */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  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: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-about__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #FFF6D6;
  font-size: 0.95em;
}

/* History & Milestones Section */
.page-about__history-milestones-section {
  background-color: #0A0A0A;
  padding: 60px 0;
}

.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #F2C14E;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 30px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 30px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #FFD36B;
  border: 3px solid #F2C14E;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -8px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-year {
  font-size: 1.4em;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 5px;
}

.page-about__timeline-event {
  font-size: 1em;
  color: #FFF6D6;
}

.page-about__history-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
  text-align: center;
}

/* Partners & Technology Section */
.page-about__partners-tech-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__partners-tech-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A0A0A;
  color: #F2C14E;
  font-size: 1.2em;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a1a1a;
}

.page-about__faq-title {
  margin: 0;
  color: #F2C14E;
}

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

.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;
  color: #FFF6D6;
  font-size: 0.95em;
  background-color: #111111;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
}

/* Join Us Section */
.page-about__join-us-section {
  padding: 60px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 20px 15px;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__hero-content {
    padding: 20px 15px;
    margin-top: -50px; /* Adjust for smaller screens */
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 8px;
  }

  .page-about__timeline-item:nth-child(odd)::after {
    right: auto;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }

  /* Mobile image specific overrides */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__feature-card,
  .page-about__history-image,
  .page-about__partners-tech-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure no horizontal scroll for elements */
  .page-about {
    overflow-x: hidden;
  }

}

/* Glow effect for main elements */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__feature-card,
.page-about__faq-item {
  position: relative;
  overflow: hidden;
}

.page-about__btn-primary::before,
.page-about__btn-secondary::before,
.page-about__feature-card::before,
.page-about__faq-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #FFD36B 0%, rgba(255, 211, 107, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.page-about__btn-primary:hover::before,
.page-about__btn-secondary:hover::before,
.page-about__feature-card:hover::before,
.page-about__faq-item:hover::before {
  opacity: 0.1;
  transform: scale(1.1);
}

.page-about__btn-primary span,
.page-about__btn-secondary span,
.page-about__feature-card *,
.page-about__faq-item * {
  position: relative;
  z-index: 1;
}