/* ═══════════════════════════════════════════════════════════ */
/*  BYNTIX BLOG — Styles                                      */
/* ═══════════════════════════════════════════════════════════ */

/* ─── Blog Listing Page ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 80px 0;
}

.blog-card {
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(15, 76, 117, 0.12);
}

.blog-card:hover {
    border-color: rgba(50, 130, 184, 0.25);
    transform: translateY(-6px);
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card-thumb {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-card-thumb-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb-inner {
    transform: scale(1.05);
}

/* Category-specific gradient backgrounds */
.thumb-management {
    background: linear-gradient(135deg, #0f4c75 0%, #1b3a5f 50%, #3282b8 100%);
}

.thumb-guides {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #10b981 100%);
}

.thumb-parents {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
}

.thumb-default {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cat-management {
    background: rgba(15, 76, 117, 0.08);
    color: #0f4c75;
}

.cat-guides {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.cat-parents {
    background: rgba(139, 92, 246, 0.08);
    color: #6d28d9;
}

.cat-default {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
}

.blog-date {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1b262c;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: #0f4c75;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.blog-read-time {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f4c75;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.blog-card:hover .blog-read-more {
    gap: 0.5rem;
}

/* ─── Subscribe CTA Banner ─── */
.blog-subscribe {
    background: linear-gradient(135deg, #0f172a 0%, #1b3a5f 100%);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.blog-subscribe::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(50, 130, 184, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.blog-subscribe h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.blog-subscribe p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.blog-subscribe .btn-primary {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════ */
/*  BLOG ARTICLE PAGE                                         */
/* ═══════════════════════════════════════════════════════════ */

.article-layout {
    padding: 60px 0 80px;
    background: white;
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
}

/* ─── Article Header ─── */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #0f4c75;
}

.article-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: #cbd5e1;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.article-author-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.article-meta-item {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta-divider {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

.article-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-tag {
    padding: 0.25rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Article Content ─── */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1b262c;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content a {
    color: #0f4c75;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(15, 76, 117, 0.2);
    transition: all 0.2s;
}

.article-content a:hover {
    color: #3282b8;
    border-bottom-color: #3282b8;
}

.article-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #0f4c75;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-style: normal;
    color: #475569;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content strong {
    color: #1b262c;
    font-weight: 700;
}

.article-content em {
    color: #475569;
}

/* Article tables */
.article-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.article-content thead {
    background: #f8fafc;
}

.article-content th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #1b262c;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e2e8f0;
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:hover {
    background: #fafbfc;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.04) 0%, rgba(50, 130, 184, 0.06) 100%);
    border: 1px solid rgba(15, 76, 117, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.article-cta .btn-primary.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    border-radius: 10px;
    background: #0f4c75;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border: none;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.2);
}

.article-cta .btn-primary.btn-sm:hover {
    background: #1b262c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 76, 117, 0.3);
}

/* ─── Related Articles ─── */
.related-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ─── Share Bar ─── */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
}

.article-share-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-linkedin { color: #0077b5; }
.share-linkedin:hover { background: #0077b5; color: white; border-color: #0077b5; }
.share-twitter { color: #1da1f2; }
.share-twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.share-facebook { color: #1877f2; }
.share-facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-whatsapp { color: #25d366; }
.share-whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }
.share-copy { color: #64748b; }
.share-copy:hover { background: #64748b; color: white; border-color: #64748b; }

/* ═══════════════════════════════════════════════════════════ */
/*  RESPONSIVE                                                 */
/* ═══════════════════════════════════════════════════════════ */

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .blog-card-thumb {
        height: 160px;
    }

    .article-content {
        font-size: 1rem;
    }

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

    .article-content h3 {
        font-size: 1.1rem;
    }

    .blog-subscribe {
        padding: 2rem 1.5rem;
    }

    .blog-subscribe h2 {
        font-size: 1.4rem;
    }

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

    .article-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-card-body {
        padding: 1.25rem;
    }

    .article-meta-row {
        gap: 0.75rem;
    }

    .article-table-wrap {
        font-size: 0.85rem;
    }
}
