/* ============================================
   ADUAN AYAM - ENCYCLOPEDIA THEME
   Chicken Fighting Culture & Breeding Portal
   ============================================ */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Natural/Agricultural theme (Green) */
    --color-primary: #2e7d32;
    --color-primary-dark: #1b5e20;
    --color-primary-light: #4caf50;

    /* Secondary Colors - Earth tones */
    --color-secondary: #558b2f;
    --color-accent: #f57c00;
    --color-accent-light: #ff9800;

    /* Neutral Colors */
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-lighter: #757575;
    --color-bg: #fafafa;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f5f5f5;
    --color-border: #e0e0e0;
    --color-border-light: #eeeeee;

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Merriweather', 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.encyclopedia-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   4. HEADER
   ============================================ */

.site-header {
    background: var(--color-bg-secondary);
    border-bottom: 2px solid var(--color-primary);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-primary-light);
    color: white;
}

/* ============================================
   5. ENCYCLOPEDIA HERO SECTION
   ============================================ */

.encyclopedia-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: var(--spacing-3xl) var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin: var(--spacing-2xl) 0;
    color: white;
}

.hero-content-encyclopedia {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-title-encyclopedia {
    font-size: 2.75rem;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-desc-encyclopedia {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   6. CATEGORY SHOWCASE
   ============================================ */

.category-showcase {
    margin: var(--spacing-3xl) 0;
}

.section-title-encyclopedia {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-text);
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-xl);
}

.category-card-encyclopedia {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.category-card-encyclopedia:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-card-link {
    display: block;
    padding: var(--spacing-xl);
    text-align: center;
    text-decoration: none;
}

.category-icon-large {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.category-card-title {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.category-count {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.category-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.category-card-encyclopedia:hover .category-arrow {
    transform: translateX(5px);
}

/* ============================================
   7. FEATURED ARTICLE
   ============================================ */

.featured-article-section {
    margin: var(--spacing-3xl) 0;
}

.featured-article-encyclopedia {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.featured-left-column {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.featured-image-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-article-encyclopedia:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.featured-right-column {
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: var(--spacing-md);
}

.featured-article-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.featured-article-title a {
    color: var(--color-text);
}

.featured-article-title a:hover {
    color: var(--color-primary);
}

.featured-article-desc {
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-lighter);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.meta-dot {
    opacity: 0.5;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    width: fit-content;
    transition: all var(--transition-base);
}

.read-more-btn:hover {
    background: var(--color-primary-dark);
    transform: translateX(3px);
}

.read-more-btn svg {
    transition: transform var(--transition-base);
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* ============================================
   8. PAGE HEADER (Category/Tag Pages)
   ============================================ */

.page-header-encyclopedia {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
    margin-bottom: var(--spacing-md);
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb-separator {
    margin: 0 var(--spacing-xs);
    opacity: 0.5;
}

.page-title-encyclopedia {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.page-desc-encyclopedia {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   9. ARTICLES GRID
   ============================================ */

.articles-encyclopedia-section {
    margin: var(--spacing-3xl) 0;
}

.encyclopedia-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.encyclopedia-article-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.encyclopedia-article-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.encyclopedia-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block;
}

.encyclopedia-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.encyclopedia-article-card:hover .encyclopedia-thumbnail img {
    transform: scale(1.07);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.encyclopedia-article-card:hover .thumbnail-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 3rem;
}

.encyclopedia-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category-tag {
    display: inline-block;
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: var(--spacing-sm);
}

.encyclopedia-article-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.encyclopedia-article-title a {
    color: var(--color-text);
}

.encyclopedia-article-title a:hover {
    color: var(--color-primary);
}

.encyclopedia-excerpt {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.encyclopedia-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    color: var(--color-text-lighter);
    font-size: 0.875rem;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border-light);
}

.footer-dot {
    opacity: 0.5;
}

.mini-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: auto;
}

.mini-tag {
    color: var(--color-primary);
    font-size: 0.75rem;
}

/* ============================================
   10. PAGINATION
   ============================================ */

.pagination-encyclopedia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-2xl) 0;
}

.pagination-btn-encyclopedia {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 600;
    transition: all var(--transition-base);
}

.pagination-btn-encyclopedia:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-pages {
    display: flex;
    gap: var(--spacing-xs);
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 600;
    transition: all var(--transition-base);
}

.pagination-page:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: white;
}

.pagination-page.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ============================================
   11. SINGLE ARTICLE PAGE
   ============================================ */

.article-single {
    margin: var(--spacing-2xl) 0;
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.article-header-single {
    margin-bottom: var(--spacing-2xl);
}

.article-categories-single {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.category-badge-single {
    background: var(--color-primary-light);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.article-title-single {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.article-description-single {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.article-meta-single {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-lighter);
    font-size: 0.875rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.meta-separator {
    opacity: 0.5;
}

.article-featured-image {
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-content-single {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content-single h2 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.article-content-single h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-content-single ul,
.article-content-single ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-content-single li {
    margin-bottom: var(--spacing-sm);
}

.article-content-single table {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
}

.article-content-single th,
.article-content-single td {
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-content-single th {
    background: var(--color-bg-tertiary);
    font-weight: 600;
}

.article-tags-single {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
}

.article-tags-single h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag-link {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.share-section {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.share-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    transition: all var(--transition-base);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-articles {
    background: var(--color-bg-tertiary);
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-3xl);
}

.related-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.related-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.related-card:hover .related-image img {
    transform: scale(1.07);
}

.related-content {
    padding: var(--spacing-lg);
}

.related-category {
    display: inline-block;
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.related-article-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.related-article-title a {
    color: var(--color-text);
}

.related-article-title a:hover {
    color: var(--color-primary);
}

.related-date {
    color: var(--color-text-lighter);
    font-size: 0.875rem;
}

/* ============================================
   12. FOOTER
   ============================================ */

.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .featured-article-encyclopedia {
        grid-template-columns: 1fr;
    }

    .featured-left-column {
        min-height: 350px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: var(--spacing-md);
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .hero-title-encyclopedia {
        font-size: 2rem;
    }

    .encyclopedia-hero {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
    }

    .encyclopedia-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-title-single {
        font-size: 2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-encyclopedia {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title-encyclopedia {
        font-size: 1.5rem;
    }

    .pagination-encyclopedia {
        flex-wrap: wrap;
    }

    .share-buttons {
        flex-direction: column;
    }
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
