/* ========== CONTENT BOXES - PREMIUM REDESIGN ========== */
.content-boxes { padding: 80px 0 120px; }
.content-boxes-header { text-align: center; margin-bottom: 56px; }
.content-boxes-header .section-desc { margin: 0 auto; }
.content-boxes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.content-box {
    background: #111111;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.content-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,107,43,0.08), inset 0 1px 0 rgba(255,107,43,0.1), inset 0 -1px 0 rgba(0,0,0,0.3);
    border-color: rgba(255,107,43,0.2);
}

/* Top glowing accent line */
.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--primary) 50%, transparent 95%);
    opacity: 0.7;
    z-index: 5;
}
.content-box:hover::before { opacity: 1; }

/* Glass reflection */
.content-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 24px 24px 0 0;
}

/* Header */
.content-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
}
.content-box-title {
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}
.content-box-title .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(255,107,43,0.5), 0 0 4px rgba(255,107,43,0.8);
    animation: glow-pulse 3s ease-in-out infinite;
}
.content-box-nav { display: flex; gap: 8px; }
.content-box-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}
.content-box-nav button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255,107,43,0.3);
}

/* Slider */
.content-box-slider { position: relative; overflow: hidden; flex: 1; }
.content-box-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.content-box-slide { min-width: 100%; }

.content-box-slide a { display: block; text-decoration: none; color: inherit; }

/* Image */
.content-box-slide-img {
    position: relative;
    width: auto;
    height: 260px;
    overflow: hidden;
    margin: 0 12px;
    border-radius: 12px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}
.content-box-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.85);
}
.content-box-slide a:hover .content-box-slide-img img {
    transform: scale(1.08);
    filter: brightness(1);
}
/* Gradient overlay on image */
.content-box-slide-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #111111, transparent);
    pointer-events: none;
    z-index: 1;
}
/* Category tag */
.content-box-slide-cat {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(255,107,43,0.3);
}

/* Body */
.content-box-slide-body { padding: 24px 28px 28px; }
.content-box-slide-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-box-slide a:hover .content-box-slide-title { color: var(--primary); }
.content-box-slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}
.content-box-slide-meta .views { display: flex; align-items: center; gap: 4px; }

/* Dots */
.content-box-dots { display: flex; justify-content: center; gap: 8px; padding: 20px 0 16px; }
.content-box-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.content-box-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,107,43,0.4);
}

/* Footer */
.content-box-footer {
    padding: 20px 28px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,107,43,0.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.content-box-footer a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.content-box-footer a:hover { gap: 12px; color: var(--primary-hover); }

/* Responsive */
@media (max-width: 1024px) {
    .content-boxes-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}
