/* 목차 페이지 전용 스타일 */

.contents-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contents-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contents-hero h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contents-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.contents-main {
    padding: 3rem 0 5rem;
    background: #f8f9fa;
}

.contents-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contents-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.contents-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.sidebar-sticky h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sidebar-sticky h3 i {
    color: var(--color-earth);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #f0f0f0;
    color: var(--color-primary);
    border-left-color: var(--color-earth);
    padding-left: 1.3rem;
}

.contents-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.section-header-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 2.5rem;
    border-bottom: 3px solid var(--color-earth);
    position: relative;
}

.section-number {
    display: inline-block;
    background: var(--gradient-earth);
    color: var(--color-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.section-header-box h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.page-num {
    color: #666;
    font-size: 0.95rem;
}

.section-content {
    padding: 2.5rem;
}

.section-desc {
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.section-topics {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.topic {
    padding: 0.5rem 1rem;
    background: #e8e8e8;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #555;
}

.subsections {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary);
}

.subsection {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.subsection:last-child {
    border-bottom: none;
}

.sub-num {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    min-width: 40px;
}

.sub-title {
    color: #333;
    font-size: 1rem;
}

.section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.saju {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.tag.buddhist {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--gradient-earth);
    color: var(--color-dark);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-read:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .contents-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .contents-hero h2 {
        font-size: 2rem;
    }
    
    .contents-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section-header-box {
        padding: 1.5rem;
    }
    
    .section-header-box h2 {
        font-size: 1.5rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-read,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
