/* Blog Section Styles */
.blog {
    padding: 5rem 2rem;
    background: var(--background);
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
}

.blog h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.blog-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.2);
}

.blog-post:hover::before {
    opacity: 1;
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: opacity 0.3s ease;
}

.blog-post:hover .blog-image::after {
    opacity: 0.7;
}

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

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

/* Reading time indicator */
.blog-reading-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.blog-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-post:hover .blog-content h3 {
    color: var(--text-color);
}

.blog-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding: 0.5rem 0;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

/* Remove hover styles for blog post title and read more */
.blog-post:hover .blog-content h3 {
    color: var(--text-color);
}

.blog-read-more:hover {
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0;
}

.blog-read-more:hover i {
    transform: none;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Button styles now unified in utilities.css */

/* Loading skeleton for blog posts */
.blog-post.loading {
    pointer-events: none;
}

.blog-post.loading .blog-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.blog-post.loading .blog-content h3,
.blog-post.loading .blog-content p,
.blog-post.loading .blog-meta {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .blog-posts {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog {
        padding: 3rem 1rem;
    }
    
    .blog h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-image {
        height: 180px;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
} 