/* Blog page specific styles */
.blog-hero {
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-right: 50px;
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-search button:hover {
    transform: scale(1.05);
}

.blog-content {
    padding: 80px 0;
    background: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-meta .category {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 15px;
}

.post-meta .date {
    display: flex;
    align-items: center;
}

.post-meta .date i {
    margin-right: 5px;
}

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

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

.post-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--dark-color);
}

.author-info p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

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

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.post-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.post-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-tags a {
    background: #f1f1f1;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover, .post-tags a.active {
    background: var(--primary-color);
    color: white;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list .count {
    background: #f1f1f1;
    color: #666;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

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

.popular-post-info h4 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.popular-post-info h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-info h4 a:hover {
    color: var(--primary-color);
}

.popular-post-info .date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
}

.popular-post-info .date i {
    margin-right: 5px;
    font-size: 0.8rem;
}

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

.tag-cloud a {
    background: #f1f1f1;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover, .tag-cloud a.active {
    background: var(--primary-color);
    color: white;
}

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

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

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

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    display: none;
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-color);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.8rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
}
