/* Blog Cards */
.blog-card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Featured Blog Card */
.blog-card-featured {
    position: relative;
    border-left: 4px solid var(--everfast-gold);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-image: var(--gradient-gold);
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
}

@media (min-width: 768px) {
    .featured-badge {
        left: 25%;
    }
}

.blog-featured-img {
    height: 100%;
    object-fit: cover;
    border-radius: 25px 0 0 25px;
}

.blog-card-body-featured {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2.blog-card-title-featured {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    color: var(--everfast-blue);
    line-height: 1.3;
}

/* Regular Blog Cards */
.blog-card-img {
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--everfast-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
    text-align: center;
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #6b7280;
    flex-grow: 1;
}

.blog-author {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #6b7280;
    font-style: italic;
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-category {
    font-family: 'Roboto';
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--everfast-blue);
    background-color: rgba(0, 82, 155, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    font-family: 'Roboto';
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.blog-date::before {
    content: "\F0C4";
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
}

/* Blog Filter Buttons */
.blog-filter-wrapper {
    padding: 1rem;
    background-color: white;
    border-radius: 50px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 8px;
    display: inline-block;
}

.blog-filter-btn {
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--everfast-blue);
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover {
    background-color: rgba(0, 82, 155, 0.05);
    color: var(--everfast-blue);
}

.blog-filter-btn.active {
    background-image: var(--bg-button-gold);
    color: black;
    border-color: var(--text-gold);
    font-weight: 700;
}

/* Newsletter Section */
.newsletter-wrapper {
    background-image:
        var(--hero-bg-overlay),
        url('../../../imgs/olathe-offering-everfast-home-internet-to-residents.jpg');
    background-size: cover;
    background-position: center;
}

.newsletter-card {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 24px;
}

.newsletter-title {
    font-family: 'Newsreader', 'sans-serif';
    font-weight: 500;
    color: var(--everfast-blue);
}

.newsletter-text {
    font-family: 'Roboto', 'sans-serif';
    color: #374151;
}

.form-input-fully-rounded {
    border-radius: 50px;
    border: 2px solid var(--everfast-blue);
    padding: 0.75rem 1.5rem;
    font-family: 'Roboto';
}

.form-input-fully-rounded:focus {
    border-color: var(--text-gold);
    box-shadow: 0 0 0 0.2rem rgba(239, 177, 58, 0.25);
}

/* Pagination */
.pagination .page-link {
    color: var(--everfast-blue);
    border: 2px solid var(--everfast-blue);
    border-radius: 50px;
    margin: 0 0.25rem;
    font-family: 'Roboto';
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background-color: var(--everfast-blue);
    color: white;
    border-color: var(--everfast-blue);
}

.pagination .page-item.active .page-link {
    background-image: var(--bg-button-gold);
    border-color: var(--text-gold);
    color: black;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background-color: #e5e7eb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-hero-wrapper {
        margin: 0;
        border-radius: 0;
        padding: 4rem 0;
    }

    .blog-featured-img {
        height: 300px;
        border-radius: 25px 25px 0 0;
    }

    .blog-card-body-featured {
        padding: 2rem;
    }

    .blog-card-title-featured {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .blog-hero-wrapper {
        padding: 3rem 0;
        min-height: 280px;
    }

    .blog-hero-wrapper .hero-title {
        font-size: 2rem;
    }

    .blog-hero-wrapper .hero-text {
        font-size: 1.125rem;
    }

    .blog-card-title-featured {
        font-size: 1.5rem;
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-filter-wrapper {
        border-radius: 25px;
    }

    .blog-filter-btn {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
    }

    .newsletter-card {
        border-radius: 25px;
    }
}

@media (max-width: 576px) {
    .blog-card-title {
        font-size: 1.125rem;
        min-height: auto;
    }

    .blog-card-excerpt {
        font-size: 0.875rem;
    }

    .blog-filter-wrapper {
        display: block;
        width: 100%;
        border-radius: 15px;
    }

    .blog-filter-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Animation for card loading (optional) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for grid items */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
