:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #fff;
    --black-color: #000;
    --gray-color: #6c757d;

    --font-family-primary: 'Outfit', sans-serif;
    --font-family-secondary: 'Urbanist', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

.card {
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.card-img-top {
    object-fit: cover;
}

.card-img-top.featured-image-small {
    height: 20vh;
}

.featured-article .card-body {
    display: flex;
    justify-content: center;
}

/* Article Search Styles */
.navbar-right {
    min-width: 300px;
}

@media (max-width: 991.98px) {
    .navbar-right {
        min-width: 100%;
        margin-top: 1rem;
    }
    
    .featured-article .card {
        height: auto !important;
    }
    
    .featured-article {
        margin-bottom: 1.5rem;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

table th, table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 768px;
    margin: 0 auto;
}

.article-content ol, .article-content ul {
    list-style: disc !important;
}

.carWordSidebar {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--white-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.carWordSidebar h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.carWordSidebar nav {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.carWordSidebar ul li a {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.carWordSidebar ul li a.active {
    color: var(--dark-color);
    font-weight: 600;
}

.carWordContent {
    flex: 1;
    min-width: 0;
}

.carWordContent a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.carWordSidebar nav {
    overflow: visible;
}

.article-content ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .carWordSidebar {
        position: static;
        max-height: 400px;
    }
    
    .carWordSidebar nav {
        max-height: 300px;
    }
}