/* iLoveView — News blog */
:root {
    --ilv-news-brand: #ef1919;
    --ilv-news-brand-hover: #d41414;
    --ilv-news-text: #1a1c1d;
    --ilv-news-muted: #5e6a72;
    --ilv-news-border: #ececec;
    --ilv-news-bg: #f8f8ff;
    --ilv-news-card-radius: 18px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ilv-news-text);
    background: radial-gradient(circle at center, #f5f5fa 0%, #e4ebf5 40%, #f4e2f5 60%, #e2f0f9 100%);
    min-height: 100vh;
}

.ilv-news-page {
    padding-top: 88px;
    padding-bottom: 48px;
    min-height: 70vh;
}

.ilv-news-page--article {
    padding-bottom: 64px;
}

/* ── Hero ── */
.ilv-news-hero {
    position: relative;
    max-width: 1320px;
    margin: 0 auto 8px;
    padding: 28px 20px 8px;
}

.ilv-news-hero-inner {
    position: relative;
    padding: 36px 36px 40px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 55% 70% at 8% 20%, rgba(239, 25, 25, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 50% at 95% 80%, rgba(239, 25, 25, 0.05), transparent 50%),
        #fff;
    border: 1px solid rgba(229, 23, 17, 0.08);
    box-shadow: 0 10px 36px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

.ilv-news-hero-inner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    background: rgba(239, 25, 25, 0.05);
    pointer-events: none;
}

.ilv-news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ilv-news-brand);
}

.ilv-news-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ilv-news-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.ilv-news-back:hover {
    color: var(--ilv-news-brand);
}

.ilv-news-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ilv-news-hero h1 span {
    color: var(--ilv-news-brand);
}

.ilv-news-hero-lead {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ilv-news-muted);
}

.ilv-news-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Tabs ── */
.ilv-news-toolbar {
    margin-bottom: 28px;
}

.ilv-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: fit-content;
    max-width: 100%;
}

.ilv-news-tab {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ilv-news-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.ilv-news-tab:hover {
    color: var(--ilv-news-text);
    background: rgba(16, 24, 40, 0.04);
}

.ilv-news-tab.is-active {
    background: linear-gradient(180deg, #ff2a2a 0%, #ef1919 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(239, 25, 25, 0.28);
}

.ilv-news-tab:focus-visible {
    outline: 2px solid var(--ilv-news-brand);
    outline-offset: 2px;
}

/* Results loading */
.ilv-news-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Blog grid ── */
.ilv-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .ilv-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ilv-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ilv-news-grid--has-featured .ilv-news-card--featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        min-height: 320px;
    }

    .ilv-news-grid--has-featured .ilv-news-card--featured .ilv-news-card-media-wrap {
        aspect-ratio: auto;
        min-height: 100%;
        height: 100%;
    }

    .ilv-news-grid--has-featured .ilv-news-card--featured .ilv-news-card-body {
        padding: 36px 40px;
        justify-content: center;
    }

    .ilv-news-grid--has-featured .ilv-news-card--featured .ilv-news-card-title {
        font-size: 28px;
    }

    .ilv-news-grid--has-featured .ilv-news-card--featured .ilv-news-card-excerpt {
        -webkit-line-clamp: 5;
        font-size: 16px;
    }
}

.ilv-news-grid--related {
    margin-top: 8px;
}

/* ── Card ── */
.ilv-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #80808026;
    border-radius: var(--ilv-news-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ilv-news-card:hover {
    box-shadow: 0 14px 36px rgba(229, 23, 17, 0.1);
    transform: translateY(-4px);
    border-color: rgba(229, 23, 17, 0.14);
}

.ilv-news-card-media-wrap {
    display: block;
    text-decoration: none;
    background: #eef0f3;
    aspect-ratio: 1440 / 1024;
    overflow: hidden;
    position: relative;
}

.ilv-news-card-media-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.04));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.ilv-news-card:hover .ilv-news-card-media-wrap::after {
    opacity: 1;
}

.ilv-news-card-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #eef0f3;
    transition: transform 0.35s ease;
}

.ilv-news-card:hover .ilv-news-card-media {
    transform: scale(1.03);
}

.ilv-news-card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(239, 25, 25, 0.12), transparent 50%),
        linear-gradient(135deg, #f8f8ff 0%, #ebebeb 100%);
    color: rgba(239, 25, 25, 0.35);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ilv-news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.ilv-news-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.ilv-news-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ilv-news-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.ilv-news-badge--announcement { background: #f3f4f6; color: #4b5563; }
.ilv-news-badge--feature { background: #eaf3de; color: #3b6d11; }
.ilv-news-badge--improvement { background: #e6f1fb; color: #185fa5; }
.ilv-news-badge--new { background: #fff0f0; color: var(--ilv-news-brand); }

.ilv-news-date {
    font-size: 12px;
    color: var(--ilv-news-muted);
}

.ilv-news-card-title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.ilv-news-card-title a {
    color: var(--ilv-news-text);
    text-decoration: none;
    transition: color 0.15s;
}

.ilv-news-card-title a:hover {
    color: var(--ilv-news-brand);
}

.ilv-news-card-excerpt {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #667085;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ilv-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--ilv-news-brand);
    text-decoration: none;
    transition: gap 0.15s, color 0.15s;
}

.ilv-news-read-more:hover {
    color: var(--ilv-news-brand-hover);
    gap: 10px;
}

/* ── Pagination ── */
.ilv-news-pagination-wrap {
    margin-top: 36px;
    text-align: center;
}

.ilv-news-meta {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--ilv-news-muted);
}

.ilv-news-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 14px;
}

.ilv-news-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ilv-news-muted);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ilv-news-page-btn:hover:not(:disabled):not(.is-active) {
    background: #f6f6f6;
    color: var(--ilv-news-text);
}

.ilv-news-page-btn.is-active {
    background: var(--ilv-news-brand);
    border-color: var(--ilv-news-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 25, 25, 0.25);
}

.ilv-news-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Empty state ── */
.ilv-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 28px;
    background: #fff;
    border: 1px solid #80808026;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.ilv-news-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 25, 25, 0.08);
    color: var(--ilv-news-brand);
}

.ilv-news-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.ilv-news-empty p {
    margin: 0;
    color: var(--ilv-news-muted);
    font-size: 15px;
}

/* ── Bottom CTA band ── */
.ilv-news-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 32px 36px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(239, 25, 25, 0.12), transparent 55%),
        linear-gradient(135deg, #fff 0%, #fff7f7 60%, #fff 100%);
    border: 1px solid rgba(229, 23, 17, 0.12);
    box-shadow: 0 10px 30px rgba(229, 23, 17, 0.07);
}

.ilv-news-cta-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.ilv-news-cta-copy p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ilv-news-muted);
    max-width: 480px;
}

.ilv-news-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ilv-news-cta-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ilv-news-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ilv-news-cta-link:hover {
    color: var(--ilv-news-brand);
}

/* ── Article detail ── */
.ilv-news-article.ilv-news-article-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 12px 20px 0;
}

.ilv-news-article-header {
    margin-bottom: 28px;
    padding: 28px 28px 8px;
    border-radius: 24px 24px 0 0;
    background: #fff;
    border: 1px solid #80808026;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.ilv-news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ilv-news-muted);
}

.ilv-news-article-num {
    font-weight: 600;
    color: #98a2b3;
}

.ilv-news-article-header h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ilv-news-article-figure {
    margin: 0;
    padding: 0 28px;
    background: #fff;
    border-left: 1px solid #80808026;
    border-right: 1px solid #80808026;
}

.ilv-news-article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    background: #eef0f3;
    border: 1px solid var(--ilv-news-border);
}

.ilv-news-article-content {
    font-size: 16px;
    line-height: 1.75;
    color: #475467;
    padding: 28px 28px 8px;
    background: #fff;
    border-left: 1px solid #80808026;
    border-right: 1px solid #80808026;
}

.ilv-news-article-content h1,
.ilv-news-article-content h2,
.ilv-news-article-content h3,
.ilv-news-article-content h4 {
    margin: 1.5em 0 0.6em;
    font-weight: 600;
    color: var(--ilv-news-text);
    line-height: 1.35;
}

.ilv-news-article-content h2 { font-size: 1.35em; }
.ilv-news-article-content h3 { font-size: 1.15em; }

.ilv-news-article-content p {
    margin-bottom: 1em;
}

.ilv-news-article-content ul,
.ilv-news-article-content ol {
    margin-bottom: 1em;
    padding-left: 1.35em;
}

.ilv-news-article-content a {
    color: var(--ilv-news-brand);
    text-decoration: underline;
}

.ilv-news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ilv-news-article-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 28px;
    background: #fff;
    border: 1px solid #80808026;
    border-top: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.ilv-news-related {
    max-width: 1320px;
    margin: 56px auto 0;
    padding: 0 20px;
}

.ilv-news-related-head {
    margin-bottom: 20px;
}

.ilv-news-related-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* ── Footer ── */
.ilv-news-footer {
    margin-top: 24px;
    padding: 28px 20px 36px;
    border-top: 1px solid rgba(16, 24, 40, 0.06);
    background: rgba(255, 255, 255, 0.55);
}

.ilv-news-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ilv-news-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.ilv-news-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.ilv-news-footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ilv-news-muted);
    text-decoration: none;
}

.ilv-news-footer-links a:hover {
    color: var(--ilv-news-brand);
}

.ilv-news-footer-copy {
    margin: 0;
    width: 100%;
    font-size: 13px;
    color: var(--ilv-news-muted);
}

@media (max-width: 991px) {
    .ilv-news-page {
        padding-top: 80px;
        padding-bottom: 32px;
    }

    .ilv-news-hero {
        padding: 16px 14px 4px;
    }

    .ilv-news-hero-inner {
        padding: 24px 18px 28px;
        border-radius: 22px;
    }

    .ilv-news-hero h1 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .ilv-news-hero-lead {
        font-size: 15px;
    }

    .ilv-news-container {
        padding: 0 14px;
    }

    .ilv-news-toolbar {
        margin-bottom: 20px;
    }

    .ilv-news-tabs {
        width: 100%;
        border-radius: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ilv-news-tabs::-webkit-scrollbar {
        display: none;
    }

    .ilv-news-tab {
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: 13px;
    }

    .ilv-news-grid {
        gap: 16px;
    }

    .ilv-news-cta-band {
        margin-top: 32px;
        padding: 24px 18px;
        border-radius: 22px;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        gap: 18px;
    }

    .ilv-news-cta-copy h2 {
        font-size: 22px;
    }

    .ilv-news-cta-copy p:last-child {
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }

    .ilv-news-cta-actions {
        width: 100%;
    }

    .ilv-news-cta-actions .btn-primary-custom {
        width: 100%;
        max-width: 280px;
    }

    .ilv-news-article.ilv-news-article-page {
        padding: 8px 14px 0;
    }

    .ilv-news-article-header,
    .ilv-news-article-figure,
    .ilv-news-article-content,
    .ilv-news-article-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ilv-news-article-header {
        padding-top: 18px;
        border-radius: 18px 18px 0 0;
    }

    .ilv-news-article-footer {
        border-radius: 0 0 18px 18px;
        padding-bottom: 20px;
    }

    .ilv-news-related {
        padding: 0 14px;
        margin-top: 36px;
    }

    .ilv-news-footer {
        padding: 24px 14px 28px;
    }

    .ilv-news-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .ilv-news-page {
        padding-top: 76px;
    }

    .ilv-news-hero-inner {
        padding: 20px 16px 24px;
        border-radius: 18px;
    }

    .ilv-news-card-body {
        padding: 16px 16px 18px;
    }

    .ilv-news-card-title {
        font-size: 17px;
    }

    .ilv-news-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .ilv-news-cta-band {
        padding: 22px 16px;
    }

    .ilv-news-cta-actions {
        width: 100%;
    }

    .ilv-news-article-header h1 {
        font-size: 26px;
    }

    .ilv-news-article-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .ilv-news-article-footer .btn-primary-custom {
        width: 100%;
    }

    .ilv-news-pagination {
        gap: 4px;
        padding: 4px;
    }

    .ilv-news-page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .ilv-news-footer-links {
        gap: 8px 14px;
    }
}
