/* Blog Posts Widget Styles */
.blog-posts-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    overflow: hidden;
}

/* Featured Post Styles */
.featured-post {
    width: 100%;
    margin-bottom: 100px;
    border-radius: 16px;
    overflow: hidden;
}

.featured-post-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.featured-post-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.featured-post-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.02);
}

.featured-post-content {
    flex: 1;
    padding-left: 20px;
}

.featured-post-categories {
    margin-bottom: 16px;
}

.featured-post-title {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.featured-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: #4CAF50;
    text-decoration: none;
}

.featured-post-excerpt {
    font-size: 17px;
    line-height: 25px;
    color: #5F5F5F;
    margin-bottom: 24px;
}

/* Search Results Info */
.search-results-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.search-results-info p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #495057;
}

.search-results-info strong {
    color: #4CAF50;
    font-weight: 600;
}

/* Clear Search Link */
.clear-search-link {
    color: #4CAF50;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}

.clear-search-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Blog Header */
.blog-header {
    margin-bottom: 60px;
}

.blog-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.blog-heading {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.blog-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.blog-description span {
    display: inline;
}

/* Search Form */
.blog-search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 680px;
    width: 100%;
}

.blog-header-content .blog-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #EDEEF0;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.blog-header-content .blog-search-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.blog-header-content .blog-search-btn {
    padding: 14px 64px;
    background: #49B46B;
    color: #000;
    border: none;
    border-radius: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: Albert Sans;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Card */
.blog-post-card {
    background: white;
    border-radius: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Post Thumbnail */
.post-thumbnail {
    width: 100%;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 24px;
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 20px;
}

/* Post Categories */
.post-categories {
    margin-bottom: 12px;
}

.post-category {
    border: 1px solid #CCCCCB;
    border-radius: 25px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-category-circle {
    border: 2px solid #49B46B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.post-category-arrow {
    width: 12px;
    height: 12px;
    color: #49B46B;
    flex-shrink: 0;
}

.post-category-text {
    color: #000;
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
}

/* Post Title */
.post-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4CAF50;
    text-decoration: none;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #757575;
    font-family: 'Montserrat', sans-serif;
}

.post-date,
.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    opacity: 0.7;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 17px;
    line-height: 25px;
    color: #5F5F5F;
    margin-bottom: 20px;
    flex: 1;
}

/* Read More Button */
.blog-post-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: white;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-post-card .read-more-btn:hover {
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.blog-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

@media (max-width: 768px) {

    .blog-pagination .page-numbers {
        gap: 3px;
    }

}

.blog-pagination .page-numbers li {
    list-style: none;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.blog-pagination .current {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.blog-pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

.blog-pagination .dots:hover {
    background: transparent;
    color: #1a1a1a;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

.no-posts-found p {
    font-size: 18px;
    color: #757575;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-heading {
        font-size: 40px;
    }

    .featured-post-container {
        gap: 30px;
        padding: 30px;
    }

    .featured-post-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (max-width: 768px) {

    .featured-post {
        margin-bottom: 30px;
    }

    .blog-posts-widget {
        padding: 40px 15px;
    }

    .blog-header {
        margin-bottom: 40px;
    }

    .blog-heading {
        font-size: 36px;
    }

    .blog-description {
        font-size: 18px;
    }

    .blog-search-form {
        max-width: 100%;
        flex-direction: column;
    }

    .featured-post-container {
        flex-direction: column;
        gap: 20px;
        padding: 25px 0;
    }

    .featured-post-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .featured-post-content {
        padding-left: 0;
    }

    .featured-post-title {
        font-size: 28px;
    }

    .featured-post-excerpt {
        font-size: 16px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-excerpt {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .blog-posts-widget {
        padding: 30px 10px;
    }

    .blog-search-btn {
        width: 100%;
    }

    .blog-heading {
        font-size: 32px;
    }

    .blog-description {
        font-size: 16px;
    }

    .blog-search-input {
        font-size: 14px;
        padding: 12px 15px;
    }

    .blog-search-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .featured-post-container {
        padding: 20px 0;
        gap: 15px;
    }

    .featured-post-title {
        font-size: 24px;
    }

    .featured-post-excerpt {
        font-size: 15px;
    }

    .post-content {
        padding: 20px;
    }

    .post-thumbnail {
        height: 200px;
    }

    .blog-pagination a,
    .blog-pagination span {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}
