/* style/index-about-jj8.css */

/* --- Base Styles --- */
.page-index-about-jj8 {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #333333); /* Default to dark text for light body background */
  background-color: var(--page-bg-color, #F5F7FA); /* Default background */
}

/* --- Hero Section --- */
.page-index-about-jj8__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--card-bg-color, #FFFFFF); /* Use white for hero background */
}

.page-index-about-jj8__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

.page-index-about-jj8__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-index-about-jj8__hero-content {
  max-width: 900px;
  text-align: center;
}

.page-index-about-jj8__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: var(--primary-color, #E53935);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-about-jj8__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main-color, #333333);
}

.page-index-about-jj8__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-index-about-jj8__btn-primary,
.page-index-about-jj8__btn-secondary,
.page-index-about-jj8__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-index-about-jj8__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-about-jj8__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

.page-index-about-jj8__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
}

.page-index-about-jj8__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-index-about-jj8__btn-text-link {
  color: var(--primary-color, #E53935);
  padding: 0;
  border: none;
  text-decoration: underline;
  font-size: 0.95em;
}

.page-index-about-jj8__btn-text-link:hover {
  color: var(--secondary-color, #FF5A4F);
  text-decoration: none;
}

/* --- General Sections --- */
.page-index-about-jj8__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 40px;
}

.page-index-about-jj8__section-title--white {
  color: #ffffff;
}

.page-index-about-jj8__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-index-about-jj8__text-block {
  font-size: 1.05em;
  color: var(--text-main-color, #333333);
  margin-bottom: 20px;
}

/* --- Vision Section --- */
.page-index-about-jj8__vision-section {
  background-color: var(--page-bg-color, #F5F7FA);
  padding: 60px 0;
}

.page-index-about-jj8__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index-about-jj8__image-text-block .page-index-about-jj8__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.page-index-about-jj8__image-text-block .page-index-about-jj8__text-content {
  flex: 1;
  min-width: 300px;
}

.page-index-about-jj8__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
}

/* --- Why Choose Section --- */
.page-index-about-jj8__why-choose-section {
  background-color: var(--card-bg-color, #FFFFFF);
  padding: 60px 0;
}

.page-index-about-jj8__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-about-jj8__feature-card {
  background-color: var(--page-bg-color, #F5F7FA);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-about-jj8__feature-icon {
  width: 100%;
  max-width: 250px; /* Constrain icon image size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-height: 200px; /* Ensure min size */
}

.page-index-about-jj8__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
}

.page-index-about-jj8__feature-card p {
  color: var(--text-main-color, #333333);
}

.page-index-about-jj8__cta-buttons--centered {
  margin-top: 40px;
}

/* --- Fairness Section --- */
.page-index-about-jj8__fairness-section {
  background-color: var(--page-bg-color, #F5F7FA);
  padding: 60px 0;
}

.page-index-about-jj8__content-wrapper--reverse {
  flex-direction: row-reverse; /* Image on right, text on left */
  align-items: center;
}

.page-index-about-jj8__content-wrapper--reverse .page-index-about-jj8__text-content {
  flex: 1;
  min-width: 300px;
}

.page-index-about-jj8__content-wrapper--reverse .page-index-about-jj8__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.page-index-about-jj8__list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-index-about-jj8__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-main-color, #333333);
}

.page-index-about-jj8__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color, #E53935);
  font-weight: bold;
}

/* --- CTA Bottom Section --- */
.page-index-about-jj8__cta-bottom-section {
  background-color: var(--primary-color, #E53935); /* Dark background for this section */
  padding: 80px 0;
  text-align: center;
}

.page-index-about-jj8__cta-bottom-section .page-index-about-jj8__description {
  color: #ffffff; /* White text for dark background */
}

.page-index-about-jj8__dark-bg {
  background-color: var(--primary-color, #E53935);
  color: #ffffff; /* Dark background, so light text */
}
.page-index-about-jj8__dark-bg .page-index-about-jj8__description {
  color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-index-about-jj8__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-index-about-jj8__image-text-block .page-index-about-jj8__image {
    order: -1; /* Image appears above text on smaller screens */
  }

  .page-index-about-jj8__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-index-about-jj8__content-wrapper--reverse .page-index-about-jj8__image {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index-about-jj8__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Body handles header offset */
  }

  .page-index-about-jj8__main-title {
    font-size: 2em;
  }

  .page-index-about-jj8__description {
    font-size: 1em;
  }

  .page-index-about-jj8__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-about-jj8__btn-primary,
  .page-index-about-jj8__btn-secondary,
  .page-index-about-jj8 a[class*="button"],
  .page-index-about-jj8 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-index-about-jj8__cta-buttons,
  .page-index-about-jj8__button-group,
  .page-index-about-jj8__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-index-about-jj8__content-wrapper {
    padding: 30px 15px;
  }

  .page-index-about-jj8__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-about-jj8__image-text-block {
    gap: 20px;
  }
  
  .page-index-about-jj8 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-about-jj8__hero-image-wrapper,
  .page-index-about-jj8__content-area,
  .page-index-about-jj8__vision-section,
  .page-index-about-jj8__why-choose-section,
  .page-index-about-jj8__fairness-section,
  .page-index-about-jj8__cta-bottom-section,
  .page-index-about-jj8__content-wrapper,
  .page-index-about-jj8__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-index-about-jj8__content-wrapper.page-index-about-jj8__content-wrapper--reverse {
    padding-left: 15px;
    padding-right: 15px;
  }
}