/* style/about.css */

/* Base styles for the page-about content */
.page-about {
  color: #FFF5E1; /* Main text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensuring consistency with body background */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 40px; /* Adjusted padding */
  padding-top: 10px; /* Small top padding for the first section */
  background-color: #000000;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height to control aspect ratio */
  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 {
  text-align: center;
  padding: 40px 15px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over the image for visual interest, without overlapping text */
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  color: #F4D34D; /* Gold color for main title */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
}

.page-about__description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #FFF5E1;
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text on gold button for contrast */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544; /* Gold border */
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3rem;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F4D34D; /* Gold color for section titles */
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-about__text {
  font-size: 1rem;
  color: #FFF5E1;
  text-align: center;
  margin-bottom: 30px;
}

/* Mission and Vision Section */
.page-about__mission-vision-section {
  background-color: #B71C1C; /* Darker Red background */
  padding: 60px 0;
}

.page-about__cards-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: #D32F2F; /* Card background color */
  color: #FFF5E1; /* Text on card */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Gold border for cards */
}

.page-about__card-title {
  font-size: 1.5rem;
  color: #FFD86A; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.page-about__card-text {
  font-size: 1rem;
  color: #FFF5E1;
  text-align: justify;
}

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

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

.page-about__feature-item {
  text-align: center;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4rem;
  color: #FFD86A; /* Gold for feature titles */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__feature-text {
  font-size: 0.95rem;
  color: #FFF5E1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #B71C1C;
  padding: 60px 0;
}

.page-about__learn-more-button {
  display: inline-block;
  background-color: #C91F17; /* Main brand color */
  color: #FFF5E1;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: 1px solid #E53935;
}

.page-about__learn-more-button:hover {
  background-color: #E53935;
}

/* Technology Section */
.page-about__technology-section {
  background-color: #000000;
  padding: 60px 0;
}

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

.page-about__tech-item {
  text-align: center;
}

.page-about__tech-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__tech-title {
  font-size: 1.5rem;
  color: #FFD86A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__tech-text {
  font-size: 1rem;
  color: #FFF5E1;
}

/* Community Section */
.page-about__community-section {
  background-color: #B71C1C;
  padding: 60px 0;
}

.page-about__community-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  margin: 30px auto 0;
  display: block;
  object-fit: cover;
}

/* Join Us Section */
.page-about__join-us-section {
  background-color: #000000;
  padding: 60px 0;
}

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

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

.page-about__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Gold border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFD86A; /* Gold for FAQ question text */
  background-color: #D32F2F;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #C91F17; /* Main brand color on hover */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFD86A;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF5E1;
  text-align: justify;
}

/* Details element specific styling */
.page-about__faq-item summary {
  list-style: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 0 20px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px 15px;
  }

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

  .page-about__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-about__text {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-about__cards-wrapper,
  .page-about__features-grid,
  .page-about__tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__feature-title {
    font-size: 1.2rem;
  }

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

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

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

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

  .page-about__hero-image-wrapper,
  .page-about__container,
  .page-about__cards-wrapper,
  .page-about__features-grid,
  .page-about__tech-grid,
  .page-about__faq-list,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Specific overrides for buttons to ensure responsiveness */
  .page-about__cta-button,
  .page-about__learn-more-button {
    max-width: 100% !important;
    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__cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}