/* --- Blog Section Styles --- */
.blog-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-title h1 {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

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

/* Blog Card Enhancement */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

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

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

.blog-img .category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d4f;
    color: #fff;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.blog-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

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

.blog-content h3 a:hover {
    color: #ff4d4f;
}

.blog-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.read-more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff4d4f;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 24px;
    border: 1.5px solid #ff4d4f;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
}

.read-more:hover {
    background: #ff4d4f;
    color: #fff;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3);
    transform: translateX(5px);
}


/* Pagination Styles */
.pagination-area {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.page-item .page-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}


.page-item.active .page-link {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.page-item .page-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* --- Blog Details Styles --- */
.blog-details-section {
    padding: 80px 0;
    background: #fff;
}

.blog-details-content {
    max-width: 850px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #64748b;
    font-size: 15px;
}

.post-thumbnail {
    margin-bottom: 50px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-summary {
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border-left: 4px solid #ff4d4f;
    border-radius: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 45px 0 20px;
}

.post-body blockquote {
    border-left: 5px solid #ff4d4f;
    padding: 20px 30px;
    background: #fef2f2;
    font-style: italic;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: 40px 0;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags {
    display: flex;
    gap: 10px;
}

.tag-link {
    padding: 6px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #ff4d4f;
    color: #fff;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #ff4d4f;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
    .blog-details-section {
        padding: 50px 0;
    }
}

