/* ── Latest News Widget ──────────────────────────────────────────────── */

.ln-widget {
    width: 100%;
    --ln-accent: #e63946;
    --ln-radius: 12px;
}

/* ── Shared tokens ───────────────────────────────────────────────────── */

.ln-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--ln-radius);
    overflow: hidden;
    position: relative;
}

.ln-cat-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ln-accent);
    padding: 3px 10px 2px;
    border-radius: 100px;
    margin-bottom: 9px;
    line-height: 1.5;
}

.ln-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.35;
}

.ln-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ln-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 8px;
}

.ln-sep {
    opacity: 0.45;
}

.ln-excerpt {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 8px 0 0;
}

.ln-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ln-accent);
    text-decoration: none;
    position: relative;
    transition: gap 0.2s ease;
}

.ln-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--ln-accent);
    transition: width 0.22s ease;
}

.ln-card:hover .ln-read-more::after,
.ln-read-more:hover::after { width: 100%; }

.ln-card:hover .ln-read-more { gap: 10px; }

.ln-thumb--empty {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ln-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 48px 0;
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Style: Magazine ─────────────────────────────────────────────────── */

.ln-style-magazine .ln-magazine {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3px;
    border-radius: var(--ln-radius);
    overflow: hidden;
}

/* Lead card */
.ln-style-magazine .ln-mag-lead {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0;
}

.ln-mag-lead__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ln-style-magazine .ln-mag-lead:hover .ln-mag-lead__img {
    transform: scale(1.04);
}

.ln-mag-lead__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* color set via inline dynamic CSS */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}

.ln-mag-lead__content {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
}

.ln-mag-lead__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 8px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.ln-style-magazine .ln-mag-lead .ln-meta {
    color: rgba(255,255,255,0.65);
}

/* Side stack */
.ln-mag-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f1f5f9;
}

.ln-mag-item {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 0;
    flex: 1;
    transition: background-color 0.22s ease;
    background: #fff;
}

.ln-mag-item:hover {
    background: #fafbff;
}

.ln-mag-item__thumb {
    width: 90px;
    min-height: 90px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.ln-mag-item:hover .ln-mag-item__thumb {
    transform: scale(1.07);
}

.ln-mag-item__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    border-left: 3px solid transparent;
    transition: border-color 0.22s ease;
}

.ln-mag-item:hover .ln-mag-item__body {
    border-left-color: var(--ln-accent);
}

.ln-mag-item__title {
    font-size: 0.87rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Style: Ticker ───────────────────────────────────────────────────── */

.ln-style-ticker .ln-ticker-bar {
    display: flex;
    align-items: center;
    background: #0f172a;
    border-radius: 100px;
    overflow: hidden;
    height: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.ln-ticker__label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 22px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ln-accent);
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding-right: 28px;
}

.ln-ticker__viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.ln-ticker__track {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    width: max-content;
    animation: ln-ticker-scroll var(--ln-ticker-dur, 30s) linear infinite;
}

@keyframes ln-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ln-ticker-bar:hover .ln-ticker__track {
    animation-play-state: paused;
}

.ln-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.ln-ticker__link {
    font-size: 0.84rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.18s ease;
    letter-spacing: 0.01em;
}

.ln-ticker__link:hover {
    color: #fff;
}

.ln-ticker__date {
    font-size: 0.7rem;
    color: #475569;
    margin: 0;
}

.ln-ticker__sep {
    font-size: 0.45rem;
    color: var(--ln-accent);
    opacity: 0.6;
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Style: Grid ─────────────────────────────────────────────────────── */

.ln-style-grid .ln-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.ln-grid__card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.32s ease;
}

.ln-grid__card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
}

.ln-grid__thumb-link {
    display: block;
    overflow: hidden;
    border-radius: var(--ln-radius) var(--ln-radius) 0 0;
    text-decoration: none;
}

/* Ratio-based frame — portrait photos keep enough height to read well.
   aspect-ratio / object-position are overridable from the widget controls. */
.ln-grid__thumb-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

/* Doubled class beats Elementor's `.elementor img { height: auto }` */
.ln-grid__thumb-wrap .ln-grid__thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* "Whole photo" mode: full image centered over a blurred copy of itself */
.ln-grid--fit-contain .ln-grid__thumb-wrap .ln-grid__thumb {
    object-fit: contain;
    object-position: center;
}

.ln-grid__thumb-backdrop {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.15) brightness(0.92);
    transform: scale(1.1);
}

.ln-grid__card:hover .ln-grid__thumb {
    transform: scale(1.07);
}

.ln-grid__body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ln-grid__card .ln-title {
    font-size: 1.0rem;
    flex: 1;
}

.ln-grid__footer {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ln-grid__footer .ln-meta {
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Style: Spotlight ────────────────────────────────────────────────── */

.ln-style-spotlight .ln-spotlight__hero {
    display: grid;
    grid-template-columns: 58fr 42fr;
    min-height: 400px;
    border-radius: var(--ln-radius);
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ln-spotlight__hero-img {
    background-size: cover;
    background-position: center;
    animation: ln-ken-burns 14s ease-in-out infinite alternate;
    position: relative;
}

@keyframes ln-ken-burns {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.06) translate(-1.5%, -1%); }
}

.ln-spotlight__hero-img.ln-thumb--empty {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    animation: none;
}

.ln-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* color set via dynamic CSS */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.ln-spotlight__hero-body {
    background: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ln-spotlight__hero-body::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--ln-accent);
    border-radius: 3px;
}

.ln-spotlight__hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ln-spotlight__hero-excerpt {
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0 0 16px;
}

.ln-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ln-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 6px;
    width: fit-content;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
}

.ln-spotlight__hero:hover .ln-spotlight__cta {
    opacity: 0.88;
    transform: translateX(3px);
}

/* Sub strip */
.ln-spotlight__strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ln-spotlight__mini {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ln-spotlight__mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.ln-spotlight__mini-img {
    height: 110px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.45s ease;
}

.ln-spotlight__mini:hover .ln-spotlight__mini-img {
    transform: scale(1.06);
}

.ln-spotlight__mini-body {
    padding: 12px 14px 14px;
    flex: 1;
}

.ln-spotlight__mini-title {
    font-size: 0.83rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Style: Stack ────────────────────────────────────────────────────── */

.ln-style-stack .ln-stack {
    display: flex;
    flex-direction: column;
}

.ln-stack__item {
    display: grid;
    grid-template-columns: 52px 96px 1fr 28px;
    align-items: center;
    gap: 18px;
    padding: 18px 12px 18px 0;
    border-bottom: 1px solid #f0f4f8;
    position: relative;
    transition: background 0.2s ease, padding-left 0.25s ease;
    cursor: pointer;
}

.ln-stack__item:first-child {
    border-top: 1px solid #f0f4f8;
}

.ln-stack__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ln-accent);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ln-stack__item:hover {
    padding-left: 8px;
}

.ln-stack__item:hover::before {
    transform: scaleY(1);
}

.ln-stack__num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--ln-accent);
    opacity: 0.07;
    line-height: 1;
    text-align: center;
    user-select: none;
    transition: opacity 0.22s ease;
}

.ln-stack__thumb-link {
    display: block;
    text-decoration: none;
}

.ln-stack__thumb {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ln-stack__thumb.ln-thumb--empty {
    width: 96px;
    height: 96px;
    border-radius: 8px;
}

.ln-stack__item:hover .ln-stack__thumb {
    transform: scale(1.07) rotate(-1.5deg);
}

.ln-stack__body {
    min-width: 0;
}

.ln-stack__title {
    font-size: 0.97rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ln-stack__title a:hover {
    color: var(--ln-accent);
}

.ln-stack__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.83rem;
    margin-top: 4px;
}

.ln-stack__arrow {
    font-size: 1.15rem;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    justify-self: center;
}

.ln-stack__item:hover .ln-stack__arrow {
    transform: translateX(5px);
}


/* ══════════════════════════════════════════════════════════════════════ */
/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {

    .ln-style-grid .ln-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ln-spotlight__strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Magazine: vertical stack */
    .ln-style-magazine .ln-magazine {
        grid-template-columns: 1fr;
    }

    .ln-style-magazine .ln-mag-lead {
        min-height: 280px;
    }

    /* Spotlight: hero collapses to single column */
    .ln-style-spotlight .ln-spotlight__hero {
        grid-template-columns: 1fr;
    }

    .ln-spotlight__hero-img {
        height: 220px;
        animation: none;
    }

    .ln-spotlight__hero-title {
        font-size: 1.3rem;
    }

    .ln-spotlight__hero-body {
        padding: 24px 22px;
    }

    .ln-spotlight__hero-body::before {
        top: 0;
        bottom: auto;
        left: 22px;
        right: 22px;
        width: auto;
        height: 3px;
    }

    /* Stack: hide thumbnail on small screens */
    .ln-stack__item {
        grid-template-columns: 40px 1fr 24px;
    }

    .ln-stack__thumb-link {
        display: none;
    }

    /* Grid: single column */
    .ln-style-grid .ln-grid {
        grid-template-columns: 1fr;
    }

    /* Sub strip: single column */
    .ln-spotlight__strip {
        grid-template-columns: 1fr;
    }
}
