@font-face{
    font-family:"icomoon";
    src:url("../fonts/icomoon.ttf") format("truetype");
}

body{
    margin:0;
    font-family:"Noto Serif",Arial,Helvetica,sans-serif;
    font-weight:400;
    line-height:30px;
    color:#111;
}

.site-container{
    width:100%;
}

.site-header{
    position:relative;
	top:6px;              /* khoảng cách với mép trên màn hình */
    width:100%;
    margin-bottom:15px;
}

.site-banner img{
    width:100%;
    height:auto;
    display:block;
}

.site-logo{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    height:80%;
    max-height:168px;
    width:auto;
    display:block;
	cursor:pointer;
}

#preview-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
}

#preview-scale{
    width:100%;
    max-width:1905px;
}

#article{
    width:100%;
    max-width:1120px;
    margin:24px auto 0 auto;
}

.article{
    overflow:auto;
    position:relative;
}

.article-header{
    width:1120px;
    margin:0 auto 20px auto;
}

.article-body{
    max-width:770px;
}

.category{
    font-family:"Roboto",Arial,Helvetica,sans-serif;
    font-size:18px;
    font-weight:500;
    line-height:27px;
    color:#cc0000;
    text-transform:uppercase;
    letter-spacing:0.5px;
    margin-bottom:6px;
}

.subtitle{
    font-size:18px;
    font-weight:700;
    line-height:24px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    margin-bottom:6px;
}

.title{
    font-family:"Playfair Display", Arial, Helvetica, sans-serif;
    font-size:48px;
    font-weight:700;
    line-height:60px;
    margin-bottom:16px;
}

.sapo{
    font-size:20px;
    font-style:italic;
    margin-bottom:16px;
}

.content p{
    font-size:18px;
    margin-bottom:16px;
    text-align:justify;
    hyphens:auto;
}

.content p:first-child{
    margin-top:8px;
}

.content strong{
    font-weight:700;
}

.image{
    margin:25px 0;
    text-align:center;
}

.image img{
    max-width:100%;
}

.caption{
    font-family:"Roboto",Arial,Helvetica,sans-serif;
    font-size:14px;
    font-style:italic;
    color:#666;
    line-height:20px;
}

.highlight{
    background:rgba(255,193,7,0.2);
    border:1px solid rgba(255,193,7,0.5);
	
    font-weight:700;

    padding:32px;
    margin-bottom:16px;

    box-sizing:border-box;
    color:#212529;
}

.continue-note{
    font-family:"Roboto",Arial,Helvetica,sans-serif;
	font-style:italic;
    font-size:18px;
    line-height:30px;
    color:#666;

    text-align:right;

    margin-top:10px;
    margin-bottom:10px;
}

.author{
    display:inline-flex;
    align-items:center;
    float:right;
    background:#e9ecef;
    border-radius:20px;
    padding:6px 16px 6px 6px;
    font-family:"Noto Serif", serif;
    font-size:14px;
    line-height:22.4px;
    color:#222;
}

.author::before{
    content:"\e92c";
    font-family:"icomoon";
    display:flex;
    width:38px;
    height:38px;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    border:3px solid #ffffff;
    background:#6c757d;
    font-size:22px;
    color:white;
    margin-right:10px;
}

.article-number{
    position:absolute;
    top:5px;
    right:5px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:#cc0000;
    color:white;
    font-family:"Roboto",sans-serif;
    font-weight:700;
    font-size:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

.article-number-link {
    text-decoration: none;
    color: inherit;
}

.article-number-link:hover {
    opacity: 0.8;
}

.article-divider{
    border-top:1px solid #ddd;
    margin:50px 0;
}

/* ===== NAVBAR STICKY ===== */
.preview-nav{
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #fff;
    padding: 10px 0;
    margin-bottom: 20px;

    border-bottom: 1px solid #eee;
	backdrop-filter: blur(6px);
}

.preview-nav-inner{
    max-width:1120px;
    margin:0 auto;
    padding:0 12px; /* đồng bộ mobile với #article */
}

/* ===== NAV LINK ===== */
.nav-link{
    margin-right: 15px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

/* ===== ACTIVE TAB ===== */
.nav-link.active{
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

/* mobile */
@media (max-width:600px){

.site-header{
    position:fixed;
    left:0;
    width:100%;
    z-index:1000;
}

/* đẩy nội dung xuống để không bị banner che */
#article{
    margin-top:50px;
}

.title{
    font-size:30px;
    line-height:38px;
}

.sapo{
    font-size:18px;
    line-height:32px;
}

.content p{
    font-size:18px;
    line-height:32px;
}

.caption{
	font-size:13px;
}

.highlight{
    font-size:18px;
    line-height:32px;
}

}

@media (max-width:730px){

.title{
    font-size:26px;
    line-height:34px;
}

}

@media (max-width:1150px){

#article{
    padding-left:12px;
    padding-right:12px;
    box-sizing:border-box;
}

.article-header{
    width:770px;
    max-width:100%;
}

/* chỉ lúc này body mới căn giữa */
.article-body{
    margin:0 auto;
}

}

/* ===== Upload UI (reuse preview style) ===== */
.upload-container{
    max-width:770px;
    margin:40px auto;
    text-align:center;
}

.upload-title{
    font-family:"Playfair Display", serif;
    font-size:32px;
    font-weight:700;
    margin-bottom:20px;
}

.upload-btn{
    display:inline-block;
    background:#cc0000;
    color:#fff;
    padding:10px 24px;
    border-radius:4px;
    font-family:"Roboto";
    font-size:16px;
    cursor:pointer;
    border:none;
}

.upload-btn:disabled{
    background:#999;
}

input[type="file"]:disabled{
    opacity:0.6;
    cursor:not-allowed;
}

/* ===== Inline spinner ===== */
.spinner-inline{
    display:inline-flex;
    align-items:center;
    margin-right:2px;
	line-height:0;
	color:#cc0000;
}

.status-wrap{
    display:flex;
    align-items:center;
	justify-content:center;
    gap:8px;
	margin-top:12px;
}

.spinner-inline svg{
    animation: spinner-rotate 1s linear infinite;
    transform-origin:center;
    flex-shrink:0;
	width:16px;
    height:16px;
    display:block;	
}

.spinner-rotate{
    animation: spinner-rotate 0.8s linear infinite;
    transform-origin:center;
    will-change: transform;
}

@keyframes spinner-rotate{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




.story{
    display:flex;
    gap:20px;
    margin-bottom:24px;
    border-bottom:1px solid #eee;
    padding-bottom:16px;
}

.story__thumb{
    flex:0 0 260px;
    margin:0;
}

.story__thumb img{
    width:100%;
    border-radius:4px;
}

.story__content{
    flex:1;
}

.story__cate{
    font-size:13px;
    text-transform:uppercase;
    color:#cc0000;
    margin-bottom:6px;
}

.story__heading{
    font-size:20px;
    margin:0 0 8px 0;
}

.story__heading a{
    text-decoration:none;
    color:#111;
}

.story__summary p{
    font-size:16px;
    color:#555;
    margin:0;
}
