/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #1F2D3D); /* Default text color, fallback to #1F2D3D */
  background-color: var(--background-color, #F4F7FB); /* Default background color, fallback to #F4F7FB */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main-color, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-color, #F4F7FB);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Using clamp for H1 font size */
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-about__subtitle {
  font-size: 1.2em;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__btn-secondary:hover {
  background: #F4F7FB;
  color: #2F6BFF;
  border-color: #4A8BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--card-bg-color, #FFFFFF); /* Light background */
}

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

.page-about__card {
  background: var(--card-bg-color, #FFFFFF);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #D6E2FF);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color, #1F2D3D);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 1em;
  color: var(--text-main-color, #1F2D3D);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--primary-color, #2F6BFF); /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__values-section .page-about__section-title {
  color: #ffffff;
}

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

.page-about__value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  box-shadow: 0 0 20px var(--glow-color, #A5C4FF);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: var(--background-color, #F4F7FB);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block {
  color: var(--text-main-color, #1F2D3D);
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__feature-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-main-color, #1F2D3D);
}

.page-about__feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color, #2F6BFF);
  font-weight: bold;
}

.page-about__image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: var(--primary-color, #2F6BFF); /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__responsible-gaming .page-about__section-title {
  color: #ffffff;
}

.page-about__responsible-gaming .page-about__description {
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--background-color, #F4F7FB);
}

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

.page-about__faq-item {
  background: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color, #1F2D3D);
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #2F6BFF);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-main-color, #1F2D3D);
  line-height: 1.7;
}

/* Dark background specific styles */
.page-about__dark-section {
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
}
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__card-title,
.page-about__dark-section .page-about__value-title {
  color: #ffffff;
}
.page-about__dark-section .page-about__card-text,
.page-about__dark-section .page-about__value-description,
.page-about__dark-section .page-about__description {
  color: rgba(255, 255, 255, 0.9);
}

/* Light background specific styles */
.page-about__light-bg {
  background-color: var(--background-color, #F4F7FB);
  color: var(--text-main-color, #1F2D3D);
}
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__value-title {
  color: var(--text-main-color, #1F2D3D);
}
.page-about__light-bg .page-about__card-text,
.page-about__light-bg .page-about__value-description,
.page-about__light-bg .page-about__description {
  color: var(--text-main-color, #1F2D3D);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px !important;
  }

  .page-about__section-title {
    font-size: 2em !important;
    margin-bottom: 30px !important;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section {
    padding: 40px 0 !important;
  }

  .page-about__hero-content {
    padding: 0 15px !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }

  .page-about__subtitle {
    font-size: 1em !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
  }

  .page-about__grid {
    grid-template-columns: 1fr !important;
  }

  .page-about__card {
    padding: 25px !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr !important;
  }

  .page-about__value-icon {
    width: 100px !important;
    height: 100px !important;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr !important;
  }

  .page-about__image-block {
    order: -1 !important; /* Image above text */
    padding: 0 15px !important;
  }

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

  .page-about__cta-bottom {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  /* Images responsive */
  .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-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

/* Contrast Fixes - Ensure text is visible on brand colors */
.page-about__dark-section {
  color: #ffffff; /* Deep blue background, light text */
  background-color: var(--primary-color, #2F6BFF);
}

.page-about__light-bg {
  color: var(--text-main-color, #1F2D3D); /* Light background, dark text */
  background-color: var(--background-color, #F4F7FB);
}

/* Ensure link colors have enough contrast */
.page-about a {
  color: var(--primary-color, #2F6BFF);
  text-decoration: underline;
}
.page-about a:hover {
  color: var(--secondary-color, #6FA3FF);
}

/* Specific button colors for contrast */
.page-about__btn-primary {
  color: #ffffff; /* White text on blue gradient button */
}
.page-about__btn-secondary {
  color: var(--primary-color, #2F6BFF); /* Blue text on white button */
}