    /* ==========================================================================
   PREMIUM EDITORIAL BLOG REDESIGN (FINAL)
   Author: Manav Tyagi (Liquid Identity System)
   Description: A high-fidelity, kinetic editorial layout.
   ========================================================================== */

/* 1. LAYOUT & CONTAINERS
   ========================================================================== */
.section-blog-listing {
    padding-bottom: 120px;
    background-color: var(--primary-bg);
}

.section-discovery {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.container-fluid {
    max-width: 1250px !important;
    margin: 0 auto;
    padding: 0 40px;
}

/* 2. CONTROL BAR (FILTER + SEARCH)
   ========================================================================== */
.blog-controls-sticky {
    position: sticky;
    top: 20px;
    z-index: 90;
    margin: 30px 0 60px 0;
    pointer-events: none;
}

.controls-inner {
    pointer-events: auto;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.search-compact {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    width: 250px;
}

.search-compact:focus-within {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

.search-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    transition: 0.3s;
}

.search-compact:focus-within .search-btn {
    color: var(--accent-color);
}

.search-compact input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    font-weight: 500;
}

/* 3. MASONRY GRID LAYOUT (Pinterest-style via Flex Columns)
   ========================================================================== */
.premium-blog-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   UNIFIED CARD DESIGN (MASONRY / GRID & DISCOVERY)
   ========================================================================== */
.unified-blog-card {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease;
    /* No fixed height — masonry cards size to their content */
    height: auto;
}

.unified-blog-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent-color);
    box-shadow: 0 16px 48px rgba(255, 87, 87, 0.18);
}

/* IMAGE AREA — variable aspect ratios for Pinterest effect */
.card-image-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-color);
    /* No fixed aspect-ratio: images keep their natural proportions */
}

.card-image-box img {
    width: 100%;
    height: auto;            /* Let image height be natural (masonry magic) */
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.unified-blog-card:hover .card-image-box img {
    transform: scale(1.06);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

/* CATEGORY BADGE (Top Left) */
.card-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 10, 10, 0.8);
    color: var(--accent-color);
    border: 1px solid rgba(255, 87, 87, 0.3);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* CONTENT AREA */
.card-text-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #111;
}

.card-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: left;
    color: #fff;
    /* Red title as requested */
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.unified-blog-card:hover .card-main-title {
    color: var(--accent-color);
}

.card-short-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    /* Grey excerpt */
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* FOOTER META */
.card-meta-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-author {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
}

.meta-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* DISCOVERY SLIDER (Horizontal Rail) */
/* ==========================================================================
   SPOTLIGHT SLIDER (Floating Overlay Redesign)
   ========================================================================== */
.spotlight-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 40px;
    /* Distinct gap between slides */
    padding: 0 40px 40px 40px;
    /* Padding for hover lift */

    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Transparent container */
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.spotlight-slider-track::-webkit-scrollbar {
    display: none;
}

/* Individual Slide - Floating Card */
.spotlight-slide {
    flex: 0 0 85%;
    /* Shows peeking next slide */
    scroll-snap-align: center;
    position: relative;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-slide:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

/* FULL IMAGE BACKGROUND */
.spotlight-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.spotlight-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
    mask-image: none;
    -webkit-mask-image: none;
}

.spotlight-slide:hover .spotlight-image-wrapper img {
    transform: scale(1.1);
}

/* CONTENT OVERLAY (Bottom Left) */
.spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    border-right: none;
}

.spotlight-badge {
    background: var(--accent-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spotlight-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: left;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.spotlight-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide Tags on this design for cleaner look, or style minimally */
.spotlight-tags {
    display: none;
}

/* ACTIONS - Floating separate from content flow */
.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.spotlight-btn-primary {
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 100px;
    /* Capsule */
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.spotlight-btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

/* NAV - Absolute Positioned on Card */
.spotlight-nav {
    position: absolute;
    bottom: 60px;
    right: 60px;
    display: flex;
    gap: 15px;
    z-index: 4;
}

.s-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.s-nav-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive */

.spotlight-slide:hover .spotlight-image-wrapper img {
    transform: scale(1.05);
    /* Slow cinemagraphic zoom */
}

/* Responsive */

/* 7. LOADER & UTILS
   ========================================================================== */
.loader-wrapper {
    display: none;
    justify-content: center;
    padding: 50px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent-color) !important;
}

/* 8. RESPONSIVE — MASONRY BREAKPOINTS
   ========================================================================== */

@media (max-width: 640px) {

    .section-blog-listing { padding-bottom: 60px; }

    .container-fluid {
        padding: 0;
        max-width: 100% !important;
    }

    /* ── Filter bar → vertical stack: pills on top, search below ── */
    .blog-controls-sticky {
        margin: 12px 0 28px;
        top: 8px;
        padding: 0;
    }

    .controls-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Pill row — horizontal scroll strip */
    .filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 16px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* Fade-out right edge */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
    .filter-pills::-webkit-scrollbar { display: none; }

    .filter-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 9px 20px;
        border-radius: 30px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        white-space: nowrap;
    }
    .filter-btn.active { border-color: transparent; }

    /* Search bar — full width below the pills */
    .search-compact {
        width: calc(100% - 32px);
        margin: 4px 16px 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* ── Blog grid → horizontal snap-scroll slider ── */
    .premium-blog-grid {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0 0 16px 0;
        align-items: stretch;
    }
    .premium-blog-grid::-webkit-scrollbar { display: none; }

    /* Single masonry column = horizontal slide rail */
    .masonry-column {
        display: flex;
        flex-direction: row;   /* override column → row */
        flex-wrap: nowrap;
        gap: 0;
        flex: none;
        align-items: stretch;
        min-width: min-content;
    }

    /* Every blog card = one slide */
    .unified-blog-card {
        flex: 0 0 82vw;
        width: 82vw;
        max-width: 340px;
        scroll-snap-align: center;
        margin: 0 8px;
        border-radius: 20px;
    }
    .masonry-column .unified-blog-card:first-child { margin-left: calc(9vw - 8px); }
    .masonry-column .unified-blog-card:last-child  { margin-right: calc(9vw - 8px); }

    /* Fix image height for uniform slide look */
    .card-image-box img {
        height: 180px;
        object-fit: cover;
    }

    /* Disable hover lift on touch */
    .unified-blog-card:hover { transform: none; }

    /* ── Dot Indicators ── */
    .blog-grid-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        padding-bottom: 8px;
    }

    .blog-grid-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        padding: 0;
        transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
        flex-shrink: 0;
    }

    .blog-grid-dot.active {
        background: var(--accent-color, #ff5757);
        box-shadow: 0 0 8px var(--accent-color, #ff5757);
        width: 22px;
        border-radius: 4px;
        border-color: transparent;
    }
}

/* ==========================================================================
   LATEST HEADLINES TICKER STYLES
   ========================================================================== */
.latest-drop-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: -35px auto 0 auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 0 40px;
}

.ticker-container {
    display: flex;
    align-items: stretch;
    height: 60px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
}

/* 1. LABEL (Left) */
.ticker-label {
    background: var(--accent-color);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 35px 0 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    min-width: 180px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.ticker-label i {
    font-size: 1.1rem;
}

/* 2. CONTENT (Middle) */
.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    padding-left: 20px;
}

/* Pause animation on hover */
.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 60px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--accent-color);
}

.ticker-thumb {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-text {
    font-weight: 700;
    font-size: 0.95rem;
}

.ticker-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
    font-weight: 600;
    position: relative;
    top: 1px;
}

/* 3. BUTTON (Right) */
.ticker-btn {
    width: 60px;
    height: 100%;
    /* Ensure full height */
    background: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: filter 0.3s;
    z-index: 2;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent collapsing */
}

.ticker-btn:hover {
    filter: brightness(1.1);
}

/* Responsive */

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
