/* =========================================
   근영방수 - 매거진형 시공 사례 상세 페이지
   하남시 덕풍동 공원 화장실 옥상 방수
   우레탄 도막 방수 + 상도 마감
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0047AB;
    --primary-light: #eef4ff;
    --primary-dark: #003380;
    --primary-muted: #5b8fd4;
    --accent: #FFD100;
    --accent-light: #fff8e0;
    --text-main: #1a1a2e;
    --text-sub: #4a5568;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --red-50: #FEF2F2;
    --red-500: #EF4444;
    --green-50: #F0FDF4;
    --green-500: #22C55E;
    --green-600: #16A34A;
    --orange-500: #f97316;

    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;

    --space-section: 7rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.12);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
    z-index: -10;
    transform: skewY(-2deg);
    transform-origin: top left;
    height: 150%;
    margin-top: -50%;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge-black {
    background-color: var(--gray-900);
    color: white;
    padding: 0.3rem 0.875rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 2px;
}

.badge-line {
    width: 2.5rem;
    height: 1px;
    background-color: var(--gray-300);
}

.badge-blue {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.25;
    margin-bottom: 2rem;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    display: inline-block;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: -0.1rem;
    width: calc(100% + 0.2rem);
    height: 0.65rem;
    background-color: rgba(255, 209, 0, 0.45);
    z-index: -1;
    border-radius: 2px;
}

.hero-title .blue {
    color: var(--primary);
}

.hero-quote {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.85;
    max-width: 48rem;
    margin-bottom: 3rem;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 2rem 0;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--gray-900);
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* =========================================
   Section Headers
   ========================================= */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    user-select: none;
    margin-bottom: -1.75rem;
    letter-spacing: -0.04em;
    position: relative;
}

.section-number::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 0;
    width: 2.5rem;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 1;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--gray-900);
    z-index: 10;
    position: relative;
    padding-left: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* =========================================
   Article
   ========================================= */
.article {
    padding: 3rem 0 5rem;
}

.article-section {
    margin-bottom: var(--space-section);
}

.article-section:last-child {
    margin-bottom: 0;
}

.prose {
    font-size: var(--fs-lg);
    color: var(--text-sub);
    line-height: 1.95;
    margin-bottom: 2rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose strong {
    color: var(--primary);
    font-weight: 600;
}

.drop-cap::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 0.85;
    font-weight: 900;
    margin-right: 0.625rem;
    margin-top: 0.15rem;
    color: var(--primary);
}

/* =========================================
   Content Figure
   ========================================= */
.content-figure {
    margin: 2rem 0;
    position: relative;
}

.content-figure .overflow-hidden {
    overflow: hidden;
    border-radius: var(--radius-md);
    max-height: 400px;
    background: var(--gray-50);
}

.content-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.6s ease;
    aspect-ratio: 16 / 9; /* 16:9 비율 지정 */
}

.content-figure:hover img {
    transform: scale(1.02);
}

.content-figure figcaption {
    margin-top: 0.875rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.content-figure figcaption .line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--primary-muted);
    border-radius: 1px;
}

.content-figure.diagram .overflow-hidden {
    max-height: none;
    background: transparent;
}

.content-figure.diagram img {
    max-width: 600px;
    margin: 0 auto;
    object-fit: contain;
    box-shadow: none;
}

/* =========================================
   Image Grid
   ========================================= */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.image-grid .grid-item {
    position: relative;
}

.image-grid .grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.image-grid .grid-item:hover img {
    box-shadow: var(--shadow-lg);
}

.image-grid .grid-caption {
    text-align: center;
    margin-top: 0.625rem;
    font-size: var(--fs-sm);
    color: var(--gray-500);
    font-weight: 500;
}

/* =========================================
   Info Table
   ========================================= */
.info-table {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.info-table th,
.info-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.info-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    width: 28%;
}

.info-table td {
    font-size: var(--fs-base);
    color: var(--gray-700);
    font-weight: 450;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: var(--gray-50);
}

/* =========================================
   Warning Box
   ========================================= */
.warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--red-50);
    border: 1px solid #fecaca;
    border-left: 4px solid var(--red-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.warning-box .icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.warning-box .content {
    flex: 1;
}

.warning-box .content p {
    margin: 0;
    font-size: var(--fs-base);
    color: var(--gray-800);
    line-height: 1.75;
}

.warning-box .content ul {
    margin: 0.75rem 0 0 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.warning-box .content li {
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    font-size: var(--fs-base);
    line-height: 1.7;
}

.warning-box .content li strong {
    color: var(--gray-900);
}

/* =========================================
   Cause Analysis (문제 원인 분석)
   ========================================= */
.cause-analysis {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.cause-analysis .content-figure.diagram .overflow-hidden {
    max-height: none;
}

.cause-analysis .content-figure.diagram img {
    max-width: 100%;
}

.cause-text h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.cause-text p {
    font-size: var(--fs-md);
    color: var(--text-sub);
    line-height: 1.85;
}

/* =========================================
   Magazine Quote
   ========================================= */
.magazine-quote {
    margin: 2.5rem 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, #f0f2f5 100%);
    border-radius: 0 var(--radius-xl) 0 var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.magazine-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.75rem;
    left: 0.5rem;
    font-size: 4.5rem;
    color: var(--gray-200);
    font-family: Georgia, 'Times New Roman', serif;
    z-index: 0;
    opacity: 0.6;
    line-height: 1;
}

.magazine-quote p {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 10;
    margin: 0;
}

.magazine-quote .attribution {
    text-align: center;
    margin-top: 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-style: normal;
}

.magazine-quote.accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, #dce8fa 100%);
    border-left: 3px solid var(--primary);
}

.magazine-quote.accent::before {
    color: var(--primary-muted);
    opacity: 0.25;
}

.magazine-quote.accent p {
    color: var(--primary-dark);
}

/* =========================================
   Process
   ========================================= */
.process-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.process-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.process-content {
    width: 100%;
}

.process-content h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.process-content p {
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: var(--fs-md);
}

.process-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.process-tag {
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: white;
    transition: all 0.2s ease;
}

.process-tag:hover {
    border-color: var(--primary-muted);
    color: var(--primary);
    background: var(--primary-light);
}

/* =========================================
   Success Box
   ========================================= */
.success-box {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--green-50) 0%, #e8faf0 100%);
    border: 2px solid var(--green-500);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    text-align: center;
}

.success-box .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.success-box h4 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--green-600);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.success-box > p {
    color: var(--gray-600);
    margin-bottom: 1.75rem;
    font-size: var(--fs-base);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.success-item {
    background: white;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid #bbf7d0;
    transition: transform 0.2s ease;
}

.success-item:hover {
    transform: translateY(-2px);
}

.success-item .label {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.success-item .value {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--green-600);
}

.success-banner {
    background: var(--green-500);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--fs-md);
}

/* =========================================
   Duration Reasons (시공 기간 이유)
   ========================================= */
.duration-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.reason-item.blue {
    background: #eff6ff;
}

.reason-item.blue:hover {
    background: #dbeafe;
}

.reason-item.indigo {
    background: #eef2ff;
}

.reason-item.indigo:hover {
    background: #e0e7ff;
}

.reason-item.purple {
    background: #faf5ff;
}

.reason-item.purple:hover {
    background: #f3e8ff;
}

.reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.125rem;
}

.reason-item span:last-child {
    font-size: var(--fs-md);
    color: var(--gray-700);
    line-height: 1.6;
}

.reason-item strong {
    color: var(--primary);
    font-weight: 700;
}

/* =========================================
   BA Gallery
   ========================================= */
.ba-gallery {
    margin: 2.5rem 0;
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ba-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ba-item .ba-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.05em;
}

.ba-item .ba-label.before {
    background: var(--red-500);
    color: white;
}

.ba-item .ba-label.after {
    background: var(--primary);
    color: white;
}

.ba-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.ba-item img.grayscale {
    filter: grayscale(100%) brightness(0.95);
}

.ba-item .ba-caption {
    text-align: center;
    margin-top: 0.625rem;
    font-size: var(--fs-sm);
    color: var(--gray-500);
    font-weight: 500;
}

/* =========================================
   BA Comparison Table
   ========================================= */
.ba-comparison-table {
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    background: white;
}

.ba-comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--gray-900);
}

.ba-col-label {
    padding: 0.875rem 1rem;
    font-weight: 700;
    font-size: var(--fs-sm);
    text-align: center;
    color: white;
    letter-spacing: 0.05em;
}

.ba-col-label.before-label {
    background: var(--red-500);
}

.ba-col-label.after-label {
    background: var(--primary);
}

.ba-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.ba-comparison-row:last-child {
    border-bottom: none;
}

.ba-comparison-row:hover {
    background: var(--gray-50);
}

.ba-row-label {
    padding: 1rem;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--gray-800);
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-100);
}

.ba-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-align: center;
}

.ba-cell .cell-icon {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 900;
}

.before-cell {
    color: var(--gray-400);
    border-right: 1px solid var(--gray-100);
}

.before-cell .cell-icon {
    background: var(--red-50);
    color: var(--red-500);
    border: 1.5px solid #fecaca;
}

.after-cell {
    color: var(--gray-900);
}

.after-cell .cell-icon {
    background: var(--green-50);
    color: var(--green-600);
    border: 1.5px solid #bbf7d0;
}

/* =========================================
   FAQ
   ========================================= */
.faq-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-muted);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: var(--primary-light);
}

.faq-item summary {
    padding: 1.125rem 1.375rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-size: var(--fs-base);
    line-height: 1.5;
}

.faq-item summary:hover {
    background: var(--primary-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: color 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--primary);
}

.faq-item .faq-answer {
    padding: 0 1.375rem 1.25rem;
    font-size: var(--fs-sm);
    color: var(--gray-600);
    line-height: 1.85;
}

.faq-figure {
    margin: 0;
}

.faq-figure .overflow-hidden {
    max-height: none;
}

.faq-figure img {
    max-width: 100%;
}

/* =========================================
   Result Card
   ========================================= */
.result-card {
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    margin: 2rem 0;
}

.result-content {
    padding: 2rem 1.75rem;
}

.result-text .label {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
    font-size: var(--fs-xs);
}

.result-text h3 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background-color: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.result-item:hover {
    background: var(--primary-light);
}

.result-item .icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.result-item span {
    font-weight: 500;
    color: var(--gray-800);
    font-size: var(--fs-base);
    line-height: 1.5;
}

.result-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-muted), var(--accent));
}

/* =========================================
   Related Cases
   ========================================= */
.related-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-case-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.related-case-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--gray-100);
}

.related-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-case-card:hover .related-case-img img {
    transform: scale(1.06);
}

.case-content {
    padding: 1.25rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-tags {
    display: flex;
    gap: 0.375rem;
}

.case-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.case-tag.location {
    background: var(--gray-900);
    color: white;
}

.case-tag.type {
    background: var(--accent);
    color: var(--gray-900);
}

.case-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.45;
    margin: 0;
}

.case-desc {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

.cases-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2.25rem;
    background: var(--gray-900);
    color: white;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.3);
}

.btn-more .arrow {
    transition: transform 0.3s ease;
}

.btn-more:hover .arrow {
    transform: translateX(4px);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background-color: var(--gray-900);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-section .glow-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.cta-section .glow-1 {
    position: absolute;
    top: -25%;
    right: -15%;
    width: 55%;
    height: 55%;
    background-color: var(--primary);
    border-radius: 50%;
    filter: blur(120px);
}

.cta-section .glow-2 {
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 55%;
    height: 55%;
    background-color: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.cta-content h2 .yellow {
    color: var(--accent);
}

.cta-content > p {
    color: var(--gray-400);
    font-size: var(--fs-md);
    margin-bottom: 2.5rem;
    line-height: 1.85;
}

.cta-phone-box {
    background: white;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem auto;
    max-width: 340px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-phone-box .phone-label {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cta-phone-box .phone-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--orange-500);
    display: block;
    transition: transform 0.2s ease;
}

.cta-phone-box .phone-number:hover {
    transform: scale(1.05);
}

.cta-note {
    margin-top: 1.25rem;
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

/* =========================================
   Tablet (768px)
   ========================================= */
@media (min-width: 768px) {
    :root {
        --space-section: 8rem;
    }

    .hero {
        padding: 6rem 0 4.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-quote {
        font-size: var(--fs-xl);
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-header {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .section-number {
        font-size: 5.5rem;
        margin-bottom: 0;
    }

    .section-number::after {
        bottom: 0.5rem;
        width: 3rem;
    }

    .section-title {
        padding-left: 0;
    }

    .magazine-quote {
        margin: 3rem 2rem;
        padding: 2.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid .grid-item img {
        height: 240px;
    }

    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-item img {
        height: 240px;
    }

    .success-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cause-analysis {
        flex-direction: row;
        align-items: center;
    }

    .cause-analysis .content-figure.diagram {
        flex: 1;
    }

    .cause-text {
        flex: 1;
    }

    .faq-layout {
        flex-direction: row;
    }

    .faq-layout .faq-list {
        flex: 1;
    }

    .faq-layout .faq-figure {
        flex: 1;
    }

    .cta-content h2 {
        font-size: 2.25rem;
    }

    .cta-phone-box .phone-number {
        font-size: 2rem;
    }

    .related-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-case-img {
        height: 140px;
    }

    .ba-cell {
        font-size: var(--fs-base);
    }

    .ba-row-label {
        font-size: var(--fs-base);
    }
}

/* =========================================
   Desktop (1024px)
   ========================================= */
@media (min-width: 1024px) {
    :root {
        --space-section: 10rem;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .blog-container {
        padding: 0;
    }

    .article {
        padding: 5rem 0;
    }

    .section-number {
        font-size: 6rem;
    }

    .content-figure .overflow-hidden {
        max-height: 460px;
    }

    .image-grid .grid-item img {
        height: 260px;
    }

    .ba-item img {
        height: 260px;
    }

    .related-case-img {
        height: 160px;
    }

    .cta-section {
        padding: 6rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}
/* 특정 이미지 잘림 방지 */
img.img-no-crop {
    object-fit: contain !important;
    background: var(--gray-50) !important;
}
/* 특정 이미지 잘림 방지 — .content-figure 하위 포함 */
/* 특정 이미지 잘림 방지 */
.content-figure img.img-no-crop,
.image-grid .grid-item img.img-no-crop {
    width: 50% !important;
    object-fit: contain !important;
    height: 100% !important;
    background: var(--gray-50) !important;
    margin: 0 auto !important;
    aspect-ratio: 9 / 16 !important;
}
