/* ============================================================
   Julyem Tin Tức - "Góc Ngẫm Nghĩ"  (nền navy #003462)
   ============================================================ */

.jl-news {
    --jl-navy: #003462;
    --jl-navy-deep: #002847;
    --jl-gold: #CFA56A;
    --jl-muted: #9fb3c4;
    background: transparent;
    padding: 64px 16px 72px;
    position: relative;
    overflow: hidden;
}

.jl-news-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Tiêu đề ---------- */
.jl-nw-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 44px;
    color: var(--jl-gold);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.jl-nw-title {
    text-shadow: 0 1px 8px rgba(207, 165, 106, .25);
}

.jl-nw-orn {
    flex: 0 0 auto;
    width: clamp(40px, 9vw, 120px);
    height: 12px;
    position: relative;
}

.jl-nw-orn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.jl-nw-orn-left::before {
    background: linear-gradient(90deg, transparent, var(--jl-gold));
}

.jl-nw-orn-right::before {
    background: linear-gradient(90deg, var(--jl-gold), transparent);
}

/* Viên kim cương nhỏ ở đầu mút */
.jl-nw-orn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--jl-gold);
    transform: translateY(-50%) rotate(45deg);
}

.jl-nw-orn-left::after { right: 0; }
.jl-nw-orn-right::after { left: 0; }

/* ---------- Carousel ---------- */
.jl-nw-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jl-nw-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    /* Chừa khoảng đệm dọc để thẻ nhô lên khi hover không bị cắt cạnh trên */
    padding: 10px 0;
    margin: -10px 0;
}

.jl-nw-track {
    display: flex;
    gap: 26px;
    transition: transform .45s cubic-bezier(.4, .2, .2, 1);
    will-change: transform;
}

/* ---------- Thẻ ---------- */
.jl-nw-card {
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease;
}

/* Viền vẽ bằng lớp phủ ::after để luôn nằm trên ảnh (không bị ảnh che ở cạnh trên) */
.jl-nw-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(207, 165, 106, .35);
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
    transition: border-color .25s ease;
}

.jl-nw-card:hover {
    transform: translateY(-6px);
}

.jl-nw-card:hover::after {
    border-color: rgba(207, 165, 106, .7);
}

.jl-nw-thumb {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.jl-nw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.jl-nw-card:hover .jl-nw-thumb img {
    transform: scale(1.06);
}

.jl-nw-thumb-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e4a78, #c9a063);
}

.jl-nw-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px 20px 22px;
}

.jl-nw-date {
    color: var(--jl-muted);
    font-size: 13px;
    letter-spacing: .4px;
    margin-bottom: 10px;
}

.jl-nw-card-title {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    flex: 1 1 auto;
}

.jl-nw-card-title a {
    color: #f3f7fb;
    font-weight: normal;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.jl-nw-card-title a:hover {
    color: var(--jl-gold);
}

.jl-nw-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--jl-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color .2s ease, gap .2s ease;
}

.jl-nw-more svg {
    transition: transform .2s ease;
}

.jl-nw-more:hover {
    color: #e4c79a;
    gap: 11px;
}

.jl-nw-more:hover svg {
    transform: translateX(2px);
}

/* ---------- Nút điều hướng ---------- */
.jl-news .jl-nw-nav {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-width: 0;
    min-height: 0;
    max-width: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid rgba(207, 165, 106, .55);
    background: transparent;
    color: var(--jl-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s, opacity .2s;
    -webkit-appearance: none;
    appearance: none;
}

.jl-news .jl-nw-nav svg {
    width: 28px;
    height: 28px;
    display: block;
}

.jl-nw-nav:hover {
    background: var(--jl-gold);
    color: var(--jl-navy-deep);
    transform: scale(1.06);
}

.jl-nw-nav:disabled {
    opacity: .3;
    cursor: default;
    transform: none;
    background: transparent;
    color: var(--jl-gold);
}

/* ---------- Dots ---------- */
.jl-nw-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.jl-nw-dot {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(207, 165, 106, .35);
    cursor: pointer;
    transition: background .2s, transform .2s;
    -webkit-appearance: none;
    appearance: none;
}

.jl-nw-dot.is-active {
    background: var(--jl-gold);
    transform: scale(1.25);
}

/* ---------- Responsive ----------
   Chiều rộng thẻ do JS tính theo số bài hiển thị / breakpoint. */
@media (max-width: 600px) {
    .jl-news {
        padding: 48px 12px 56px;
    }
    .jl-news .jl-nw-nav {
        width: 32px;
        height: 32px;
    }
    .jl-news .jl-nw-nav svg {
        width: 18px;
        height: 18px;
    }
}
