/* style/about.css */

/* Base styles for the About Us page, scoped to .page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Fixed navigation bar spacing */
.page-about__hero-spacing {
  height: 120px; /* Desktop padding for fixed header */
  width: 100%;
  display: block;
}

/* Container for content sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Headings */
.page-about__main-heading {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Primary brand color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__secondary-heading {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Primary brand color */
  text-align: center;
  margin: 60px 0 40px 0;
  line-height: 1.3;
}

.page-about__sub-heading {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Primary brand color */
  margin-bottom: 20px;
  text-align: center;
}

/* Paragraphs */
.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-about__paragraph strong {
  color: #FFD700; /* Highlight keywords */
}

/* Sections */
.page-about__intro-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__vision-mission-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-about__why-choose-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__license-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__responsible-gambling-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__commitment-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__contact-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Card styles */
.page-about__card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have equal height */
  box-sizing: border-box;
}

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

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

.page-about__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  min-width: 200px;
  box-sizing: border-box;
}

.page-about__btn--primary {
  background-color: #FFD700; /* Primary brand color */
  color: #0a0a0a; /* Dark text for bright background */
  border: 2px solid #FFD700;
}

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

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

.page-about__btn--secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
  transform: translateY(-2px);
}

/* Vision and Mission Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Why Choose Section Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-about__feature-icon {
  width: 120px; /* Ensure images are not too small */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto; /* Maintain aspect ratio */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__list-item {
  font-size: 17px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-about__list-item::before {
  content: '✓';
  color: #FFD700;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__list-item strong {
  color: #FFD700;
}

/* Contact Info */
.page-about__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-about__contact-item {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__contact-item strong {
  color: #FFD700;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Card background for FAQ items */
}

.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 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly different background when active */
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1); /* Question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
  border-radius: 5px 5px 0 0; /* No bottom border when active */
  border-bottom: none;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.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: #FFD700; /* Question text color */
}

.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: #FFD700;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect, or keep as '-' */
}

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

/* Responsive design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 36px;
  }

  .page-about__secondary-heading {
    font-size: 28px;
  }

  .page-about__sub-heading {
    font-size: 22px;
  }

  .page-about__paragraph {
    font-size: 16px;
  }

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

  .page-about__btn {
    padding: 12px 25px;
    font-size: 16px;
    min-width: 180px;
  }

  .page-about__hero-spacing {
    height: 100px; /* Tablet padding */
  }
}

@media (max-width: 768px) {
  .page-about__hero-spacing {
    height: 100px !important; /* Mobile padding for fixed header */
  }

  .page-about__main-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-about__secondary-heading {
    font-size: 24px;
    margin: 40px 0 30px 0;
  }

  .page-about__sub-heading {
    font-size: 20px;
  }

  .page-about__paragraph {
    font-size: 15px;
  }

  .page-about__intro-section,
  .page-about__vision-mission-section,
  .page-about__why-choose-section,
  .page-about__license-section,
  .page-about__responsible-gambling-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 40px 0;
  }

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

  .page-about__btn {
    width: 100%;
    max-width: 280px; /* Limit width on small screens */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-about__feature-title {
    font-size: 18px;
  }

  .page-about__list-item {
    font-size: 15px;
    padding-left: 25px;
  }

  .page-about__list-item::before {
    top: 2px;
  }

  .page-about__contact-item {
    font-size: 16px;
  }

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

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

  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

  /* Force image responsiveness for all images and their containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}