/* Base Styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--deep-navy-color); /* Inherited from body via shared.css */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main-color, #F3F8FF);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__section-description {
  font-size: 18px;
  color: var(--text-secondary-color, #AFC4E8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-about__card {
  background-color: var(--card-bg-color, #10233F);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main-color, #F3F8FF);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__card-text {
  font-size: 16px;
  color: var(--text-secondary-color, #AFC4E8);
  line-height: 1.7;
  flex-grow: 1;
}

.page-about__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--centered {
  margin: 30px auto 0 auto;
  display: block;
  max-width: 300px;
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
  max-width: 350px;
  margin-top: 40px;
}

.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy-color);
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42.1875%; /* 16:9 aspect ratio for 1920x810, 810/1920 = 0.421875 */
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: -120px auto 0 auto; /* Pull content up over the image */
  text-align: center;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main-color, #F3F8FF);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 20px;
  color: var(--text-secondary-color, #AFC4E8);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: var(--deep-navy-color);
}

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

.page-about__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--card-bg-color, #10233F);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  height: 100%;
  box-sizing: border-box;
}

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

.page-about__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main-color, #F3F8FF);
  margin-bottom: 10px;
}

.page-about__feature-description {
  font-size: 15px;
  color: var(--text-secondary-color, #AFC4E8);
  line-height: 1.6;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
}

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

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

/* Security & Fairness and Responsible Gaming Sections */
.page-about__security-fairness-section, .page-about__responsible-gaming-section {
  padding: 80px 0;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-content p {
  font-size: 17px;
  color: var(--text-secondary-color, #AFC4E8);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__image-content {
  flex: 1;
  min-width: 300px;
}

.page-about__security-image, .page-about__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Customer Support Section */
.page-about__customer-support-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #244D84);
  overflow: hidden;
  background: var(--card-bg-color, #10233F);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(43, 115, 246, 0.1); /* Lighter hover for dark background */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #F3F8FF);
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color, #4FA8FF);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: rgba(16, 35, 63, 0.8); /* Slightly lighter than card bg */
  border-radius: 0 0 10px 10px;
}
.page-about__faq-answer p {
  font-size: 16px;
  color: var(--text-secondary-color, #AFC4E8);
  line-height: 1.7;
  margin-bottom: 0;
}

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

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
  .page-about__hero-content {
    margin-top: -100px;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image-content {
    order: -1; /* Image first on smaller screens for reverse flex */
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__section-description {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 22px;
  }
  .page-about__card-text {
    font-size: 15px;
  }
  .page-about__cta-button--large {
    font-size: 18px;
    padding: 15px 35px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
  .page-about__hero-image {
    object-fit: contain !important; /* Force contain for mobile hero */
    position: relative;
    height: auto;
    padding-bottom: 0;
  }
  .page-about__hero-image-wrapper {
    padding-bottom: 0;
    height: auto;
  }
  .page-about__hero-content {
    margin-top: 20px; /* Adjust margin for mobile, no overlap */
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-about__cta-button {
    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-button--centered, .page-about__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__security-fairness-section,
  .page-about__responsible-gaming-section,
  .page-about__customer-support-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__features-grid, .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-about__feature-item, .page-about__card {
    padding: 20px;
  }
  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__feature-description {
    font-size: 14px;
  }
  .page-about__text-content p {
    font-size: 15px;
  }
  .page-about__image-content {
    min-width: unset;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about__faq-answer p {
    font-size: 15px;
  }
}