/* style/about.css */

/* Base styles for page-about, ensuring text color for light body background */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f5f5f5 */
  background-color: transparent; /* Inherit from body */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #1A202C;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-about__item-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-about__item-text {
  font-size: 1em;
  color: #555555;
}

/* 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, more bottom padding */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(26, 32, 44, 0.7); /* Semi-transparent background for content */
  border-radius: 8px;
  margin-top: 50px; /* Space from header */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.page-about__tagline {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Mission Section */
.page-about__mission-section,
.page-about__security-section,
.page-about__partnerships-section,
.page-about__final-cta-section {
  padding: 80px 0;
}

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

.page-about__mission-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__mission-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-card {
  background-color: #1A202C;
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__feature-card .page-about__card-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-about__feature-card .page-about__card-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

/* Security Section */
.page-about__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__security-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__security-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-about__responsible-item {
  background-color: #FFD700;
  color: #1A202C;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__responsible-item .page-about__item-title {
  color: #1A202C;
}

.page-about__responsible-item .page-about__item-text {
  color: #333333;
}

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

/* Partnerships Section */
.page-about__partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-about__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%); /* Example style, can be removed */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.page-about__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background-color: #1A202C;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1A202C;
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-about__faq-question:hover {
  background-color: #2a3447;
}

.page-about__faq-question h3 {
  margin: 0;
  color: #FFD700;
  font-size: 1em; /* Adjusted for mobile readability */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a3447;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px 25px;
}

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

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

/* Final CTA Section */
.page-about__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Color Contrast Classes */
.page-about__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__description {
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__description {
  color: #1A202C;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: 30px;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    margin-top: 20px;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__tagline {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-about__container {
    padding: 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-about__description {
    margin-bottom: 30px;
  }
  .page-about__mission-section,
  .page-about__why-choose-us,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__partnerships-section,
  .page-about__faq-section,
  .page-about__final-cta-section {
    padding: 40px 0;
  }

  /* Mobile specific image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content,
  .page-about__mission-item,
  .page-about__feature-card,
  .page-about__security-item,
  .page-about__responsible-item,
  .page-about__faq-item,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  
  .page-about__faq-question h3 {
    font-size: 0.9em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__mission-grid, .page-about__features-grid, .page-about__security-grid, .page-about__responsible-grid {
    grid-template-columns: 1fr;
  }
  .page-about__partner-logo {
    width: 120px;
    height: 90px;
  }
}