/* ===== BLOG STYLES ===== */

/* ===== BLOG HERO ===== */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f4f8 30%, #f5f9fc 60%, #fdfefe 100%);
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,82,118,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(39,174,96,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(26,82,118,0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero h1 span {
    color: var(--primary-light);
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== BLOG GRID ===== */
.blog-section {
    padding: 80px 0 100px;
    background: var(--bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    transform: translateY(-8px);
    border-color: transparent;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.blog-card-image > i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image > i {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 0.3);
}

.blog-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.15);
}

.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta i {
    font-size: 0.7rem;
    color: var(--primary-light);
}

.blog-card-body h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-body h2 a {
    color: inherit;
    transition: var(--transition);
}

.blog-card-body h2 a:hover {
    color: var(--primary-light);
}

.blog-card-body > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: var(--transition);
    padding: 8px 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.blog-card-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.blog-card-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

/* ===== POST PAGE ===== */
.post-hero {
    position: relative;
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f4f8 30%, #f5f9fc 60%, #fdfefe 100%);
    padding: 150px 0 60px;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,82,118,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.post-hero .container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: var(--primary-light);
    font-weight: 500;
    transition: var(--transition);
}

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

.post-breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.5;
}

.post-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.post-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== POST CONTENT ===== */
.post-section {
    padding: 60px 0 80px;
    background: var(--bg);
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
}

.post-content > p:first-child {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.post-content > p:first-child::first-letter {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 4px;
    color: var(--primary);
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-dark);
    margin: 48px 0 18px;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(26,82,118,0.08);
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 36px 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--primary-light);
}

.post-content p {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
    margin: 18px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.post-content ol {
    counter-reset: post-counter;
}

.post-content ul li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 7px;
    height: 7px;
    background: var(--primary-light);
    border-radius: 50%;
}

.post-content ol li {
    position: relative;
    padding-left: 40px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 12px;
    counter-increment: post-counter;
}

.post-content ol li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: rgba(26,82,118,0.08);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-content li strong {
    color: var(--primary-dark);
}

.post-content strong {
    color: var(--primary-dark);
}

.post-content blockquote {
    position: relative;
    border-left: none;
    padding: 28px 32px 28px 64px;
    margin: 32px 0;
    background: linear-gradient(135deg, rgba(26,82,118,0.04), rgba(41,128,185,0.06));
    border-radius: var(--radius);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.8;
    border: 1px solid rgba(26,82,118,0.08);
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: 20px;
    top: 12px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

/* ===== POST CTA ===== */
.post-cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    margin: 56px 0;
    overflow: hidden;
}

.post-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.post-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.post-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.post-cta .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    position: relative;
    z-index: 1;
    font-size: 1rem;
    padding: 16px 36px;
}

.post-cta .btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39,174,96,0.35);
}

/* ===== AUTHOR BOX ===== */
.post-author {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 48px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-author:hover {
    box-shadow: var(--shadow);
}

.post-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(26,82,118,0.15);
}

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

.post-author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.post-author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== RELATED POSTS ===== */
.related-section {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.related-section .section-header {
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== RESPONSIVE BLOG ===== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 60px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        max-width: 100%;
    }

    .post-hero {
        padding: 130px 0 50px;
    }

    .post-hero h1 {
        font-size: 1.9rem;
    }

    .post-content h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }

    .post-content h3 {
        font-size: 1.15rem;
    }

    .post-content > p:first-child::first-letter {
        font-size: 2.8rem;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .post-cta {
        padding: 36px 24px;
    }

    .post-cta h3 {
        font-size: 1.3rem;
    }

    .blog-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 50px;
    }

    .blog-hero h1 {
        font-size: 1.7rem;
    }

    .post-hero {
        padding: 120px 0 40px;
    }

    .post-hero h1 {
        font-size: 1.6rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .post-content blockquote {
        padding: 20px 20px 20px 48px;
    }

    .post-content blockquote::before {
        left: 12px;
        font-size: 2.8rem;
    }

    .post-content ol li {
        padding-left: 36px;
    }
}
