﻿/* ==========================================================================
   1. CẤU HÌNH CHUNG & BỐ CỤC KHUNG CHỨA (WRAPPER)
   ========================================================================== */
.pk-wrapper {
    max-width: 80%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 35px;
    background-color: transparent;
}

    .pk-wrapper a {
        text-decoration: none !important;
        color: inherit;
        transition: color 0.2s ease;
    }

/* --- TIÊU ĐỀ KHỐI (HEADINGS) --- */
.pk-block-title {
    font-size: 18px;
    color: #023483;
    text-transform: uppercase;
    border-bottom: 2px solid #023483;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. CỘT TRÁI: DANH SÁCH BÀI VIẾT CHÍNH (ARTICLE LIST)
   ========================================================================== */
.pk-primary-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pk-post-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    overflow: hidden;
    align-items: stretch;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .pk-post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 20px -5px rgba(4, 74, 163, 0.15);
        border-color: #044aa3;
    }

.pk-post-badge {
    width: 350px;
    min-width: 260px;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f7fafc;
}

    .pk-post-badge img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        will-change: transform;
    }

.pk-post-card:hover .pk-post-badge img {
    transform: scale(1.08);
}

.pk-post-body {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pk-meta-date {
    font-size: 13px !important;
    color: #718096;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .pk-meta-date::before {
        content: "📅";
        font-size: 12px;
    }

.pk-post-heading {
    font-size: 19px;
    font-weight: 700;
    color: #0b2240;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.pk-post-card:hover .pk-post-heading {
    color: #044aa3;
}

.pk-post-summary {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   3. CỘT PHẢI: PHẦN DANH MỤC (SIDEBAR MENU)
   ========================================================================== */
.pk-secondary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pk-menu-box {
    list-style: none !important;
    list-style-type: none !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

    .pk-menu-box li {
        list-style: none !important;
        list-style-type: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

.pk-menu-node > a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 18px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.pk-menu-node:last-child > a {
    border-bottom: none;
}


.pk-menu-node > a:hover {
    color: #044aa3;
    background-color: #f8fafc;
    padding-left: 24px;
}

    .pk-menu-node > a:hover::before {
        transform: scale(1.5);
    }

.pk-menu-node.pk-is-current > a {
    background: linear-gradient(135deg, #044aa3 0%, #033675 100%);
    color: #ffffff;
    border-bottom-color: transparent;
}

    .pk-menu-node.pk-is-current > a::before {
        background-color: #ffffff;
    }

.pk-menu-node.pk-has-child > a {
    justify-content: space-between;
}

    .pk-menu-node.pk-has-child > a::after {
        content: "▼";
        font-size: 9px;
        color: #a0aec0;
        transition: transform 0.3s ease, color 0.3s ease;
    }

.pk-menu-node.pk-has-child.pk-is-expanded > a::after {
    transform: rotate(180deg);
    color: #4a5568;
}

.pk-menu-node.pk-is-current.pk-has-child.pk-is-expanded > a::after {
    color: #ffffff;
}

/* Menu cấp 2 (Submenu) */
.pk-sub-menu-box {
    list-style: none !important;
    list-style-type: none !important;
    background-color: #f8fafc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 !important;
    margin: 0;
}

    .pk-sub-menu-box li a {
        display: block;
        padding: 11px 20px 11px 42px;
        font-size: 13.5px;
        font-weight: 500;
        color: #4a5568;
        border-bottom: 1px solid #edf2f7;
        transition: all 0.2s ease;
    }

    .pk-sub-menu-box li:last-child a {
        border-bottom: none;
    }

    .pk-sub-menu-box li a:hover,
    .pk-sub-menu-box li.pk-is-sub-current a {
        color: #044aa3;
        background-color: #e6f0fa;
        font-weight: 600;
        padding-left: 46px;
    }

/* ==========================================================================
   4. CỘT PHẢI: WIDGET TIN TỨC BÊN PHẢI (PK-NEWS-GROUP)
   ========================================================================== */
.pk-news-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pk-news-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(231, 231, 231, 0.837);
    transition: all 0.25s ease;
}

    .pk-news-row:hover {
        border-color: #044aa3;
        box-shadow: 0 4px 12px rgba(4, 74, 163, 0.08);
        transform: translateX(4px);
    }

.pk-news-media {
    width: 90px;
    min-width: 90px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

    .pk-news-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.25s ease;
    }

.pk-news-row:hover .pk-news-media img {
    opacity: 0.9;
}

.pk-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.pk-meta-date-small {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 3px;
}

.pk-news-link {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.pk-news-row:hover .pk-news-link {
    color: #044aa3;
}

/* ==========================================================================
   5. PHẦN PHÂN TRANG VÒNG LẶP (CUSTOM PAGINATION)
   ========================================================================== */
.pk-pager-nav ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 40px 0 20px 0;
}

    .pk-pager-nav ul li {
        display: inline-block !important;
        list-style: none !important; /* Triệt tiêu chấm tròn tuyệt đối */
        list-style-type: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

        .pk-pager-nav ul li a,
        .pk-pager-nav ul li span {
            display: block;
            padding: 10px 16px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            transition: all 0.2s ease;
            cursor: pointer;
        }

            .pk-pager-nav ul li a:hover {
                background-color: #044aa3 !important;
                color: #ffffff !important;
                border-color: #044aa3 !important;
                transform: translateY(-1px);
            }

        .pk-pager-nav ul li.active span {
            background-color: #044aa3 !important;
            color: #ffffff !important;
            border-color: #044aa3 !important;
            box-shadow: 0 4px 6px -1px rgba(4, 74, 163, 0.3);
            cursor: default;
        }

        .pk-pager-nav ul li.PagedList-skipToEllipses span {
            border: none !important;
            background: transparent !important;
            color: #a0aec0;
            cursor: default;
            padding: 10px 6px;
        }

        .pk-pager-nav ul li.disabled span {
            color: #cbd5e0;
            border-color: #edf2f7;
            background: #f7fafc;
            cursor: not-allowed;
        }

/* ==========================================================================
   6. TỐI ƯU GIAO DIỆN PHẢN HỒI (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .pk-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 92%;
    }
}

@media (max-width: 768px) {
    .pk-post-card {
        flex-direction: column;
    }

    .pk-post-badge {
        width: 100% !important;
        min-width: 100% !important;
        height: 220px;
        border-radius: 6px 6px 0 0;
    }

    .pk-post-body {
        padding: 20px;
    }

    .pk-post-heading {
        font-size: 17px;
    }
}
