/* Blog Styles - Car Themed */

.blog-hero {
    background: linear-gradient(135deg, #00B5CC 0%, #0088a3 100%);
    color: white;
    padding: 80px 0 60px;
    margin-top: 52px;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.blog-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.blog-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-content .container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #00B5CC;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 181, 204, 0.2);
}

.blog-card.featured {
    border: 2px solid #00B5CC;
}

.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #00B5CC 0%, #0088a3 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00B5CC 0%, #0088a3 100%);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00B5CC;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    color: #00B5CC;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-category:hover {
    color: #0088a3;
    text-decoration: none;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #00B5CC;
    text-decoration: none;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-meta i {
    color: #00B5CC;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: #00B5CC;
    color: white;
    text-decoration: none;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 3rem;
}

.featured-posts .blog-card {
    height: 100%;
}

/* Single Post */
.blog-single {
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 52px;
}

.blog-single .container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-post-single {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #00B5CC 0%, #0088a3 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.blog-post-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: #00B5CC;
}

.blog-post-content {
    /* padding: 2rem 0; */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-tags {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-post-tags h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-post-share {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-post-share h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #00B5CC;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #00B5CC;
    text-decoration: none;
}

.category-list .count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #00B5CC;
    text-decoration: none;
}

.recent-posts .post-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #00B5CC;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #00B5CC;
    color: white;
    border-color: #00B5CC;
    text-decoration: none;
}

.pagination .active span {
    background: #00B5CC;
    color: white;
    border-color: #00B5CC;
}

/* Footer margin removal for blog pages */
.blog-single ~ .geo-footer,
.blog-content ~ .geo-footer {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

