/* style/about.css */

/* General page-about styles */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.page-about__dark-bg {
  background-color: #1a263d; /* Slightly lighter dark blue for sections */
}

.page-about__light-bg {
  background-color: #f8f9fa; /* Light background for FAQ section */
  color: #333333; /* Dark text for light background */
}

/* Section Titles */
.page-about__main-title {
  font-size: 3.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color); /* Gold color for main title */
  line-height: 1.2;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color); /* Gold color for section titles */
  line-height: 1.3;
}

.page-about__section-title--dark-text {
  color: var(--primary-color); /* Dark text for light background sections */
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text-content strong {
  color: var(--secondary-color);
}

.page-about__link-text {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__link-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Image styles */
.page-about__image-wrapper {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__image-wrapper--small {
  max-width: 800px;
}

.page-about__main-image,
.page-about__feature-image,
.page-about__team-image,
.page-about__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Button styles */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color); /* Dark blue background */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--primary-color);
}

.page-about__cta-button:hover {
  background: var(--secondary-color); /* Gold on hover */
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.page-about__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-about__cta-button--secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

/* Intro Section */
.page-about__intro-section {
  padding-top: 120px; /* Desktop padding for fixed header */
  padding-bottom: 60px;
}

/* Mission, Vision, Values Section */
.page-about__mission-vision-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--secondary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
}

.page-about__value-item strong {
  color: var(--secondary-color);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Team Section */
.page-about__team-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #003366; /* Dark blue background for FAQ item */
}

.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;
  background-color: #1a263d; /* Slightly lighter dark blue for answer background */
  color: #ffffff; /* White text for dark background */
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important; /* Ensure padding is applied */
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Dark blue background for question */
  border: 1px solid #004488; /* Slightly lighter border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-about__faq-question:hover {
  background: #004488; /* Darker blue on hover */
  border-color: #0055aa;
}

.page-about__faq-question:active {
  background: #0055aa;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff; /* White text for question title */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle icon */
  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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(45deg); /* Change + to X or - */
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.6em;
  }
  .page-about__text-content {
    font-size: 1em;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-about__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-about__intro-section {
    padding-top: 100px !important; /* Mobile padding for fixed header */
    padding-bottom: 40px;
  }
  .page-about__container {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-about__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about__text-content {
    font-size: 0.95em;
  }
  .page-about__cta-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 1.1em;
  }
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-about__feature-item {
    padding: 20px;
  }
  .page-about__feature-title {
    font-size: 1.2em;
  }
  .page-about__faq-section {
    padding: 40px 15px;
  }
  .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;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__sub-title {
    font-size: 1.2em;
  }
  .page-about__cta-button {
    font-size: 1em;
    padding: 10px 25px;
  }
}