/* ==========================================================================
   RDM Faceart - Blog Page Styles
   Professional, Modern & Responsive Blog Design (Enhanced)
   ========================================================================== */

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===== FLOATING SHAPE ANIMATIONS ===== */
@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes hotGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Blog Hero Section */
.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #FFF5F8 0%, #F0E6FF 50%, #E6F9FF 100%);
    overflow: hidden;
}

/* Floating Shapes - matching landing page style */
.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.blog-hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blog-hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(124, 77, 255, 0.3));
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.blog-hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(107, 203, 119, 0.3));
    bottom: 20%;
    left: -5%;
    animation-delay: -5s;
}

.blog-hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.4), rgba(255, 107, 107, 0.4));
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 10px) rotate(3deg);
    }
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-purple);
}

.blog-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-hero-description {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Blog Filter Section */
.blog-filter-section {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.blog-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Search Wrapper */
.blog-search-wrapper {
    width: 100%;
    max-width: 500px;
}

.blog-search {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-search:focus-within {
    border-color: #F48FB1;
    box-shadow: 0 0 0 4px rgba(244, 143, 177, 0.1);
}

.blog-search .search-icon {
    position: absolute;
    left: 18px;
    color: #8D6E63;
    font-size: 1rem;
    pointer-events: none;
}

.blog-search input {
    flex: 1;
    padding: 14px 16px 14px 48px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.blog-search input::placeholder {
    color: #8D6E63;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    margin: 4px;
    background: linear-gradient(135deg, #F48FB1 0%, #FFB74D 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(244, 143, 177, 0.4);
}

.search-btn i {
    font-size: 0.85rem;
}

/* Blog Categories - Matching Portfolio Filter Style */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.blog-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    color: #3E2723;
    border: 2px solid #FFF3E0;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.blog-category-btn:hover {
    border-color: #F48FB1;
    color: #F48FB1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 143, 177, 0.2);
}

.blog-category-btn.active {
    background: linear-gradient(135deg, #F48FB1 0%, #FFB74D 50%, #4DD0E1 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 40px rgba(244, 143, 177, 0.4);
}

/* Dynamic category colors from database */
.blog-category-btn[data-color]:hover,
.blog-category-btn[data-color].active {
    background: var(--category-color);
    border-color: transparent;
    color: #fff;
}

/* Category Icons */
.blog-category-btn i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.blog-category-btn:hover i,
.blog-category-btn.active i {
    opacity: 1;
}

/* Legacy Category-Specific Hover Colors (fallback) */
.blog-category-btn[data-category="tips"]:not([data-color]):hover,
.blog-category-btn[data-category="tips"]:not([data-color]).active {
    background: linear-gradient(135deg, #6BCB77 0%, #81C784 100%);
    border-color: transparent;
    color: #fff;
}

.blog-category-btn[data-category="stories"]:not([data-color]):hover,
.blog-category-btn[data-category="stories"]:not([data-color]).active {
    background: linear-gradient(135deg, #BA68C8 0%, #F48FB1 100%);
    border-color: transparent;
    color: #fff;
}

.blog-category-btn[data-category="ideas"]:not([data-color]):hover,
.blog-category-btn[data-category="ideas"]:not([data-color]).active {
    background: linear-gradient(135deg, #FFB74D 0%, #FFD54F 100%);
    border-color: transparent;
    color: #fff;
}

.blog-category-btn[data-category="behind"]:not([data-color]):hover,
.blog-category-btn[data-category="behind"]:not([data-color]).active {
    background: linear-gradient(135deg, #4DD0E1 0%, #64B5F6 100%);
    border-color: transparent;
    color: #fff;
}

/* Show More Categories Button */
.show-more-categories {
    padding: 10px 20px;
    background: transparent;
    border: 2px dashed #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-family: inherit;
}

.show-more-categories:hover {
    border-color: #BA68C8;
    color: #BA68C8;
}

.show-more-categories.hidden {
    display: none;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    min-height: 50vh;
}

/* Featured Post */
.featured-post {
    margin-bottom: 60px;
}

/* Hide empty featured post container */
.featured-post:empty {
    display: none;
    margin-bottom: 0;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

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

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

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

/* Featured Post Placeholder Icon */
.featured-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder-icon i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-placeholder-icon i {
    transform: scale(1.1);
}

/* Featured Post Overlay - same as regular cards */
.featured-post-image .card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.9), rgba(255, 107, 157, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-purple) 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Post Ribbon */
.featured-ribbon {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--gradient-warm);
    color: white;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    box-shadow: 0 5px 20px rgba(199, 125, 255, 0.4);
    z-index: 5;
}

/* Featured Post Glow Border */
.featured-post-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-post-card:hover::before {
    opacity: 1;
}

/* HOT Badge */
.hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* HOT Card - Simple border effect (no background change) */
.blog-post-card.hot {
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
}

.featured-post-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.featured-post-content .post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.95), rgba(255, 183, 77, 0.95));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    width: fit-content;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.featured-post-content .post-category i {
    font-size: 0.8rem;
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.95), rgba(255, 183, 77, 0.95));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    width: fit-content;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.featured-post-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.featured-post-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-content h2 a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured post meta and button container */
.featured-post-content .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.reading-time i {
    color: var(--primary);
}

/* ===== BLOG SIDEBAR ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-purple));
}

/* Widget Icon */
.widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-purple));
    border-radius: 8px;
    flex-shrink: 0;
}

.widget-icon i {
    font-size: 0.9rem;
    background: white;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Popular Posts Widget */
.popular-posts-widget {
    background: #fff;
}

.popular-posts-widget .widget-title {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 50%, #ffa733 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.popular-posts-widget .widget-title::after {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 50%, #ffa733 100%);
}

.popular-posts-widget .widget-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 50%, #ffa733 100%);
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.popular-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.popular-post-link:hover {
    transform: translateX(5px);
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff, #fff5f8);
}

.popular-post-placeholder i {
    font-size: 1.5rem;
    color: var(--off-white);
    opacity: 0.5;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.popular-post-link:hover .popular-post-content h4 {
    color: var(--primary);
}

.popular-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.popular-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.popular-post-date i {
    font-size: 0.7rem;
    color: var(--primary);
}

.popular-post-read-more {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #F48FB1);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: gap 0.2s;
    white-space: nowrap;
}

.popular-post-read-more:hover {
    gap: 6px;
}

.popular-post-read-more i {
    font-size: 0.7rem;
}

/* Categories Widget */
.categories-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-widget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-widget-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-purple));
    color: white;
    transform: translateX(5px);
}

.category-widget-item span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.category-widget-item span:first-child i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.category-count {
    font-size: 0.8rem;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
}

.category-widget-item:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Newsletter Sidebar Widget */
.newsletter-sidebar-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.newsletter-sidebar-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-sidebar-widget .widget-title i {
    color: #fff;
}

.newsletter-sidebar-widget .widget-title::after {
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
}

.newsletter-sidebar-widget .widget-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.newsletter-sidebar-widget .widget-icon i {
    color: #fff;
}

.newsletter-sidebar-description {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.newsletter-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-sidebar-form input {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-sidebar-form input::placeholder {
    color: #8D6E63;
}

.newsletter-sidebar-form input:focus {
    border-color: #fff;
    background: #fff;
}

.newsletter-sidebar-form button {
    padding: 14px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C471ED 25%, #12C2E9 50%, #F64F59 75%, #FF6B9D 100%);
    background-size: 200% 200%;
    animation: rainbowShift 3s ease infinite;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.newsletter-sidebar-form button i {
    margin-right: 6px;
}

.newsletter-sidebar-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Featured post read more button */
.featured-post-content .post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #F48FB1 0%, #FFB74D 50%, #4DD0E1 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.featured-post-content .post-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.featured-post-content .post-read-more i {
    transition: transform 0.3s ease;
}

.featured-post-content .post-read-more:hover i {
    transform: translateX(4px);
}

/* Regular blog post read more button */
.post-read-more {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #F48FB1);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s;
    width: fit-content;
}

.post-read-more:hover {
    gap: 10px;
}

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

.post-read-more:hover i {
    transform: translateX(2px);
}

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

/* Hide empty grid */
.blog-posts-grid:empty {
    display: none;
}

/* Blog Post Card */
.blog-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Image Hover Overlay with Social Share */
.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.9), rgba(255, 107, 157, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-share-overlay {
    display: flex;
    gap: 0.75rem;
}

.social-share-overlay a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-share-overlay a:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

/* Card HOT Badge - positioned on left side to avoid overlap with category */
.card-hot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Placeholder icon for cards without images */
.blog-post-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-image .placeholder-icon i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.blog-post-content .post-category {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.blog-post-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-post-content .post-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Blog post footer with meta and button */
.blog-post-content .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.blog-post-content .post-meta {
    font-size: 0.8rem;
    gap: 12px;
}

.blog-post-content .post-read-more {
    font-size: 0.85rem;
    margin-top: 0;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 50%;
}

.empty-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 157, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blog-loading p {
    color: var(--text-muted);
}

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 50px;
}

.blog-load-more .btn {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Newsletter Section */
.blog-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F8 0%, #F0E6FF 50%, #E6F9FF 100%);
}

.newsletter-card {
    position: relative;
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-purple) 100%);
    border-radius: 20px;
    margin-bottom: 24px;
}

.newsletter-icon i {
    font-size: 2rem;
    color: #fff;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.newsletter-content p {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.newsletter-form {
    max-width: 550px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
}

.newsletter-input-group input {
    flex: 1;
    min-width: 280px;
    padding: 14px 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-input-group .btn {
    padding: 14px 24px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: 50%;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.decoration-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
    background-size: 15px 15px;
    right: 100px;
    top: 30px;
    opacity: 0.3;
}

/* Newsletter Message */
.newsletter-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-success i {
    color: #28a745;
    font-size: 1.25rem;
}

.newsletter-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-message-error i {
    color: #dc3545;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-layout {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 992px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        gap: 20px;
    }
    
    .newsletter-sidebar-widget {
        grid-column: span 2;
    }
    
    .featured-ribbon {
        top: 15px;
        left: -30px;
        font-size: 0.65rem;
        padding: 6px 35px;
    }
}

@media (max-width: 912px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 3rem;
    }
    
    .blog-hero-description {
        font-size: 1rem;
    }
    
    .blog-filter-section {
        padding: 20px 0;
        top: 60px;
    }
    
    .blog-filter-wrapper {
        gap: 16px;
    }
    
    .blog-search {
        flex-direction: row;
        border-radius: 50px;
        padding: 0;
    }
    
    .blog-search .search-icon {
        position: absolute;
        left: 16px;
    }
    
    .blog-search input {
        padding: 12px 16px 12px 44px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .search-btn span {
        display: none;
    }
    
    .search-btn i {
        margin: 0;
    }
    
    .blog-categories {
        gap: 8px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-category-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .show-more-categories {
        display: none;
    }
    
    .blog-posts-section {
        padding: 40px 0 80px;
    }
    
    .newsletter-card {
        padding: 40px 24px;
    }
    
    .newsletter-content h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-decoration {
        display: none;
    }
    
    .featured-post-content h2 {
        font-size: 1.3rem;
    }
    
    .featured-post-content {
        padding: 24px;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .newsletter-sidebar-widget {
        grid-column: span 1;
    }
    
    /* Hide overlay on mobile - use tap to go to article */
    .card-image-overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-content h3 {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .post-read-more {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    height: 200px;
}

.skeleton-content {
    padding: 25px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* ===== LOAD MORE BUTTON ENHANCEMENT ===== */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.3);
    font-family: inherit;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.load-more-btn.loading .spinner {
    display: block;
}

.load-more-btn.loading .btn-text {
    display: none;
}

/* ===== AOS CUSTOM ANIMATIONS ===== */
[data-aos="fade-up-card"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
}

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