/* ======= BANNER SECTION ======= */
.banner-section .p_title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ======= BREADCRUMB ======= */
.s-breadcrumb-1 {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
}
.s-breadcrumb-1 li:not(:first-child)::before {
    content: "\f101";
    font-family: FontAwesome;
    font-size: 12px;
    margin: 0 10px;
    color: #ccc;
}
.s-breadcrumb-1 li a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.s-breadcrumb-1 li a:hover {
    color: var(--primary-color);
}

/* ======= DETAIL SECTION ======= */
.p-detail-8 {
    padding: 40px 0;
    background: #fafafa;
}
.p-detail-8 .detail-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
.p-detail-8 .ht-page__main {
    flex: 2;
}
.p-detail-8 .ht-page__sidebar {
    flex: 1;
}

.p-detail-8 .p_box-shadow {
    padding: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
}
.p-detail-8 .p_source {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.p-detail-8 .p_source li {
    display: inline-block;
    margin-right: 20px;
    color: black;
}
.p-detail-8 .p_source li span.fa {
    color: var(--primary-color);
    margin-right: 6px;
}
.p-detail-8 .p_source li a {
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
}
.p-detail-8 .p_source li a:hover {
    color: var(--primary-color);
}
.p-detail-8 .p_desc {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.6em;
    text-align: justify;
    margin-bottom: 20px;
}
.ht-format-detail {
    font-size: 16px;
    line-height: 1.7em;
    color: #333;
}
.ht-format-detail img {
    max-width: 100%;
    border-radius: 6px;
}
.p-detail-8 .p_other {
    margin-top: 40px;
}
.p-detail-8 .p_other h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}
.p-detail-8 .p_other ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.p-detail-8 .p_other ul li {
    margin-bottom: 8px;
}
.p-detail-8 .p_other ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.p-detail-8 .p_other ul li a:hover {
    color: var(--tertiary-color);
}
.p-detail-8 .p_other ul li a i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ======= SIDEBAR ======= */
.sidebar-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.sidebar-box h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #05a;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-box ul li.sidebar-card-item {
    margin-bottom: 20px;
    border-bottom: none;
}

/* Card Link Container */
.sidebar-box ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.sidebar-box ul li a:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px); /* Hiệu ứng nhấc nhẹ */
}

/* Hình ảnh (Toàn bộ chiều rộng) */
.sidebar-thumb {
    width: 100%;

    overflow: hidden;
    position: relative;
}
.sidebar-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.sidebar-box ul li a:hover .sidebar-thumb img {
    transform: scale(1.05); /* Zoom ảnh khi hover */
}

/* Nội dung (Tiêu đề + Mô tả) */
.sidebar-content {
    padding: 15px;
}
.sidebar-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    color: #05a;
    margin-bottom: 5px;
    display: block;
}

/* Mô tả */
.sidebar-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 0;
    /* Giới hạn 2 dòng cho mô tả */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* ======= NGÀY ĐĂNG ======= */
.box-content{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}
/* ======= NGÀY ĐĂNG ======= */
.p_date {
    background-color: var(--tertiary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}
.p_date::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
}
.p_date:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 90, 50, 0.4);
}
.p_date .day {
    display: block;
    font-size: 18px;
    line-height: 1;
}
.p_date .month-year {
    display: block;
    font-size: 11px;
}

/* ======= TAG ======= */
.p_tag-1 {
    background: #fff;
    border: 2px solid var(--tertiary-color);
    border-radius: 25px;
    padding: 8px 18px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.p_tag-1 a {
    text-decoration: none;
    color: var(--tertiary-color);
}
.p_tag-1:hover {
    background-color: var(--tertiary-color);
    border-color: transparent;
}
.p_tag-1:hover a {
    color: #fff;
}

.news-title{
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
    .p-detail-8 .detail-main {
        flex-direction: column; /* Chuyển Main và Sidebar thành 2 cột dọc */
    }
    .p-detail-8 .ht-page__main,
    .p-detail-8 .ht-page__sidebar {
        flex: auto;
    }
    .sidebar-box ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* chia 2 cột */
        gap: 15px; /* khoảng cách giữa các card */
    }

    .sidebar-card-item {
        list-style: none;
    }

}
@media screen and (max-width: 767px) {
    .p-detail-8 .container {
        flex-direction: column;
    }
    .ht-page__sidebar {
        min-width: 100%;
    }
    .banner-section .p_title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {

    .p-detail-8 .detail-main {
        flex-direction: column;
        gap: 20px;
    }

    .p-detail-8 .ht-page__main,
    .p-detail-8 .ht-page__sidebar {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    /* Tăng khoảng cách cho sidebar */
    .p-detail-8 .ht-page__sidebar {
        margin-top: 10px;
    }
}


/* ============================
   3) Mobile < 768px
   ============================ */
@media (max-width: 768px) {

    .p-detail-8 {
        padding: 25px 0;
    }

    .p-detail-8 .p_box-shadow {
        padding: 20px;
    }

    .news-title {
        font-size: 22px;
    }

    .p_desc {
        font-size: 14px;
        padding: 12px;
    }
}


/* ============================
   4) Mobile nhỏ < 576px
   ============================ */
@media (max-width: 576px) {

    .news-title {
        font-size: 20px;
    }

    .p_box-shadow {
        padding: 16px;
    }

    .sidebar-box {
        padding: 16px;
    }

    .sidebar-title {
        font-size: 15px;
    }

    .sidebar-desc {
        font-size: 12px;
    }

    .box-content {
        gap: 8px;
    }

    .p_tag-1 {
        padding: 6px 14px;
    }
}


/* ============================
   5) 375px – 475px
   ============================ */
@media (max-width: 475px) {

    .p_box-shadow,
    .sidebar-box {
        padding: 14px;
    }

    .news-title {
        font-size: 18px;
    }

    .p_date .day {
        font-size: 16px;
    }

    .p_date .month-year {
        font-size: 10px;
    }
    .sidebar-box ul {
        grid-template-columns: 1fr !important;
    }

}
