/* ===========================
   BLOG STYLES — extends style.css
   Reuses --primary, --dark, --white, --gray-text, --light-bg from style.css
=========================== */

.blog-page {
    background-color: var(--white);
}

/* ---- Breadcrumb ---- */
.blog-breadcrumb {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 0 24px;
    font-size: 13px;
    color: var(--gray-text);
}

.blog-breadcrumb a {
    color: var(--gray-text);
    text-decoration: none;
}

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

/* ---- Article header ---- */
.article-header {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.article-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.article-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 12px;
    color: #cbd5e1;
}

/* ---- Article body ---- */
.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 64px;
    font-size: 17px;
    line-height: 1.8;
    color: #1f2937;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin: 44px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 32px 0 12px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 22px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body strong {
    color: var(--dark);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--light-bg);
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
    font-weight: 600;
    color: var(--dark);
}

/* ---- Inline CTA card ---- */
.article-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    color: var(--white);
    margin: 44px 0;
}

.article-cta h3 {
    color: var(--white);
    font-size: 22px;
    margin: 0 0 10px;
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 22px;
    font-size: 15px;
}

.article-cta a {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.article-cta a:hover {
    transform: translateY(-2px);
}

/* ---- Related articles ---- */
.related-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.related-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

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

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.related-card .article-tag {
    margin-bottom: 12px;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ---- Blog index page ---- */
.blog-hero {
    padding: 72px 8% 48px;
    text-align: center;
    background: var(--light-bg);
}

.blog-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.blog-hero p {
    font-size: 17px;
    color: var(--gray-text);
    max-width: 560px;
    margin: 0 auto;
}

.blog-index-grid {
    max-width: 1040px;
    margin: 56px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-index-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-index-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.blog-index-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 14px 0 10px;
    line-height: 1.4;
}

.blog-index-card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .article-header h1 { font-size: 28px; }
    .article-body { font-size: 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .blog-index-grid { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 28px; }
}

/* ---- Article Cover Image ---- */
.article-cover-img {
    width: 100%;
    max-width: 760px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 40px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.blog-index-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #eef0f5;
}
.blog-index-card-content {
    padding: 28px;
    flex-grow: 1;
}

.related-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eef0f5;
}
.related-card-content {
    padding: 22px;
    flex-grow: 1;
}

/* ---- Article Share Buttons ---- */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    border-top: 1px solid #eef0f5;
    border-bottom: 1px solid #eef0f5;
    padding: 16px 0;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-text);
    margin-right: 4px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f7;
    color: #64748b;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

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

/* Hover Colors */
.share-btn:hover.wa { background: #25D366; color: #fff; }
.share-btn:hover.fb { background: #1877F2; color: #fff; }
.share-btn:hover.in { background: #0A66C2; color: #fff; }
.share-btn:hover.th { background: #000000; color: #fff; }
.share-btn:hover.copy { background: var(--primary); color: #fff; }

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* CTA Box Styling */
.cta-box {
    background: linear-gradient(135deg, #6C47FF 0%, #5535E0 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(108, 71, 255, 0.15);
}

.cta-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white !important;
}

.cta-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-box p:nth-of-type(2) {
    font-weight: 600;
    margin-bottom: 30px;
    color: white !important;
}

.cta-box strong {
    color: white !important;
}

.cta-box p:last-of-type {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

a.cta-button {
    display: inline-block;
    background: white;
    color: #6C47FF;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 25px;
    }
    
    .cta-box h2 {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 14px 40px;
        font-size: 15px;
    }
}
