/* ==========================
   Article Detail
========================== */

.article-detail {
    padding: 70px 0;
    background: #fff;
}

.article-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.article-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 35px;
}

.article-title {
    font-size: var(--fs-h1);
    line-height: 1.8;
    color: #222;
    margin-bottom: 25px;
}


.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    color: #777;
    font-size: var(--fs-small);
}

/* ==========================
   Article Navigation
========================== */

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 70px;
    padding-top: 35px;
    border-top: 1px solid #eee;
}

.article-nav-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .3s ease,
    border-color .3s ease;

}

.article-nav-card:hover {
    border-color: #0d6efd;
    transform: translateY(-3px);
}

.nav-label {
    font-size: .9rem;
    color: #888;
    margin-bottom: 10px;
}

.nav-title {
    color: #222;
    font-weight: 600;
    line-height: 1.8;
}

.article-nav-next {
    text-align: left;
}

/* ==========================
   Related Articles
========================== */

.related-articles {
    margin-top: 70px;
}

.related-title {
    font-size: var(--fs-h2);
    color: #222;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: #fff;

    border: 1px solid #eee;
    border-radius: 14px;

    text-decoration: none;

    transition: all .3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.related-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card-body {
    flex: 1;
    padding: 18px;
}

.related-card-title {
    margin: 0;
    color: #222;
    font-size:var(--fs-body);
    line-height: 1.8;
    transition: color .3s ease;
}

.related-card:hover .related-card-title {
    color: #0d6efd;
}

/* ==========================
   Tablet
========================== */

@media (max-width: 992px) {

    .article-detail {
        padding: 60px 0;
    }

    .article-wrapper {
        max-width: 100%;
    }

    .article-cover {
        height: 380px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==========================
   Mobile
========================== */

@media (max-width: 768px) {

    .article-detail {
        padding: 45px 0;
    }

    .article-cover {
        height: 240px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .article-title {
        margin-bottom: 18px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 25px;
        font-size: .9rem;
    }

    .article-navigation {

        flex-direction: column;

    }

    .article-nav-next {

        text-align: right;

    }

    .related-grid {

        grid-template-columns: 1fr;

    }

    .related-card-image {
        height: 220px;
    }
}

@media (max-width:320px){

    .article-cover{
        height:180px;
    }

    .article-navigation{
        gap:14px;
    }

    .article-nav-card{
        padding:14px;
    }

    .related-card-image{
        height:170px;
    }

    .article-meta{
        font-size:.85rem;
    }

}