/* style/about.css */

/* General 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: #121212; /* Matches body background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-about__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #262626;
  color: #ffffff;
  padding: 80px 0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 120px 0 60px; /* Adjusted to use header-offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Mission & Vision Section */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-about__text-content {
  text-align: left;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-about__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-wrapper--center {
  margin-top: 40px;
}

.page-about__image-wrapper--mt-20 {
  margin-top: 20px;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  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(-10px);
  background-color: rgba(38, 169, 224, 0.1);
}

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

.page-about__card-text {
  color: #cccccc;
}

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

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__faq-item summary:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-about__grid-layout--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__text-content {
    order: 2;
    text-align: center;
  }
  .page-about__image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-about__why-choose-us-section .page-about__image-wrapper--center {
    margin-top: 30px;
    order: unset;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-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__dark-bg, .page-about__light-bg {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 1em;
  }
  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }
  
  /* Mobile image and container responsiveness */
  .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,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__security-fairplay-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__features-grid {
    gap: 20px;
  }
  .page-about__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}