/* 
 * Home Template: Law Firm Premium Design (Refactored to Scoped Native CSS)
 * Scoped inside #ai-law-firm-home
 */

/* ================================================
   Paperlogy Custom Font
   ================================================ */
@font-face {
    font-family: 'Paperlogy';
    src: url('../assets/fonts/Paperlogy-4Regular.woff2.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('../assets/fonts/Paperlogy-6SemiBold.woff2.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


#ai-law-firm-home {
    /* Fonts */
    --ai-font-paperlogy: 'Paperlogy', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --ai-font-maruburi: 'MaruBuri', serif;
    --ai-font-pretendard: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --ai-font-nanumpen: 'Nanum Pen Script', cursive;

    /* Theme Colors */
    --ai-surface-dim: #dcdad5;
    --ai-inverse-on-surface: #f3f0eb;
    --ai-outline-variant: #c5c6cc;
    --ai-on-secondary: #ffffff;
    --ai-inverse-surface: #31302d;
    --ai-ocean-deep: #101722;
    --ai-tertiary-container: #1b1b1b;
    --ai-surface-container-low: #f6f3ee;
    --ai-secondary-container: #fedb98;
    --ai-error: #ba1a1a;
    --ai-surface-container-highest: #e5e2dd;
    --ai-on-background: #1c1c19;
    --ai-on-primary: #ffffff;
    --ai-muted-obsidian: #6F7378;
    --ai-on-tertiary-container: #858383;
    --ai-surface-tint: #585f6c;
    --ai-champagne-gold: #C8A96A;
    --ai-surface-container-lowest: #ffffff;
    --ai-on-error: #ffffff;
    --ai-on-surface-variant: #45474c;
    --ai-primary-container: #151c27;
    --ai-on-surface: #1c1c19;
    --ai-lunar-white: #F8F8F8;
    --ai-surface-bright: #fcf9f4;
    --ai-surface-container-high: #ebe8e3;
    --ai-surface-container: #f0ede9;
    --ai-on-secondary-container: #785f28;
    --ai-secondary: #735b24;
    --ai-tertiary: #000000;
    --ai-warm-ivory: #F7F4EF;
    --ai-surface-variant: #e5e2dd;
    --ai-outline: #75777c;
    --ai-charcoal-black: #1B1B1B;
    --ai-surface: #fcf9f4;
    --ai-primary-color: #000000;
    --ai-background: #fcf9f4;
    --ai-white: #ffffff;

    /* Grid & Spacing */
    --ai-gutter: 24px;
    --ai-unit: 8px;
    --ai-margin-desktop: 64px;
    --ai-container-max: 1200px;
    --ai-margin-mobile: 20px;

    /* Base Styling */
    font-family: var(--ai-font-paperlogy);
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    color: var(--ai-on-surface);
    background-color: var(--ai-background);
}

/* Reset-like scoping */
#ai-law-firm-home * {
    box-sizing: border-box;
}

#ai-law-firm-home h1, 
#ai-law-firm-home h2, 
#ai-law-firm-home h3, 
#ai-law-firm-home h4, 
#ai-law-firm-home h5, 
#ai-law-firm-home h6 {
    margin: 0;
    letter-spacing: -0.03em;
}

#ai-law-firm-home p {
    margin: 0;
}

#ai-law-firm-home .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

#ai-law-firm-home .glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Layout Utilities */
#ai-law-firm-home .ai-container {
    width: 100%;
    max-width: var(--ai-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ai-margin-mobile);
    padding-right: var(--ai-margin-mobile);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-container {
        padding-left: var(--ai-margin-desktop);
        padding-right: var(--ai-margin-desktop);
    }
}

/* 1. Hero Section */
#ai-law-firm-home .ai-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-law-firm-home .ai-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#ai-law-firm-home .ai-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

#ai-law-firm-home .ai-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}

#ai-law-firm-home .ai-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

#ai-law-firm-home .ai-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#ai-law-firm-home .ai-hero-title-wrap {
    margin-bottom: 40px;
}

#ai-law-firm-home .ai-hero-title {
    font-size: 38px;
    color: var(--ai-white);
    line-height: 1.45;
    font-family: var(--ai-font-nanumpen) !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-hero-title {
        font-size: 96px;
    }
}

#ai-law-firm-home .ai-hero-desc-wrap {
    max-width: 48rem;
    margin-bottom: 0;
    padding: 0 20px;
}

#ai-law-firm-home .ai-hero-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    font-family: var(--ai-font-maruburi), serif;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-hero-desc {
        font-size: 1.45rem;
    }
}

#ai-law-firm-home .ai-hero-desc-bold {
    color: var(--ai-white);
    font-size: 1.25rem;
    font-weight: 600 !important;
    margin-top: 36px;
    font-family: var(--ai-font-paperlogy) !important;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-hero-desc-bold {
        font-size: 1.625rem;
        margin-top: 56px;
    }
}

/* === Hide CTA Buttons for Minimal Layout === */
#ai-law-firm-home .ai-hero-actions {
    display: none;
}





/* 3. Solution Process Section */
#ai-law-firm-home .ai-process-section {
    padding: 80px 0;
    background-color: var(--ai-white);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-process-section {
        padding: 120px 0;
    }
}

#ai-law-firm-home .ai-process-header {
    text-align: center;
    margin-bottom: 48px;
}

#ai-law-firm-home .ai-process-tag {
    color: #a88a55;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

#ai-law-firm-home .ai-process-tag-star {
    font-size: 11px;
    vertical-align: super;
    margin-left: 2px;
}

#ai-law-firm-home .ai-process-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 28px;
    color: var(--ai-ocean-deep);
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-process-title {
        font-size: 38px;
    }
}

#ai-law-firm-home .ai-process-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ai-on-surface-variant);
    font-weight: 400;
}

#ai-law-firm-home .ai-process-subtitle p {
    margin: 0;
}

/* 2-Column Wrapper (Tabs + Viewer) */
#ai-law-firm-home .ai-process-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 48px;
}

@media (min-width: 1024px) {
    #ai-law-firm-home .ai-process-content-wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 64px;
    }
}

/* Left Tabs Grid */
#ai-law-firm-home .ai-process-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#ai-law-firm-home .ai-process-tab-btn {
    background-color: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

#ai-law-firm-home .ai-process-tab-badge {
    font-size: 11px;
    font-weight: 600;
    color: #a88a55;
    opacity: 0.6;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-process-tab-title {
    font-family: var(--ai-font-paperlogy);
    font-size: 15px;
    font-weight: 600;
    color: var(--ai-ocean-deep);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

#ai-law-firm-home .ai-process-tab-arrow {
    font-family: var(--ai-font-paperlogy);
    font-weight: 400;
    font-size: 14px;
    color: #a88a55;
}

/* Hover State */
#ai-law-firm-home .ai-process-tab-btn:hover {
    background-color: var(--ai-white);
    border-color: rgba(168, 138, 85, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Active State */
#ai-law-firm-home .ai-process-tab-btn.active {
    background-color: var(--ai-white);
    border-color: #a88a55;
    box-shadow: 0 10px 30px rgba(168, 138, 85, 0.08);
}

#ai-law-firm-home .ai-process-tab-btn.active .ai-process-tab-badge {
    background-color: #a88a55;
    color: var(--ai-white);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 1;
}

/* Right Viewer Card */
#ai-law-firm-home .ai-process-viewer {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    background-color: var(--ai-ocean-deep);
}

#ai-law-firm-home .ai-process-viewer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#ai-law-firm-home .ai-process-viewer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#ai-law-firm-home .ai-process-viewer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

#ai-law-firm-home .ai-process-viewer-content {
    position: absolute;
    left: 40px;
    top: 40px;
    right: 40px;
    z-index: 2;
    color: var(--ai-white);
}

#ai-law-firm-home .ai-process-viewer-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 20px;
    color: #dfc38d; /* 밝은 골드로 가독성 향상 */
    margin-bottom: 12px;
    font-weight: 600;
}

#ai-law-firm-home .ai-process-viewer-desc {
    font-family: var(--ai-font-paperlogy);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 32rem;
}

@media (max-width: 768px) {
    #ai-law-firm-home .ai-process-viewer {
        aspect-ratio: 4 / 3;
    }
    #ai-law-firm-home .ai-process-viewer-content {
        left: 24px;
        top: 24px;
        right: 24px;
    }
    #ai-law-firm-home .ai-process-viewer-title {
        font-size: 18px;
    }
    #ai-law-firm-home .ai-process-viewer-desc {
        font-size: 13.5px;
    }
}


/* 4. Trust Section */
#ai-law-firm-home .ai-trust-section {
    padding: 96px 0;
    background-color: var(--ai-ocean-deep);
    color: var(--ai-lunar-white);
    overflow: hidden;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-trust-section {
        padding: 160px 0;
    }
}

#ai-law-firm-home .ai-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 1024px) {
    #ai-law-firm-home .ai-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 128px;
    }
}

#ai-law-firm-home .ai-trust-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#ai-law-firm-home .ai-trust-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 28px;
    margin-bottom: 32px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff; /* 가독성을 위해 명시적으로 완전한 흰색 지정 */
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-trust-title {
        font-size: 36px;
    }
}

#ai-law-firm-home .ai-trust-title span {
    color: #dfc38d; /* 어두운 배경에서 더 잘 보이도록 밝은 샴페인 골드로 조정 */
}

#ai-law-firm-home .ai-trust-desc {
    color: rgba(248, 248, 248, 0.6);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 32rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-trust-desc {
        font-size: 1.125rem;
    }
}

#ai-law-firm-home .ai-trust-decor-line {
    display: none;
    width: 128px;
    height: 1px;
    background-color: rgba(200, 169, 106, 0.4);
}

@media (min-width: 1024px) {
    #ai-law-firm-home .ai-trust-decor-line {
        display: block;
    }
}

#ai-law-firm-home .ai-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ai-law-firm-home .ai-trust-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#ai-law-firm-home .ai-trust-item-icon {
    color: var(--ai-champagne-gold);
    transition: transform 0.3s ease;
}

#ai-law-firm-home .ai-trust-item:hover .ai-trust-item-icon {
    transform: scale(1.1);
}

#ai-law-firm-home .ai-trust-item-text {
    font-size: 1.05rem;
    color: rgba(248, 248, 248, 0.9);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-trust-item-text {
        font-size: 1.125rem;
    }
}

#ai-law-firm-home .ai-trust-item:hover .ai-trust-item-text {
    color: var(--ai-champagne-gold);
}


/* 6. Success Cases (Redesigned) */
#ai-law-firm-home .ai-cases-section {
    padding: 96px 0;
    background-color: var(--ai-surface);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-cases-section {
        padding: 160px 0;
    }
}

#ai-law-firm-home .ai-cases-bg-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background-color: #212435;
    z-index: 0;
}

#ai-law-firm-home .ai-cases-container {
    position: relative;
    z-index: 10;
}

#ai-law-firm-home .ai-cases-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    align-items: center;
    text-align: center;
}

#ai-law-firm-home .ai-cases-tag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

#ai-law-firm-home .ai-cases-section-tag {
    color: var(--ai-ocean-deep);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-cases-section-tag {
        font-size: 1.25rem;
    }
}

#ai-law-firm-home .ai-cases-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c29c66;
}

#ai-law-firm-home .ai-cases-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 26px;
    color: var(--ai-ocean-deep);
    line-height: 1.35;
    font-weight: 600;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-cases-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-cases-title span {
    color: #c29c66;
}

#ai-law-firm-home .ai-cases-desc {
    color: var(--ai-on-surface-variant);
    font-size: 1.05rem;
    margin-top: 24px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-cases-desc {
        font-size: 1.125rem;
    }
}

/* Tabs */
#ai-law-firm-home .ai-cases-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    overflow-x: auto;
    padding-bottom: 16px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-cases-tabs {
        justify-content: center;
    }
}

#ai-law-firm-home .ai-cases-tab {
    padding: 12px 32px;
    background-color: var(--ai-white);
    color: var(--ai-on-surface-variant);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-cases-tab:hover {
    background-color: var(--ai-surface-container);
}

#ai-law-firm-home .ai-cases-tab.active {
    background-color: #a88a55;
    color: var(--ai-white);
    border-color: #a88a55;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cases Swiper & Cards */
#ai-law-firm-home .ai-cases-slider-wrapper {
    position: relative;
    width: 100%;
}

#ai-law-firm-home .ai-cases-swiper {
    width: 100%;
    padding: 16px 4px 32px 4px;
    overflow: hidden;
}

/* Force Swiper slides to align to the same height */
#ai-law-firm-home .ai-cases-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

#ai-law-firm-home .ai-case-card {
    background-color: var(--ai-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%; /* Fill slide height completely */
}

#ai-law-firm-home .ai-case-card.filtered-out {
    display: none;
}

#ai-law-firm-home .ai-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

#ai-law-firm-home .ai-case-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ai-law-firm-home .ai-case-card-category {
    font-size: 14px;
    color: var(--ai-muted-obsidian);
    font-weight: 600;
}

#ai-law-firm-home .ai-case-card-icon {
    color: var(--ai-outline-variant);
    font-weight: 300;
}

#ai-law-firm-home .ai-case-preview {
    height: 200px;
    background-color: #f8f9fa;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

#ai-law-firm-home .ai-case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-law-firm-home .ai-case-card:hover .ai-case-img {
    transform: scale(1.06);
}

#ai-law-firm-home .ai-case-card-body {
    padding: 32px;
    flex: 1; /* Stretch body to push elements down */
    display: flex;
    flex-direction: column;
}

#ai-law-firm-home .ai-case-card-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 26px;
    color: var(--ai-ocean-deep);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
}

#ai-law-firm-home .ai-case-card-result {
    color: #c29c66;
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 600;
}

#ai-law-firm-home .ai-case-card-desc {
    color: var(--ai-on-surface-variant);
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto; /* Push desc to bottom if layout stretches */
}

/* Cases Slider Navigation (Positioned outer left/right) */
#ai-law-firm-home .ai-cases-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--ai-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ai-ocean-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-law-firm-home .ai-cases-nav-btn.prev-btn {
    left: -28px;
}

#ai-law-firm-home .ai-cases-nav-btn.next-btn {
    right: -28px;
}

#ai-law-firm-home .ai-cases-nav-btn span {
    font-size: 24px;
    transition: transform 0.3s ease;
}

#ai-law-firm-home .ai-cases-nav-btn:hover {
    background-color: #a88a55;
    color: var(--ai-white);
    border-color: #a88a55;
    box-shadow: 0 8px 24px rgba(168, 138, 85, 0.25);
    transform: translateY(-50%) scale(1.05);
}

#ai-law-firm-home .ai-cases-nav-btn:active {
    transform: translateY(-50%) scale(1.0);
}

#ai-law-firm-home .ai-cases-nav-btn.prev-btn:hover span {
    transform: translateX(-2px);
}

#ai-law-firm-home .ai-cases-nav-btn.next-btn:hover span {
    transform: translateX(2px);
}

/* Disabled State for Swiper Navigation */
#ai-law-firm-home .ai-cases-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
    background-color: var(--ai-surface-container);
    color: var(--ai-outline-variant);
    box-shadow: none;
}

/* Responsive adjustment for Navigation buttons */
@media (max-width: 1360px) {
    #ai-law-firm-home .ai-cases-nav-btn.prev-btn {
        left: 12px;
    }
    #ai-law-firm-home .ai-cases-nav-btn.next-btn {
        right: 12px;
    }
}

@media (max-width: 768px) {
    #ai-law-firm-home .ai-cases-nav-btn {
        display: none; /* Hide on mobile since touch swipe is default */
    }
}


/* 7. Attorney Profiles Section */
#ai-law-firm-home .ai-profiles-section {
    padding: 96px 0;
    background: linear-gradient(to bottom right, #13102D, #0A071A);
    position: relative;
    overflow: hidden;
    color: var(--ai-white);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-section {
        padding: 160px 0;
    }
}

#ai-law-firm-home .ai-profiles-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
    gap: 32px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-header {
        flex-direction: row;
        align-items: flex-end;
        gap: 0;
    }
}

#ai-law-firm-home .ai-profiles-header-left {
    max-width: 42rem;
}

#ai-law-firm-home .ai-profiles-tag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

#ai-law-firm-home .ai-profiles-section-tag {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 14px;
    color: var(--ai-white);
}

#ai-law-firm-home .ai-profiles-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c29c66;
}

#ai-law-firm-home .ai-profiles-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 600;
    color: #ffffff; /* 가독성을 위해 명시적으로 완전한 흰색 지정 */
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-profiles-title span {
    color: #dfc38d; /* 어두운 배경에서 더 잘 보이도록 밝은 샴페인 골드로 조정 */
}

#ai-law-firm-home .ai-profiles-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-desc {
        font-size: 1.25rem;
    }
}

#ai-law-firm-home .ai-profiles-desc span {
    border-bottom: 1px solid var(--ai-white);
}

#ai-law-firm-home .ai-profiles-header-btn {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--ai-white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-header-btn {
        display: inline-flex;
    }
}

#ai-law-firm-home .ai-profiles-header-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#ai-law-firm-home .ai-profiles-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

#ai-law-firm-home .ai-profiles-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 32px;
}

#ai-law-firm-home .ai-profiles-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    flex-shrink: 0 !important;
}

#ai-law-firm-home .ai-profiles-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99 !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    border: 1.5px solid var(--ai-champagne-gold);
    color: #9F8156;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#ai-law-firm-home .ai-profiles-nav-btn * {
    pointer-events: none !important;
}

#ai-law-firm-home .ai-profiles-nav-btn:hover {
    background-color: var(--ai-champagne-gold);
    color: var(--ai-white);
    transform: translateY(-50%) scale(1.05);
}

#ai-law-firm-home .ai-profiles-nav-btn.prev-btn {
    left: 4px;
}

#ai-law-firm-home .ai-profiles-nav-btn.next-btn {
    right: 4px;
}

@media (max-width: 768px) {
    #ai-law-firm-home .ai-profiles-slider-wrapper {
        padding: 0 40px;
    }
    #ai-law-firm-home .ai-profiles-nav-btn {
        width: 34px;
        height: 34px;
        border-width: 1px;
    }
    #ai-law-firm-home .ai-profiles-nav-btn.prev-btn {
        left: 2px;
    }
    #ai-law-firm-home .ai-profiles-nav-btn.next-btn {
        right: 2px;
    }
}

@media (min-width: 1280px) {
    #ai-law-firm-home .ai-profiles-slider-wrapper {
        padding: 0;
    }
    #ai-law-firm-home .ai-profiles-nav-btn.prev-btn {
        left: -60px;
    }
    #ai-law-firm-home .ai-profiles-nav-btn.next-btn {
        right: -60px;
    }
}

#ai-law-firm-home .ai-profile-card {
    background-color: #0b0f19; /* 이미지 테두리와 어울리는 어두운 배경 */
    border-radius: 16px;
    padding: 0; /* 이미지가 카드를 꽉 채우도록 여백 제거 */
    display: block;
    width: 100%;
    aspect-ratio: 618 / 540;
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

#ai-law-firm-home .ai-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* 이미지 자체에 이름과 직책이 포함되어 있으므로 HTML 텍스트 정보는 숨김 처리 */
#ai-law-firm-home .ai-profile-info {
    display: none;
}

#ai-law-firm-home .ai-profile-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

#ai-law-firm-home .ai-profile-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

#ai-law-firm-home .ai-profiles-footer-mobile {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-profiles-footer-mobile {
        display: none;
    }
}

#ai-law-firm-home .ai-profiles-mobile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--ai-white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

#ai-law-firm-home .ai-profiles-mobile-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 8. Desktop Scroll Snapping Layout */
@media (min-width: 1024px) {
    /* NOTE: scroll-snap-type is applied to body, NOT html.
       Applying it to html breaks position:fixed elements in some browsers. */
    body.page-template-template-home-law-firm {
        scroll-behavior: smooth;
        overflow-y: scroll;
    }
    
    body.page-template-template-home-law-firm #ai-law-firm-home > section {
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        position: relative;
    }

    #ai-law-firm-home > section.ai-hero {
        height: 100vh;
        min-height: 100vh;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    #ai-law-firm-home {
        overflow: visible;
    }
}


/* ================================================
   Sticky Bottom Consultation Bar
   ================================================ */
#ai-sticky-consult-bar {
    --sticky-bg: #FCFAF7; /* 밝은 크림 아이보리 배경 */
    --sticky-border: rgba(171, 139, 76, 0.22); /* 세련된 골드 경계선 */
    --sticky-gold: #ab8b4c; /* 시인성이 좋은 어두운 골드 */
    --sticky-gold-light: rgba(171, 139, 76, 0.08);
    --sticky-text: #17142b; /* 대비가 확실한 딥퍼플 텍스트 */
    --sticky-placeholder: rgba(23, 20, 43, 0.42);
    --sticky-input-bg: rgba(23, 20, 43, 0.03);
    --sticky-input-border: rgba(23, 20, 43, 0.12);
    --sticky-font: 'Paperlogy', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Force independent fixed layer — not contained by any scroll context */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 99999 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;

    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;

    background: var(--sticky-bg);
    border-top: 1px solid var(--sticky-border);
    box-shadow: 0 -8px 32px rgba(16, 23, 34, 0.08), 0 -1px 0 rgba(171, 139, 76, 0.2); /* 부드럽고 얇은 섀도우로 변경 */
    font-family: var(--sticky-font);
    padding: 0;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
}

/* Scrolling badge bubble */
#ai-sticky-consult-bar .ai-sticky-badge {
    position: absolute;
    top: -52px;
    left: 24px;
    background: var(--sticky-bg);
    border: 1px solid var(--sticky-border);
    border-radius: 8px 8px 8px 2px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--sticky-gold);
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

#ai-sticky-consult-bar .ai-sticky-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    animation: ai-sticky-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes ai-sticky-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.08); }
}

/* Left "간편 문의" label */
#ai-sticky-consult-bar .ai-sticky-label {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 64px;
    border-right: 1px solid var(--sticky-border);
    position: relative;
}

@media (min-width: 1024px) {
    #ai-sticky-consult-bar .ai-sticky-label {
        display: flex;
    }
}

#ai-sticky-consult-bar .ai-sticky-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--sticky-gold);
    border-radius: 2px;
}

#ai-sticky-consult-bar .ai-sticky-label-kr {
    font-size: 15px;
    font-weight: 700;
    color: var(--sticky-text);
    letter-spacing: 0.05em;
}

/* Form layout */
#ai-sticky-consult-bar .ai-sticky-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    height: 64px;
    overflow: hidden;
}

/* Each field block */
#ai-sticky-consult-bar .ai-sticky-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
    border-right: 1px solid var(--sticky-border);
    height: 100%;
    position: relative;
    min-width: 0;
}

#ai-sticky-consult-bar .ai-sticky-field-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--sticky-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1;
    display: none;
}

@media (min-width: 768px) {
    #ai-sticky-consult-bar .ai-sticky-field-label {
        display: block;
    }
}

/* Select dropdown */
#ai-sticky-consult-bar .ai-sticky-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#ai-sticky-consult-bar .ai-sticky-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--sticky-text);
    font-size: 13px;
    font-family: var(--sticky-font);
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    padding-right: 24px;
    line-height: normal !important;
}


#ai-sticky-consult-bar .ai-sticky-select option {
    background: #ffffff;
    color: #17142b;
}

#ai-sticky-consult-bar .ai-sticky-select-arrow {
    position: absolute;
    right: 0;
    font-size: 16px;
    color: var(--sticky-gold);
    pointer-events: none;
}

/* Text inputs */
#ai-sticky-consult-bar .ai-sticky-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--sticky-text);
    font-size: 13px;
    font-family: var(--sticky-font);
    font-weight: 400;
    width: 100%;
    line-height: 1.4;
}

#ai-sticky-consult-bar .ai-sticky-input::placeholder {
    color: var(--sticky-placeholder);
    font-size: 13px;
}

/* Focus highlight line */
#ai-sticky-consult-bar .ai-sticky-field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--sticky-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

#ai-sticky-consult-bar .ai-sticky-field:focus-within::after {
    transform: scaleX(1);
}

/* Privacy checkbox area */
#ai-sticky-consult-bar .ai-sticky-privacy {
    flex-shrink: 0;
    padding: 0 20px;
    border-right: 1px solid var(--sticky-border);
    height: 64px;
    display: none;
    align-items: center;
}

@media (min-width: 1100px) {
    #ai-sticky-consult-bar .ai-sticky-privacy {
        display: flex;
    }
}

#ai-sticky-consult-bar .ai-sticky-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#ai-sticky-consult-bar .ai-sticky-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#ai-sticky-consult-bar .ai-sticky-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(200, 169, 106, 0.5);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
}

#ai-sticky-consult-bar .ai-sticky-checkbox:checked + .ai-sticky-checkbox-custom {
    background: var(--sticky-gold);
    border-color: var(--sticky-gold);
}

#ai-sticky-consult-bar .ai-sticky-checkbox:checked + .ai-sticky-checkbox-custom::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 9px;
    border: 2px solid #141226;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

#ai-sticky-consult-bar .ai-sticky-privacy-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(23, 20, 43, 0.65); /* 가독성을 위해 어두운 반투명 색상으로 변경 */
    line-height: 1.6;
    white-space: nowrap;
}

#ai-sticky-consult-bar .ai-sticky-privacy-link {
    color: var(--sticky-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

#ai-sticky-consult-bar .ai-sticky-privacy-link:hover {
    color: #8c6a2e; /* 호버 시 약간 더 어두운 골드로 변경 */
}

/* Submit button */
#ai-sticky-consult-bar .ai-sticky-submit {
    flex-shrink: 0;
    height: 64px;
    padding: 0 36px;
    background: var(--sticky-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

#ai-sticky-consult-bar .ai-sticky-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

#ai-sticky-consult-bar .ai-sticky-submit:hover::before {
    background: rgba(255, 255, 255, 0.12);
}

#ai-sticky-consult-bar .ai-sticky-submit span {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--sticky-font);
    color: #101722;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Mobile: compact single-row layout */
@media (max-width: 767px) {
    #ai-sticky-consult-bar {
        flex-direction: column;
        min-height: auto;
        padding: 0;
    }

    #ai-sticky-consult-bar .ai-sticky-badge {
        top: -44px;
        left: 12px;
        font-size: 10px;
        padding: 6px 10px;
    }

    #ai-sticky-consult-bar .ai-sticky-form {
        width: 100%;
        height: auto;
        flex-wrap: wrap;
        padding: 0;
    }

    #ai-sticky-consult-bar .ai-sticky-field {
        flex: 1 1 45%;
        height: 52px;
        border-bottom: 1px solid var(--sticky-border);
    }

    #ai-sticky-consult-bar .ai-sticky-submit {
        width: 100%;
        height: 48px;
        border-radius: 0;
    }
}

/* Ensure the page content doesn't hide behind the sticky bar */
body.page-template-template-home-law-firm {
    padding-bottom: 64px;
}


/* ================================================
   Paperlogy 폰트 적용 — 히어로 섹션 제외 전 섹션
   - font-weight: 400 (Regular)  → 일반 본문
   - font-weight: 600 (SemiBold) → 제목, 강조, 태그, 버튼
   ================================================ */



/* 성공사례 섹션 */
#ai-law-firm-home .ai-cases-section,
#ai-law-firm-home .ai-cases-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-cases-title,
#ai-law-firm-home .ai-cases-section-tag,
#ai-law-firm-home .ai-case-card-category,
#ai-law-firm-home .ai-case-card-title,
#ai-law-firm-home .ai-cases-tab.active,
#ai-law-firm-home .ai-cases-tab:hover {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-cases-desc,
#ai-law-firm-home .ai-case-card-desc,
#ai-law-firm-home .ai-cases-tab,
#ai-law-firm-home .ai-case-card-result-label {
    font-weight: 400 !important;
}

/* 문제점 섹션 */
#ai-law-firm-home .ai-problem-section,
#ai-law-firm-home .ai-problem-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-problem-title,
#ai-law-firm-home .ai-problem-tag,
#ai-law-firm-home .ai-problem-item-title,
#ai-law-firm-home .ai-problem-highlight {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-problem-desc,
#ai-law-firm-home .ai-problem-item-desc {
    font-weight: 400 !important;
}

/* Our Process 섹션 */
#ai-law-firm-home .ai-process-section,
#ai-law-firm-home .ai-process-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-process-title,
#ai-law-firm-home .ai-process-tag,
#ai-law-firm-home .ai-process-card-title,
#ai-law-firm-home .ai-process-number {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-process-card-desc {
    font-weight: 400 !important;
}

/* 신뢰 지표 섹션 */
#ai-law-firm-home .ai-trust-section,
#ai-law-firm-home .ai-trust-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-trust-title,
#ai-law-firm-home .ai-trust-tag,
#ai-law-firm-home .ai-trust-stat-number,
#ai-law-firm-home .ai-trust-stat-label,
#ai-law-firm-home .ai-trust-feature-title {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-trust-desc,
#ai-law-firm-home .ai-trust-feature-desc,
#ai-law-firm-home .ai-trust-stat-desc {
    font-weight: 400 !important;
}

/* 구성원 소개 섹션 */
#ai-law-firm-home .ai-profiles-section,
#ai-law-firm-home .ai-profiles-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-profiles-title,
#ai-law-firm-home .ai-profiles-tag,
#ai-law-firm-home .ai-profile-position {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-profiles-desc,
#ai-law-firm-home .ai-profile-detail {
    font-weight: 400 !important;
}

/* ================================================
   8. Consultation Inquiry Section (상담 신청)
   ================================================ */
#ai-law-firm-home .ai-consult-section {
    padding: 96px 0;
    background-color: var(--ai-surface-container-low);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-consult-section {
        padding: 120px 0;
    }
}

/* 배경 문양 데코레이션 효과 */
#ai-law-firm-home .ai-consult-section::before,
#ai-law-firm-home .ai-consult-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 106, 0.08);
    pointer-events: none;
    z-index: 0;
}
#ai-law-firm-home .ai-consult-section::before {
    width: 600px;
    height: 600px;
    left: -150px;
    bottom: -150px;
}
#ai-law-firm-home .ai-consult-section::after {
    width: 400px;
    height: 400px;
    left: 100px;
    bottom: -200px;
}

#ai-law-firm-home .ai-consult-container {
    position: relative;
    z-index: 10;
}

#ai-law-firm-home .ai-consult-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    #ai-law-firm-home .ai-consult-grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 80px;
    }
}

/* Left Area */
#ai-law-firm-home .ai-consult-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#ai-law-firm-home .ai-consult-tag {
    color: #a88a55;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

#ai-law-firm-home .ai-consult-tag-star {
    font-size: 11px;
    vertical-align: super;
    margin-left: 2px;
}

#ai-law-firm-home .ai-consult-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 28px;
    color: var(--ai-ocean-deep);
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-consult-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-consult-title span {
    color: #a88a55;
}

#ai-law-firm-home .ai-consult-desc {
    font-family: var(--ai-font-paperlogy);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ai-on-surface-variant);
    margin-bottom: 40px;
    font-weight: 400;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-consult-desc {
        font-size: 16px;
        margin-bottom: 48px;
    }
}

#ai-law-firm-home .ai-consult-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 340px;
}

#ai-law-firm-home .ai-consult-btn-link {
    background-color: var(--ai-white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

#ai-law-firm-home .ai-consult-btn-icon {
    color: #a88a55;
    margin-right: 16px;
    font-size: 20px;
}

#ai-law-firm-home .ai-consult-btn-text {
    font-family: var(--ai-font-paperlogy);
    font-size: 16px;
    font-weight: 600;
    color: var(--ai-ocean-deep);
    flex-grow: 1;
}

#ai-law-firm-home .ai-consult-btn-arrow {
    color: var(--ai-outline-variant);
    font-size: 16px;
    transition: transform 0.3s ease;
}

#ai-law-firm-home .ai-consult-btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(168, 138, 85, 0.15);
}

#ai-law-firm-home .ai-consult-btn-link:hover .ai-consult-btn-arrow {
    transform: translateX(4px);
    color: #a88a55;
}

/* Right Form Card Area */
#ai-law-firm-home .ai-consult-card {
    background-color: var(--ai-white);
    border-radius: 20px;
    padding: 32px 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-consult-card {
        padding: 48px 40px;
    }
}

/* Progress Indicator */
#ai-law-firm-home .ai-consult-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: #fafafa;
    padding: 12px 10px;
    border-radius: 12px;
}

@media (min-width: 480px) {
    #ai-law-firm-home .ai-consult-progress {
        padding: 12px 16px;
    }
}

#ai-law-firm-home .ai-consult-prog-step {
    font-size: 11px;
    color: var(--ai-outline);
    font-weight: 500;
    padding: 6px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (min-width: 480px) {
    #ai-law-firm-home .ai-consult-prog-step {
        font-size: 13px;
        padding: 6px 12px;
    }
}

#ai-law-firm-home .ai-consult-prog-step.active {
    background-color: var(--ai-white);
    color: #a88a55;
    font-weight: 700;
    border: 1px solid rgba(168, 138, 85, 0.2);
    box-shadow: 0 2px 8px rgba(168, 138, 85, 0.06);
}

#ai-law-firm-home .ai-consult-prog-arrow {
    color: var(--ai-outline-variant);
    font-size: 12px;
}

@media (min-width: 480px) {
    #ai-law-firm-home .ai-consult-prog-arrow {
        font-size: 14px;
    }
}

/* Form Styles */
#ai-law-firm-home .ai-consult-form-element {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#ai-law-firm-home .ai-consult-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ai-law-firm-home .ai-consult-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ai-ocean-deep);
    letter-spacing: -0.01em;
}

#ai-law-firm-home .ai-consult-select-wrap {
    position: relative;
    width: 100%;
}

#ai-law-firm-home .ai-consult-select-field {
    width: 100%;
    height: 52px !important;
    line-height: normal !important;
    background-color: #f7f7f9;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 40px 0 16px !important;
    font-size: 14px;
    color: var(--ai-on-surface);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.3s ease;
}


#ai-law-firm-home .ai-consult-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ai-outline);
    pointer-events: none;
    font-size: 18px;
}

#ai-law-firm-home .ai-consult-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-consult-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

#ai-law-firm-home .ai-consult-input-field {
    width: 100%;
    height: 52px !important;
    line-height: 1.2 !important;
    background-color: #f7f7f9;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 16px !important;
    font-size: 14px;
    color: var(--ai-on-surface);
    outline: none;
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-consult-textarea-field {
    width: 100%;
    height: 120px;
    background-color: #f7f7f9;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: var(--ai-on-surface);
    outline: none;
    resize: none;
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-consult-select-field:focus,
#ai-law-firm-home .ai-consult-input-field:focus,
#ai-law-firm-home .ai-consult-textarea-field:focus {
    background-color: var(--ai-white);
    border-color: rgba(168, 138, 85, 0.4);
    box-shadow: 0 4px 12px rgba(168, 138, 85, 0.05);
}

/* Privacy checkbox row */
#ai-law-firm-home .ai-consult-privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

#ai-law-firm-home .ai-consult-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

#ai-law-firm-home .ai-consult-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#ai-law-firm-home .ai-consult-checkbox-custom {
    height: 18px;
    width: 18px;
    background-color: #f0f0f2;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-consult-checkbox-label:hover input ~ .ai-consult-checkbox-custom {
    background-color: #e2e2e5;
}

#ai-law-firm-home .ai-consult-checkbox-label input:checked ~ .ai-consult-checkbox-custom {
    background-color: #a88a55;
}

#ai-law-firm-home .ai-consult-checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--ai-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#ai-law-firm-home .ai-consult-checkbox-label input:checked ~ .ai-consult-checkbox-custom::after {
    display: block;
}

#ai-law-firm-home .ai-consult-checkbox-text {
    font-size: 13px;
    color: var(--ai-on-surface-variant);
    font-weight: 500;
}

#ai-law-firm-home .ai-consult-privacy-link {
    font-size: 12px;
    color: var(--ai-outline);
    text-decoration: underline;
    font-weight: 500;
}

#ai-law-firm-home .ai-consult-privacy-link:hover {
    color: #a88a55;
}

/* Submit Button */
#ai-law-firm-home .ai-consult-submit-btn {
    width: 100%;
    background-color: #917753;
    color: var(--ai-white);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(145, 119, 83, 0.15);
    font-family: var(--ai-font-pretendard);
}

#ai-law-firm-home .ai-consult-submit-btn:hover {
    background-color: #7d6543;
    box-shadow: 0 6px 16px rgba(145, 119, 83, 0.25);
    transform: translateY(-1px);
}

/* 폰트 상속 및 강제 */
#ai-law-firm-home .ai-consult-section,
#ai-law-firm-home .ai-consult-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-consult-title,
#ai-law-firm-home .ai-consult-tag,
#ai-law-firm-home .ai-consult-btn-text,
#ai-law-firm-home .ai-consult-submit-btn {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-consult-desc,
#ai-law-firm-home .ai-consult-input-field,
#ai-law-firm-home .ai-consult-textarea-field,
#ai-law-firm-home .ai-consult-select-field,
#ai-law-firm-home .ai-consult-checkbox-text {
    font-weight: 400 !important;
}

/* ================================================
   9. Location Section (오시는 길)
   ================================================ */
#ai-law-firm-home .ai-location-section {
    padding: 96px 0;
    background: linear-gradient(135deg, #101422 0%, #17182b 100%);
    position: relative;
    overflow: hidden;
    color: var(--ai-white);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-location-section {
        padding: 120px 0;
    }
}

/* 빌딩 실루엣 가상 요소를 이용한 배경 데코레이션 */
#ai-law-firm-home .ai-location-section::before,
#ai-law-firm-home .ai-location-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 250px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

#ai-law-firm-home .ai-location-section::before {
    left: 0;
    background-image: linear-gradient(90deg, transparent 40%, var(--ai-white) 41%, var(--ai-white) 43%, transparent 44%),
                      linear-gradient(90deg, transparent 60%, var(--ai-white) 61%, var(--ai-white) 63%, transparent 64%),
                      linear-gradient(to top, rgba(255,255,255,0.2) 0%, transparent 80%);
}

#ai-law-firm-home .ai-location-section::after {
    right: 0;
    background-image: linear-gradient(90deg, transparent 30%, var(--ai-white) 31%, var(--ai-white) 33%, transparent 34%),
                      linear-gradient(90deg, transparent 70%, var(--ai-white) 71%, var(--ai-white) 73%, transparent 74%),
                      linear-gradient(to top, rgba(255,255,255,0.2) 0%, transparent 70%);
}

#ai-law-firm-home .ai-location-container {
    position: relative;
    z-index: 10;
}

/* Header */
#ai-law-firm-home .ai-location-header {
    text-align: center;
    margin-bottom: 64px;
}

#ai-law-firm-home .ai-location-tag {
    color: #dfc38d;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

#ai-law-firm-home .ai-location-tag-star {
    font-size: 11px;
    vertical-align: super;
    margin-left: 2px;
}

#ai-law-firm-home .ai-location-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 28px;
    color: var(--ai-white);
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-location-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-location-title span {
    color: #dfc38d;
}

#ai-law-firm-home .ai-location-subtitle {
    font-family: var(--ai-font-paperlogy);
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

#ai-law-firm-home .ai-location-subtitle span {
    border-bottom: 1px solid rgba(223, 195, 141, 0.4);
    color: rgba(255, 255, 255, 0.95);
    padding-bottom: 2px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-location-subtitle {
        font-size: 16px;
    }
}

/* Grid Layout */
#ai-law-firm-home .ai-location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    #ai-law-firm-home .ai-location-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 80px;
    }
}

/* Left: Map */
#ai-law-firm-home .ai-location-map-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #1a1e2d;
    aspect-ratio: 4 / 3;
    position: relative; /* Control panel positioning context */
}

#ai-law-firm-home .ai-location-map-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#ai-law-firm-home #ai-fallback-map {
    cursor: grab;
    overflow: hidden;
}

#ai-law-firm-home #ai-fallback-map.grabbing {
    cursor: grabbing;
}

#ai-law-firm-home .ai-location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Let drag events fall through to container */
}

/* Map Control Buttons Overlay */
#ai-law-firm-home .ai-map-control-wrap {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

#ai-law-firm-home .ai-map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

#ai-law-firm-home .ai-map-control-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#ai-law-firm-home .ai-map-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#ai-law-firm-home .ai-map-control-btn span {
    font-size: 20px;
    font-weight: 600;
    font-family: inherit;
    display: block;
}

/* Right: Office details */
#ai-law-firm-home .ai-location-office-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 24px;
    color: var(--ai-white);
    margin-bottom: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#ai-law-firm-home .ai-location-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

#ai-law-firm-home .ai-location-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ai-law-firm-home .ai-location-btn-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

#ai-law-firm-home .ai-location-btn-link {
    background-color: var(--ai-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#ai-law-firm-home .ai-location-btn-icon {
    color: #a88a55;
    margin-right: 16px;
    font-size: 20px;
}

#ai-law-firm-home .ai-location-btn-text {
    font-family: var(--ai-font-paperlogy);
    font-size: 18px;
    font-weight: 600;
    color: var(--ai-ocean-deep);
    flex-grow: 1;
}

#ai-law-firm-home .ai-location-btn-arrow {
    color: var(--ai-outline-variant);
    font-size: 16px;
    transition: transform 0.3s ease;
}

#ai-law-firm-home .ai-location-btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
    background-color: #fcfcfc;
}

#ai-law-firm-home .ai-location-btn-link:hover .ai-location-btn-arrow {
    transform: translateX(4px);
    color: #a88a55;
}

/* Info List */
#ai-law-firm-home .ai-location-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

#ai-law-firm-home .ai-location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

#ai-law-firm-home .ai-location-info-icon {
    color: #dfc38d;
    font-size: 20px;
    margin-top: 2px;
}

#ai-law-firm-home .ai-location-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#ai-law-firm-home .ai-location-info-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

#ai-law-firm-home .ai-location-info-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-weight: 400;
}

#ai-law-firm-home .ai-location-info-subtext {
    font-size: 13px;
    color: #dfc38d;
    font-weight: 500;
}

/* 폰트 지정 및 강제 */
#ai-law-firm-home .ai-location-section,
#ai-law-firm-home .ai-location-section * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-law-firm-home .ai-location-title,
#ai-law-firm-home .ai-location-tag,
#ai-law-firm-home .ai-location-office-title,
#ai-law-firm-home .ai-location-btn-text,
#ai-law-firm-home .ai-location-btn-label,
#ai-law-firm-home .ai-location-info-title,
#ai-law-firm-home .ai-location-info-subtext {
    font-weight: 600 !important;
}
#ai-law-firm-home .ai-location-subtitle,
#ai-law-firm-home .ai-location-info-text {
    font-weight: 400 !important;
}

/* Sticky 상담 바 */
#ai-sticky-consult-bar,
#ai-sticky-consult-bar * {
    font-family: var(--ai-font-paperlogy) !important;
}
#ai-sticky-consult-bar .ai-sticky-label-kr,
#ai-sticky-consult-bar .ai-sticky-badge,
#ai-sticky-consult-bar .ai-sticky-submit span,
#ai-sticky-consult-bar .ai-sticky-field-label {
    font-weight: 600 !important;
}
#ai-sticky-consult-bar .ai-sticky-select,
#ai-sticky-consult-bar .ai-sticky-input,
#ai-sticky-consult-bar .ai-sticky-privacy-text {
    font-weight: 400 !important;
}

/* ================================================
   6-2. Client Reviews Section (New)
   ================================================ */
#ai-law-firm-home .ai-home-reviews-section {
    padding: 96px 0;
    background-color: var(--ai-white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-reviews-section {
        padding: 160px 0;
    }
}

#ai-law-firm-home .ai-home-reviews-container {
    position: relative;
    z-index: 10;
}

#ai-law-firm-home .ai-home-reviews-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    align-items: center;
    text-align: center;
}

#ai-law-firm-home .ai-home-reviews-tag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

#ai-home-reviews-section,
#ai-home-reviews-section * {
    font-family: var(--ai-font-paperlogy) !important;
}

#ai-law-firm-home .ai-home-reviews-section-tag {
    color: var(--ai-ocean-deep);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-reviews-section-tag {
        font-size: 1.25rem;
    }
}

#ai-law-firm-home .ai-home-reviews-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c29c66;
}

#ai-law-firm-home .ai-home-reviews-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 26px;
    color: var(--ai-ocean-deep);
    line-height: 1.35;
    font-weight: 600;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-reviews-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-home-reviews-title span {
    color: #c29c66;
}

#ai-law-firm-home .ai-home-reviews-desc {
    color: var(--ai-on-surface-variant);
    font-size: 1.05rem;
    margin-top: 24px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-reviews-desc {
        font-size: 1.125rem;
    }
}

/* Reviews Swiper Wrapper */
#ai-law-firm-home .ai-home-reviews-slider-wrapper {
    position: relative;
    width: 100%;
}

#ai-law-firm-home .ai-home-reviews-swiper {
    width: 100%;
    padding: 16px 4px 32px 4px;
    overflow: hidden;
}

/* Force Swiper slides to align to the same height */
#ai-law-firm-home .ai-home-reviews-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

#ai-law-firm-home .ai-home-review-card {
    background-color: var(--ai-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

#ai-law-firm-home .ai-home-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
    border-color: rgba(194, 156, 102, 0.3);
}

#ai-law-firm-home .ai-home-review-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    height: 100%;
    padding: 32px;
}

#ai-law-firm-home .ai-home-review-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#ai-law-firm-home .ai-home-review-card-cate {
    font-size: 13px;
    color: #a88a55;
    background-color: rgba(168, 138, 85, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

#ai-law-firm-home .ai-home-review-card-icon {
    color: #dfc38d;
    font-size: 20px;
}

#ai-law-firm-home .ai-home-review-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#ai-law-firm-home .ai-home-review-card-title {
    font-size: 18px;
    color: var(--ai-ocean-deep);
    font-weight: 600;
    line-height: 1.4;
}

#ai-law-firm-home .ai-home-review-card-quote {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 24px;
    color: #a88a55;
    line-height: 1.2;
    margin: 4px 0;
}

#ai-law-firm-home .ai-home-review-card-desc {
    font-size: 14px;
    color: var(--ai-on-surface-variant);
    line-height: 1.6;
}

#ai-law-firm-home .ai-home-review-card-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ai-muted-obsidian);
}

#ai-law-firm-home .ai-home-review-card-author {
    font-weight: 600;
    color: var(--ai-ocean-deep);
}

#ai-law-firm-home .ai-home-review-card-date {
    opacity: 0.8;
}

/* Swiper navigation */
#ai-law-firm-home .ai-home-reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--ai-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-home-reviews-nav-btn:hover {
    background-color: #a88a55;
    border-color: #a88a55;
    color: var(--ai-white);
}

#ai-law-firm-home .ai-home-reviews-nav-btn.prev-btn {
    left: -24px;
}

#ai-law-firm-home .ai-home-reviews-nav-btn.next-btn {
    right: -24px;
}

@media (max-width: 1200px) {
    #ai-law-firm-home .ai-home-reviews-nav-btn.prev-btn {
        left: 4px;
    }
    #ai-law-firm-home .ai-home-reviews-nav-btn.next-btn {
        right: 4px;
    }
}

/* ================================================
   ⚠️ Material Symbols 아이콘 폰트 복구
   Paperlogy 와일드카드(*) 적용으로 인해 덮어씌워진 
   아이콘용 폰트 패밀리를 파일 최하단에서 재복구합니다.
   ================================================ */
.material-symbols-outlined,
#ai-law-firm-home .material-symbols-outlined,
#ai-sticky-consult-bar .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ================================================
   6-3. Partone TV Section Styles
   ================================================ */
#ai-law-firm-home .ai-home-tv-section {
    padding: 96px 0;
    background-color: var(--ai-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#ai-law-firm-home .ai-home-tv-container {
    position: relative;
    z-index: 10;
}

#ai-law-firm-home .ai-home-tv-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    align-items: center;
    text-align: center;
}

#ai-law-firm-home .ai-home-tv-tag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

#ai-law-firm-home .ai-home-tv-section-tag {
    color: var(--ai-ocean-deep);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

#ai-law-firm-home .ai-home-tv-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c29c66;
}

#ai-law-firm-home .ai-home-tv-title {
    font-family: var(--ai-font-paperlogy) !important;
    font-size: 26px;
    color: var(--ai-ocean-deep);
    line-height: 1.35;
    font-weight: 600;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-tv-title {
        font-size: 42px;
    }
}

#ai-law-firm-home .ai-home-tv-title span {
    color: #c29c66;
}

#ai-law-firm-home .ai-home-tv-desc {
    color: var(--ai-on-surface-variant);
    font-size: 1.05rem;
    margin-top: 20px;
}

/* TV Card Grid */
#ai-law-firm-home .ai-home-tv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
}

@media (min-width: 768px) {
    #ai-law-firm-home .ai-home-tv-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

#ai-law-firm-home .ai-home-tv-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#ai-law-firm-home .ai-home-tv-card {
    background-color: var(--ai-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#ai-law-firm-home .ai-home-tv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 156, 102, 0.3);
}

/* Video Thumbnail wrap */
#ai-law-firm-home .ai-home-tv-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

#ai-law-firm-home .ai-home-tv-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

#ai-law-firm-home .ai-home-tv-card:hover .ai-home-tv-thumb {
    transform: scale(1.08);
}

/* Play Button overlay */
#ai-law-firm-home .ai-home-tv-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    background-color: rgba(16, 23, 34, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#ai-law-firm-home .ai-home-tv-play-btn svg {
    margin-left: 3px;
    transition: transform 0.3s ease;
}

#ai-law-firm-home .ai-home-tv-card:hover .ai-home-tv-play-btn {
    background-color: #c29c66;
    border-color: #c29c66;
    transform: scale(1.1);
}

#ai-law-firm-home .ai-home-tv-card:hover .ai-home-tv-play-btn svg {
    transform: scale(1.1);
}

/* Body context */
#ai-law-firm-home .ai-home-tv-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

#ai-law-firm-home .ai-home-tv-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ai-ocean-deep);
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

#ai-law-firm-home .ai-home-tv-card:hover .ai-home-tv-card-title {
    color: #c29c66;
}

#ai-law-firm-home .ai-home-tv-date {
    font-size: 0.85rem;
    color: var(--ai-muted-obsidian);
}

/* Footer view all button */
#ai-law-firm-home .ai-home-tv-footer {
    display: flex;
    justify-content: center;
}

#ai-law-firm-home .ai-home-tv-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: var(--ai-ocean-deep);
    color: var(--ai-white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(16, 23, 34, 0.15);
    transition: all 0.3s ease;
}

#ai-law-firm-home .ai-home-tv-more-btn:hover {
    background-color: #c29c66;
    color: var(--ai-white);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(194, 156, 102, 0.25);
}

/* ================================================
   Video Modal Popup Overlay (Shared Styles)
   ================================================ */
.ai-comm-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(16, 23, 34, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.ai-comm-video-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.ai-comm-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ai-comm-video-modal.open .ai-comm-video-modal-content {
    transform: scale(1);
}

.ai-comm-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal Close Button */
.ai-comm-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.ai-comm-video-modal-close:hover {
    color: #c29c66;
}

@media (max-width: 1024px) {
    .ai-comm-video-modal-content {
        margin-top: 40px;
    }
    .ai-comm-video-modal-close {
        top: -40px;
        font-size: 14px;
    }
}

/* ================================================
   Mobile Optimization & Layout Break Utilities
   ================================================ */
.pc-br {
    display: block;
}
.mo-br {
    display: none;
}

@media (max-width: 768px) {
    .pc-br {
        display: none !important;
    }
    .mo-br {
        display: block !important;
    }
    
    html,
    body.page-template-template-home-law-firm {
        height: auto !important;
        overflow-y: visible !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page-template-template-home-law-firm #page,
    body.page-template-template-home-law-firm #content,
    body.page-template-template-home-law-firm .site-content {
        height: auto !important;
        overflow: visible !important;
    }

    #ai-law-firm-home {
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important; /* 기존 div의 스냅 스크롤은 해제 */
    }

    /* 2. Child Sections layout settings */
    #ai-law-firm-home section {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important; /* 상담 바가 사라지므로 일반적인 상하 대칭 패딩으로 복구 */
        margin: 0 !important;
    }

    /* 3. Hide Sticky Bar on mobile completely */
    #ai-sticky-consult-bar {
        display: none !important;
    }




    /* 4. Section-specific layout compaction to prevent UA clipping */
    #ai-law-firm-home .ai-hero {
        height: 100dvh !important;
    }

    #ai-law-firm-home .ai-cases-section,
    #ai-law-firm-home .ai-home-reviews-section,
    #ai-law-firm-home .ai-home-tv-section,
    #ai-law-firm-home .ai-profiles-section,
    #ai-law-firm-home .ai-process-section,
    #ai-law-firm-home .ai-trust-section,
    #ai-law-firm-home .ai-consult-section,
    #ai-law-firm-home .ai-location-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Success Cases Compact */
    #ai-law-firm-home .ai-cases-header {
        margin-bottom: 20px !important;
    }
    #ai-law-firm-home .ai-cases-tabs {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-case-card-body {
        padding: 20px !important;
    }
    #ai-law-firm-home .ai-case-card-title {
        font-size: 20px !important;
    }
    #ai-law-firm-home .ai-case-card-result {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    /* Client Reviews Compact */
    #ai-law-firm-home .ai-home-reviews-header {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-home-review-link {
        padding: 24px !important;
    }
    #ai-law-firm-home .ai-home-review-card-footer {
        margin-top: 20px !important;
    }

    /* Partone TV Section Compact */
    #ai-law-firm-home .ai-home-tv-header {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-home-tv-grid {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-home-tv-body {
        padding: 16px !important;
    }

    /* Attorney Profiles Compact */
    #ai-law-firm-home .ai-profiles-header {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-profiles-title {
        margin-bottom: 12px !important;
    }

    /* Solution Process Compact */
    #ai-law-firm-home .ai-process-header {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-process-content-wrapper {
        margin-top: 24px !important;
        gap: 16px !important;
    }
    #ai-law-firm-home .ai-process-tabs-grid {
        gap: 8px !important;
    }
    #ai-law-firm-home .ai-process-tab-btn {
        padding: 12px 10px !important;
    }
    #ai-law-firm-home .ai-process-viewer {
        aspect-ratio: 2 / 1 !important;
    }

    /* Trust Section Compact */
    #ai-law-firm-home .ai-trust-grid {
        gap: 24px !important;
    }
    #ai-law-firm-home .ai-trust-title {
        margin-bottom: 16px !important;
    }
    #ai-law-firm-home .ai-trust-desc {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-trust-item {
        padding: 12px 0 !important;
        gap: 16px !important;
    }

    /* Consultation Section Compact */
    #ai-law-firm-home .ai-consult-grid {
        gap: 24px !important;
    }
    #ai-law-firm-home .ai-consult-title {
        margin-bottom: 16px !important;
    }
    #ai-law-firm-home .ai-consult-left {
        padding-right: 0 !important;
    }
    #ai-law-firm-home .ai-consult-right {
        margin-top: 0 !important;
    }
    #ai-law-firm-home .ai-consult-card {
        padding: 24px !important;
    }
    #ai-law-firm-home .ai-consult-form-grid {
        gap: 16px !important;
    }
    #ai-law-firm-home .ai-consult-form-group {
        margin-bottom: 0 !important;
    }

    /* Location Section Compact */
    #ai-law-firm-home .ai-location-header {
        margin-bottom: 24px !important;
    }
    #ai-law-firm-home .ai-location-grid {
        gap: 24px !important;
    }
    #ai-law-firm-home .ai-location-map-wrap {
        aspect-ratio: 2 / 1 !important;
    }
    #ai-law-firm-home .ai-location-office-title {
        margin-bottom: 20px !important;
    }
    #ai-law-firm-home .ai-location-buttons {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    /* 모바일 푸터 레이아웃 최적화 */
    body.page-template-template-home-law-firm footer,
    body.page-template-template-home-law-firm #colophon,
    body.page-template-template-home-law-firm .site-footer,
    body.page-template-template-home-law-firm #zita-footer,
    body.page-template-template-home-law-firm .zita-footer {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    body.page-template-template-home-law-firm footer *,
    body.page-template-template-home-law-firm #colophon *,
    body.page-template-template-home-law-firm .site-footer *,
    body.page-template-template-home-law-firm #zita-footer * {
        height: auto !important;
        min-height: auto !important;
    }

}

/* =======================================================
   메인페이지 전용 PC Floating Quick Menu
   ======================================================= */
.quick-menu {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 90px;
    box-sizing: border-box;
}

.quick-menu h5 {
    font-size: 10px;
    color: #bbb;
    font-weight: 500;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--ai-font-paperlogy);
}

.quick-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-menu-list li {
    width: 100%;
}

.quick-menu-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.quick-menu-list li a:hover {
    background: #f8f6f3;
}

.quick-menu-list li a p {
    font-size: 11px;
    color: #9F8156;
    font-weight: 600;
    margin: 0;
    font-family: var(--ai-font-paperlogy);
}