.success-case-page {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background: var(--white);
  padding-top: 120px;
}

.success-case-wrapper {
  padding-top: 0;
}

.success-case-page h1,
.success-case-page h2,
.success-case-page h3,
.success-case-page h4,
.success-case-page h5,
.success-case-page h6,
.success-case-page p {
  white-space: normal !important;
  word-break: break-all;
}

.donut-chart {
  --color: #facc15;
  --bg: #e5e7eb;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    var(--color) 0% calc(var(--value) * 1%),
    var(--bg) calc(var(--value) * 1%) 100%
  );
  transition: --value 1s ease-in-out;
  animation: grow-chart 1s ease-in-out;
}

@property --value {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

.donut-chart::before {
  content: '';
  position: absolute;
  inset: 16px;
  background: #374151;
  border-radius: 50%;
}

@keyframes grow-chart {
  from { --value: 0; }
  to   { --value: var(--chart-target, 0); }
}

.bar-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible;
}

.writeoff-line {
  position: absolute;
  height: 0;
  border-top: 2px dashed #94a3b8;
  pointer-events: none;
  z-index: 999;
  border-image: repeating-linear-gradient(90deg, #94a3b8 0 6px, transparent 6px 12px) 1;
  animation: dashdraw 0.9s ease-out both;
}

.writeoff-line::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid #94a3b8;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

@keyframes dashdraw {
  from { stroke-dasharray: 0 1000; }
  to   { stroke-dasharray: 1000 0; }
}

.writeoff-text {
  position: absolute;
  font-weight: 700;
  color: #ef4444;
  font-size: 12px;
  white-space: nowrap;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 1000;
  transform-origin: center center;
}

.base-line {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 54px;
  height: 4px;
  background: #334155;
  opacity: 0.9;
  border-radius: 8px;
}

.pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  background: #1f2937;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 2px 0 #0f172a inset,
    0 1px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.section-header {
  margin-top: 0.5rem;
}

.section-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  display: inline-block;
}

.section-header-line {
  position: relative;
  height: 4px;
  margin-top: 4px;
  background: linear-gradient(to right, #d1d5db 0%, rgba(209, 213, 219, 0) 100%);
  overflow: hidden;
}

.section-header-line-inner {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #455a64;
  width: 120px;
}

.p-10 {
  padding: 1rem !important;
}

.case-inner {
  max-width: 640px;
  margin: 0 auto;
}

.court-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .court-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

.court-chart-col {
  flex: 7;
}

.court-summary-col {
  flex: 5;
  display: flex;
  align-items: center;
}

.court-summary {
  width: 100%;
  font-size: 0.9rem;
  color: #374151;
}

.court-summary-block {
  padding: 6px 0;
  border-top: 2px solid #9ca3af;
}

.court-summary-block:last-child {
  border-bottom: 2px solid #9ca3af;
}

.court-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.court-summary-label {
  color: #4b5563;
  white-space: nowrap;
}

.court-summary-value {
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}

.court-summary-value-strong {
  font-weight: 700;
}

.court-summary-value-red {
  font-weight: 700;
  color: #dc2626;
}

.court-summary-row-last {
  margin-top: 4px;
}

.court-summary-months {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
  text-align: right;
}

.headline-wrap {
  text-align: center;
  margin-bottom: 1.1rem;
}

.headline-wrap > * {
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .headline-wrap h1 {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .headline-wrap p {
    font-size: 0.98rem;
  }
}

.mark-yellow {
  position: relative;
  display: inline;
  background-image: linear-gradient(transparent 62%, #fef3c7 62%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 0.15rem;
  padding: 0 0.06em;
}

.attorney-wrap {
  position: relative;
  margin-top: 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(900px 400px at 90% 85%, rgba(255, 255, 255, 0.04), transparent 70%),
    linear-gradient(180deg, #0f1b2f 0%, #0b1426 100%);
  color: #fff;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.25);
}

.attorney-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  min-height: 420px;
  padding: 44px 48px;
}

.attorney-text {
  max-width: 620px;
}

.attorney-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.attorney-role {
  margin-left: 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #cbd5e1;
}

.attorney-list {
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.attorney-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.8;
  font-size: 15px;
  color: #e5e7eb;
}

.attorney-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #facc15;
}

.attorney-list strong {
  color: #fff;
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 8px;
  padding: 12px 22px;
  background: #facc15;
  color: #0b1426;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(250, 204, 21, 0.32);
  background: #fbbf24;
}

.btn-primary .ico {
  width: 18px;
  height: 18px;
}

.attorney-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 320px;
}

.attorney-photo::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 26px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  filter: blur(2px);
}

.attorney-photo img {
  display: block;
  max-height: 430px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.45));
}

@media (max-width: 1024px) {
  .attorney-inner {
    grid-template-columns: 1fr 1fr;
    padding: 36px 28px;
  }
  .attorney-photo img {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .attorney-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 22px;
  }
  .attorney-text {
    margin: 0 auto;
  }
  .attorney-list li {
    text-align: left;
  }
  .attorney-photo {
    order: -1;
    min-height: 240px;
  }
  .attorney-photo img {
    max-height: 300px;
  }
}

.icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 0.75rem;
  border-radius: 9999px;
  background: #fff;
  color: #111;
  font-size: 18px;
  line-height: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(6px);
  animation: fiu 0.45s ease-out forwards;
}

@keyframes fiu {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-amount {
  display: inline-block;
  min-width: 5ch;
}

.case-inner blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 6px solid #d4d4d4;
  color: #374151;
  font-style: italic;
}

.problem-description {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7 !important;
  color: #374151;
  white-space: normal !important;
  text-align: left;
  word-break: break-all;
}

.problem-description p,
.problem-description div {
  margin: 0 0 1rem 0 !important;
  line-height: inherit !important;
  width: 100% !important;
  display: block !important;
}

.problem-description span {
  display: inline !important;
}

#quick ul li {
  text-align: center !important;
}

#quick ul li a {
  display: block !important;
  width: 100% !important;
  text-decoration: none;
}

#quick ul li a img,
#quick ul li a h3 {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#quick ul li a h3 {
  text-align: center !important;
}

.court-summary-rate {
  font-size: 0.85rem;
}

.court-summary-rate-number {
  font-weight: 700;
}

.court-summary-rate-unit {
  font-size: 0.9em;
  margin-left: 1px;
}

@media (min-width: 768px) {
  .success-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    height: auto;
    z-index: 20;
  }
}

.review-slogan {
  margin-top: 1.8rem;
  padding-left: 14px;
  border-left: 4px solid #0d9488;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.65;
}
.review-slogan::before {
  content: "\201C";
  font-size: 1.4rem;
  margin-right: 3px;
  vertical-align: -2px;
}
.review-slogan::after {
  content: "\201D";
  font-size: 1.4rem;
  margin-left: 3px;
  vertical-align: -2px;
}

.center-quote {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
}
.center-quote::before {
  content: "\275D";
  font-size: 1.6rem;
  display: block;
  color: #0d9488;
  margin-bottom: 6px;
}
.center-quote::after {
  content: "\275E";
  font-size: 1.6rem;
  display: block;
  color: #0d9488;
  margin-top: 6px;
}

.subtop {
  position: relative;
  width: 100%;
  background: var(--white);
  padding-top: 30px;
}

@media (max-width: 680px) {
  .success-case-page {
    padding-top: 70px !important;
  }
  .subtop {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }
  .subtop .visual_tit {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  .success-case-wrapper .mt-10 { margin-top: 16px !important; }
  .success-case-wrapper .mb-10 { margin-bottom: 16px !important; }
}

#sitemap .logo img {
  display: block;
  margin: 0 auto;
}
