/******************************************
  APPLE THEME – DEFAULT ITEM LIST SECTION
  (our-services-section + parent + child)
******************************************/

/* Whole section wrapper */
.our-services-section {
  position: relative;
  padding: 110px 24px 120px;
  background-color: var(--background-color, #000000);
  color: #f9fafb;
  overflow: hidden;
}

/* Heading area at top */
.heading-container {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.heading-container .text-container {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* Small top label (part1) */
.heading-container .text-container h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.75);
}

/* Main heading (part2) */
.heading-container .text-container h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* Underline */
.heading-container .text-container .separator2 {
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--accent-color, #0071e3);
  margin: 18px auto 18px;
}

/* Description under heading */
.heading-container .center-text-description {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
}

/* Sub-heading (our-services-description) */
.our-services-description {
  max-width: 780px;
  margin: 10px auto 36px;
  text-align: center;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
}


/* ==========================================
   BACKGROUND + CARD GRID
   .parent uses sectionImageUrl as background
   ========================================== */

.parent {
  position: relative;
  margin: 0 auto;
  padding: 10% 80px 10%;
  border-radius: 36px;
  overflow: hidden;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;

  /* sectionImageUrl is applied inline via [ngStyle] */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Dark / colorful overlay over the background image */
.parent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.4), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.92));
}

/* Simple parallax on desktop */
@media (min-width: 1024px) {
  .parent {
    background-attachment: fixed;
  }
}

/* ==========================================
   CARD STYLING – .child becomes Apple card
   ========================================== */

.child {
  position: relative;
  z-index: 1; /* above overlay */

  flex: 1 1 260px;
  max-width: 320px;
  min-height: 260px;

  background-color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.55);

  display: flex;
  align-items: stretch;
  justify-content: center;

  padding: 0;
  border: none;
  backdrop-filter: none; /* kill old blur frame */
}

/* Kill old dark overlay per card */
.child::after {
  content: none;
}

/* Inner content */
.child .content {
  position: relative;
  padding: 26px 30px 24px;
  top: auto;
  max-width: 100%;

  color: #111827;
  font-size: 0.95rem;
  text-shadow: none;
}

/* Header / title */
.content-header {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.content-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

/* Accent underline inside card */
.content-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--accent-color, #0071e3);
  border: none;
}

/* Body text */
.content-text {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  text-shadow: none;
}

/* Optional link area if used */
.content-link {
  margin-top: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.content-link a {
  color: #0071e3;
  text-decoration: none;
}
.content-link a:hover {
  text-decoration: underline;
}

/* ==========================================
   RESPONSIVE TWEAKS
   ========================================== */

@media (max-width: 1024px) {
  .our-services-section {
    padding: 90px 16px 100px;
  }

  .parent {
    padding: 32px 20px 40px;
    border-radius: 28px;
  }

  .child {
    flex: 1 1 45%;
    max-width: 100%;
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .our-services-section {
    padding: 70px 12px 80px;
  }

  .heading-container .text-container h2 {
    font-size: 1.9rem;
  }

  .parent {
    padding: 28px 16px 34px;
    border-radius: 22px;
    gap: 18px;
  }

  .child {
    flex: 1 1 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 0;
  }

  .child .content {
    padding: 22px 18px 20px;
  }
}
