@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

.news-magazine {
    --news-navy: #0F2A35;
    --news-blue: #0A6EF1;
    --news-orange: #E68C12;
    --news-paper: #F6F7F9;
    --news-ink: var(--news-navy);
    --news-muted: #5d6970;
    --news-line: rgba(15, 42, 53, 0.08); /* softer line */
    --news-panel: #ffffff;
    --shadow-soft: 0 12px 32px rgba(15, 42, 53, 0.04);
    --shadow-hover: 0 20px 48px rgba(15, 42, 53, 0.08);
    
    background: var(--news-paper);
    color: var(--news-ink);
    font-family: 'Inter', sans-serif;
}

.news-magazine a {
    color: inherit !important;
    text-decoration: none;
}

.news-magazine img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-magazine h1,
.news-magazine h2,
.news-magazine h3 {
    color: var(--news-ink) !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 800;
}

.news-magazine p {
    color: var(--news-muted);
    letter-spacing: 0;
    line-height: 1.7;
}

/* ==========================================================================
   Hero Section (High-Contrast Navy)
   ========================================================================== */
.news-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--news-navy);
    color: #ffffff;
    z-index: 10;
}

/* Subtle glassmorphic aurora behind the hero */
.news-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(10, 110, 241, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Fading gradient line instead of heavy orange border */
.news-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 110, 241, 0.3), transparent);
}

.news-hero .container {
    position: relative;
    z-index: 1;
}

.news-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 40px;
    align-items: end;
}

.news-kicker {
    color: var(--news-orange) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-hero h1 {
    color: #ffffff !important;
    font-size: clamp(42px, 5vw, 72px) !important;
    max-width: 930px;
    margin: 0 0 20px;
}

.news-hero__copy > p:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 19px;
    max-width: 760px;
    margin: 0;
}

/* Glassmorphic Search Bar */
.news-search {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    padding: 24px;
}

.news-search__label {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-search__control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 8px 8px 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.news-search__control:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-search__control i {
    color: rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}

.news-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: 0;
}

.news-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.news-search button {
    flex: 0 0 auto;
    background: var(--news-blue);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 14px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-search button:hover,
.news-search button:focus {
    background: var(--news-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 140, 18, 0.35);
}

.news-search__clear {
    color: rgba(255, 255, 255, 0.6) !important;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
    transition: color 0.2s ease;
}

.news-search__clear:hover {
    color: #fff !important;
}


/* ==========================================================================
   Editorial Section (Bento Box Grids)
   ========================================================================== */
.news-editorial {
    padding: 64px 0 40px;
}

.news-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: stretch;
}

.feature-stack {
    display: grid;
    gap: 24px;
}

/* Card Styling - Pure White on Paper */
.feature-card,
.news-card {
    background: var(--news-panel);
    border: 1px solid rgba(15, 42, 53, 0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover,
.news-card:hover {
    border-color: rgba(10, 110, 241, 0.15);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feature-card__image,
.news-card__image {
    display: block;
    overflow: hidden;
    background: #e8edf1;
}

.feature-card__image img,
.news-card__image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover img,
.news-card:hover img {
    transform: scale(1.03);
}

/* Lead Feature Card */
.feature-card--lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.feature-card--lead .feature-card__image {
    aspect-ratio: 16 / 9;
}

.feature-card--lead .feature-card__body {
    padding: 32px;
}

.feature-card--lead h2 {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    margin: 16px 0;
}

.feature-card--lead h2 a {
    transition: color 0.2s ease;
}
.feature-card--lead:hover h2 a {
    color: var(--news-blue) !important;
}

.feature-card--lead p {
    font-size: 16px;
    margin: 0 0 24px;
}

/* Compact Feature Card (Sidebar) */
.feature-card--compact {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 140px;
}

.feature-card--compact .feature-card__image {
    min-height: 100%;
}

.feature-card--compact .feature-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card--compact h3 {
    font-size: 20px !important;
    margin: 10px 0 0;
    transition: color 0.2s ease;
}

.feature-card--compact:hover h3 a {
    color: var(--news-blue) !important;
}

/* Tags */
.news-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    background: rgba(10, 110, 241, 0.08);
    color: var(--news-blue);
    border-radius: 6px;
    display: inline-flex;
    font-size: 11px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1;
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-card:hover .news-tag,
.feature-card:hover .news-tag {
    background: var(--news-orange);
    color: #fff;
}


/* Meta Data (Micro-Accents) */
.news-meta {
    color: var(--news-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
}

.news-meta span + span {
    position: relative;
}

.news-meta span + span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    width: 4px;
    height: 4px;
    background: var(--news-orange); /* Subtle Orange Dot */
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Read More Link with Hover Underline Animation */
.news-read-link {
    align-items: center;
    color: var(--news-blue) !important;
    display: inline-flex;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    padding-bottom: 2px;
}

.news-read-link i {
    transition: transform 0.2s ease;
}

.news-read-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--news-orange);
    transition: width 0.3s ease;
}

.feature-card:hover .news-read-link::after,
.news-card:hover .news-read-link::after,
.news-read-link:hover::after {
    width: 100%;
}

.news-read-link:hover i {
    transform: translateX(4px);
    color: var(--news-orange);
}


/* ==========================================================================
   Archive Grid
   ========================================================================== */
.news-archive {
    padding: 40px 0 60px;
}

.news-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 32px;
}

.news-section-heading h2 {
    font-size: clamp(32px, 4vw, 42px) !important;
    margin: 0;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.news-card__image {
    aspect-ratio: 3 / 2;
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.news-card h3 {
    font-size: 22px !important;
    margin: 16px 0 12px;
    transition: color 0.2s ease;
}

.news-card:hover h3 a {
    color: var(--news-blue) !important;
}

.news-card p {
    flex: 1;
    font-size: 15px;
    margin: 0 0 20px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.news-empty {
    background: #fff;
    border: 1px dashed rgba(15, 42, 53, 0.2);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.news-empty h2 {
    font-size: clamp(30px, 4vw, 46px) !important;
    margin: 0 0 16px;
}

.news-empty p:not(.news-kicker) {
    margin-bottom: 24px;
    font-size: 16px;
}

/* ==========================================================================
   Pagination Redesign (Modern Pills)
   ========================================================================== */
.news-pager-wrap {
    padding: 20px 0 80px;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-pagination li {
    margin: 0;
}

.news-pagination a,
.news-pagination span {
    align-items: center;
    background: #fff;
    border: 1px solid transparent; /* No harsh borders */
    border-radius: 12px; /* Pill shape */
    color: var(--news-navy) !important;
    display: inline-flex;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(15, 42, 53, 0.04);
    transition: all 0.2s ease;
}

.news-pagination a:hover,
.news-pagination a:focus {
    background: #fff;
    border-color: var(--news-orange);
    color: var(--news-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 140, 18, 0.15);
}

.news-pagination .is-active a {
    background: var(--news-blue);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(10, 110, 241, 0.25);
}

.news-pagination .is-disabled span {
    background: transparent;
    box-shadow: none;
    color: rgba(15, 42, 53, 0.3) !important;
}

/* ==========================================================================
   SEO Footer
   ========================================================================== */
.news-seo {
    background: #ffffff;
    border-top: 1px solid var(--news-line);
    padding: 60px 0 80px;
}

.news-seo__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.news-seo h2 {
    font-size: clamp(28px, 4vw, 42px) !important;
    margin: 0 0 20px;
}

.news-seo p {
    color: var(--news-muted);
    font-size: 16px;
    line-height: 1.8;
}

.news-seo a {
    color: var(--news-blue) !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(10, 110, 241, 0.3);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.news-seo a:hover,
.news-seo a:focus {
    color: var(--news-orange) !important;
    text-decoration-color: var(--news-orange);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199px) {
    .feature-card--compact {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .feature-card--compact h3 {
        font-size: 18px !important;
    }
}

@media (max-width: 991px) {
    .news-hero {
        padding: 100px 0 60px;
    }

    .news-hero__grid,
    .news-feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-card--compact {
        grid-template-columns: 1fr;
    }

    .feature-card--compact .feature-card__image {
        aspect-ratio: 16 / 10;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .news-hero {
        padding: 90px 0 40px;
    }

    .news-hero h1 {
        font-size: 38px !important;
    }

    .news-hero__copy > p:last-child {
        font-size: 16px;
    }

    .news-hero__copy {
        border-left: 0;
        border-top: 3px solid var(--news-blue);
        padding-left: 0;
        padding-top: 16px;
    }

    .news-search__control {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .news-search__control i {
        align-self: center;
    }

    .news-search input {
        flex: 1 1 calc(100% - 40px);
        min-height: 42px;
    }

    .news-search button {
        width: 100%;
    }

    .news-editorial {
        padding-top: 40px;
    }

    .feature-stack,
    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .feature-card--lead .feature-card__body,
    .news-card__body,
    .feature-card--compact .feature-card__body {
        padding: 24px;
    }

    .feature-card--lead h2 {
        font-size: 31px !important;
    }

    .news-section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .news-hero h1 {
        font-size: 32px !important;
    }

    .feature-card--lead h2,
    .news-empty h2 {
        font-size: 26px !important;
    }

    .news-card h3 {
        font-size: 20px !important;
    }
}

/* ==========================================================================
   Live Search Dropdown
   ========================================================================== */
.news-search-wrap {
    position: relative;
}

.news-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 8px;
    background: rgba(15, 42, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.nlr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.nlr-item:last-of-type {
    border-bottom: 0;
}

.nlr-item:hover,
.nlr-item.is-focused {
    background: rgba(10, 110, 241, 0.15);
    padding-left: 24px;
}

.nlr-arrow {
    flex: 0 0 auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.15s ease, transform 0.15s ease;
}

.nlr-item:hover .nlr-arrow,
.nlr-item.is-focused .nlr-arrow {
    color: var(--news-orange);
    transform: translateX(2px);
}

.nlr-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    min-width: 0;
}

.nlr-empty {
    padding: 24px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nlr-footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
