/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Blog Slider Container */
.blog-slider-container {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    overflow: hidden;
}

.blog-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.blog-slider-track {
    display: flex;
    gap: 32px;
    animation: blogSlide 30s linear infinite;
    width: fit-content;
}

.blog-slider-track:hover {
    animation-play-state: paused;
}

@keyframes blogSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 32px));
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 550px;
    min-width: calc((100% - 64px) / 3);
    max-width: calc((100% - 64px) / 3);
    flex-shrink: 0;
}

.blog-card:hover {
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.15);
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    flex-shrink: 0;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-image-placeholder {
    transform: scale(1.1);
    color: rgba(168, 85, 247, 0.5);
}

.blog-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #a855f7, #667eea);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    z-index: 2;
}

.blog-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-date i,
.blog-read-time i {
    font-size: 12px;
    color: rgba(168, 85, 247, 0.6);
}

.blog-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #a855f7;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 24px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.blog-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #a855f7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-read-more {
    gap: 12px;
    color: #667eea;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(4px);
}

/* Blog Detail Page */
.blog-detail-section {
    padding: 120px 0 80px;
    background: #ffffff;
}

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-header {
    margin-bottom: 48px;
}

.blog-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #667eea);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.blog-detail-image-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--text-light);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.blog-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta-item i {
    color: rgba(168, 85, 247, 0.6);
}

.blog-detail-content {
    padding: 48px 0;
}

.blog-detail-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin: 40px 0 20px;
    letter-spacing: -0.02em;
}

.blog-detail-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 32px 0 16px;
    letter-spacing: -0.01em;
}

.blog-detail-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.blog-detail-content li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 12px;
}

.blog-detail-content blockquote {
    border-left: 4px solid #a855f7;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 20px;
}

.blog-detail-footer {
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

.blog-detail-cta {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

.blog-detail-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.blog-detail-cta p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-slider-container {
        margin-top: 40px;
    }
    
    .blog-card {
        min-width: 320px;
        max-width: 320px;
        min-height: 500px;
    }
    
    .blog-image-wrapper {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-card {
        min-width: calc((100% - 32px) / 2);
        max-width: calc((100% - 32px) / 2);
        min-height: 520px;
    }
}

@media (min-width: 1025px) {
    .blog-card {
        min-width: calc((100% - 64px) / 3);
        max-width: calc((100% - 64px) / 3);
        min-height: 550px;
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-detail-section {
        padding: 100px 0 60px;
    }
    
    .blog-detail-image-wrapper {
        height: 400px;
        margin-bottom: 32px;
    }
    
    .blog-detail-title {
        font-size: 32px;
    }
    
    .blog-detail-content {
        padding: 32px 0;
    }
    
    .blog-detail-content p {
        font-size: 16px;
    }
    
    .blog-detail-content h2 {
        font-size: 24px;
    }
    
    .blog-detail-content h3 {
        font-size: 20px;
    }
}

