/**
 * eReserveDesk - Blog Styles
 */

/* Blog Card */
.blog-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.blog-card-img-container {
    overflow: hidden;
    height: 200px;
}

.blog-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-container img {
    transform: scale(1.05);
}

.blog-card .card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--accent-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.blog-meta svg {
    margin-right: 4px;
    fill: var(--accent-color);
}

.blog-excerpt {
    color: #555;
    line-height: 1.7;
}

.blog-author {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.btn-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--primary-color);
}

/* Featured Image */
.featured-image-container {
    border-radius: 16px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

/* Content Body */
.content-body {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.content-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.content-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body ul, .content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

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

/* Author Bio */
.author-bio-card {
    border: 1px solid rgba(0,0,0,0.08);
}

/* Related Articles */
.related-article {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-article .card-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

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

/* Table of Contents */
.toc {
    position: sticky;
    top: 20px;
}

#toc-list {
    font-size: 0.9rem;
}

#toc-list li {
    margin-bottom: 0.5rem;
}

#toc-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
}

#toc-list a:hover {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    font-weight: 500;
}

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

.pagination .page-link:hover {
    background-color: var(--light-gray);
}

/* Share Section */
.share-section .btn {
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card-img-container {
        height: 180px;
    }

    .featured-image-container img {
        max-height: 300px;
    }

    .toc {
        position: static;
        margin-bottom: 1.5rem;
    }
}
