/* style/about.css */

/* Base styles for the page-about content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but explicitly defined for clarity */
}

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

.page-about__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
  background: rgba(26, 26, 46, 0.7); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  text-align: center;
}

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

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}

.page-about__introduction-section .page-about__section-title,
.page-about__core-values-section .page-about__section-title,
.page-about__security-section .page-about__section-title,
.page-about__why-choose-section .page-about__section-title,
.page-about__cta-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__products-services-section .page-about__section-title,
.page-about__responsible-gaming-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

/* Text Blocks & Lists */
.page-about__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-about__light-bg .page-about__text-block {
  color: #333333;
}

.page-about__dark-bg .page-about__text-block {
  color: #f0f0f0;
}

.page-about__security-list,
.page-about__responsibility-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__security-list li,
.page-about__responsibility-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__security-list li strong,
.page-about__responsibility-list li strong {
  color: #26A9E0;
}

/* Cards */
.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__card-text {
  font-size: 0.95em;
  color: #555555;
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__flex-group {
  display: flex;
  gap: 30px;
}

.page-about__mission-card,
.page-about__vision-card {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.page-about__mission-card .page-about__card-title,
.page-about__vision-card .page-about__card-title {
  color: #26A9E0;
}

.page-about__mission-card .page-about__card-text,
.page-about__vision-card .page-about__card-text {
  color: #f0f0f0;
}

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-about__value-item .page-about__value-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

/* Products & Services Section */
.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__product-card {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
  padding: 0; /* Remove padding for image to fill */
  overflow: hidden;
}

.page-about__product-card:hover {
  transform: translateY(-5px);
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for product images */
  object-fit: cover;
  margin-bottom: 15px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.page-about__product-card .page-about__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__product-card .page-about__card-text {
  color: #f0f0f0;
  padding: 0 15px 15px;
}

.page-about__button-group {
  text-align: center;
  margin-top: 20px;
}

/* Security Section */
.page-about__security-section .page-about__flex-group {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__security-section .page-about__text-content {
  flex: 1;
}

.page-about__security-section .page-about__image-content {
  flex: 1;
  text-align: center;
}

.page-about__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  list-style: none;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item summary:hover {
  background-color: #1e87b7;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  margin-left: 15px;
  font-size: 1.5em;
  line-height: 1;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 0.95em;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

.page-about__cta-section .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-about__cta-section .page-about__cta-buttons {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: 0;
  }
  .page-about__products-grid,
  .page-about__values-grid,
  .page-about__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__mission-vision-section .page-about__flex-group {
    flex-direction: column;
  }
  .page-about__security-section .page-about__flex-group {
    flex-direction: column;
  }
  .page-about__security-section .page-about__flex-group--reverse-mobile {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: 2em; /* Adjusted for mobile readability */
  }

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }

  .page-about__product-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__hero-content {
    padding: 15px;
  }
  .page-about__hero-cta-buttons {
    gap: 10px;
  }
}