/* FoodTech Glossary Styles */

.glossary-container {
    display: flex;
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
    gap: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .glossary-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: -1;
        /* Mobile: Sidebar above content */
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color, #2d5a27);
    text-decoration: none;
}

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

/* Term Content */
.glossary-term {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.term-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    border-bottom: 3px solid var(--primary-color, #2d5a27);
    padding-bottom: 10px;
}

.term-category {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.term-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.term-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.term-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color, #2d5a27);
}

.term-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #2d5a27;
}

.term-body p {
    margin-bottom: 20px;
}

/* External Links */
.external-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.external-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

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

.external-links a {
    color: #1a73e8;
    text-decoration: none;
}

.external-links a:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

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

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

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

.glossary-nav a {
    color: #444;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.glossary-nav a:hover {
    color: var(--primary-color, #2d5a27);
}

/* Ad Banners */
.ad-banner {
    text-align: center;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
}

/* Index Page Styles */
.glossary-category {
    margin-bottom: 50px;
}

.glossary-category h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
}

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

.term-list li a {
    display: block;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.term-list li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #2d5a27);
    color: var(--primary-color, #2d5a27);
}

/* Content Ad Banners */
.amazon-banner,
.content-banner {
    margin: 30px 0;
    text-align: center;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}