* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 25%, #2d1b69 75%, #4c3bae 100%);
    min-height: 100vh;
    color: #ffffff;
}
.navbar {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo-container {
    display: flex;
    flex-direction: column;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-subtitle {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: -2px;
}
.news-banner {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    max-width: 280px;
    border-radius: 12px;
    position: relative;
}
.news-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.news-label {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}
.news-text {
    font-size: 10px;
    color: #ffffff;
    line-height: 1.3;
}
.get-started-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
}
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 60px 40px;
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* LEFT SIDEBAR - CORRECTED */
.sidebar-left {
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0 35px 0 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar-left::-webkit-scrollbar {
    display: none;
}
.sidebar-section {
    margin-bottom: 40px;
}
.sidebar-title {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    padding-left: 0;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    color: #e2e8f0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    text-decoration: none;
}
.sidebar-item:hover {
    color: #ffffff;
}
.sidebar-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.sidebar-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sidebar-item-letter {
    font-weight: 700;
    color: #94a3b8;
    font-size: 16px;
    width: 20px;
    min-width: 20px;
    display: inline-block;
}

.articles-main {
    padding: 0 30px;
}
.page-header {
    text-align: center;
    margin-bottom: 50px;
}
.page-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.filter-section {
    margin-bottom: 40px;
}
.filter-section .search-bar {
    margin-top: 30px;
}
.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}
.filter-tab {
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-tab:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #ffffff;
}
.filter-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    border-color: transparent;
    color: #ffffff;
}
.search-bar {
    width: 100%;
    padding: 16px 24px;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}
.search-bar:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}
.search-bar::placeholder {
    color: #64748b;
}
.article-grid {
    display: grid;
    gap: 30px;
}
.article-card-large {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s;
    cursor: pointer;
}
.article-card-large:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}
.article-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-featured {
    background: linear-gradient(135deg, #10b981, #34d399, #059669);
    border: 1px solid #10b981;
}
.badge-category {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}
.article-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}
.article-card-description, .small-card-description {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: left !important;
}
.article-card-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.meta-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}
.verified-badge-small {
    background: rgba(99, 102, 241, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #6366f1;
    font-weight: 600;
    margin-left: auto;
}
.article-card-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.small-card {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
}
.small-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}
.small-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}
.small-card-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}
.small-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}
.sidebar-right {
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    padding-left: 35px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar-right::-webkit-scrollbar {
    display: none;
}
.sidebar-scroll-container {
    animation: autoScroll 150s ease-in-out infinite;
}
@keyframes autoScroll {
    0% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-50%);
    }
    55% {
        transform: translateY(-50%);
    }
    90% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}
.sidebar-scroll-container:hover {
    animation-play-state: paused;
}
.offer-card {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.offer-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}
.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.offer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px;
}
.sponsored-badge {
    background: linear-gradient(135deg, #10b981, #34d399, #059669);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.offer-visual {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin: 15px 0;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.offer-cta {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ════════════════════════════════════════════════════════════════
   ADD THESE TO articles-style.css
   Magazine grid layout + card style updates
════════════════════════════════════════════════════════════════ */


/* ── FILTER SECTION — search bar only, no tabs ─────────────────── */

.filter-section {
    margin-bottom: 50px;
}

/* Remove margin-top that was for the tabs */
.filter-section .search-bar {
    margin-top: 0;
}


/* ── MAGAZINE GRID ─────────────────────────────────────────────── */

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Large card — full width, already styled in main CSS */
.article-card-large {
    width: 100%;
}

/* Small card row — 2 columns */
.article-card-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}


/* ── LARGE CARD — match screenshot exactly ─────────────────────── */

.article-card-large {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s;
    cursor: pointer;
}

.article-card-large:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.article-card-large .article-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-card-large .article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-large .article-card-title a:hover {
    color: #8b5cf6;
}

.article-card-large .article-card-description {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-card-large .article-card-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Meta stat items (icon + text) */
.meta-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 14px;
}

.meta-stat svg {
    flex-shrink: 0;
    color: #94a3b8;
}


/* ── BADGES ────────────────────────────────────────────────────── */

.article-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-featured {
    background: linear-gradient(135deg, #10b981, #34d399, #059669);
    color: #ffffff;
    border: none;
}

.badge-category {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}


/* ── SMALL CARDS ───────────────────────────────────────────────── */

.small-card {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
}

.small-card:hover {
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.small-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.small-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.small-card-title a:hover {
    color: #8b5cf6;
}

.small-card-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 18px;
}

.small-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}


/* ── AJAX — "no results" state ─────────────────────────────────── */

#articles-container p {
    color: #94a3b8;
    font-size: 16px;
    text-align: center;
    padding: 40px 0;
}