/* ==========================================================================
   Horizontal Scroll News - Frontend Slider
   ========================================================================== */

.hsn-wrapper {
    --hsn-accent: #e63312;
    --hsn-title-color: #111111;
    --hsn-card-bg: #ffffff;
    --hsn-text-color: #444444;
    --hsn-cat-bg: #e63312;
    --hsn-cat-color: #ffffff;
    --hsn-arrow-bg: #e63312;
    --hsn-arrow-color: #ffffff;
    --hsn-card-width: 280px;
    --hsn-card-height: 200px;
    --hsn-radius: 8px;
    --hsn-gap: 16px;

    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.hsn-wrapper * {
    box-sizing: border-box;
}

/* ---------- Section header ---------- */
.hsn-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hsn-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--hsn-title-color);
    margin: 0;
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hsn-title-icon {
    color: var(--hsn-accent);
    font-size: 20px;
    font-weight: 900;
    font-family: -apple-system, sans-serif;
}

.hsn-section-header::after {
    content: none;
}

/* underline accent below title row */
.hsn-section-header {
    border-bottom: 2px solid #ededed;
    padding-bottom: 12px;
    position: relative;
}
.hsn-section-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 3px;
    background: var(--hsn-accent);
}

/* ---------- Nav buttons ---------- */
.hsn-nav-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hsn-nav-standalone {
    position: absolute;
    top: -46px;
    right: 0;
}

.hsn-prev, .hsn-next {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hsn-arrow-bg);
    color: var(--hsn-arrow-color);
    border: none;
    cursor: pointer;
    transition: all .18s ease;
    padding: 0;
}

.hsn-arrow-circle { border-radius: 50%; }
.hsn-arrow-square { border-radius: 6px; }
.hsn-arrow-minimal {
    background: transparent !important;
    color: var(--hsn-arrow-bg) !important;
    border: 1.5px solid var(--hsn-arrow-bg);
    border-radius: 50%;
}

.hsn-prev:hover, .hsn-next:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

.hsn-prev:disabled, .hsn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.hsn-prev svg, .hsn-next svg {
    pointer-events: none;
}

/* ---------- Track ---------- */
.hsn-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hsn-track {
    display: flex;
    gap: var(--hsn-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 4px 16px 4px;
    scroll-snap-type: x proximity;
}

.hsn-track::-webkit-scrollbar {
    display: none;
}

/* ---------- Cards ---------- */
.hsn-card {
    flex: 0 0 var(--hsn-card-width);
    width: var(--hsn-card-width);
    background: var(--hsn-card-bg);
    border-radius: var(--hsn-radius);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hsn-card.hsn-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.hsn-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.hsn-card-image {
    position: relative;
    width: 100%;
    height: var(--hsn-card-height);
    background-size: cover;
    background-position: center;
    background-color: #eee;
    overflow: hidden;
    border-radius: var(--hsn-radius) var(--hsn-radius) 0 0;
}

.hsn-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}

.hsn-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hsn-cat-bg);
    color: var(--hsn-cat-color);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.hsn-photo-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 2;
}

.hsn-card-body {
    padding: 14px 14px 16px;
}

.hsn-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.32;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-card-excerpt {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--hsn-text-color);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hsn-meta-date, .hsn-meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.hsn-read-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hsn-accent);
    text-decoration: none;
}

/* ---------- Hover effects ---------- */
.hsn-hover-lift .hsn-card:hover {
    transform: translateY(-6px);
}
.hsn-hover-lift .hsn-card.hsn-shadow:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.hsn-hover-zoom .hsn-card-image img,
.hsn-hover-zoom .hsn-card:hover .hsn-card-image {
    transition: transform .35s ease;
}
.hsn-hover-zoom .hsn-card:hover .hsn-card-image {
    transform: scale(1.04);
}

.hsn-hover-glow .hsn-card {
    border: 2px solid transparent;
}
.hsn-hover-glow .hsn-card:hover {
    border-color: var(--hsn-accent);
}

.hsn-hover-none .hsn-card:hover {
    transform: none;
}

/* ---------- Dots ---------- */
.hsn-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.hsn-dots .hsn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8d8d8;
    cursor: pointer;
    transition: all .2s;
}
.hsn-dots .hsn-dot.active {
    background: var(--hsn-accent);
    width: 18px;
    border-radius: 4px;
}

/* ---------- No posts ---------- */
.hsn-no-posts {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .hsn-section-title {
        font-size: 21px;
    }
    .hsn-prev, .hsn-next {
        width: 32px;
        height: 32px;
    }
    .hsn-card-title {
        font-size: 14.5px;
    }
    .hsn-nav-standalone {
        top: -42px;
    }
}

@media (max-width: 480px) {
    .hsn-wrapper {
        margin: 20px 0;
    }
    .hsn-section-title {
        font-size: 19px;
    }
    .hsn-card-body {
        padding: 11px 12px 13px;
    }
    .hsn-card-excerpt {
        display: none;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hsn-track {
        scroll-behavior: auto;
    }
    .hsn-card {
        transition: none;
    }
}
