
body.article{background: #fcfaf6;
}
/* ===== Container ===== */
.container.article{
    max-width: 820px;
    margin: 0px auto;
    padding: 15px;

} 

/* ===== Breadcrumb ===== */
.breadcrumb{
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.breadcrumb a{
    color: #0a7cff;
    text-decoration: none;
}

.breadcrumb a:hover{
    text-decoration: underline;
}

/* ===== Title ===== */
.article-title{
    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ===== Meta ===== */
.article-meta{
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

/* ===== Image ===== */
.article-image{
    margin: 25px 0;
    overflow: hidden;
    border-radius: 12px;
}

.article-image img{
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.article-image img:hover{
    transform: scale(1.03);
}

/* ===== Content ===== */
.article-content{
    font-size: 18px;
    line-height: 1.85;
    color: #333;
}

/* Paragraph */
.article-content p{
    margin-bottom: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.article-content p:hover{
    transform: translateX(3px);
    color: #000;
}

/* Headings */
.article-content h1,
.article-content h2,
.article-content h3{
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #111;
}

.article-content h2{
    font-size: 26px;
    border-left: 4px solid #0a7cff;
    padding-left: 10px;
}

.article-content h3{
    font-size: 22px;
}

/* Image trong content */
.article-content img{
    max-width: 100%;
    border-radius: 10px;
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover{
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Links */
.article-content a{
    color: #0a7cff;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.article-content a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #0a7cff;
    transition: width 0.3s ease;
}

.article-content a:hover::after{
    width: 100%;
}

/* Blockquote */
.article-content blockquote{
    border-left: 4px solid #0a7cff;
    background: #f5f9ff;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 8px;
    color: #444;
    font-style: italic;
}

/* Lists */
.article-content ul,
.article-content ol{
    padding-left: 22px;
    margin-bottom: 20px;
}

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

/* Code */
.article-content pre{
    background: #1e1e1e;
    color: #eee;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code{
    background: #f1f1f1;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 14px;
}

/* ===== Category Posts ===== */
.category-posts{
    margin-top: 50px;
}

.category-posts h3{
    font-size: 22px;
    margin-bottom: 20px;
}

/* Grid */
.category-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
}

/* Item */
.category-item{
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.category-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.category-item:active{
    transform: scale(0.97);
}

/* Thumb */
.category-item .thumb{
    height: 140px;
    overflow: hidden;
    position: relative;
}

.category-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.category-item:hover img{
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Overlay */
.category-item .thumb::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover .thumb::after{
    opacity: 1;
}

/* No image */
.no-img{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #eee;
    color: #888;
    font-size: 14px;
}

/* Info */
.category-item .info{
    padding: 12px;
}

.category-item .title{
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.category-item:hover .title{
    color: #0a7cff;
}

.category-item .date{
    font-size: 12px;
    color: #888;
}

/* ===== Responsive ===== */
@media (max-width: 768px){

   

    .article-title{
        font-size: 26px;
    }

    .article-content{
        font-size: 16px;
    }

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

.category{
font-size:14px;
margin-bottom:10px;
color:#555;
}

.category a{
color:#e67e22;
text-decoration:none;
font-weight:500;
}
.post-tags{
margin-top:30px;
padding-top:15px;
border-top:1px solid #eee;
}

.tag-item{
display:inline-block;
background:#f1f1f1;
padding:5px 10px;
margin:5px;
border-radius:4px;
text-decoration:none;
color:#333;
font-size:13px;
}

.no-tags{
color:#888;
font-size:13px;
}



.form_dangbai{
max-width:900px;
margin:30px auto;
background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.form_dangbai label{
display:block;
margin-top:15px;
font-weight:600;
color:#333;
}

.form_dangbai input[type="text"],
.form_dangbai textarea{
width:100%;
padding:10px;
margin-top:6px;margin-bottom:6px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
}

.form_dangbai textarea{
resize:vertical;
min-height:200px;
}

/* toolbar */

.editor-toolbar{
display:flex;
gap:8px;
flex-wrap:wrap;
margin:10px 0;
padding:10px;
background:#f9f9f9;
border:1px solid #eee;
border-radius:6px;
}

.editor-toolbar button{
padding:6px 10px;
border:1px solid #ddd;
background:white;
cursor:pointer;
border-radius:4px;
font-size:14px;
transition:0.2s;
}

.editor-toolbar button:hover{
background:#007bff;
color:#fff;
border-color:#007bff;
}



/* button submit */

.form_dangbai button[type="submit"]{
margin-top:20px;
width:100%;
padding:12px;
border:none;
background:#007bff;
color:white;
font-size:16px;
border-radius:6px;
cursor:pointer;
transition:0.3s;
}
.form_dangbai button.them{padding:0 12px;
border:none;color:#fff;cursor: pointer;
background:#007bff;border-radius:8px}
.form_dangbai button[type="submit"]:hover{
background:#0056b3;
}

/* Input, textarea khi focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;          /* bỏ viền mặc định */
    border: 1px solid #2fa2f5; /* viền đen khi focus */
    box-shadow: none;       /* bỏ shadow nếu có */
}
.related-title,.latest-posts{margin:20px 0;}
.related,.latest-posts{padding: 15px;
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    margin-left: auto;
    margin-right: auto;
    overflow: overlay;
    clear: both;}
.related-item,.latest-item{margin-bottom: 13px;width: 100%;
    float: left;
    padding-bottom: 13px;border-bottom: 1px solid #e5e5e5;}    
.related-item:last-of-type,.latest-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-text h4{font-size:18px;font-weight:700;line-height: 160%;
    margin-bottom: 4px;}




