.featured-post {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-10px);
}

.featured-post-img {
    /* height: 300px; */
    object-fit: cover;
    width: 100%;
}

.featured-post-content {
    padding: 2rem;
    background-color: white;
}

.featured-post-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.featured-post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-post-meta {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-post-meta i {
    margin-right: 0.3rem;
}

.featured-post-meta span {
    margin-right: 1rem;
}

.featured-post-excerpt {
    margin-bottom: 1rem;
}

.filter-section {
    background-color: var(--light-bg);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.filter-item {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-container {
    margin: 3rem 0;
}

.blog-card {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    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 25px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-card-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.blog-card-content {
    padding: 1.5rem;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-meta {
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.blog-card-meta i {
    margin-right: 0.3rem;
}

.blog-card-meta span {
    margin-right: 0.7rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.side-section {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.side-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.recent-posts li {
    margin-bottom: 0.8rem;
}

.recent-posts a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.newsletter-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: white;
    margin: 4rem 0;
}

.newsletter-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-subheading {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 50px 0 0 50px;
    padding-left: 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    height: 50px;
    padding: 0 1.5rem;
}

.social-links a {
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.highlight-badge {
    background-color: var(--featured-post-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .hero-heading {
        font-size: 2.5rem;
    }

    .featured-post-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2rem;
    }

    .featured-post-img {
        height: 200px;
    }

    .filter-section .d-flex {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filter-item {
        white-space: nowrap;
        margin-right: 0.5rem;
    }

    .blog-card-img {
        height: 180px;
    }
}

/* Author cards design */
.authors-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.author-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 15px 30px;
}

@media (min-width: 768px) {
    .author-card {
        width: calc(50% - 30px);
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .author-card {
        width: calc(25% - 30px);
        max-width: 300px;
    }
}

.author-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}