/* ===================================== */
/* BLOG LÀM ĐẸP SECTION - OPTIMIZED CSS */
/* ===================================== */

/* Blog Section Container */
.blog-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}



/* Section Header */
.blog-section .section-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.blog-section .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.25);
    position: relative;
    overflow: hidden;
}

.blog-section .section-badge::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.5s ease;
}

.blog-section .section-badge:hover::before {
    left: 100%;
}

.blog-section .section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Blog Post Card Styling */
.blog-post-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    padding: 35px;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: #e91e63;
}

/* Featured Blog Card */
.blog-post-card.featured {
    border: 2px solid #e91e63;
    box-shadow: 0 15px 45px rgba(233, 30, 99, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fef7f9 100%);
}

.blog-post-card.featured:hover {
    box-shadow: 0 30px 70px rgba(233, 30, 99, 0.25);
    transform: translateY(-12px);
}

/* Blog Category */
.blog-category {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-tag.bridal {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.category-tag.daily {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.category-tag.skincare {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Blog Featured Badge */
.blog-featured-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.blog-meta span:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
}

.blog-meta i {
    color: #e91e63;
    font-size: 0.85rem;
}

.blog-meta span:hover i {
    color: white;
}

/* Blog Title */
.blog-title {
    margin-bottom: 20px;
}

.blog-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
}

.blog-title a:hover {
    color: #e91e63;
    transform: translateX(5px);
}

/* Blog Excerpt */
.blog-excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Author */
.blog-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    margin-top: 25px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.author-role {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.blog-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-cta .btn-primary {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.blog-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.4);
}

.blog-cta .btn-primary::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.5s ease;
}

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

.blog-cta .btn-large {
    font-size: 1.2rem;
    padding: 20px 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
        padding: 0 20px;
    }
    
    .blog-section .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .blog-section .section-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .blog-section .section-title {
        font-size: 2rem;
    }
    
    .blog-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-post-card {
        padding: 25px;
    }
    
    .blog-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .blog-title a {
        font-size: 1.2rem;
    }
    
    .blog-cta .btn-large {
        font-size: 1.1rem;
        padding: 18px 40px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-section .section-title {
        font-size: 1.8rem;
    }
    
    .blog-post-card {
        padding: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-cta .btn-large {
        font-size: 1rem;
        padding: 16px 35px;
    }
}

/* Animation Classes */
.blog-section.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-post-card:nth-child(1) { animation-delay: 0.1s; }
.blog-post-card:nth-child(2) { animation-delay: 0.2s; }
.blog-post-card:nth-child(3) { animation-delay: 0.3s; }
