﻿﻿ /* =========================================
   1. NDX  BLOG STYLES (BASE)
========================================= */
.ndx-blog-wrapper {
    padding: 3rem 0 4rem 0;
    width: 100%;
    margin: 0 auto;
}

/* =========================================
   2. HERO BANNER SCALING (X-AXIS STRETCH)
========================================= */
.ndx-hero-fullbleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
}

.ndx-hub-hero {
    position: relative;
    width: 100%;
    height: 490px;
    min-height: 490px;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndx-hub-hero-overlay {
    position: relative;
    text-align: left;
    padding: 0;
    max-width: 600px;
    width: 100%;
}

    .ndx-hub-hero-overlay h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        color: #002b5c;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .ndx-hub-hero-overlay p {
        font-size: 1.25rem;
        color: #333;
        margin: 0;
    }

/* Standard Laptops (<1400px) */
@media (max-width: 1400px) {
    .ndx-hub-hero {
        height: 350px;
        min-height: 350px;
    }

    .ndx-hub-hero-overlay {
        max-width: 450px;
    }

        .ndx-hub-hero-overlay h1 {
            font-size: clamp(2.5rem, 5vw, 3rem);
        }

        .ndx-hub-hero-overlay p {
            font-size: 1.05rem;
        }
}

/* Smart Stack for Small Laptops & Tablets (<1300px) */
@media (max-width: 1300px) {
    .ndx-hub-hero {
        background-image: none !important;
        height: auto;
        min-height: auto;
        padding: 2rem 1rem 4rem 1rem;
        align-items: center;
        justify-content: center;
    }

    .ndx-hub-hero-overlay {
        background: transparent;
        margin: 0 auto;
        padding: 0;
        max-width: 800px;
        text-align: center;
    }
}

/* Mobile Phones (<768px) */
@media (max-width: 768px) {
    .ndx-hero-fullbleed {
        padding-top: 4rem;
    }

    .ndx-hub-hero {
        padding-top: 0;
    }

    .ndx-hub-hero-overlay {
        padding: 1.5rem 1rem;
    }

        .ndx-hub-hero-overlay h1 {
            font-size: clamp(2rem, 8vw, 2.75rem);
        }
}

/* =========================================
   3. FALLBACK HEADER
========================================= */
.ndx-blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .ndx-blog-header h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        color: #002b5c;
    }

    .ndx-blog-header p {
        font-size: 1.25rem;
        color: #555;
        max-width: 800px;
        margin: 1rem auto 0;
    }

/* =========================================
   4. LAYOUT, SIDEBAR & MOBILE CHIPS
========================================= */
.ndx-blog-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 1800px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ndx-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    align-content: start;
    width: 100%;
}

/* Mobile-First Sidebar (Invisible Container for Chips) */
.ndx-blog-sidebar {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

.ndx-filter-desktop-content {
    display: none;
}

/* Mobile Chip Header */
.ndx-mobile-filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #002b5c;
    font-size: 1.1rem;
}

.ndx-filter-icon {
    width: 20px;
    height: 20px;
}

/* Full-Bleed Chip Wrapper */
.ndx-mobile-chip-wrapper {
    position: relative;
    padding: 0 1rem;
    width: 100vw;
    margin-left: -20px;
}

    .ndx-mobile-chip-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
        pointer-events: none;
    }

/* Mobile Swipeable Container */
.ndx-filter-mobile-chips {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.25rem 20px 0.75rem 20px;
    padding-right: 70px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .ndx-filter-mobile-chips::-webkit-scrollbar {
        display: none;
    }

/* Individual Chip Styling */
.ndx-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    background: #ffffff;
    color: #333;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .ndx-chip.active {
        background: #003366;
        color: #ffffff;
        border-color: #003366;
        box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
    }

/* Desktop Side-by-Side Overrides (>992px) */
@media (min-width: 992px) {
    .ndx-blog-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    .ndx-blog-sidebar {
        flex: 0 0 280px;
        position: sticky;
        top: 120px;
        padding: 1.5rem;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 0;
        transition: all 0.3s ease;
    }

    .ndx-blog-main {
        flex: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .ndx-mobile-chip-wrapper,
    .ndx-mobile-filter-header {
        display: none;
    }

    .ndx-filter-desktop-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ndx-desktop-title {
        margin: 0 0 0.5rem 0;
        font-size: 1.15rem;
        color: #003366;
        font-weight: 700;
    }

    .ndx-filter-opt {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 1rem;
        color: #333;
    }
}

/* =========================================
   5. BLOG CARD STYLES
========================================= */
.ndx-blog-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .ndx-blog-card.is-filtering {
        opacity: 0 !important;
        transform: scale(0.95) !important;
        pointer-events: none;
    }

    .ndx-blog-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

.ndx-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ndx-blog-card img.teaser-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 4px solid #f2a900;
}

.ndx-blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ndx-blog-card-meta {
    font-size: 0.85rem;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.ndx-blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #002b5c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ndx-blog-card-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.ndx-read-more {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0077b5;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .ndx-read-more span {
        transition: transform 0.3s ease;
    }

.ndx-blog-card:hover .ndx-read-more span {
    transform: translateX(6px);
}

/* =========================================
   6. ARTICLE DETAIL PAGE
========================================= */
.ndx-article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem 1.5rem;
}

.ndx-article-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .ndx-article-header h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        color: #002b5c;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

.ndx-article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

    .ndx-article-author img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        object-fit: cover;
    }

.ndx-article-author-info {
    text-align: left;
}

.ndx-article-author-name {
    font-weight: 600;
    color: #002b5c;
    margin: 0;
    font-size: 1.1rem;
}

.ndx-article-date {
    font-size: 0.9rem;
    color: #333333;
    margin: 0;
}

.ndx-article-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   7. WYSIWYG EDITOR OVERRIDES
========================================= */
.ndx-prose,
.ndx-prose p,
.ndx-prose span,
.ndx-prose li {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    color: #333 !important;
}

    .ndx-prose img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        display: block;
        margin: 2.5rem auto;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .ndx-prose iframe {
        max-width: 100%;
    }

    .ndx-prose h2 {
        font-size: 2.25rem !important;
        color: #002b5c !important;
        margin: 3rem 0 1.25rem 0 !important;
        font-weight: 700 !important;
    }

    .ndx-prose h3 {
        font-size: 1.75rem !important;
        color: #002b5c !important;
        margin: 2.5rem 0 1rem 0 !important;
        font-weight: 600 !important;
    }

    .ndx-prose p {
        margin-bottom: 1.75rem !important;
    }

    .ndx-prose blockquote {
        font-size: 1.35rem !important;
        border-left: 5px solid #f2a900 !important;
        padding: 1rem 1.5rem !important;
        background: #f9f9f9 !important;
        font-style: italic !important;
        margin: 2rem 0 !important;
        color: #555 !important;
    }

    .ndx-prose table {
        width: 100% !important;
        border-collapse: collapse;
        margin: 2.5rem 0;
    }

    .ndx-prose td {
        padding: 0 15px;
        vertical-align: top;
        border: none !important;
    }

@media (max-width: 768px) {
    .ndx-prose table, .ndx-prose tbody, .ndx-prose tr, .ndx-prose td {
        display: block;
        width: 100% !important;
    }

    .ndx-prose td {
        padding: 0 0 1.5rem 0;
    }
}

/* =========================================
   8. EMPTY STATE FALLBACK
========================================= */
.ndx-no-posts {
    width: 100%;
    padding: 3rem 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .ndx-no-posts.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.ndx-no-posts-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
}

.ndx-no-posts-icon {
    width: 48px;
    height: 48px;
    stroke: #003366;
    margin-bottom: 1rem;
}

.ndx-no-posts-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002b5c;
    margin-bottom: 0.75rem;
}

.ndx-no-posts-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ndx-btn-reset {
    background: #003366;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .ndx-btn-reset:hover {
        background: #002347;
        transform: translateY(-2px);
    }

/* =========================================
   9. RELATED ARTICLES
========================================= */
.ndx-related-articles {
    max-width: 1200px;
    margin: 5rem auto 2rem auto;
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.ndx-related-title {
    font-size: 2.25rem;
    color: #002b5c;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}
/* =========================================
   10. CATEGORY BADGES
========================================= */
.ndx-badge-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Specific centering for the article header */
.ndx-article-header .ndx-badge-list {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ndx-badge {
    background: #ffcc33;
    color: #003366;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 2; /* Ensures it sits above the main card link */
}

    .ndx-badge:hover {
        background: #003366;
        color: #ffffff;
        transform: translateY(-2px);
    }


/* Meta Container Flexbox */
.ndx-article-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-top: 1.5rem;
}

.ndx-article-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .ndx-article-author img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        object-fit: cover;
    }

.ndx-article-author-info p {
    margin: 0;
    line-height: 1.4;
}

.ndx-article-author-name {
    font-weight: bold;
    color: #003366;
    font-size: 1.1rem;
}

.ndx-article-author-title {
    font-size: 0.9rem;
    color: #6b7280;
}

.ndx-article-date-block .ndx-article-date {
    margin: 0;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .ndx-article-meta-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}



.ndx-prose ul {
    list-style: none;
    padding-left: 0;
}

    .ndx-prose ul li {
        position: relative;
        padding-left: 30px;
        margin-bottom: -1.25rem !important;
        line-height: 1.4 !important;
    }


        .ndx-prose ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.7rem;
            width: 20px;
            height: 20px;
            background-image: none !important;
            background-color: #002855;
            -webkit-mask-image: url('/NationalDentex/media/National-Dentex/Rebranding/Images/Icon-feather-check-circle@2x.png');
            mask-image: url('/NationalDentex/media/National-Dentex/Rebranding/Images/Icon-feather-check-circle@2x.png');
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
        }

/* GLOBAL HORIZONTAL FILTER BAR */
.ndx-global-filter-bar {
    background-color: transparent; /* Removed ugly grey background */
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    z-index: 40;
    padding: 1rem 0;
    margin-bottom: 2.5rem;
}

.ndx-filter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ndx-filter-chips {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}

    .ndx-filter-chips::-webkit-scrollbar {
        display: none;
    }

.ndx-chip {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    .ndx-chip:hover, .ndx-chip.active {
        border-color: #002855;
        color: #002855;
    }

    .ndx-chip.active {
        background-color: #002855;
        color: #ffffff;
    }

/* MAGAZINE LAYOUT STRUCTURE */
.ndx-blog-layout-magazine {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
}

.ndx-magazine-hero-block {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 70/30 Split */
    gap: 2rem;
    margin-bottom: 3rem;
}

/* LATEST NEWS HEADING (RIGHT COLUMN) */
.ndx-latest-news-heading {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111827;
    border-bottom: 2px solid #002855;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.ndx-latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* UNIVERSAL DYNAMIC CLASSES (Used by JS for Re-slotting) */
.ndx-filterable-card {
    display: flex;
}

/* RANK 1: MAIN FEATURED ARTICLE */
.ndx-is-featured {
    flex-direction: column;
    height: 100%;
}

    .ndx-is-featured .ndx-featured-img-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9; /* Fixes clipping by ensuring proportional scaling */
        overflow: hidden; /* Contains the zoom effect safely */
        border-radius: 0.75rem;
    }

    .ndx-is-featured .teaser-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    /* Restores Parallax Zoom */
    .ndx-is-featured .ndx-blog-card-link:hover .teaser-img {
        transform: scale(1.05);
    }

    .ndx-is-featured .ndx-blog-card-content {
        padding: 1.5rem 0 0 0;
    }

    .ndx-is-featured .ndx-featured-title {
        font-size: 2rem;
        font-weight: 800;
        color: #111827;
        margin: 1rem 0;
        line-height: 1.2;
    }

    .ndx-is-featured .ndx-featured-summary {
        font-size: 1.125rem;
        color: #4b5563;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

/* RANKS 2-5: MINI STACK ARTICLES */
.ndx-is-mini {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ndx-is-mini:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .ndx-is-mini .ndx-mini-card-link {
        display: flex;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
        text-decoration: none;
        width: 100%;
    }

    .ndx-is-mini .ndx-mini-img {
        width: 90px;
        height: 90px;
        border-radius: 0.5rem;
        object-fit: cover;
        flex-shrink: 0;
    }

    .ndx-is-mini .ndx-mini-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ndx-is-mini .ndx-mini-badge {
        font-size: 0.65rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #002855;
        margin-bottom: 0.25rem;
    }

    .ndx-is-mini .ndx-mini-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        line-height: 1.3;
        margin-bottom: 0.35rem;
    }

    .ndx-is-mini:hover .ndx-mini-title {
        color: #002855;
    }

    .ndx-is-mini .ndx-mini-date {
        font-size: 0.75rem;
        color: #9ca3af;
        font-weight: 500;
    }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .ndx-magazine-hero-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
/* UNIVERSAL CARD BASE */
.ndx-universal-card {
    display: flex;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ndx-card-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.ndx-card-img-wrapper {
    overflow: hidden;
    width: 100%;
}

.ndx-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Restores Parallax Zoom */
.ndx-card-link:hover .ndx-card-img {
    transform: scale(1.05);
}

/* --- RANK 1: MAIN FEATURED --- */
.ndx-is-featured {
    flex-direction: column;
    height: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
}

    .ndx-is-featured:hover {
        transform: none;
        box-shadow: none;
    }

    .ndx-is-featured .ndx-card-img-wrapper {
        aspect-ratio: 16 / 9; /* Guarantees no clipping */
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .ndx-is-featured .ndx-card-content {
        padding: 0;
    }

    .ndx-is-featured .ndx-card-title {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 1rem 0;
        color: #111827;
    }

    .ndx-is-featured .ndx-card-summary {
        font-size: 1.125rem;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .ndx-is-featured .ndx-card-meta {
        font-size: 0.875rem;
        color: #6b7280;
        font-weight: 500;
    }

    .ndx-is-featured .ndx-read-more {
        display: none;
    }

/* --- RANKS 2-5: MINI STACK --- */
.ndx-is-mini {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

    .ndx-is-mini:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .ndx-is-mini .ndx-card-link {
        display: flex;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .ndx-is-mini .ndx-card-img-wrapper {
        width: 90px;
        height: 90px;
        border-radius: 0.5rem;
        flex-shrink: 0;
    }

    .ndx-is-mini .ndx-card-content {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Hide unneeded elements in mini stack */
    .ndx-is-mini .ndx-card-summary, .ndx-is-mini .ndx-read-more, .ndx-is-mini .ndx-card-meta {
        display: none;
    }

    .ndx-is-mini .ndx-badge {
        font-size: 0.65rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #002855;
        margin-bottom: 0.25rem;
        background: transparent;
        padding: 0;
    }

        .ndx-is-mini .ndx-badge:not(:first-child) {
            display: none;
        }

    .ndx-is-mini .ndx-card-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        line-height: 1.3;
        margin: 0;
    }

    .ndx-is-mini:hover .ndx-card-title {
        color: #002855;
    }

/* --- RANK 6+: STANDARD GRID --- */
.ndx-is-grid {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    flex-direction: column;
    height: 100%;
}

    .ndx-is-grid:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .ndx-is-grid .ndx-card-img-wrapper {
        height: 220px;
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .ndx-is-grid .ndx-card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .ndx-is-grid .ndx-card-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #111827;
        margin: 0.5rem 0 1rem 0;
        line-height: 1.3;
    }

    .ndx-is-grid .ndx-card-summary {
        font-size: 0.95rem;
        color: #4b5563;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        flex: 1;
    }

    .ndx-is-grid .ndx-card-meta {
        font-size: 0.75rem;
        color: #9ca3af;
        margin-bottom: 0.5rem;
    }

    .ndx-is-grid .ndx-read-more {
        font-size: 0.875rem;
        font-weight: 700;
        color: #002855;
        margin-top: auto;
    }


.ndx-magazine-main {
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .ndx-magazine-main:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

/* BASE DESKTOP (> 1300px) - Text stays cleanly in the left white space */
.ndx-hub-hero {
    background-color: #ffffff;
    background-position: right center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: 0;
}

.ndx-hub-hero-overlay {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left; /* Left aligned for desktop */
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
}

    .ndx-hub-hero-overlay h1 {
        font-size: 3rem;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 1rem;
        color: #002855;
        max-width: 600px; /* Prevents text from hitting the graphic */
    }

    .ndx-hub-hero-overlay p {
        font-size: 1.125rem;
        color: #4b5563;
        line-height: 1.6;
        max-width: 600px;
        margin: 0;
    }

/* TABLET & MOBILE (< 1300px) - Image hides, text centers */
@media (max-width: 1300px) {
    .ndx-hub-hero {
        min-height: auto;
        padding: 4rem 1rem;
        justify-content: center;
        background-image: none !important; /* Hides the image on narrow screens */
    }

    .ndx-hub-hero-overlay {
        text-align: center; /* Center text when image is gone */
        padding: 0;
    }

        .ndx-hub-hero-overlay h1,
        .ndx-hub-hero-overlay p {
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .ndx-hub-hero-overlay h1 {
            font-size: 2.5rem;
        }
}

/* STRICT MOBILE (< 768px) - Cleans up the top gap */
@media (max-width: 768px) {
    .ndx-hero-fullbleed {
        padding-top: 0;
    }

    .ndx-hub-hero {
        padding: 3rem 1rem;
    }

    .ndx-hub-hero-overlay h1 {
        font-size: 2.2rem;
    }
}
/* 1. Hero Container  */
.ndx-hub-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: #002855;
    background-size: cover !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}



/* 2. Text Overlay Container */
.ndx-hub-hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    background: transparent;
}

    /* 3. Heading */
    .ndx-hub-hero-overlay h1 {
        font-size: clamp(2.75rem, 5vw, 4.5rem);
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.03em;
        line-height: 1.1;
        margin-bottom: 1.25rem;
        max-width: 700px;
    }

    /* 4. Subheading (Paragraph) */
    .ndx-hub-hero-overlay p {
        font-size: 1.25rem;
        color: #e2e8f0;
        line-height: 1.5;
        max-width: 600px;
        border-left: 4px solid #f2a900;
        padding-left: 1.25rem;
        margin: 0;
    }

/* 5. Responsive Adjustments for Desktop/Laptop (< 1300px) */
@media (max-width: 1300px) {
    .ndx-hub-hero {
        background-image: inherit !important;
        height: auto;
        min-height: 400px;
        padding: 4rem 1rem;
        justify-content: center;
    }

    .ndx-hub-hero-overlay {
        text-align: center;
    }

        .ndx-hub-hero-overlay h1 {
            margin-left: auto;
            margin-right: auto;
        }

        .ndx-hub-hero-overlay p {
            margin: 0 auto;
            text-align: left;
        }
}

/* 6. Mobile Adjustments (< 768px) */
@media (max-width: 768px) {
    .ndx-hub-hero {
        padding: 3rem 1rem;
    }

    .ndx-hub-hero-overlay h1 {
        font-size: 2.25rem;
    }

    .ndx-hub-hero-overlay p {
        font-size: 1.125rem;
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
}

/* 7. Filter Bar Outer Wrapper */
.ndx-global-filter-bar {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    border: none !important;
    background: #ffffff !important;
    padding: 1.25rem 0 !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
}

/* 8. Outer Filter Container (Desktop Centering) */
.ndx-filter-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

/* 9. Floating Segmented Control Track (Desktop) */
.ndx-filter-chips {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 9999px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    max-width: 100% !important;
}

/* 10. Chip Button Styles */
.ndx-chip {
    background: transparent !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.6rem 1.35rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

    .ndx-chip:hover {
        color: #002855 !important;
    }

    .ndx-chip.active {
        background-color: #002855 !important; /* Brand Navy */
        color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(0, 40, 85, 0.25) !important;
    }

/* 11. Mobile Filter Responsiveness (< 768px) */
@media (max-width: 768px) {
    .ndx-global-filter-bar {
        padding: 0.75rem 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .ndx-filter-container {
        padding: 0 !important;
        justify-content: flex-start !important;
    }

    .ndx-filter-chips {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0.5rem 1.25rem !important;
        gap: 0.5rem !important;
        margin-left: 20px;
        margin-right: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .ndx-filter-chips::-webkit-scrollbar {
            display: none;
        }

    .ndx-chip {
        scroll-snap-align: start;
        flex-shrink: 0 !important;
        background: #f1f5f9 !important;
        padding: 0.55rem 1.15rem !important;
    }

        .ndx-chip.active {
            background-color: #002855 !important;
            color: #ffffff !important;
        }
}


/*Fix For Staging */
.ndx-article-header {
    text-align: center;
    position: static;
    margin: 3rem auto;
}
/*Blog Page related hot fixes */
.navbar-brand img {
    max-height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
}


main.main-hero-section, 
.ndx-hero-fullbleed {
    padding-top: 55px !important;
    margin-top: 0 !important;
}