/* ============================================================= */
/*  ELAMONDE â€” DETAIL PAGE STYLES (duan.css)                      */
/*  DÃ¹ng cho trang chi tiáº¿t dá»± Ã¡n / bÃ i viáº¿t (duan-chitiet.html)  */
/*  Phá»¥ thuá»™c: main.css (cÃ¡c CSS variables + reset chung)         */
/* ============================================================= */

/* --------------------------------------------------------------- */
/*  1. LAYOUT 2-COLUMN: content + sidebar                          */
/* --------------------------------------------------------------- */
.detail-section {
    padding: 60px 0 80px;
    background: var(--c-white);
}
.detail-section .container{
    max-width: 1000px;
}
.detail-wrap {}

/* --------------------------------------------------------------- */
/*  2. ARTICLE HEADER â€” eyebrow + title + date + share             */
/* --------------------------------------------------------------- */
.article-head {
    text-align: center;
    padding: 0 0 36px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-line);
}
.article-head__eyebrow {
    display: inline-block;
    padding: 6px 18px;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 22px;
}
.article-head__title {
    font-family: var(--ff-heading);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--c-ink);
    margin: 0 auto 18px;
    letter-spacing: .1px;
    max-width: 860px;
}
.article-head__date {
    display: inline-block;
    color: var(--c-muted);
    font-size: 13px;
    margin-bottom: 22px;
}

/* Social share row */
.article-share {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.article-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--c-white);
    font-size: 13px;
    transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.article-share__btn:hover { transform: translateY(-2px); color: var(--c-white); opacity: .9; }

.article-share__btn--facebook  { background: #1877f2; }
.article-share__btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.article-share__btn--tiktok    { background: #000; }
.article-share__btn--pinterest { background: #e60023; }
.article-share__btn--linkedin  { background: #0a66c2; }
.article-share__btn--threads   { background: #000; }

/* --------------------------------------------------------------- */
/*  3. ARTICLE BODY â€” rich text (h2/h3/p/figure/img)               */
/* --------------------------------------------------------------- */
.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--c-body);
}
.article-body > * + * { margin-top: 1em; }

.article-body h1,
.article-body h2 {
    font-family: var(--ff-heading);
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--c-ink);
    line-height: 1.35;
    letter-spacing: .2px;
    margin: 2em 0 .8em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line);
}

.article-body h3 {
    font-family: var(--ff-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-ink);
    margin: 1.6em 0 .6em;
    letter-spacing: .1px;
}

.article-body p {
    margin: 0 0 1em;
    color: var(--c-body);
}
.article-body p:last-child { margin-bottom: 0; }

.article-body a {
    color: var(--c-gold-deep);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast) var(--ease-out);
}
.article-body a:hover { border-bottom-color: var(--c-gold); }

.article-body strong { color: var(--c-ink); font-weight: 700; }
.article-body em { font-style: italic; }

.article-body ul,
.article-body ol {
    margin: 0 0 1em;
    padding-left: 22px;
}
.article-body li {
    margin-bottom: .4em;
    line-height: 1.75;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: 18px 24px;
    background: var(--c-cream);
    border-left: 3px solid var(--c-gold);
    font-style: italic;
    color: var(--c-ink-soft);
    border-radius: 2px;
}

.article-body figure {
    margin: 1.8em 0;
    text-align: center;
}
.article-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    display: block;
}
.article-body figure{
    max-width: 100%;
}
.article-body img{max-width: 100%; height: auto;}
.article-body figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--c-muted);
    font-style: italic;
    line-height: 1.5;
}

/* First figure acts as hero image (larger top spacing) */
.article-body > figure:first-of-type {
    margin-top: 0;
    margin-bottom: 2em;
}

/* --------------------------------------------------------------- */
/*  4. SIDEBAR                                                     */
/* --------------------------------------------------------------- */
.article-sidebar {
    position: sticky;
    top: 120px;          /* dÆ°á»›i sticky header */
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sidebar-block {
    background: var(--c-white);
}
.sidebar-block__title {
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
}

/* Category list */
.sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-cats li {
    border-bottom: 1px solid var(--c-line-soft);
}
.sidebar-cats li:last-child { border-bottom: 0; }
.sidebar-cats li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--c-body);
    transition: color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out);
}
.sidebar-cats li a:hover {
    color: var(--c-gold-deep);
    padding-left: 6px;
}

/* Latest posts */
.sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar-post {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: flex-start;
}
.sidebar-post__media {
    overflow: hidden;
    border-radius: var(--radius-card);
    aspect-ratio: 4 / 3;
}
.sidebar-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.sidebar-post:hover .sidebar-post__media img { transform: scale(1.08); }
.sidebar-post__content { min-width: 0; }
.sidebar-post__title {
    font-family: var(--ff-heading);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--c-ink);
    margin: 0 0 6px;
    transition: color var(--t-fast) var(--ease-out);
    /* Clamp 3 dÃ²ng Ä‘á»ƒ Ä‘á»“ng nháº¥t */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-post:hover .sidebar-post__title { color: var(--c-gold-deep); }
.sidebar-post__date {
    font-size: 11.5px;
    color: var(--c-muted);
}

/* --------------------------------------------------------------- */
/*  5. RESPONSIVE                                                  */
/* --------------------------------------------------------------- */

/* Tablet: sidebar xuá»‘ng dÆ°á»›i content */
@media (max-width: 991px) {
    .detail-wrap {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .detail-section { padding: 40px 0 60px; }
    .article-head { padding-bottom: 28px; margin-bottom: 28px; }
    .article-head__title { font-size: 22px; }

    .article-body { font-size: 14.5px; line-height: 1.75; }
    .article-body h1,
    .article-body h2 { font-size: 19px; margin-top: 1.6em; }
    .article-body h3 { font-size: 16px; }
    .article-body figure { margin: 1.4em 0; }

    .article-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 420px) {
    .article-head__title { font-size: 20px; }
    .sidebar-post { grid-template-columns: 72px 1fr; gap: 12px; }
    .sidebar-post__title { font-size: 13px; }
}
