/* ==========================================
   GLOBAL DESIGN VARIABLES & RESETS
========================================== */
:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    
    --border-subtle: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Common Container rule if not defined globally */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   BLOG HERO
========================================== */
.blog-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 16px;
    border: 1px solid #dbeafe;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.65;
}

/* ==========================================
   BREADCRUMB
========================================== */
.breadcrumb {
    padding: 14px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    font-size: 10px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================
   BLOG SECTION & GRID
========================================== */
.blog-section {
    padding: 56px 0 80px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 56px;
}

/* ==========================================
   BLOG CARD
========================================== */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.blog-image {
    position: relative;
    width: 38%;
    min-width: 280px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.03);
}

.blog-image .category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

.blog-content {
    padding: 32px;
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-content h2 {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ==========================================
   BLOG META
========================================== */
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.meta-info span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-info span i {
    color: var(--text-light);
}

.read-more-btn {
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* ==========================================
   PAGINATION
========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0 64px;
}

.pagination a {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    border-color: var(--border-hover);
    background: #f1f5f9;
}

.pagination a.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pagination .dots {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 4px;
}

.pagination .next-page {
    gap: 8px;
    padding: 0 16px;
}

/* ==========================================
   CTA BANNER
========================================== */
.blog-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    box-shadow: var(--shadow-md);
}

.banner-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.banner-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.banner-text h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.banner-text p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 14px;
    max-width: 640px;
}

.banner-btn {
    text-decoration: none;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.banner-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 991px) {
    .blog-hero {
        padding: 56px 0 40px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        width: 100%;
        height: 240px;
    }

    .blog-content {
        width: 100%;
        padding: 24px;
    }

    .blog-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .banner-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero p {
        font-size: 15px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .read-more-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .banner-left {
        flex-direction: column;
        gap: 16px;
    }

    .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-hero {
        padding: 40px 0 32px;
    }

    .blog-hero h1 {
        font-size: 24px;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-content h2 {
        font-size: 19px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-banner {
        padding: 20px;
    }

    .banner-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}