.detail-page{
    background: var(--bg);
    color: var(--text);
}

.detail-body,
.detail-layout,
.detail-layout > div,
.detail-sidebar-wrap{
    overflow: visible;
}

.detail-breadcrumb{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: transparent;
    list-style: none;
}

.detail-breadcrumb .breadcrumb-item{
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--muted);
}

.detail-breadcrumb .breadcrumb-item a{
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 800;
}

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

.detail-breadcrumb .breadcrumb-item.active{
    color: var(--muted);
    font-weight: 800;
}

.detail-breadcrumb .breadcrumb-item + .breadcrumb-item{
    padding-right: 0;
}

.detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
    float: none;
    padding: 0 6px;
    color: #94a3b8;
    content: "/";
}

.detail-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-section-title{
    font-weight: 1000;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.detail-section-sub{
    color: var(--muted);
    margin: -4px 0 18px;
    font-weight: 700;
    line-height: 1.8;
}

.detail-content-text{
    color: var(--text);
    line-height: 2;
    font-size: 15px;
    font-weight: 500;
}

.detail-content-text p:last-child{
    margin-bottom: 0;
}

.detail-summary-text{
    color: var(--text);
    line-height: 2;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.detail-sidebar{
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

.detail-side-title{
    font-weight: 1000;
    color: var(--text);
    margin: 0 0 8px;
}

.detail-side-sub{
    color: var(--muted);
    line-height: 1.8;
    font-weight: 700;
    margin: 0 0 14px;
}

.detail-actions{
    display: grid;
    gap: 10px;
}

.detail-action-btn{
    border-radius: 16px;
    font-weight: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: .2s ease;
}

.detail-action-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(15,23,42,.10);
    text-decoration: none;
    color: var(--text);
}

.detail-action-btn.primary{
    background: linear-gradient(135deg, #f2b43c 0%, #e7a424 100%);
    border: none;
    color: #fff;
    box-shadow: 0 16px 30px rgba(231,164,36,.25);
}

.detail-action-btn.primary:hover{
    color: #fff;
}

.detail-action-btn.whatsapp{
    background: rgba(37,211,102,.10);
    border-color: rgba(37,211,102,.22);
}

.detail-action-btn.whatsapp i{
    color: var(--wa-green);
}

.detail-action-btn.sponsor{
    background: #0192dc1a;
    border-color: #0192dc38
}

.detail-action-btn.sponsor i{
    color: var(--brand-blue);
}

.detail-action-btn.ghost{
    background: var(--bg);
    border-color: #e8eef6;
}

.detail-divider{
    margin: 16px 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,.12), transparent);
}

.detail-meta-pills{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 900;
    font-size: .9rem;
    white-space: nowrap;
}

.detail-pill i{
    color: var(--brand-blue);
}

.detail-updated{
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-related-section{
    padding: 10px 0 40px;
}

.detail-related-head{
    margin-bottom: 18px;
}

.detail-related-title{
    margin: 0 0 6px;
    color: var(--text);
    font-weight: 1000;
}

.detail-related-sub{
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-related-card{
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
    transition: .2s ease;
}

.detail-related-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(1,146,220,.28);
}

.detail-related-cover{
    display: block;
}

.detail-related-image{
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.detail-related-body{
    padding: 14px 16px 16px;
}

.detail-related-name{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.7em * 2);
    margin-bottom: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 1000;
    line-height: 1.7;
}

.detail-related-name:hover{
    color: var(--brand-blue);
    text-decoration: none;
}

.detail-related-meta-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-related-meta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.detail-modal-content{
    border: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
}

.detail-modal-stage{
    position: relative;
    background: #0f172a;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-modal-image{
    max-height: 72vh;
    width: 100%;
    object-fit: contain;
    background: #0f172a;
    display: block;
}

.detail-modal-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    z-index: 15;
    transition: .2s ease;
}

.detail-modal-nav:hover{
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.detail-modal-prev{
    right: 18px;
}

.detail-modal-next{
    left: 18px;
}

.detail-modal-footer{
    padding: 16px 18px 18px;
    background: #fff;
}

.detail-modal-caption{
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    margin-bottom: 6px;
}

.detail-modal-counter{
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.copy-toast{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 9999;
    animation: slideIn .25s ease;
    font-weight: 900;
}

@keyframes slideIn{
    from{ transform: translateX(100%); opacity:0; }
    to{ transform: translateX(0); opacity:1; }
}

/* sticky fix */
.detail-page,
.detail-page .auto-container,
.detail-page .container,
.detail-page .row,
.detail-page [class*="col-"],
.detail-layout,
.detail-layout > div{
    overflow: visible !important;
}

.page-wrapper,
.main-wrapper,
.site-wrapper,
.content-wrapper{
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
}

@media (max-width: 991.98px){
    .detail-sidebar{
        position: static;
        top: auto;
    }

    .detail-modal-stage{
        min-height: 58vh;
    }

    .detail-modal-image{
        max-height: 58vh;
    }
}

@media (max-width: 575.98px){
    .detail-card{
        border-radius: var(--radius-md);
    }

    .detail-action-btn{
        min-height: 44px;
        font-size: 14px;
    }

    .detail-related-image{
        height: 190px;
    }

    .detail-modal-nav{
        width: 44px;
        height: 44px;
    }

    .detail-modal-prev{
        right: 10px;
    }

    .detail-modal-next{
        left: 10px;
    }
}