/* Global styles */
body {
    background-color: #ffffff;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Navigation bar styles */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000 !important;
    margin-right: 3rem;
}

.navbar-nav {
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #666 !important;
    text-transform: uppercase;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem !important;
    }
}

/* Article card styles */
.article-card {
    margin-bottom: 3rem;
    cursor: pointer;
    background: white;
    border: none;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image-container {
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.article-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    background-color: #f8f8f8;
}

.article-card .card-body {
    padding: 1.5rem 0;
}

.article-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #000;
    line-height: 1.3;
}

.article-card .card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category tags */
.category-tags {
    margin-bottom: 0.5rem;
}

.category-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    margin-right: 1rem;
    letter-spacing: 1px;
}

/* Author info */
.author-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.author-info .author-name {
    font-weight: bold;
    color: #000;
}

/* Article detail page */
.article-detail-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

#articleImage {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 2rem;
    background-color: #f8f8f8;
}

#articleTitle {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.2;
}

.article-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.article-text p {
    margin-bottom: 1.5rem;
}

/* Loading spinner */
#loading {
    display: none;
    padding: 2rem;
}

/* Page title styles */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-card .card-title {
        font-size: 1.3rem;
    }
    
    #articleTitle {
        font-size: 2rem;
    }
    
    .article-text {
        font-size: 1.1rem;
    }
} 