:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--primary-gradient);
    opacity: 0.05;
    transform: skewY(-2deg);
    transform-origin: top left;
}

/* Section Header */
.section-header {
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.btn-premium {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-premium {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-outline-premium:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Blog Cards */
.blog-card {
    height: 100%;
    transition: var(--transition);
}

.card-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.blog-card:hover .card-wrapper {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.blog-card:hover .card-wrapper::before {
    transform: scaleX(1);
}

/* Image Section */
.blog-image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay-content {
    color: white;
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.blog-card:hover .overlay-content {
    transform: translateY(0);
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Content Section */
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item i {
    opacity: 0.7;
}

.blog-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: #4c51bf;
    gap: 0.75rem;
}

/* Empty State */
.no-posts-found {
    padding: 4rem 2rem;
}

.empty-state {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    width: 5rem;
    height: 5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    font-size: 2rem;
    color: white;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS Animation Styles */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header .row {
        text-align: center;
    }

    .section-header .col-lg-4 {
        margin-top: 2rem;
    }

    .blog-meta {
        gap: 0.5rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .blog-title {
        font-size: 1.125rem;
    }

    .blog-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .author-info {
        order: 2;
    }

    .read-more-btn {
        order: 1;
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 1rem;
    }

    .featured-badge,
    .blog-category {
        top: 0.5rem;
        padding: 0.25rem 0.75rem;
        font-size: 0.7rem;
    }

    .featured-badge {
        left: 0.5rem;
    }

    .blog-category {
        right: 0.5rem;
    }
}