/*==========================================*/
/* Nexsone Blog Content Styling */
/*==========================================*/

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative;
    border-bottom: 1px solid #e6f0ff;
}

.blog-hero .section-header {
    margin-bottom: 0;
    text-align: center;
}

.blog-hero .section-header h2 {
    font-size: 2.8rem;
    color: #00bbff;
    margin-bottom: 1.2rem;
}

.blog-hero .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
}

.blog-hero .section-header p {
    font-size: 1.2rem;
    color: #666666;
    margin-top: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 0;
    background: #ffffff;
}

.blog-controls {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.search-container.blog-search {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e6f0ff;
    border-radius: 50px;
    font-size: 1rem;
    background: #f8fbff;
    transition: all 0.3s ease;
    outline: none;
}

.blog-search-input:focus {
    border-color: #00bbff;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 187, 255, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #00bbff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #0099cc;
    transform: translateY(-50%) scale(1.05);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #e6f0ff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

/* Post Content */
.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777777;
}

.date {
    font-weight: 600;
    color: #666666;
}

.category {
    background: #e6f7ff;
    color: #00bbff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f5f9;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid #e6f0ff;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333333;
    font-size: 0.95rem;
}

.author-title {
    font-size: 0.8rem;
    color: #777777;
    font-weight: 500;
}

/* Post Title */
.post-card h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 700;
}

/* Post Description */
.post-card p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tags Display */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #f0f5f9;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    color: #00bbff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #0099cc;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f5f9;
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-btn:hover {
    background: #00bbff;
    color: white;
    transform: translateY(-3px);
}

.page-btn.active {
    background: #00bbff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 187, 255, 0.3);
}

.page-btn.next {
    padding: 0 15px;
    border-radius: 50px;
    width: auto;
    font-size: 0.9rem;
}

.page-btn.next i {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero .section-header h2 {
        font-size: 2.2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-card h3 {
        font-size: 1.25rem;
    }
    
    .blog-controls {
        margin-bottom: 40px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 80px 0 50px;
    }
    
    .blog-hero .section-header h2 {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        gap: 25px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 18px;
    }
    
    .post-card h3 {
        font-size: 1.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .author-section {
        margin-bottom: 15px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
}