/* Blog-specific styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-card-category {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-card-read-more:hover {
    color: var(--secondary-color);
}

.blog-card-read-more::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.blog-card-read-more:hover::after {
    margin-left: 12px;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-filter {
    background: var(--light-bg);
    border: 2px solid var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-filter:hover,
.category-filter.active {
    background: var(--secondary-color);
    color: white;
}

.blog-search {
    max-width: 400px;
    margin: 0 auto 40px;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--light-bg);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.blog-search input:focus {
    border-color: var(--secondary-color);
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.featured-post {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 40px;
    color: white;
    margin-bottom: 50px;
    text-align: center;
}

.featured-post h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.featured-post p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.featured-post .btn {
    background: white;
    color: var(--primary-color);
}

.featured-post .btn:hover {
    background: var(--light-bg);
}

/* Blog Post Template Styles */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-header-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.blog-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-header-category {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.blog-header-date {
    font-size: 16px;
    opacity: 0.9;
}

.blog-header-excerpt {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin: 40px 0 20px;
    font-weight: bold;
}

.blog-content h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: bold;
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.featured-image {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.tip-box {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tip-box h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.blog-author {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    margin: 50px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.blog-author-info p {
    color: var(--text-light);
    margin: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.blog-tag {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--secondary-color);
    color: white;
}

.blog-social-share {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.blog-social-share h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.email {
    background: var(--secondary-color);
    color: white;
}

.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-card-content {
    padding: 20px;
}

.related-post-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.related-post-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    gap: 20px;
}

.blog-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.blog-nav-link:hover {
    background: var(--secondary-color);
    color: white;
}

.blog-nav-link.prev {
    justify-content: flex-start;
}

.blog-nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.blog-nav-text span {
    font-size: 12px;
    opacity: 0.7;
    display: block;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-filter {
        white-space: nowrap;
    }
    
    .blog-header-content h1 {
        font-size: 28px;
    }
    
    .blog-header-meta {
        gap: 10px;
    }
    
    .blog-content {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .blog-content h2 {
        font-size: 24px;
    }
    
    .blog-content h3 {
        font-size: 20px;
    }
    
    .blog-author {
        flex-direction: column;
        text-align: center;
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-nav-link {
        max-width: none;
    }
}