/* ============================================
   NEWS LANDING PAGE — RevvedUpCars.com
   Version: 1.0.0
   ============================================ */

/* ── Variables ── */
.news-landing {
    --nl-accent: #C5D631;
    --nl-accent-dark: #a8b82a;
    --nl-dark: #1a1f1a;
    --nl-dark-2: #222722;
    --nl-text: #1a1f1a;
    --nl-text-2: #555;
    --nl-text-muted: #888;
    --nl-bg: #f4f6f5;
    --nl-bg-card: #ffffff;
    --nl-border: #e5e8e5;
    --nl-radius: 12px;
    --nl-radius-sm: 8px;
    --nl-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --nl-shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
    --nl-font: "DM Sans", "Inter", sans-serif;
    --nl-transition: 0.25s ease;
}

[data-theme="dark"] .news-landing {
    --nl-text: #e5e5e5;
    --nl-text-2: #bbb;
    --nl-text-muted: #888;
    --nl-bg: #121212;
    --nl-bg-card: #1e1e1e;
    --nl-border: #333;
    --nl-shadow: 0 2px 8px rgba(0,0,0,0.2);
    --nl-shadow-hover: 0 12px 32px rgba(0,0,0,0.4);
}

.news-landing {
    background: var(--nl-bg);
    min-height: 100vh;
    font-family: var(--nl-font);
}


/* ============================================
   1. HERO STORY
   ============================================ */

.news-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.news-hero__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.news-hero__image {
    position: absolute;
    inset: 0;
}

.news-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-hero:hover .news-hero__image img {
    transform: scale(1.03);
}

.news-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

.news-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 0;
    z-index: 2;
}

.news-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 8px;
    animation: nl-pulse 2s ease-in-out infinite;
}

@keyframes nl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.news-hero__cat {
    display: inline-flex;
    align-items: center;
    background: var(--nl-accent);
    color: var(--nl-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-hero__title {
    font-family: var(--nl-font);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 16px 0 12px;
    max-width: 750px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.news-hero__excerpt {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 600px;
}

.news-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.news-hero__meta i {
    margin-right: 4px;
}


/* ============================================
   2. FEATURED GRID (4 cards)
   ============================================ */

.news-featured {
    padding: 32px 0 0;
}

.news-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.news-featured__card {
    position: relative;
    border-radius: var(--nl-radius);
    overflow: hidden;
    height: 260px;
    background: var(--nl-dark);
}

.news-featured__card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.news-featured__card-img {
    position: absolute;
    inset: 0;
}

.news-featured__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-featured__card:hover .news-featured__card-img img {
    transform: scale(1.06);
}

.news-featured__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

.news-featured__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.news-featured__card-cat {
    display: inline-block;
    background: var(--nl-accent);
    color: var(--nl-dark);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-featured__card-title {
    font-family: var(--nl-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.news-featured__card-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}


/* ============================================
   3. TODAY'S HEADLINES
   ============================================ */

.news-today {
    padding: 40px 0 0;
}

.news-today__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--nl-border);
    position: relative;
}

.news-today__header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--nl-accent);
}

.news-today__title {
    font-family: var(--nl-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nl-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-today__title svg {
    color: var(--nl-accent);
    flex-shrink: 0;
}

.news-today__date {
    font-size: 13px;
    color: var(--nl-text-muted);
    font-weight: 500;
}

.news-today__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-today__card {
    background: var(--nl-bg-card);
    border-radius: var(--nl-radius);
    overflow: hidden;
    box-shadow: var(--nl-shadow);
    transition: transform var(--nl-transition), box-shadow var(--nl-transition);
}

.news-today__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nl-shadow-hover);
}

.news-today__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-today__card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

[data-theme="dark"] .news-today__card-img {
    background: #2a2a2a;
}

.news-today__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-today__card:hover .news-today__card-img img {
    transform: scale(1.05);
}

.news-today__card-time {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.news-today__card-body {
    padding: 14px;
}

.news-today__card-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nl-accent-dark);
    margin-bottom: 4px;
}

[data-theme="dark"] .news-today__card-cat {
    color: var(--nl-accent);
}

.news-today__card-title {
    font-family: var(--nl-font);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nl-text);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-today__card:hover .news-today__card-title {
    color: var(--nl-accent-dark);
}

[data-theme="dark"] .news-today__card:hover .news-today__card-title {
    color: var(--nl-accent);
}

.news-today__card-author {
    font-size: 11px;
    color: var(--nl-text-muted);
}


/* ============================================
   4. MAIN GRID + SIDEBAR
   ============================================ */

.news-main {
    padding: 40px 0 60px;
}

.news-main__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.news-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--nl-border);
    position: relative;
}

.news-main__header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--nl-accent);
}

.news-main__heading {
    font-family: var(--nl-font);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nl-text);
    margin: 0;
}

.news-main__count {
    font-size: 13px;
    color: var(--nl-text-muted);
    font-weight: 500;
}


/* ── Article Cards ── */

.news-main__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* First 2 cards span full width on page 1 */
.news-card--wide {
    grid-column: span 1;
}

.news-card {
    background: var(--nl-bg-card);
    border-radius: var(--nl-radius);
    overflow: hidden;
    box-shadow: var(--nl-shadow);
    transition: transform var(--nl-transition), box-shadow var(--nl-transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nl-shadow-hover);
}

.news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

[data-theme="dark"] .news-card__image {
    background: #2a2a2a;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__body {
    padding: 18px;
}

.news-card__cat {
    display: inline-block;
    background: rgba(197, 214, 49, 0.15);
    color: var(--nl-accent-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

[data-theme="dark"] .news-card__cat {
    background: rgba(197, 214, 49, 0.1);
    color: var(--nl-accent);
}

.news-card__title {
    font-family: var(--nl-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nl-text);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card__title {
    color: var(--nl-accent-dark);
}

[data-theme="dark"] .news-card:hover .news-card__title {
    color: var(--nl-accent);
}

.news-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--nl-text-2);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--nl-text-muted);
}

.news-card__author {
    font-weight: 600;
}


/* ── Empty state ── */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--nl-text-muted);
    font-size: 1.1rem;
}


/* ============================================
   5. SIDEBAR WIDGETS
   ============================================ */

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-widget {
    background: var(--nl-bg-card);
    border-radius: var(--nl-radius);
    padding: 20px;
    box-shadow: var(--nl-shadow);
    border: 1px solid var(--nl-border);
}

.news-widget__title {
    font-family: var(--nl-font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nl-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nl-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-widget__title svg {
    color: var(--nl-accent);
    flex-shrink: 0;
}


/* ── Trending Widget ── */

.news-trending__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-trending__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--nl-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background var(--nl-transition);
}

.news-trending__item:hover {
    background: rgba(197, 214, 49, 0.08);
}

.news-trending__rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--nl-accent);
    color: var(--nl-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.news-trending__img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

[data-theme="dark"] .news-trending__img {
    background: #2a2a2a;
}

.news-trending__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-trending__info {
    flex: 1;
    min-width: 0;
}

.news-trending__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--nl-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-trending__meta {
    font-size: 11px;
    color: var(--nl-text-muted);
    margin-top: 2px;
}


/* ── Newsletter Widget ── */

.news-widget--newsletter {
    background: linear-gradient(135deg, var(--nl-dark) 0%, var(--nl-dark-2) 100%);
    border-color: transparent;
    color: #fff;
}

.news-widget--newsletter .news-widget__title {
    color: #fff;
    border-color: var(--nl-accent);
}

.news-widget__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 16px;
}

.news-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-newsletter__form input[type="email"],
.news-widget--newsletter .newsletter-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--nl-radius-sm);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color var(--nl-transition);
    box-sizing: border-box;
}

.news-newsletter__form input[type="email"]::placeholder,
.news-widget--newsletter .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.news-newsletter__form input[type="email"]:focus,
.news-widget--newsletter .newsletter-input:focus {
    border-color: var(--nl-accent);
}

.news-newsletter__form button,
.news-widget--newsletter .newsletter-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--nl-accent);
    color: var(--nl-dark);
    border: none;
    border-radius: var(--nl-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--nl-transition), transform var(--nl-transition);
}

.news-newsletter__form button:hover,
.news-widget--newsletter .newsletter-btn:hover {
    background: var(--nl-accent-dark);
    transform: translateY(-1px);
}

.news-widget__note {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    text-align: center;
}


/* ── Authors Widget ── */

.news-authors__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-author__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--nl-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background var(--nl-transition);
}

.news-author__card:hover {
    background: rgba(197, 214, 49, 0.08);
}

.news-author__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.news-author__info {
    flex: 1;
    min-width: 0;
}

.news-author__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nl-text);
    line-height: 1.2;
}

.news-author__role {
    display: block;
    font-size: 11px;
    color: var(--nl-text-muted);
}

.news-author__count {
    font-size: 11px;
    color: var(--nl-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}


/* ============================================
   6. PAGINATION
   ============================================ */

.news-pagination {
    margin-top: 40px;
    text-align: center;
}

.news-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.news-pagination .page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--nl-bg-card);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-sm);
    color: var(--nl-text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--nl-transition);
}

.news-pagination .page-numbers a:hover {
    border-color: var(--nl-accent);
    color: var(--nl-accent-dark);
}

.news-pagination .page-numbers span.current {
    background: var(--nl-dark);
    border-color: var(--nl-dark);
    color: #fff;
}

[data-theme="dark"] .news-pagination .page-numbers span.current {
    background: var(--nl-accent);
    border-color: var(--nl-accent);
    color: var(--nl-dark);
}

.news-pagination .page-numbers .next,
.news-pagination .page-numbers .prev {
    padding: 0 16px;
}

.news-pagination .page-numbers .next:hover,
.news-pagination .page-numbers .prev:hover {
    border-color: var(--nl-accent);
    color: var(--nl-accent-dark);
}


/* ============================================
   7. RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .news-main__layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .news-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-featured__card {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .news-hero {
        height: 400px;
    }
    
    .news-hero__title {
        font-size: 1.8rem;
    }
    
    .news-hero__excerpt {
        display: none;
    }
    
    .news-main__layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-widget--newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .news-hero {
        height: 340px;
    }
    
    .news-hero__content {
        padding: 24px 0;
    }
    
    .news-hero__title {
        font-size: 1.4rem;
    }
    
    .news-hero__meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .news-featured__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .news-featured__card {
        height: 180px;
    }
    
    .news-featured__card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .news-featured__card-content {
        padding: 12px;
    }
    
    .news-today__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .news-today__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .news-main__grid {
        grid-template-columns: 1fr;
    }
    
    .news-card--wide {
        grid-column: span 1;
    }
    
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    
    .news-widget--newsletter {
        grid-column: span 1;
    }
    
    .news-main__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        height: 280px;
    }
    
    .news-hero__title {
        font-size: 1.2rem;
    }
    
    .news-featured__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .news-featured__card {
        height: 150px;
    }
    
    .news-featured__card-cat {
        display: none;
    }
    
    .news-featured__card-title {
        font-size: 0.8rem;
    }
    
    .news-featured__card-content {
        padding: 10px;
    }
    
    .news-today__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* ============================================
   8. OVERRIDE GLOBAL LINK COLORS
   ============================================ */

.news-landing a {
    color: inherit;
}

.news-landing .news-today__card-link {
    color: inherit;
}

.news-landing .news-today__card-title {
    color: var(--nl-text);
}
