/* ============================================================
   Study Guide — Page Template
   (relies on CSS variables defined in homepage.css :root)
   ============================================================ */
.sg-page { background: var(--white); }

/* Banner */
.sg-banner {
  background: var(--bg);
  padding: 56px 0 44px;
  text-align: center;
}
.sg-banner-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--dark);
  max-width: 760px;
  margin: 0 auto;
}
.sg-banner-sub {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.75;
  max-width: 640px;
  margin: 12px auto 0;
}

/* Steps */
.sg-steps-section { padding: var(--section-py) 0; }
.sg-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.sg-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.sg-step {
  position: relative;
  z-index: 1;
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: var(--trans);
}
.sg-step:hover { border-color: var(--purple); box-shadow: var(--shadow-purple); }

.sg-step-marker {
  flex-shrink: 0;
  width: 90px;
  background: var(--purple-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}
.sg-step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
}
.sg-step-number {
  font-size: 30px;
  font-weight: 800;
  color: var(--purple-dark);
  line-height: 1.3;
}

.sg-step-card { flex: 1; padding: 24px 28px; }
.sg-step-title { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.sg-step-desc { font-size: 13.5px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }

.sg-substeps { display: grid; gap: 20px; }
.sg-substeps-1 { grid-template-columns: 1fr; }
.sg-substeps-2 { grid-template-columns: repeat(2, 1fr); }
.sg-substeps-3 { grid-template-columns: repeat(3, 1fr); }
.sg-substep { display: flex; gap: 10px; align-items: flex-start; }
.sg-substep-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 6px;
  flex-shrink: 0;
}
.sg-substep h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.sg-substep p { font-size: 12.5px; color: var(--body); line-height: 1.6; }

/* Why choose us */
.sg-why {
  background: linear-gradient(135deg, #1A0538 0%, #4B1A8A 60%, #7B2FBE 100%);
  padding: 72px 0;
  text-align: center;
}
.sg-why-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}
.sg-why-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  max-width: 700px;
  margin: 16px auto 0;
}

/* Process timeline */
.sg-process-section { padding: var(--section-py) 0; }
.sg-process {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sg-process::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 19px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.sg-process-step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
}
.sg-process-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.sg-process-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.sg-process-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sg-process-head h3 { font-size: 15.5px; font-weight: 700; color: var(--dark); }
.sg-process-year {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.sg-process-card p { font-size: 13px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.sg-progress {
  height: 6px;
  border-radius: 4px;
  background: var(--purple-light);
  overflow: hidden;
}
.sg-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--purple);
}

@media (max-width: 768px) {
  .sg-substeps-2, .sg-substeps-3 { grid-template-columns: 1fr; }
  .sg-step { flex-direction: column; }
  .sg-step-marker {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    padding: 14px 20px;
  }
  .sg-steps::before { display: none; }
}
