/* ===================================================
   BLOG STYLES — Pinede Change
   =================================================== */

/* --- Blog Hero / Header Banner --- */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e5c8a 50%, var(--primary-navy-dark) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229,195,101,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, var(--accent-gold), #f0d78c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-navy);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--accent-gold);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- Blog Grid (Index Page) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
    padding: 60px 0 100px;
}

/* --- Article Card --- */
.article-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(20,60,90,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229,195,101,0.3);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.article-card-image.gradient-1 { background: linear-gradient(135deg, #143c5a, #1e5c8a); }
.article-card-image.gradient-2 { background: linear-gradient(135deg, #059669, #0d9488); }
.article-card-image.gradient-3 { background: linear-gradient(135deg, #b89a42, #E5C365); }
.article-card-image.gradient-4 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.article-card-image.gradient-5 { background: linear-gradient(135deg, #dc2626, #f97316); }
.article-card-image.gradient-6 { background: linear-gradient(135deg, #0284c7, #22d3ee); }
.article-card-image.gradient-7 { background: linear-gradient(135deg, #143c5a, #059669); }
.article-card-image.gradient-8 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.article-card-image.gradient-9 { background: linear-gradient(135deg, #ea580c, #facc15); }
.article-card-image.gradient-10 { background: linear-gradient(135deg, #0f766e, #34d399); }

.article-card-icon {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.article-card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

.article-card-tag {
    display: inline-block;
    background: rgba(20,60,90,0.06);
    color: var(--primary-navy);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    width: fit-content;
}

.article-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-body h3 a {
    color: var(--primary-navy);
}

.article-card-body h3 a:hover {
    color: var(--accent-gold);
}

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(20,60,90,0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card-meta i {
    margin-right: 5px;
    color: var(--accent-gold);
}

.article-card-link {
    color: var(--primary-navy);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-link:hover {
    color: var(--accent-gold);
    gap: 10px;
}

/* --- Article Page Layout --- */
.article-page {
    padding: 40px 0 100px;
    background: var(--bg-light);
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-header {
    margin-bottom: 40px;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(20,60,90,0.08), rgba(229,195,101,0.12));
    color: var(--primary-navy);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(20,60,90,0.06);
}

.article-meta i {
    color: var(--accent-gold);
    margin-right: 6px;
}

/* --- Article Content (Prose) --- */
.article-content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(20,60,90,0.05);
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 45px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(229,195,101,0.3);
    position: relative;
}

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--primary-navy);
}

.article-content p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 20px;
}

.article-content strong {
    color: var(--primary-navy);
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 28px;
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 10px;
    padding-left: 8px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(20,60,90,0.04), rgba(229,195,101,0.06));
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--primary-navy);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- WhatsApp CTA Block (mid-article) --- */
.blog-cta {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e5c8a 100%);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229,195,101,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37,211,102,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
}

.blog-cta h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.blog-cta p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.05rem !important;
    margin-bottom: 24px !important;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.blog-cta .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulse-soft 2s infinite;
}

.blog-cta .btn-whatsapp:hover {
    background: #1ebc5a;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(37,211,102,0.5);
    color: #fff;
}

/* --- Article Bottom CTA --- */
.article-bottom-cta {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(229,195,101,0.08), rgba(20,60,90,0.05));
    border-radius: 24px;
    border: 2px solid rgba(229,195,101,0.2);
    text-align: center;
}

.article-bottom-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-bottom-cta p {
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

.article-bottom-cta .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.article-bottom-cta .btn-whatsapp:hover {
    background: #1ebc5a;
    transform: translateY(-3px);
    color: #fff;
}

/* --- Related Articles --- */
.related-articles {
    padding: 80px 0;
    background: var(--bg-white);
}

.related-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Info Box in articles --- */
.info-box {
    margin: 30px 0;
    padding: 28px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid rgba(20,60,90,0.08);
}

.info-box h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.info-box li {
    padding-left: 24px !important;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 40px 0 60px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .blog-cta {
        padding: 30px 20px;
    }

    .blog-cta h3 {
        font-size: 1.35rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

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

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-content {
        padding: 24px 16px;
    }

    .blog-cta .btn-whatsapp {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
