/* LING SHUI NEWS SLIDER - PUBLIC STYLES */

/* SLIDER WRAPPER */
.lsns-slider-wrap {
    width: 100%;
    margin: 0 auto 1.5em auto;
    position: relative;
}

/* TRACK: contains all slides, hidden by default */
.lsns-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ALL SLIDES HIDDEN BY DEFAULT - JS shows the active ones */
.lsns-slide {
    display: none;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* Active slides are shown */
.lsns-slide.lsns-active {
    display: flex;
}

/* IMAGE */
.lsns-img-link {
    display: block;
    text-decoration: none;
}

.lsns-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.lsns-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.lsns-img-link:hover .lsns-img-wrap img {
    opacity: 0.85;
}

/* CONTENT AREA - fixed height so card never resizes */
.lsns-content {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    height: 246px;
    overflow: hidden;
}

/* DATE */
.lsns-date {
    font-size: 0.78em;
    color: #888;
    margin: 0 0 6px 0;
}

/* TITLE - fixed height for 3 lines to prevent card resizing */
.lsns-title {
    font-size: 1em;
    margin: 0 0 8px 0;
    line-height: 1.35;
    min-height: 4.05em; /* 3 lines × 1.35 line-height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lsns-title a {
    color: #cc0000;
    text-decoration: none;
}

.lsns-title a:hover {
    text-decoration: underline;
}

/* EXCERPT */
.lsns-excerpt {
    font-size: 0.88em;
    color: #444;
    line-height: 1.5;
    margin: 0 0 12px 0;
    flex: 1;
}

/* READ MORE LINK */
.lsns-read-more {
    font-size: 0.85em;
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.lsns-read-more:hover {
    text-decoration: underline;
}

/* NAVIGATION - always visible */
.lsns-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

/* DOTS */
.lsns-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    max-width: 80%;
}

.lsns-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cc0000;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.lsns-dot.lsns-dot-active {
    background: #cc0000;
}

/* PREV / NEXT BUTTONS */
.lsns-btn {
    background: transparent;
    border: 2px solid #cc0000;
    color: #cc0000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.lsns-btn:hover {
    background: #cc0000;
    color: #fff;
}

/* LATEST NEWS HEADING - extra top margin for breathing room */
h2.page-title.lsns-heading {
    margin-top: 2.5em;
}

/* EMPTY MESSAGE */
.lsns-empty {
    font-style: italic;
    color: #666;
}

/* MOBILE: single post at a time */
@media screen and (max-width: 600px) {
    .lsns-track {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* END PUBLIC STYLES */
