/* ============================================
   CLOUDEMY — Services Page Styles
   ============================================ */

/* --- Service Intro --- */
.service-intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-intro__text .section-tag { margin-bottom: 12px; }
.service-intro__text h2 { margin-bottom: 16px; }
.service-intro__text p { font-size: 1rem; line-height: 1.8; }
.service-intro__text .btn { margin-top: 20px; }
.service-intro__visual {
  position: relative;
}
.service-intro__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.service-intro__visual::before {
  content: '';
  position: absolute;
  top: -14px; right: -14px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-purple-faint), #ede9fe);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- What We Offer / Feature List --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-purple-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(124,58,237,0.07);
  border-color: var(--c-purple-light);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 44px; height: 44px;
  background: var(--c-purple-faint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; color: var(--c-purple); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--c-text-muted); margin-bottom: 0; line-height: 1.65; }

/* --- Tech Stack Inline --- */
.tech-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tech-inline__item {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--c-purple-faint);
  color: var(--c-text-body);
  transition: all 0.3s;
}
.tech-inline__item:hover { background: var(--c-purple); color: #fff; }

/* --- Process Section (Service-specific) --- */
.svc-process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.svc-process-step {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  position: relative;
}
.svc-process-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.svc-process-step h3 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.svc-process-step p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 0; line-height: 1.6; }

/* --- FAQ Section --- */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
}
.faq-item__q svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--c-purple);
  transition: transform 0.3s;
}
.faq-item.open .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-item__a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-item__a p {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Service CTA --- */
.service-cta {
  text-align: center;
}
.service-cta h2 { color: #fff; margin-bottom: 14px; }
.service-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.02rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

/* --- Services Overview Page --- */
.services-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-overview-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.svc-overview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-purple-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(124,58,237,0.09);
  border-color: var(--c-purple-light);
}
.svc-overview-card:hover::before { opacity: 1; }
.svc-overview-card__icon {
  width: 52px; height: 52px;
  background: var(--c-purple-faint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-overview-card__icon svg { width: 26px; height: 26px; color: var(--c-purple); }
.svc-overview-card h3 { margin-bottom: 10px; }
.svc-overview-card p { font-size: 0.92rem; color: var(--c-text-muted); line-height: 1.65; margin-bottom: 16px; }
.svc-overview-card__link {
  font-size: 0.88rem; font-weight: 600;
  color: var(--c-purple);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-overview-card__link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.svc-overview-card:hover .svc-overview-card__link svg { transform: translateX(4px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .service-intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .service-intro__visual { order: -1; }
  .service-intro__visual::before { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .services-overview__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features__grid,
  .svc-process__steps,
  .services-overview__grid { grid-template-columns: 1fr; }
}
