/* Homepage Blog Section Styles */

.homepage-blog-section {
    padding: 5rem 0;
    padding-top: 0rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Removed unnecessary border gradient */

.homepage-blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.homepage-blog-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.homepage-blog-section .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Individual Blog Post Card */
.homepage-blog-post {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.homepage-blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-post-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-blog-post .read-more {
    font-size: 0.9rem;
    color: var(--accent-color) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none;
    box-shadow: none !important;
    margin-top: 0 !important;
    position: relative;
    overflow: visible;
}

.homepage-blog-post .read-more::before {
    display: none !important;
}

.homepage-blog-post:hover .read-more {
    transform: translateX(4px);
   
}

/* CTA Button */
.blog-cta {
    text-align: center;
}

.blog-cta .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(270deg, rgba(255,43,128,0.9) 0%, rgba(255,136,31,0.9) 100%);
    color: #fff;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(255, 43, 128, 0.2);
}

.blog-cta .primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cta .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 43, 128, 0.3);
    background: linear-gradient(270deg, rgba(255,43,128,1) 0%, rgba(255,136,31,1) 100%);
}

.blog-cta .primary-btn:hover::before {
    left: 100%;
}

/* Dark Theme - Default */
.homepage-blog-section {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2a2a2a;
    --accent-color: #ff623a;
    --accent-hover: #ff4d1a;
}

/* Light Theme */
[data-theme="light"] .homepage-blog-section {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --accent-color: #ff623a;
    --accent-hover: #ff4d1a;
}

/* Removed light theme border gradient */

[data-theme="light"] .homepage-blog-post {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .homepage-blog-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-post-image {
    background: #f0f0f0;
}

/* Light theme button styles */
[data-theme="light"] .blog-cta .primary-btn {
    background: linear-gradient(270deg, rgba(255,107,107,0.9) 0%, rgba(255,142,83,0.9) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

[data-theme="light"] .blog-cta .primary-btn:hover {
    background: linear-gradient(270deg, rgba(255,107,107,1) 0%, rgba(255,142,83,1) 100%);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .homepage-blog-section {
        padding: 3rem 0;
    }
    
    .homepage-blog-section .container {
        padding: 0 1rem;
    }
    
    .homepage-blog-section .section-title {
        font-size: 2rem;
    }
    
    .homepage-blog-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-content {
        padding: 1.25rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.2rem;
    }
    

}

@media (max-width: 480px) {
    .homepage-blog-section .section-title {
        font-size: 1.75rem;
    }
    
    .blog-post-image {
        height: 180px;
    }
    
    .blog-post-content h3 {
        font-size: 1.1rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.9rem;
    }
}