/* Blog Archive and Single Post Styling */

/* Blog Archive Header */
.blog-header {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-header .page-title i {
    margin-right: 1rem;
    color: #fbbf24;
}

.blog-header .page-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}



/* Blog Grid */
.blog-content {
    padding: 60px 0;
}

.blog-results-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-count {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Make all cards equal height */
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%; /* Make cards fill available height */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

/* Gradient placeholder for posts without featured image */
.blog-card-image.gradient-placeholder {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.gradient-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #fbbf24;
}

.gradient-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: white;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    margin: 2rem 0;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-results p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

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

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #264F7F;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge a {
    color: white;
    text-decoration: none;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1; /* Allow content to grow and push footer to bottom */
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #64748b;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #264F7F;
}

.blog-card-excerpt {
    flex: 1; /* Allow excerpt to grow and push footer to bottom */
}

.blog-card-excerpt p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto; /* Push footer to bottom of card */
}

.read-more-btn {
    background: #264F7F;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #1e3f66;
    transform: translateX(2px);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e2e8f0;
    color: #264F7F;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 4rem 0;
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-content i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.no-posts-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-posts-content p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Marketing Sections */
.blog-cta,
.blog-reviews,
.blog-occasions,
.single-blog-reviews,
.single-blog-cta {
    padding: 80px 0;
}

.blog-cta {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: white;
    text-align: center;
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-reviews {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.reviews-grid,
.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.review-rating {
    margin-bottom: 1rem;
}

.review-rating i {
    color: #fbbf24;
    font-size: 1.25rem;
    margin: 0 0.125rem;
}

.review-rating i:not(.active) {
    color: #e5e7eb;
}

.review-content p {
    font-style: italic;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.review-author strong {
    color: #1e293b;
    font-weight: 600;
}

.review-author span {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.reviews-cta {
    text-align: center;
}

/* Occasions Grid */
.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.occasion-card-small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.occasion-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.occasion-image {
    height: 180px;
    overflow: hidden;
}

.occasion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occasion-content {
    padding: 1.5rem;
}

.occasion-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.occasion-content h3 a {
    color: #1e293b;
    text-decoration: none;
}

.occasion-content h3 a:hover {
    color: #264F7F;
}

.occasion-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
}

.occasion-meta .price {
    color: #264F7F;
    font-weight: 600;
}

/* Single Blog Post Styles */
.single-blog .blog-hero {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: white;
    padding: 60px 0 40px;
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

.current {
    opacity: 0.6;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 16px;
    opacity: 0.9;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-featured-image {
    padding: 2rem 0;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
}

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

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.article-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #264F7F;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-tags {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article-tags h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-share {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.article-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: #1e293b;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #264F7F;
}

.related-date {
    font-size: 12px;
    color: #64748b;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: #e2e8f0;
    color: #264F7F;
}

.count {
    font-size: 12px;
    color: #9ca3af;
}

.cta-widget {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: white;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Post Navigation */
.post-navigation {
    background: #f8fafc;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-direction {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.nav-next .nav-link {
    text-align: right;
}

.back-to-blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #264F7F;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #1e3f66;
    transform: translateY(-2px);
}

/* Popular Vehicles Section */
.blog-popular-vehicles {
    padding: 80px 0;
    background: #f8fafc;
}

.popular-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.popular-vehicle-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.popular-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.section-cta {
    text-align: center;
}

.section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-cta .btn-primary {
    background: #264F7F;
    color: white;
    border: 2px solid #264F7F;
}

.section-cta .btn-primary:hover {
    background: #1e3f66;
    border-color: #1e3f66;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header .page-title {
        font-size: 2rem;
    }



    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .popular-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-cta .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .reviews-grid,
    .reviews-carousel {
        grid-template-columns: 1fr;
    }

    .occasions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Single blog responsive */
    .blog-title {
        font-size: 2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-content {
        font-size: 16px;
    }

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

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-previous,
    .nav-next {
        order: 2;
    }

    .nav-center {
        order: 1;
    }
}

/* ==========================================================================
   Blog Pagination Styling
   ========================================================================== */

.pagination-container {
    margin: 3rem 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px; /* Square with rounded corners */
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers:hover {
    background: #264F7F;
    border-color: #264F7F;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(38, 79, 127, 0.25);
}

.pagination .page-numbers.current {
    background: #264F7F;
    border-color: #264F7F;
    color: #ffffff;
    cursor: default;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 1.5rem;
    font-weight: 600;
}

.pagination .page-numbers.prev i,
.pagination .page-numbers.next i {
    margin: 0 0.5rem;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    color: #9ca3af;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Mobile pagination styling */
@media (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        padding: 0 0.75rem;
        font-size: 14px;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        min-width: auto;
        padding: 0 1rem;
        background: #264F7F;
        border-color: #264F7F;
        color: #ffffff;
        font-weight: 700;
        order: 0;
    }

    .pagination .page-numbers.prev:hover,
    .pagination .page-numbers.next:hover {
        background: #1e3f66;
        border-color: #1e3f66;
    }
}

/* Stack pagination vertically on very small screens */
@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .pagination .page-numbers {
        width: 100%;
        max-width: 200px;
        height: 48px;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        order: -1;
        max-width: 250px;
    }
}
