* { margin:0; padding:0; box-sizing:border-box; font-family: 'Poppins', sans-serif; }
body { background: #fff; color: #333; line-height: 1.6;overflow-x: hidden; }

.article-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumbs a { color: #14b8a6; text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: #0d9488; text-decoration: underline; }
.breadcrumbs span { color: #64748b; }

.article-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #14b8a6;
    margin-bottom: 30px;
    font-size: 14px;
    color: #475569;
}
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item i { color: #14b8a6; font-size: 14px; }

.html-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.article-content { font-size: 16px; line-height: 1.9; color: #334155; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.article-content h1,.article-content h2,.article-content h3 { color: #1e293b; margin: 24px 0 12px; font-weight: 700; }
.article-content p { margin-bottom: 16px; }
.article-content ul,.article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: #14b8a6; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content blockquote { border-left: 4px solid #14b8a6; padding: 12px 20px; margin: 20px 0; background: #f0fdfa; border-radius: 0 8px 8px 0; color: #475569; font-style: italic; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content table th,.article-content table td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.article-content table th { background: #f1f5f9; font-weight: 600; color: #1e293b; }
.article-content table tr:hover { background: #f8fafc; }

/* ✅ HTML Article Info Bar */
.html-info-bar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid rgba(20,184,166,0.3);
}
.html-info-left { display: flex; flex-direction: column; gap: 4px; }
.html-info-title { font-size: 16px; font-weight: 800; color: #f0f4ff; }
.html-info-meta {
    display: flex; align-items: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: #94a3b8;
}
.html-info-meta span { display: flex; align-items: center; gap: 5px; }
.html-info-meta i { color: #14b8a6; }
.html-info-right { display: flex; align-items: center; gap: 10px; }
.html-badge-bar {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white; font-size: 11px; padding: 5px 14px;
    border-radius: 20px; font-weight: 700; letter-spacing: 0.5px;
}
.html-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08); color: #f0f4ff;
    padding: 8px 18px; border-radius: 50px; font-size: 13px;
    font-weight: 600; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s;
}
.html-back-btn:hover {
    background: rgba(20,184,166,0.2);
    border-color: #14b8a6; color: #14b8a6; text-decoration: none;
}

/* ✅ iframe full width */
.html-article-iframe {
    width: 100%; display: block;
    border: none; min-height: 100vh; background: #fff;
}

.article-divider { border: none; border-top: 2px solid #e2e8f0; margin: 40px 0; }

.author-card {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
    border-radius: 14px; padding: 20px 24px; margin-top: 40px;
    border: 1px solid #b2f5ea;
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.author-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.author-info h4 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 4px; }
.author-info p { font-size: 13px; color: #64748b; margin: 0; }

.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white; padding: 10px 22px; border-radius: 50px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    margin-top: 30px; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(20,184,166,0.3);
}
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(20,184,166,0.5); color: white; text-decoration: none; }

.html-bottom-bar { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; }

@media (max-width: 768px) {
    .article-title { font-size: 24px; }
    .article-meta { gap: 12px; font-size: 13px; }
    .author-card { flex-direction: column; text-align: center; }
    .html-info-title { font-size: 14px; }
}


.breadcrumbs {
    font-size: 14px;
    color: #14b8a6;
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: #14b8a6;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #64748b;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.article-meta i {
    color: #ef4444; /* red icon as in design for author */
}
.article-meta .fa-clock {
    color: #64748b;
}
.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    font-size: 16px;
    color: #0f172a;
    line-height: 1.8;
}

/* Base styling for HTML components inside Article Content (e.g. from CKEditor) */
.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #0f172a;
}
.article-content p {
    margin-bottom: 15px;
}
.article-content a {
    color: #14b8a6;
    text-decoration: underline;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}
.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
    display: block; /* allows horizontal scroll on mobile for wide tables */
    white-space: nowrap;
}
.article-content table, .article-content th, .article-content td {
    border: 1px solid #cbd5e1;
}
.article-content th, .article-content td {
    padding: 10px;
    text-align: left;
}

@media(max-width: 768px){
    .article-title {
        font-size: 24px;
    }
    .article-container {
        padding: 15px;
        margin: 20px auto;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .breadcrumbs {
        font-size: 12px;
    }
}

@media(max-width: 480px){
    .article-title {
        font-size: 20px;
    }
    .article-content {
        font-size: 15px;
    }
}