/* practice-areas.css */

/* --- Variables (Premium Light Theme) --- */
:root {
    --bg-light: #ffffff;
    --bg-subtle: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --accent: #8c7b6c;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(140, 123, 108, 0.15);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- Hero Section --- */
.page-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #16181b;
    /* Dark hero for contrast header */
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/DSC00330.webp');
    /* Existing asset */
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease forwards;
}

.page-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    text-transform: uppercase;
}

/* --- Practice Grid Section --- */
.practice-list-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.intro-text-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.intro-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    word-break: keep-all;
}

.practice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.practice-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: 36px 28px;
    border-radius: 4px;
    /* Slight soft edge */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    /* For wrap link */
    display: block;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 30px;
    opacity: 0.8;
    transition: transform 0.4s ease;
}

.practice-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.card-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: keep-all;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}

.card-link i {
    margin-left: 8px;
    font-size: 0.8em;
}

.practice-card:hover .card-link {
    gap: 15px;
    /* Arrow moves slightly */
}

/* --- Detail Page Layout (Legacy/Reference) --- */
.practice-tab-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

/* Sticky Sidebar */
.detail-sidebar {
    width: 100%;
    position: static;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.sidebar-title {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0 10px;
    margin: 0;
    display: flex;
    border-left: none;
    gap: 10px;
    overflow-x: auto;
}

.sidebar-item a {
    display: block;
    padding: 10px 15px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    border-radius: 20px;
    white-space: nowrap;
}

.sidebar-item a:hover {
    color: var(--accent);
    background-color: #e5e5e5;
}

.sidebar-item.active a {
    color: #fff;
    font-weight: 700;
    background-color: var(--accent);
}

.sidebar-item.active a::before {
    display: none;
}


/* Main Detail Content */
.detail-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Title Group */
.detail-header {
    margin-bottom: 60px;
    position: relative;
}

.detail-en-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    /* Very subtle background text */
    text-transform: uppercase;
    position: absolute;
    top: -20px;
    left: -5px;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.02em;
}

.detail-ko-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

/* Summary Box */
.summary-box {
    background-color: #f7f3ee;
    /* Warm Champagne tint */
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 60px;
    border-left: 4px solid var(--accent);
}

.summary-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 500;
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-light);
}

/* Legal Basis Box */
.legal-basis {
    background-color: #f9f9f9;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.legal-title {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Detailed Grid (Icons & Steps) */
.step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.step-item {
    background-color: #fff;
    border: 1px solid var(--border-light);
    padding: 30px;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.step-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Back Link */
.back-nav {
    margin-top: 80px;
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid var(--border-light);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border: 1px solid var(--border-light);
    background-color: #fff;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #f9f9f9;
    border-color: var(--accent);
    color: var(--accent);
}

@media (min-width: 768px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .page-hero {
        height: 360px;
    }

    .page-title {
        font-size: 2.6rem;
    }

    .detail-en-title {
        font-size: 3rem;
    }

    .detail-ko-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .practice-list-section {
        padding: 120px 0;
    }

    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .page-hero {
        height: 400px;
    }

    .page-title {
        font-size: 3rem;
    }

    .detail-container {
        flex-direction: row;
        gap: 60px;
    }

    .detail-sidebar {
        width: 250px;
        position: sticky;
        top: 120px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .sidebar-nav {
        display: block;
        border-left: 1px solid var(--border-light);
        padding: 0;
        overflow: visible;
    }

    .sidebar-item a {
        padding: 15px 0 15px 25px;
        background-color: transparent;
        border-radius: 0;
        font-size: 1rem;
    }

    .sidebar-item a:hover {
        background-color: rgba(140, 123, 108, 0.03);
    }

    .sidebar-item.active a {
        color: var(--text-dark);
        background-color: transparent;
    }

    .sidebar-item.active a::before {
        display: block;
        content: '';
        position: absolute;
        left: -1px;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: var(--accent);
    }

    .detail-en-title {
        font-size: 4rem;
        top: -40px;
    }

    .detail-ko-title {
        font-size: 2.8rem;
    }

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