/* style/about.css */

/* Base Styles for Page About */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Matches body background for consistency */
}

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

/* Sections */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-about__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  margin: 10px;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

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

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-about__text-block {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for text blocks on dark sections */
  border-radius: 8px;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight important titles */
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

/* History Section */
.page-about__history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__history-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__history-text {
  background: none; /* No extra background for text block in this context */
  padding: 0;
}

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

.page-about__feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for light background */
}

.page-about__card {
  background: #ffffff;
  color: #333333;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for titles on light background */
}

.page-about__card p {
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__content-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.page-about__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Partners & Technology */
.page-about__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__partner-item {
  background: rgba(255, 255, 255, 0.1); /* Light background for partners on dark section */
  padding: 20px;
  border-radius: 8px;
}

.page-about__partner-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 100px;
}

.page-about__partner-name {
  font-weight: bold;
  color: #ffffff;
}

.page-about__tech-description {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker question background */
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Highlight toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

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

.page-about__cta-contact p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Global image rules for content area - min size 200x200px */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Ensure content area images are not smaller than 200px */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid,
  .page-about__history-content,
  .page-about__responsible-gaming .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__history-image, .page-about__responsible-gaming-image {
    order: -1; /* Image first on mobile */
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-about__container {
    padding: 0 15px;
  }

  /* Mobile responsive for images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to scale down */
    min-height: unset !important;
  }
  .page-about__feature-icon {
    width: 150px !important;
    height: auto !important;
    min-width: 150px !important; /* Still keep a reasonable size for icons */
    min-height: 150px !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Mobile responsive for videos (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* General content containers for mobile */
  .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;
  }

  .page-about__text-block {
    padding: 15px;
  }

  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}