/* ========================================
   DETAIL BLOG - PREMIUM SPA STYLE (FINAL)
   CLEAN • NO SIDEBAR • CENTER LAYOUT
======================================== */

.detail-blog{
    padding-bottom:100px;
    background:#f8f9fb;
    font-family:'DM Sans',sans-serif;
}


/* ========================================
   HERO (NO IMAGE - CLEAN CARD)
======================================== */

.db-hero{
    padding:90px 20px 60px;
    background:linear-gradient(135deg,#f8f9ff,#eef2f7);
    border-bottom:1px solid #eee;
}

.db-hero-content{
    max-width:900px;
    margin:auto;
    background:#fff;
    padding:55px 50px;
    border-radius:24px;
    box-shadow:0 25px 70px rgba(0,0,0,.07);
    text-align:center;
}

/* badge */

.db-badge{
    display:inline-block;
    background:#d4a373;
    color:#fff;
    padding:6px 18px;
    border-radius:30px;
    font-size:12px;
    letter-spacing:.6px;
    font-weight:600;
    margin-bottom:14px;
}

/* title */

.db-hero h1{
    font-size:38px;
    font-weight:700;
    color:#0c1451;
    margin-bottom:14px;
    line-height:1.3;
}

/* meta */

.db-meta{
    display:flex;
    justify-content:center;
    gap:22px;
    font-size:14px;
    color:#777;
}

.db-meta i{
    color:#d4a373;
    margin-right:6px;
}


/* ========================================
   LAYOUT (FULL WIDTH - NO SIDEBAR)
======================================== */

.db-wrap{
    margin-top:70px;
    padding:0 20px;
}

.db-content{
    width:100%;
    background:#fff;
    padding:55px 50px;
    border-radius:24px;
    box-shadow:0 25px 70px rgba(0,0,0,.07);
}


/* ========================================
   TYPOGRAPHY
======================================== */

.db-content p{
    color:#555;
    line-height:1.9;
    margin-bottom:18px;
    font-size:16px;
}

.lead{
    font-size:18px;
    font-weight:500;
    color:#333;
}

.db-content h2{
    font-size:28px;
    margin:40px 0 18px;
    color:#0c1451;
    font-weight:700;
}

.db-content h3{
    font-size:22px;
    margin:28px 0 14px;
    color:#0c1451;
}


/* ========================================
   IMAGES
======================================== */

.db-main-img,
.db-inline-img{
    width: 50%;
    border-radius:18px;
    margin:25px auto 35px; /* 👈 thêm auto */
    object-fit:cover;
    display:block; /* 👈 bắt buộc để margin auto hoạt động */
}


/* ========================================
   BLOCKQUOTE
======================================== */

blockquote{
    border-left:4px solid #d4a373;
    padding-left:18px;
    font-style:italic;
    margin:30px 0;
    color:#444;
    background:#fafafa;
    padding:16px 20px;
    border-radius:12px;
}


/* ========================================
   LIST
======================================== */

.db-list{
    margin-left:20px;
    line-height:2;
}

.db-list li{
    margin-bottom:6px;
}


/* ========================================
   TAGS
======================================== */

.db-tags{
    margin-top:40px;
}

.db-tags a{
    background:#eee;
    padding:7px 14px;
    border-radius:20px;
    margin-right:8px;
    font-size:13px;
    transition:.3s;
    text-decoration:none;
    color:#444;
}

.db-tags a:hover{
    background:#d4a373;
    color:#fff;
}


/* ========================================
   AUTHOR BOX
======================================== */

.db-author{
    display:flex;
    align-items:center;
    gap:18px;
    margin-top:50px;
    padding:20px;
    background:#fafafa;
    border-radius:16px;
}

.db-author img{
    width:70px;
    height:70px;
    border-radius:50%;
}

.db-author h5{
    margin:0;
    font-size:16px;
    font-weight:600;
}

.db-author p{
    font-size:14px;
    color:#777;
    margin:4px 0 0;
}


/* ========================================
   REMOVE OLD SIDEBAR COMPLETELY
======================================== */

.db-sidebar,
.db-card,
.db-mini-post{
    display:none !important;
}


/* ========================
   RELATED HEADING STYLE
======================== */

.db-related h3{
    text-align:center;
    font-size:26px;
    font-weight:700;
    color:#0c1451;
    margin-bottom:40px;
    position:relative;
    display:inline-block;
    left:50%;
    transform:translateX(-50%);
    padding-bottom:16px;
}

/* line dưới */
.db-related h3::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:90px;
    height:3px;
    border-radius:10px;
    background:#d4a373;
}

/* optional: line 2 bên mảnh hơn (nếu muốn sang hơn) */
.db-related h3::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:1px;
    transform:translateX(-50%);
    width:180px;
    height:1px;
    background:#eee;
}

.db-related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
}


/* ========================
   CARD
======================== */

.db-related-card{
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 12px 40px rgba(0,0,0,.06);
    transition:.35s;
    text-decoration:none;
    color:#222;
}


/* ========================
   IMAGE
======================== */

.db-related-thumb{
    height:190px;
    overflow:hidden;
}

.db-related-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.db-related-card:hover img{
    transform:scale(1.06);
}


/* ========================
   BODY
======================== */

.db-related-body{
    padding:18px 20px 22px;
}


/* ========================
   META (UPDATED ✨)
======================== */

.db-related-meta{
    display:flex;
    align-items:center;
    gap:16px;
    font-size:13px;
    color:#888;
    margin-bottom:10px;
}

/* icon style */
.db-related-meta i{
    color:#d4a373;
    margin-right:6px;
    font-size:13px;
}

/* optional: dấu chấm giữa */
.db-related-meta span{
    display:flex;
    align-items:center;
    white-space:nowrap;
}


/* ========================
   TITLE
======================== */

.db-related-body h4{
    font-size:18px;
    font-weight:600;
    margin-bottom:8px;
    color:#0c1451;
    transition:.3s;
}


/* ========================
   DESC
======================== */

.db-related-body p{
    font-size:14px;
    color:#666;
    line-height:1.6;
}


/* ========================
   HOVER
======================== */

.db-related-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.db-related-card:hover h4{
    color:#d4a373;
}


/* ========================
   MOBILE
======================== */

@media(max-width:992px){
    .db-related-grid{
        grid-template-columns:1fr;
    }
}
/* ========================================
   MOBILE
======================================== */

@media(max-width:992px){

    .db-hero-content,
    .db-content{
        padding:35px 25px;
    }

    .db-hero h1{
        font-size:28px;
    }

    .db-related-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:576px){

    .db-meta{
        flex-direction:column;
        gap:6px;
    }

    .db-hero{
        padding:60px 15px 40px;
    }
}
/* =========================
   GRID LAYOUT (CONTENT + SIDEBAR)
========================= */

.db-grid{
    display:grid;
    grid-template-columns: 2.2fr 1fr;
    gap:40px;
}

/* bật lại sidebar */
.db-sidebar{
    display:block !important;
}

/* sticky sidebar */
.db-sidebar{
    position:sticky;
    top:100px;
    height:fit-content;
}

/* =========================
   VIDEO CARD (NHƯ AUTHOR BOX)
========================= */

.db-video-card{
    background:#fff;
    border-radius:18px;
    padding:12px;
    box-shadow:0 15px 50px rgba(0,0,0,.08);
}

/* video box */
.db-video-box{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    background:#000;
}

/* video */
/* video base */
.db-video{
    width:100%;
    object-fit:cover;
    transition:.5s;
}

/* =========================
   VIDEO NGANG (16:9)
========================= */
.db-video-box.landscape .db-video{
    aspect-ratio:16/9;
}

/* =========================
   VIDEO DỌC (9:16 - TIKTOK STYLE)
========================= */
.db-video-box.portrait .db-video{
    aspect-ratio:9/16;
    object-fit:cover;
}

/* optional: bo đẹp hơn cho video dọc */
.db-video-box.portrait{
    max-width:260px;
    margin:auto;
}

/* overlay */
.db-video-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:14px;
    font-weight:600;
    background:rgba(0,0,0,.4);
    transition:.3s;
}

/* hover */
.db-video-box:hover .db-video{
    transform:scale(1.08);
}

.db-video-box:hover .db-video-overlay{
    opacity:0;
}
/* floating cho video dọc */
.db-video-card.floating .db-video-box.portrait{
    max-width:160px;
}

/* floating cho video ngang */
.db-video-card.floating .db-video-box.landscape{
    width:300px;
}
/* =========================
   FLOATING VIDEO (MINI MODE)
========================= */

.db-video-card.floating{
    position:fixed;
    bottom:20px;
    right:20px;
    width:320px;
    z-index:9999;
    border-radius:16px;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
    animation:fadeInUp .4s ease;
}

/* video nhỏ lại */
.db-video-card.floating .db-video{
    height:180px;
}

/* overlay mini */
.db-video-card.floating .db-video-overlay{
    font-size:12px;
}

/* animation */
@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* =========================
   FLOAT VIDEO ALWAYS (FIXED)
========================= */

.db-video-float{
    position:fixed;
    bottom:20px;
    left:20px;   /* ✅ đổi chỗ này */
    right:auto;  /* optional cho chắc */
    width:320px;
    z-index:9999;
    border-radius:16px;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
    overflow:hidden;
    background:#000;
    transition:.4s;
}

/* video base */
.db-video{
    width:100%;
    object-fit:cover;
}

/* ngang */
.db-video-box.landscape .db-video{
    aspect-ratio:16/9;
}

/* dọc */
.db-video-box.portrait .db-video{
    aspect-ratio:9/16;
}

/* video dọc nhỏ lại cho gọn */
.db-video-box.portrait{
    max-width:180px;
    margin:auto;
}

/* overlay */
.db-video-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:14px;
    background:rgba(0,0,0,.4);
    transition:.3s;
}

/* hover */
.db-video-box:hover .db-video{
    transform:scale(1.08);
}

.db-video-box:hover .db-video-overlay{
    opacity:0;
}
/* nút âm thanh */
.db-sound-btn{
    position:absolute;
    bottom:10px;
    right:10px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(0,0,0,.6);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    cursor:pointer;
    backdrop-filter:blur(6px);
    transition:.3s;
    z-index:5;
}

.db-sound-btn:hover{
    background:#d4a373;
}

/* mobile đẹp hơn */
@media(max-width:768px){
    .db-sound-btn{
        width:32px;
        height:32px;
        font-size:14px;
        bottom:8px;
        right:8px;
    }
}

/* mobile */
@media(max-width:768px){
    .db-video-float{
        width:220px;
        bottom:15px;
        right:15px;
    }
}
