/* style/about.css */

/* Base Styles for About Page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color, #1A202C); /* Ensure consistency with shared body background */
}

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

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-faq {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A202C; /* Dark text on gold button */
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C; /* Dark text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-about__btn-faq {
  background-color: #1A202C;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 8px 15px;
  font-size: 14px;
  margin-top: 15px;
}

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

.page-about__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Use header offset here if body doesn't have it */
  padding-bottom: 80px;
  background-color: #1A202C;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__hero-content {
  flex: 1;
  max-width: 55%;
}

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

.page-about__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-about__hero-image-wrapper {
  flex: 1;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  object-fit: cover;
}

/* Mission, Vision, Values Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__mission-vision-section .page-about__section-title {
  color: #1A202C; /* Dark title on light background */
}

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

.page-about__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A202C;
}

.page-about__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__values-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.page-about__values-list li strong {
  color: #1A202C;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

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

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

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

.page-about__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: #FFD700; /* Accent background for icons */
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-text {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: #1A202C; /* Dark title on light background */
}

.page-about__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__responsible-gaming-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: cover;
}

.page-about__responsible-gaming-text {
  flex: 1;
  max-width: 50%;
}

.page-about__responsible-gaming-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555555;
}

.page-about__responsible-gaming-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #555555;
}

.page-about__responsible-gaming-list li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-about__responsible-gaming-list li strong {
  color: #1A202C;
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 25px !important; /* Adjusted padding */
  opacity: 1;
  background: #2a3340; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjusted padding */
  background: #2a3340;
  border: 1px solid #3a475a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #3a475a;
  border-color: #4a5b70;
}

.page-about__faq-question:active {
  background: #4a5b70;
}

.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; /* Accent color for question text */
}

.page-about__faq-toggle {
  font-size: 28px; /* Slightly larger toggle */
  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: 32px; /* Larger toggle area */
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Responsive Design */
/* All images base responsive style */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons base responsive style */
.page-about__hero-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-faq {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-center {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

  .page-about__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__hero-content,
  .page-about__hero-image-wrapper {
    max-width: 100%;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
  }

  .page-about__responsible-gaming-image,
  .page-about__responsible-gaming-text {
    max-width: 100%;
  }

  .page-about__responsible-gaming-text {
    text-align: center;
  }

  .page-about__responsible-gaming-list {
    text-align: left;
    margin-left: 20px;
  }

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

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

  .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: 30px 15px;
  }

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 80px) !important; /* Adjusted for mobile header */
    padding-bottom: 40px;
  }

  .page-about__hero-container {
    gap: 30px;
    padding: 0 15px;
  }

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

  .page-about__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-about__hero-image {
    height: 250px;
  }

  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

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

  .page-about__card {
    padding: 25px;
  }

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

  .page-about__card-text {
    font-size: 15px;
  }

  .page-about__values-list li {
    font-size: 15px;
  }

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

  .page-about__feature-item {
    padding: 25px;
  }

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

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

  .page-about__feature-text {
    font-size: 15px;
  }

  .page-about__responsible-gaming-content {
    gap: 20px;
  }

  .page-about__responsible-gaming-image {
    height: 250px;
  }

  .page-about__responsible-gaming-text p,
  .page-about__responsible-gaming-list li {
    font-size: 15px;
  }

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

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

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

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

  /* Mobile responsive for all images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Mobile responsive for all buttons and their containers */
  .page-about__hero-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-faq {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__cta-center,
  .page-about__hero-content,
  .page-about__responsible-gaming-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important; /* Ensure content is within padding of container */
  }
  
  .page-about__cta-center .page-about__btn-primary {
    margin-left: auto;
    margin-right: auto;
  }

  /* Specific adjustments for feature icons to prevent them from becoming too small */
  .page-about__feature-icon {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    padding: 10px;
  }
}