/* style/about.css */

/* Base Styles & Page-specific Overrides */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__section-title--gold {
  color: #FFD700;
}

.page-about__subtitle {
  font-size: 18px;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 50px;
}

.page-about__dark-section {
  background-color: #001a33; /* Slightly darker than main brand color for contrast */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__card--light-bg {
  background-color: #1a4d80; /* Lighter shade of brand blue for cards on dark background */
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px 0; /* Adjust padding-top for fixed header offset */
  margin-top: 0;
  text-align: center;
  background: linear-gradient(135deg, #003366, #001a33);
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-about__content-block {
  text-align: left;
  font-size: 17px;
  color: #e0e0e0;
}

.page-about__content-block p {
  margin-bottom: 20px;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #003366;
  padding: 80px 0;
}

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

.page-about__card {
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-about__card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-about__card ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
}

.page-about__card li {
  margin-bottom: 10px;
}

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

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

.page-about__feature-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #001a33; /* Darker blue for features */
}

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

.page-about__feature-icon {
  width: 200px; /* Enforced minimum size */
  height: 200px; /* Enforced minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded for aesthetics */
}

.page-about__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-about__responsibility-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-about__responsibility-list li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  top: -2px;
}

.page-about__responsibility-list strong {
  color: #FFD700;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-about__value-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background-color: #1a4d80; /* Lighter shade of brand blue for cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #001a33; /* Darker blue for FAQ items */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #001a33;
  border: 1px solid #004080; /* Slightly lighter border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-about__faq-question:hover {
  background: #00264d;
  border-color: #0059b3;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #CC0000;
  transform: rotate(180deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #001a33; /* Darker blue for answer background */
  color: #e0e0e0;
  font-size: 16px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

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

.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: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 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: #003366;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #003366;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 42px;
  }

  .page-about__hero-description {
    font-size: 18px;
  }

  .page-about__section-title {
    font-size: 32px;
  }

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

  .page-about__card,
  .page-about__feature-card,
  .page-about__value-card {
    padding: 30px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__value-title {
    font-size: 26px;
  }

  .page-about__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: calc(var(--header-offset, 120px) + 60px) 0 40px 0;
  }

  .page-about__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__values-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__content-block,
  .page-about__card p,
  .page-about__card li,
  .page-about__feature-card p,
  .page-about__responsibility-list,
  .page-about__value-card p,
  .page-about__faq-answer {
    font-size: 15px;
  }

  .page-about__grid,
  .page-about__features-grid,
  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__value-card {
    padding: 25px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__value-title {
    font-size: 22px;
  }

  .page-about__feature-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 100% !important;
  }

  .page-about__responsibility-list li {
    padding-left: 25px;
  }

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

  .page-about__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-about__content-block,
  .page-about__card,
  .page-about__feature-card,
  .page-about__value-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure content containers have padding for mobile */
  .page-about__introduction-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}