/* Blog Page Styles */
.headerr {
    position: relative;
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/bgimg/blog-bgimg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    color: white;
}

.headerr-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.headerr h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.headerr p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
    margin-top: 14px;
}

.blog-search .search-btnn {
    background-color: var(--secondary-color);
    position: inherit;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 14px;

}

.blog-search .search-btnn:hover {
    background-color: #0ea271;
}

.featured-post {
    padding: 50px 0;
    background-color: var(--background-white);
}

.featured-post-card {
    display: flex;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-post-image {
    flex: 1;
}

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

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-category {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.featured-post-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.blog-content {
    padding: 50px 0;
    background-color: var(--background-light);
}

.blog-layout {
    display: flex;
    gap: 30px;
}

.blog-main {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 15px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-image {
    position: relative;
}

.post-image img {
    width: 100%;
}

.post-image .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    padding: 20px;
}

.post-read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-number:hover:not(.active) {
    background-color: var(--background-light);
}

.page-ellipsis {
    color: var(--text-light);
}

.sidebar-widget {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.popular-post:hover {
    transform: translateX(5px);
}

.popular-post img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-dark);
    line-height: 1.4;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.category-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form .btn {
    width: 100%;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    background-color: var(--background-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-post-card {
        flex-direction: column;
    }

    .blog-layout {
        flex-direction: column;
    }

    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .featured-post-content h2 {
        font-size: 1.8rem;
    }

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

    .blog-categories {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .blog-hero-content p {
        font-size: 1rem;
    }

    .featured-post-content {
        padding: 25px;
    }

    .featured-post-content h2 {
        font-size: 1.5rem;
    }
}


.cta {
    padding: 80px 0;
    background-color: #0F0E47;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: #0F0E47;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta .btn-primary:hover {
    background-color: #0F0E47;
    color: white;
}
