:root {
    /* "Midnight Architecture" Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F6F8;
    --text-primary: #1A1A1B;
    --text-secondary: #424242;
    --accent-blue: #0061FE;
    --accent-dark: #0F172A;
    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 40px rgba(0, 97, 254, 0.1);

    /* System Fonts Stack (Zero CDN) */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Utilities --- */
.section-spacer {
    padding: 6rem 0;
    /* Exact 6rem vertical spacing */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & System Console --- */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.header-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.system-console {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 0.8rem;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.console-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    /* Green */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.console-log {
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
    letter-spacing: -0.02em;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.headshot {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.headshot:hover {
    filter: grayscale(0%);
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s;
}

.resume-btn.unlocked {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 97, 254, 0.3);
}

/* --- Professional Experience (Timeline) --- */
.timeline-section {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-align: center;
}

/* --- Haywire Thread Timeline (Snake Layout) --- */
.timeline-section {
    background: var(--bg-secondary);
    overflow: hidden;
    /* For connector clipping */
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The Thread (Continuous Line) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--border-color);
    margin-left: -2px;
    border-radius: 4px;
    /* Dashed or "Thread" look */
    background-image: linear-gradient(to bottom, var(--accent-blue) 50%, transparent 50%);
    background-size: 4px 20px;
    opacity: 0.3;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 0;
    /* Connected tightly */
    padding: 2rem 3rem;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 4rem;
}

/* The Thread Nodes */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--accent-blue);
    border-radius: 50%;
    top: 2.5rem;
    z-index: 10;
    transition: transform 0.3s ease, background-color 0.3s;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

/* Hover Effect on Nodes */
.timeline-item:hover::after {
    transform: scale(1.5);
    background: var(--accent-blue);
}

/* Organic "Haywire" Curves - Connecting Lines */
/* We simulate threads diverging from the center */
.timeline-item::before {
    content: '';
    position: absolute;
    height: 2px;
    background: var(--accent-blue);
    top: 3rem;
    width: 3rem;
    opacity: 0.5;
    transition: width 0.3s;
}

.timeline-item.left::before {
    right: 0;
}

.timeline-item.right::before {
    left: 0;
}

.timeline-item:hover::before {
    width: 4rem;
    opacity: 1;
}

/* Content Box */
.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- Node Types (Work vs Honours) --- */
.timeline-item.honour .timeline-content {
    border-color: #F59E0B;
    /* Amber/Gold */
    background: #FFFBEB;
}

.timeline-item.honour::after {
    border-color: #F59E0B;
    background: #F59E0B;
}

.timeline-item.honour .timeline-role {
    color: #B45309;
}

/* Typography */
.timeline-role {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    display: block;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: block;
    font-family: monospace;
}

/* Icon for Honours */
.timeline-icon-badge {
    position: absolute;
    top: -15px;
    font-size: 1.5rem;
}

.timeline-item.left .timeline-icon-badge {
    right: 10px;
}

.timeline-item.right .timeline-icon-badge {
    left: 10px;
}

/* --- Strategic Showcases (Spotlight) --- */
.spotlight-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: transform 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.spotlight-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-header {
    margin-bottom: 2rem;
}

.spotlight-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.spotlight-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.spotlight-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.challenge-solution {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cs-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.4rem 0 0 0;
}

.cs-label {
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    padding-bottom: 2px;
}

.cs-label.problem {
    color: #DC2626;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.cs-label.solution {
    color: #059669;
    border-bottom: 2px solid rgba(5, 150, 105, 0.3);
}

.spotlight-metrics {
    display: flex;
    gap: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spotlight-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.spotlight-tech span {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.spotlight-visual {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.visual-abstract {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.circle.c1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.15);
    top: -50px;
    right: -50px;
}

.circle.c2 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.15);
    bottom: -50px;
    left: -50px;
}

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    width: 280px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.spotlight-card:hover .card-glass {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    border-radius: 4px;
}

.code-line.w80 {
    width: 80%;
}

.code-line.w60 {
    width: 60%;
}

.code-line.w40 {
    width: 40%;
}

.code-line.w90 {
    width: 90%;
}

.status-badge {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .spotlight-card {
        grid-template-columns: 1fr;
    }

    .spotlight-visual {
        height: 300px;
    }
}

/* --- Gallery Section --- */
.gallery-section {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- Chatbox --- */
.chat-window {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 1500;
    overflow: hidden;
    transition: transform 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chat-window.minimized {
    height: 60px;
}

.chat-header {
    padding: 1rem;
    background: var(--accent-dark);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 400px;
    padding: 1rem;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
    font-family: inherit;
}

/* Chat Messages */
.message {
    margin-bottom: 1rem;
    max-width: 85%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.message.user {
    background: var(--accent-blue);
    color: white;
    margin-left: auto;
}

.message.ai {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .hero-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
        /* Align with line */
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .header-main {
        padding: 0 1rem;
    }

    .system-console {
        display: none;
        /* Hide complex console on mobile for space */
    }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.social-link {
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.social-link:hover {
    color: var(--accent-blue);
}

.skills-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.skill-category h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-secondary);
    cursor: default;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

.skill-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Tabbed Interface for Skills --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-family: var(--font-stack);
}

.tab-btn:hover {
    color: var(--accent-blue);
    background: rgba(0, 97, 254, 0.05);
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.skills-tab-content {
    min-height: 150px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hover Reveal Tooltips --- */
.hover-reveal {
    border-bottom: 1px dashed var(--accent-blue);
    cursor: help;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
}

.hover-reveal:hover::after {
    content: attr(data-detail);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #1e293b;
    color: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    white-space: normal;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFade 0.2s forwards;
}

.hover-reveal:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
    /* Arrow pointing down? No, pointing up to tooltip? Wait tooltip is above. Arrow should point down. */
    border-color: #1e293b transparent transparent transparent;
    /* Actually bottom 120% is above. So arrow should be at bottom of tooltip. */
    /* Let's simplify and just do the box first or fix arrow logic */
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translate(-50%, 5px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.popover-card {
    position: fixed;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    width: 320px;
    display: flex;
    flex-direction: column;
    /* maxHeight set dynamically in main.js */
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    font-family: var(--font-stack);
    transform: translateY(10px);
}

.popover-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.popover-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popover-header h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
}

.popover-badge {
    font-size: 0.65rem;
    opacity: 0.7;
    color: var(--accent-blue);
    font-weight: 500;
}

.popover-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.popover-footer {
    padding: 0.8rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

.popover-footer a {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    display: block;
}

#popover-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .skills-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Honours Section --- */
.honours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.honour-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.honour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.honour-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.honour-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Articles Section --- */
.articles-section {
    background: var(--bg-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    /* vital for equal height */
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Fill the grid cell */
    text-align: left;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.article-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 1px;
}

.article-card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 700;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Vertical Scroll Container Styles */
.scroll-container {
    display: block;
    /* Normal stacking */
    max-height: 500px;
    /* Fixed height for scrolling */
    overflow-y: auto;
    /* Vertical scroll */
    overflow-x: hidden;
    padding-right: 1rem;
    /* Space for scrollbar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    background: #fafafa;
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
    /* Vertical scrollbar width */
}

.scroll-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Ensure cards take full width */
.scroll-container .spotlight-card {
    width: 100%;
    margin-bottom: 2rem;
    min-width: 0;
}

.scroll-container .article-card {
    width: 100%;
    margin-bottom: 1rem;
    display: block;
    min-width: 0;
}