/* ========================================
   LAYANAN PAGE — Bold & Engaging Redesign
   Struktur HTML dinamis tidak diubah.
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ---- Variables ---- */
:root {
  --primary-light: #dbeafe;
  --primary-border: #93c5fd;
  --secondary-light: #cffafe;
  --secondary-border: #67e8f9;
  --success:       #10b981;
  --danger:        #ef4444;
  --text-main:     #111827;
  --text-muted:    #6b7280;
  --surface:       #f4f6f9;
  --card-bg:       #ffffff;
  --border:        rgba(0, 0, 0, 0.07);
  --radius:        20px;
  --shadow-card:   0 2px 16px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-hover:  0 22px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(37,99,235,0.1);
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

/* ========================================
   SECTION WRAPPER
   ======================================== */
.layanan-section {
  padding: 80px 0 100px;
  background: var(--surface);
  font-family: var(--font-body);
  position: relative;
}

/* Ambient background glow */
.layanan-section::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(37,99,235,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 75%, rgba(var(--secondary-color-rgb, 2,132,199), 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.layanan-section .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* ========================================
   SECTION INTRO DIVIDER (dekoratif statis)
   ======================================== */
.layanan-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.layanan-intro-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.layanan-intro-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layanan-intro-label i {
  color: var(--primary-color, #2563eb);
  font-size: 0.85rem;
}

/* ========================================
   SERVICE CARD
   ======================================== */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin: 0 0 40px 0;
  position: relative;
}

/* Clip inner content only */
.service-card-inner {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Decorative card number (statis, top-right) */
.card-index-label {
  position: absolute;
  top: -14px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--secondary-color, #0284c7) 100%);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  z-index: 5;
}

.service-card:hover .card-index-label {
  /* no animation */
  transform: none;
}

/* ========================================
   IMAGE - Responsive, menyesuaikan gambar asli
   ======================================== */
.service-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color, #1e40af) 0%, #0d1117 100%);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85) saturate(1.15);
}

/* Static overlay div */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.02) 35%,
    rgba(0,0,0,0.52) 100%
  );
  transition: background 0.45s ease;
  z-index: 1;
  pointer-events: none;
}

.service-icon-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.25);
}

.service-icon-badge i {
  font-size: 1.5rem;
  color: #fff;
}

/* ========================================
   FEATURES BAR
   ======================================== */
.service-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f4f8;
  justify-content: center;
}

.service-features-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  cursor: default;
}

.service-features-bar span:hover {
  background: var(--primary-light, #dbeafe);
  border-color: var(--primary-color, #2563eb);
  color: var(--primary-color, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37,99,235,0.12);
}

.service-features-bar span i {
  font-size: 0.7rem;
  color: var(--primary-color, #2563eb);
}

/* ========================================
   CONTENT AREA
   ======================================== */
.service-content {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

/* Header */
.service-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f4f8;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light, #dbeafe);
  color: var(--primary-color, #2563eb);
  border: 1px solid var(--primary-border, #93c5fd);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.service-description {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.93rem;
  margin: 0;
  font-weight: 300;
}

/* ========================================
   CONTENT GRID
   ======================================== */
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.service-content-left,
.service-content-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section block */
.service-section {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #eef2f7;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-section-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-section-title i {
  color: var(--primary-color, #2563eb);
  font-size: 0.75rem;
}

/* ========================================
   PROBLEM / SOLUTION — Redesigned
   ======================================== */
.problem-box,
.solution-box {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.problem-box  { margin-bottom: 10px; }

/* Coloured header band */
.problem-box h5,
.solution-box h5 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem-box h5 {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: var(--danger);
  border-bottom: 1px solid #fecaca;
}

.solution-box h5 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--success);
  border-bottom: 1px solid #bbf7d0;
}

/* Icon circle in header */
.problem-box h5 i,
.solution-box h5 i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.problem-box  h5 i { background: #ef4444; color: #fff; }
.solution-box h5 i { background: #10b981; color: #fff; }

/* Body text area */
.problem-box p,
.solution-box p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
  padding: 11px 14px 13px;
}

.problem-box  p { background: #fff9f9; color: #4b5563; }
.solution-box p { background: #f9fffc; color: #4b5563; }

/* ========================================
   BENEFITS LIST
   ======================================== */
.benefits-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 8px;
}

.benefits-list li i {
  color: var(--success);
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ========================================
   FLOW STEPS
   ======================================== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.flow-step:hover {
  border-color: #93c5fd;
  transform: translateX(4px);
}

.flow-step .step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--secondary-color, #0284c7) 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37,99,235,0.28);
  transition: transform 0.25s ease;
}

.flow-step:hover .step-number {
  transform: scale(1.1);
}

.flow-step span {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.4;
}

/* ========================================
   DURATION / RESULT
   ======================================== */
.duration-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef2f7;
}

.info-item > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #2563eb);
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-border, #93c5fd);
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-item .label {
  font-size: 0.68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
  font-weight: 500;
}

.info-item .value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--secondary-color, #0284c7) 100%);
  color: #fff;
  padding: 15px 32px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 4px 18px rgba(37,99,235,0.32);
  letter-spacing: 0.3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-cta:hover {
  box-shadow: 0 8px 28px rgba(37,99,235,0.42);
  color: #fff;
  transform: translateY(-2px);
}

.service-cta i {
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-layanan {
  background: #eff6ff;
  border: 2px dashed var(--primary-border, #93c5fd);
  padding: 60px 40px;
  border-radius: var(--radius);
  text-align: center;
  color: #1e40af;
}

.empty-layanan i {
  font-size: 2.5rem;
  opacity: 0.4;
  display: block;
  margin-bottom: 16px;
}

.empty-layanan h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.empty-layanan p {
  font-size: 0.88rem;
  opacity: 0.7;
}

/* ========================================
   CTA SECTIONS (bottom, after_services)
   ======================================== */
.layanan-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color, #1e40af) 0%, #0d1117 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.layanan-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.layanan-cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
}

.layanan-cta-section p {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.cta-btn-primary {
  background: var(--primary-color, #2563eb);
  color: #fff;
  padding: 16px 36px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(37,99,235,0.38);
  font-size: 0.95rem;
}

.cta-btn-primary:hover {
  transform: translateY(-4px);
}

.cta-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 16px 36px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-4px);
}

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

/* Opsi 1: Gunakan object-fit: contain agar gambar selalu terlihat utuh */
@media (max-width: 768px) {
  .service-image img {
    object-fit: contain;
    max-height: 400px; /* Batasi tinggi maksimal */
  }
}

/* Opsi 2: Jika ingin gambar tetap cover tapi dengan posisi atas yang terlihat */
/* Uncomment baris di bawah ini:
@media (max-width: 768px) {
  .service-image img {
    object-fit: cover;
    object-position: top;
    height: 250px;
  }
}
*/

/* Opsi 3: Biarkan gambar memanjang natural dengan height auto */
/* Uncomment baris di bawah ini:
@media (max-width: 768px) {
  .service-image img {
    height: auto;
    max-height: none;
  }
}
*/

@media (max-width: 992px) {
  .service-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .layanan-section { padding: 36px 0 56px; }
  .service-content { padding: 20px 22px 24px; }
  .service-content h3 { font-size: 1.25rem; }
  .layanan-cta-section h2 { font-size: 1.8rem; }
}

@media (max-width: 576px) {
  .service-content { padding: 18px 18px 22px; }
  .service-cta { width: 100%; justify-content: center; }
  .card-index-label { right: 16px; }
}

@media (max-width: 400px) {
  .service-content h3   { font-size: 1.15rem; }
  .service-description  { font-size: 0.87rem; }
  .flow-step span       { font-size: 0.82rem; }
  .service-cta          { padding: 14px 20px; font-size: 0.88rem; }
  .problem-box p,
  .solution-box p       { font-size: 0.82rem; }
  .benefits-list li     { font-size: 0.82rem; }
}