/* style/index-core-services.css */
.page-index-core-services {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

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

/* Sections */
.page-index-core-services__hero-section,
.page-index-core-services__about-hi88,
.page-index-core-services__benefits-section,
.page-index-core-services__services-overview,
.page-index-core-services__download-guide,
.page-index-core-services__promotions,
.page-index-core-services__security-support,
.page-index-core-services__faq-section,
.page-index-core-services__cta-final {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-core-services__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-index-core-services__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-core-services__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for titles */
}

.page-index-core-services__light-bg .page-index-core-services__section-title {
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-index-core-services__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-index-core-services__light-bg .page-index-core-services__section-description {
  color: #555555;
}

/* Hero Section */
.page-index-core-services__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  color: #ffffff;
}

.page-index-core-services__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-index-core-services__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-index-core-services__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-index-core-services__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-index-core-services__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.5;
}

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

/* Buttons */
.page-index-core-services__btn-primary,
.page-index-core-services__btn-secondary,
.page-index-core-services__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index-core-services__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-index-core-services__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-core-services__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index-core-services__btn-tertiary {
  background-color: #EA7C07; /* Login color for tertiary */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index-core-services__btn-tertiary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

.page-index-core-services__cta-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* About hi88 */
.page-index-core-services__about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__about-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-index-core-services__about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-services__about-item-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-core-services__about-item-text {
  font-size: 1em;
  color: #555555;
}

/* Benefits Section */
.page-index-core-services__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index-core-services__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(38, 169, 224, 0.2);
}

.page-index-core-services__benefit-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-core-services__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Services Overview */
.page-index-core-services__services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__service-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  overflow: hidden;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-index-core-services__service-card:hover {
  transform: translateY(-10px);
}

.page-index-core-services__service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index-core-services__service-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index-core-services__service-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index-core-services__service-title a:hover {
  text-decoration: underline;
}

.page-index-core-services__service-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

/* Download Guide */
.page-index-core-services__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  border-left: 5px solid #26A9E0;
}

.page-index-core-services__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index-core-services__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions */
.page-index-core-services__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__promo-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  overflow: hidden;
  color: #333333;
  padding-bottom: 20px;
}

.page-index-core-services__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-index-core-services__promo-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-core-services__promo-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Security & Support */
.page-index-core-services__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-core-services__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  border-right: 5px solid #26A9E0;
}

.page-index-core-services__security-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index-core-services__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index-core-services__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-index-core-services__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-index-core-services__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background-color: #eaf8ff; /* Lighter shade of brand color */
  border-radius: 8px;
}

.page-index-core-services__faq-question:hover {
  background-color: #d8f0ff;
}

.page-index-core-services__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-index-core-services__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For details tag, native handling for open state */
.page-index-core-services__faq-item[open] .page-index-core-services__faq-answer {
  max-height: 1000px; /* Sufficiently large for content */
  padding-top: 15px;
}

.page-index-core-services__faq-item details > summary {
  list-style: none;
}

.page-index-core-services__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Final CTA */
.page-index-core-services__cta-final .page-index-core-services__cta-buttons {
  margin-top: 40px;
}

/* Images responsiveness and minimum size */
.page-index-core-services img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-services__hero-title {
    font-size: 3em;
  }
  .page-index-core-services__hero-description {
    font-size: 1.2em;
  }
  .page-index-core-services__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index-core-services__hero-section {
    min-height: 80vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-index-core-services__hero-title {
    font-size: 2.5em;
  }
  .page-index-core-services__hero-description {
    font-size: 1em;
  }
  .page-index-core-services__section-title {
    font-size: 1.8em;
  }
  .page-index-core-services__section-description {
    font-size: 0.9em;
  }
  .page-index-core-services__hero-cta-buttons,
  .page-index-core-services__cta-center,
  .page-index-core-services__cta-final .page-index-core-services__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-core-services__btn-primary,
  .page-index-core-services__btn-secondary,
  .page-index-core-services__btn-tertiary,
  .page-index-core-services a[class*="button"],
  .page-index-core-services 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;
  }
  
  /* Mobile image responsiveness */
  .page-index-core-services img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-index-core-services__container,
  .page-index-core-services__hero-section,
  .page-index-core-services__about-hi88,
  .page-index-core-services__benefits-section,
  .page-index-core-services__services-overview,
  .page-index-core-services__download-guide,
  .page-index-core-services__promotions,
  .page-index-core-services__security-support,
  .page-index-core-services__faq-section,
  .page-index-core-services__cta-final,
  .page-index-core-services__hero-content,
  .page-index-core-services__about-item,
  .page-index-core-services__benefit-card,
  .page-index-core-services__service-card,
  .page-index-core-services__step-item,
  .page-index-core-services__promo-card,
  .page-index-core-services__security-item,
  .page-index-core-services__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-core-services__about-grid,
  .page-index-core-services__benefits-grid,
  .page-index-core-services__services-grid,
  .page-index-core-services__download-steps,
  .page-index-core-services__promo-cards,
  .page-index-core-services__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-core-services__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-index-core-services__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-index-core-services__hero-title {
    font-size: 2em;
  }
  .page-index-core-services__section-title {
    font-size: 1.5em;
  }
  .page-index-core-services__hero-description {
    font-size: 0.9em;
  }
  .page-index-core-services__btn-primary,
  .page-index-core-services__btn-secondary,
  .page-index-core-services__btn-tertiary {
    padding: 12px 20px;
  }
}