/* style/about.css */

/* General Page Styling */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFB81C;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E44D26;
  border-radius: 2px;
}

.page-about__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-about__text-content {
  flex: 1;
  min-width: 300px;
}

.page-about__image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Color Schemes */
.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff; /* Light text for dark background */
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 0;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
  border: 2px solid #E44D26;
}

.page-about__btn-primary:hover {
  background-color: #FFB81C;
  border-color: #FFB81C;
  color: #0a0a0a;
}

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

.page-about__btn-secondary:hover {
  background-color: #FFB81C;
  color: #0a0a0a;
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
  padding-bottom: 60px;
  text-align: center;
}

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

.page-about__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__text-content p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

/* Our Games Section */
.page-about__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 22px;
  color: #FFB81C;
  padding: 15px 15px 0;
}

.page-about__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-card p {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 15px 20px;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section .page-about__text-content p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

/* Our Team Section */
.page-about__our-team-section .page-about__text-content p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-question:hover {
  background: #FFB81C; /* Auxiliary color on hover */
  color: #0a0a0a;
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 32px;
  height: 32px;
}

.page-about__faq-question:hover .page-about__faq-toggle {
  color: #0a0a0a;
}

.page-about__faq-item.active .page-about__faq-question {
  background: #FFB81C;
  color: #0a0a0a;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #0a0a0a;
  transform: rotate(45deg); /* Changed from '-' to '+' rotated for visual effect */
}

.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-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  color: #e0e0e0;
}

.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;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #e0e0e0;
}

.page-about__faq-answer a {
  color: #E44D26;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #FFB81C;
}

/* CTA Section */
.page-about__cta-section {
  padding: 100px 0;
  text-align: center;
}

.page-about__cta-container {
  max-width: 800px;
}

.page-about__cta-title {
  font-size: 42px;
  color: #FFB81C;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

  .page-about__content-wrapper {
    flex-direction: column;
  }

  .page-about__text-content, .page-about__image-container {
    min-width: unset;
    width: 100%;
  }

  .page-about__image-container img {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-about__dark-bg, .page-about__light-bg {
    padding: 60px 0;
  }

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure correct padding on mobile */
  }

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

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

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

  .page-about__section-title::after {
    width: 60px;
  }

  .page-about__feature-card, .page-about__game-card {
    padding: 20px;
  }

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

  .page-about__game-card img {
    
  }

  .page-about__game-title {
    font-size: 20px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__button-group,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-about__image-container img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

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

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

/* Ensure no image filters are used */
.page-about img {
  filter: none; /* Explicitly ensure no filters are applied */
}

/* Content area images CSS dimensions lower bound */
.page-about__content-area img,
.page-about__mission-vision-section img,
.page-about__our-games-section img,
.page-about__responsible-gambling-section img,
.page-about__our-team-section img,
.page-about__game-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for game-card images to allow object-fit cover but maintain min-height */
.page-about__game-card img {
  height: 200px;
  object-fit: cover;
}

/* General text styling to ensure contrast on dark background */
.page-about p,
.page-about li,
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
  color: #ffffff;
}

.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg h1,
.page-about__light-bg h2,
.page-about__light-bg h3,
.page-about__light-bg h4,
.page-about__light-bg h5,
.page-about__light-bg h6 {
  color: #ffffff;
}

.page-about__dark-bg p,
.page-about__dark-bg li,
.page-about__dark-bg h1,
.page-about__dark-bg h2,
.page-about__dark-bg h3,
.page-about__dark-bg h4,
.page-about__dark-bg h5,
.page-about__dark-bg h6 {
  color: #ffffff;
}

.page-about__feature-title, .page-about__game-title {
  color: #FFB81C; /* Ensure titles use auxiliary color */
}

.page-about__hero-title {
  color: #FFB81C;
}

.page-about__hero-description {
  color: #f0f0f0;
}

.page-about__cta-title {
  color: #FFB81C;
}

.page-about__cta-description {
  color: #f0f0f0;
}

.page-about__faq-question {
  background: #E44D26;
  color: #ffffff;
}

.page-about__faq-question:hover {
  background: #FFB81C;
  color: #0a0a0a;
}

.page-about__faq-item.active .page-about__faq-question {
  background: #FFB81C;
  color: #0a0a0a;
}

.page-about__faq-question:hover .page-about__faq-toggle {
  color: #0a0a0a;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #0a0a0a;
}

.page-about__faq-answer {
  color: #e0e0e0;
}

.page-about__faq-answer a {
  color: #E44D26;
}

.page-about__faq-answer a:hover {
  color: #FFB81C;
}