/* Modern Blog Styles - COMPLETELY REDESIGNED */
:root {
    --primary: #c3151c;
    --primary-dark: #a01217;
    --primary-light: #e63946;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-accent: #334155;
    --light: #f8fafc;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-blue: #38bdf8;
    --accent-purple: #a78bfa;
    --accent-orange: #fb923c;
}

body {
    background-color: #f8fafc;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   FRESH MODERN HERO SECTION  
   ========================================= */
.blog-hero {
    position: relative;
    min-height: 85vh;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Vibrant Gradient Mesh Background */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(195, 21, 28, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(251, 146, 60, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    z-index: 0;
}

/* Animated geometric shapes */
.blog-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(195, 21, 28, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 25%);
    animation: float-shapes 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float-shapes {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-3deg);
    }
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* Split Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* ===== LEFT SIDE ===== */
.hero-text {
    padding-right: 2rem;
}

/* Category Badge */
.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg,
            rgba(195, 21, 28, 0.1) 0%,
            rgba(230, 57, 70, 0.08) 100%);
    border: 2px solid rgba(195, 21, 28, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    transition: all 0.3s;
}

.hero-text .badge:hover {
    background: linear-gradient(135deg,
            rgba(195, 21, 28, 0.15) 0%,
            rgba(230, 57, 70, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(195, 21, 28, 0.15);
}

.hero-text .badge i {
    font-size: 1rem;
}

/* Main Heading */
.hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            #e63946 50%,
            #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Gradient underline animation */
.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
            var(--primary) 0%,
            var(--accent-purple) 50%,
            var(--accent-blue) 100%);
    border-radius: 3px;
    animation: slide-in 1s ease-out;
}

@keyframes slide-in {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.hero-text h1 .accent {
    color: var(--dark);
    font-weight: 900;
}

/* Description */
.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3.5rem;
    max-width: 90%;
    font-weight: 500;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px rgba(195, 21, 28, 0.25),
        0 4px 10px rgba(195, 21, 28, 0.15);
    position: relative;
    overflow: hidden;
}

.hero-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;
}

.hero-cta .btn-primary:hover::before {
    left: 100%;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(195, 21, 28, 0.35),
        0 8px 15px rgba(195, 21, 28, 0.2);
}

.hero-cta .btn-primary i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.hero-cta .btn-primary:hover i {
    transform: translateX(4px);
}

.hero-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: transparent;
    color: var(--dark);
    text-decoration: none;
    border: 2px solid var(--dark-lighter);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.hero-cta .btn-secondary:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* ===== RIGHT SIDE - Featured Visual ===== */
.hero-visual {
    position: relative;
    height: 600px;
}

/* Large gradient card with content */
.hero-visual .featured-visual {
    position: relative;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(195, 21, 28, 0.05) 0%,
            rgba(56, 189, 248, 0.05) 100%);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 2px solid rgba(195, 21, 28, 0.1);
    transition: all 0.4s;
}

.hero-visual .featured-visual:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(195, 21, 28, 0.15);
    border-color: rgba(195, 21, 28, 0.2);
}

/* Decorative elements */
.hero-visual .featured-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(195, 21, 28, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-visual .featured-visual::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
            rgba(56, 189, 248, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

/* Content inside visual */
.visual-content {
    position: relative;
    z-index: 2;
}

.visual-content .visual-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.visual-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.visual-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.visual-content .visual-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.visual-content .visual-link:hover {
    gap: 1rem;
}

.visual-content .visual-link i {
    transition: transform 0.3s;
}

/* Stats row */
.visual-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.visual-stats .stat {
    text-align: center;
}

.visual-stats .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.visual-stats .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 968px) {
    .blog-hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-text p {
        max-width: 100%;
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 500px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .visual-stats {
        gap: 2rem;
    }
}

/* =========================================
   BLOG FILTER TABS
   ========================================= */
.blog-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.blog-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--gray);
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-tab:hover {
    background: var(--light);
    color: var(--dark);
}

.blog-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(195, 21, 28, 0.2);
}

.blog-tab i {
    font-size: 1.1rem;
}

/* =========================================
   BLOG GRID LAYOUT
   ========================================= */
.blog-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 400px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
        /* Force single column on Fold 4 Cover */
        gap: 1.5rem;
    }
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(195, 21, 28, 0.12);
    border-color: rgba(195, 21, 28, 0.1);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg,
            rgba(195, 21, 28, 0.1) 0%,
            rgba(230, 57, 70, 0.08) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-card-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.4;
}

.post-card-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 1.25rem;
    border-top: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-meta i {
    color: var(--primary);
}

.post-card-meta .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.post-card-meta .read-more:hover {
    gap: 0.75rem;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-posts i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-tabs {
        gap: 0.75rem;
    }

    .blog-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}