@charset "UTF-8";

.page-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    gap: 40px;
}

@media screen and (min-width: 769px) {
    .main-content {
        width: 70%;
    }

    .sidebar {
        width: 28%;
    }
}

@media screen and (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding-top: 100px;
    }

    .sidebar {
        order: 1;
        margin-bottom: 40px;
    }

    .main-content {
        order: 2;
    }
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9em;
    color: #666;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
}

.breadcrumb a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #ef4444;
}

.glossary-category {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
}

.glossary-category h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.term-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.term-list li {
    margin: 0;
}

.term-list a {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.term-list a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.term-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.term-content h2 {
    color: #dc2626;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fee2e2;
}

.term-content h3 {
    color: #1e1e2e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.term-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.term-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.term-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #4a5568;
}

.related-links {
    margin-top: 40px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.related-links h3 {
    color: #dc2626;
    margin-bottom: 15px;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.related-links a:hover {
    color: #ef4444;
    text-decoration: underline;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    color: #dc2626;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fee2e2;
}

.glossary-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glossary-nav li {
    margin-bottom: 10px;
}

.glossary-nav a {
    color: #4a5568;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.glossary-nav a:hover {
    background: #fef2f2;
    color: #dc2626;
    padding-left: 16px;
}

.ad-banner {
    text-align: center;
    padding: 15px;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ad-content {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: static;
    }

    .term-hero {
        height: 200px;
    }
}