/* style/index-core-services.css */

/* --- Base Styles & Variables --- */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --button-hover-gradient: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Adjusted for hover */
}

.page-index-core-services {
  font-family: 'Arial', sans-serif; /* Example font */
  background-color: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text for dark background */
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-index-core-services h1,
.page-index-core-services h2,
.page-index-core-services h3 {
  color: var(--color-text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-index-core-services h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive H1 */
  font-weight: bold;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-services h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.page-index-core-services h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page-index-core-services p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

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

/* --- Hero Section --- */
.page-index-core-services__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-background);
}

.page-index-core-services__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-core-services__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-index-core-services__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above image if any overlap occurs (though it shouldn't) */
  color: var(--color-text-main);
}

.page-index-core-services__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.page-index-core-services__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-index-core-services__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  min-width: 180px;
}

.page-index-core-services__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-index-core-services__btn-primary:hover {
  background: var(--button-hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-core-services__btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.page-index-core-services__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Intro Section --- */
.page-index-core-services__intro-section {
  background-color: var(--color-background);
  padding: 60px 0;
}

.page-index-core-services__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.page-index-core-services__section-paragraph {
  text-align: justify;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

/* --- Services Section --- */
.page-index-core-services__services-section {
  padding: 60px 0;
  background-color: var(--color-card-bg); /* Darker background for cards */
  color: var(--color-text-main);
}

.page-index-core-services__service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.page-index-core-services__service-card {
  background-color: var(--color-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-core-services__service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-core-services__service-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block; /* Ensure it behaves as a block for max-width */
}

.page-index-core-services__card-title {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page-index-core-services__card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 1.5rem;
}

.page-index-core-services__service-card .page-index-core-services__cta-button {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
}

/* --- Why Choose Us Section --- */
.page-index-core-services__why-choose-us-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-index-core-services__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.page-index-core-services__feature-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-core-services__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-core-services__feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
  display: block; /* Ensure it behaves as a block for max-width */
}

.page-index-core-services__feature-card .page-index-core-services__card-title {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.page-index-core-services__feature-card .page-index-core-services__card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.page-index-core-services__card-link {
  color: var(--color-glow);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-index-core-services__card-link:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* --- How to Start Section --- */
.page-index-core-services__how-to-start-section {
  padding: 60px 0;
  background-color: var(--color-background); /* Using base background */
}

.page-index-core-services__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.page-index-core-services__step-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-services__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block; /* Ensure it behaves as a block for max-width */
}

.page-index-core-services__step-card .page-index-core-services__cta-button {
  margin-top: auto;
  width: 100%;
}

/* --- FAQ Section --- */
.page-index-core-services__faq-section {
  padding: 60px 0;
  background-color: var(--color-card-bg); /* Darker background */
  color: var(--color-text-main);
}

.page-index-core-services__faq-list {
  max-width: 900px;
  margin: 3rem auto 0 auto;
}

.page-index-core-services__faq-item {
  background-color: var(--color-background);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--color-divider);
  overflow: hidden; /* For details tag */
}

.page-index-core-services__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-text-main);
  background-color: var(--color-deep-green); /* Slightly different background for summary */
  transition: background-color 0.3s ease;
}

.page-index-core-services__faq-item summary:hover {
  background-color: rgba(var(--color-deep-green), 0.8);
}

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

.page-index-core-services__faq-qtext {
  flex-grow: 1;
}

.page-index-core-services__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-glow);
}

.page-index-core-services__faq-item[open] .page-index-core-services__faq-toggle {
  content: '−'; /* Change to minus when open, handled by JS for non-details */
}

.page-index-core-services__faq-answer {
  padding: 20px 25px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.page-index-core-services__faq-answer p {
  margin-bottom: 1rem;
}

.page-index-core-services__faq-answer .page-index-core-services__card-link {
  margin-top: 0.5rem;
  display: inline-block;
}

/* --- CTA Banner --- */
.page-index-core-services__cta-banner {
  background-color: var(--color-primary); /* Use primary color as background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff; /* White text for primary color background */
}

.page-index-core-services__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-services__cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.page-index-core-services__cta-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 768px) {
  .page-index-core-services__content-area,
  .page-index-core-services__hero-content {
    padding: 20px 15px; /* Smaller padding for mobile */
  }

  .page-index-core-services__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-index-core-services__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-index-core-services__cta-button {
    width: 100% !important; /* Full width for buttons on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-index-core-services__service-grid,
  .page-index-core-services__feature-grid,
  .page-index-core-services__steps-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  
  /* Mobile image responsiveness */
  .page-index-core-services img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/content to prevent overflow */
  .page-index-core-services__hero-section,
  .page-index-core-services__intro-section,
  .page-index-core-services__services-section,
  .page-index-core-services__why-choose-us-section,
  .page-index-core-services__how-to-start-section,
  .page-index-core-services__faq-section,
  .page-index-core-services__cta-banner,
  .page-index-core-services__service-card,
  .page-index-core-services__feature-card,
  .page-index-core-services__step-card,
  .page-index-core-services__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index-core-services__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-index-core-services__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-index-core-services h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-index-core-services h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  .page-index-core-services__hero-description {
    font-size: 1rem;
  }
  .page-index-core-services__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
}

/* --- Color Contrast Fixes (if needed) --- */
.page-index-core-services__dark-bg {
  background-color: var(--color-card-bg); /* Example: Dark background */
  color: var(--color-text-main); /* Light text */
}

.page-index-core-services__light-bg {
  background-color: var(--color-background); /* Example: Light background (or could be white) */
  color: var(--color-text-main); /* Dark text for light background */
}

.page-index-core-services__medium-bg {
  background-color: var(--color-primary); /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}