/* ============================================
   BESTCLASSTAKER BLOG SYSTEM - COMPLETE CSS
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    /* Colors - Dark Purple Theme */
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #3b82f6;
    --accent: #ec4899;

    /* Backgrounds */
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-secondary: #16162a;
    --bg-hover: #242442;

    /* Text */
    --text-heading: #f8fafc;
    --text-body: #d1d5db;
    --text-secondary: rgba(209, 213, 219, 0.7);
    --text-muted: rgba(209, 213, 219, 0.5);

    /* Borders */
    --border-color: rgba(139, 92, 246, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--primary-light);
    font-weight: 500;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-2xl);
    align-items: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-heading), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-name {
    color: var(--primary-light);
    font-weight: 600;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.hero-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.9rem;
}

/* Process Bar */
.process-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.step-label {
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Key Takeaways */
.key-takeaways {
    max-width: 1200px;
    margin: var(--spacing-2xl) auto;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
}

.takeaways-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.takeaways-header h2 {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 700;
}

.takeaways-icon {
    font-size: 1.5rem;
}

.takeaways-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.takeaways-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== BLOG PAGE LAYOUT ===== */
.blog-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
}

.main-content {
    min-width: 0;
}

/* ===== ARTICLE CONTENT ===== */
.blog-article {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: var(--spacing-2xl);
}

.article-body {
    color: var(--text-body);
    line-height: 1.8;
}

.article-body h2 {
    color: var(--text-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
    color: var(--primary-light);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-body p {
    margin-bottom: var(--spacing-lg);
}

.article-body strong {
    color: var(--text-heading);
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.article-body li {
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.article-body ul li::marker {
    color: var(--primary);
}

.article-body ol li::marker {
    color: var(--primary-light);
    font-weight: 600;
}

.article-body a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary);
}

/* Tables in Article */
.article-body table {
    width: 100%;
    margin: var(--spacing-xl) 0;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-body th {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--text-heading);
    font-weight: 600;
}

.article-body tr:last-child td {
    border-bottom: none;
}

/* Inline CTA in Article */
.inline-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
}

.inline-cta .cta-icon {
    flex-shrink: 0;
}

.inline-cta .cta-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
}

.inline-cta .cta-text h3 {
    color: var(--text-heading);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
}

.inline-cta .cta-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.inline-cta .cta-btn {
    flex-shrink: 0;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.inline-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* CTA Banner */
.cta-banner {
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-banner p {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.cta-banner strong {
    color: white;
}

.cta-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
}

.toc-toggle svg {
    width: 16px;
    height: 16px;
}

.toc-nav ul {
    list-style: none;
}

.toc-nav li {
    margin-bottom: var(--spacing-xs);
}

.toc-nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
    border-left-color: var(--primary);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary);
    padding: var(--spacing-xl);
    text-align: center;
}

.cta-illustration {
    margin-bottom: var(--spacing-lg);
}

.cta-illustration img {
    width: 80px;
    height: auto;
}

.sidebar-cta h4 {
    color: var(--text-heading);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.sidebar-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.cta-buttons .arrows {
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sidebar-cta .cta-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.sidebar-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* ===== BOTTOM SECTION ===== */
.blog-bottom {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-2xl);
}

/* FAQ Section */
.faq-section {
    margin-bottom: var(--spacing-2xl);
}

.faq-section h2 {
    color: var(--text-heading);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05);
}

.faq-icon {
    color: var(--primary-light);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-body);
}

.faq-answer ul {
    list-style: disc;
    padding-left: var(--spacing-2xl);
}

/* Feedback Section */
.feedback-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-2xl);
}

.feedback-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.feedback-left span {
    color: var(--text-body);
}

.feedback-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.feedback-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.social-share {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-2xl);
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-details .author-name {
    display: block;
    color: var(--text-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.author-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sources Section */
.sources-section {
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-2xl);
}

.sources-section h3 {
    color: var(--text-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.sources-list {
    padding-left: var(--spacing-xl);
}

.sources-list li {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.sources-list a {
    color: var(--primary-light);
}

.source-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Related Articles */
.related-articles {
    margin-bottom: var(--spacing-2xl);
}

.related-articles h2 {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.related-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
}

.related-card a {
    display: block;
    text-decoration: none;
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.related-card h3 {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.site-footer p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-contact {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .blog-page {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

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

    .hero-image {
        order: -1;
    }

    .takeaways-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .process-bar {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .feedback-section {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .inline-cta {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-article {
        padding: var(--spacing-lg);
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }
}
/* ===== LEAD POPUP ===== */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--spacing-md);
}

.lead-popup-overlay[hidden] {
    display: none;
}

.lead-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lead-popup {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-color);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.lead-popup-overlay.active .lead-popup {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.popup-close-btn svg {
    width: 18px;
    height: 18px;
}

/* Decorative Header */
.popup-header {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.popup-header-decoration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.decoration-circle.circle-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    left: -30px;
    bottom: -40px;
}

.decoration-circle.circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    right: -20px;
    top: -20px;
}

.decoration-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.decoration-icon svg {
    width: 48px;
    height: 48px;
}

.decoration-sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    animation: sparkle 2s ease-in-out infinite;
}

.decoration-sparkle.sparkle-1 {
    top: 20px;
    left: 60px;
    animation-delay: 0s;
}

.decoration-sparkle.sparkle-2 {
    bottom: 30px;
    right: 50px;
    animation-delay: 1s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Popup Content */
.popup-content {
    padding: var(--spacing-xl);
    text-align: center;
}

.popup-title {
    color: var(--text-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.popup-assignment-name {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.popup-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.popup-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

/* Popup Form */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.popup-form-group {
    width: 100%;
}

.popup-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.popup-input::placeholder {
    color: var(--text-muted);
}

.popup-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.popup-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    margin-top: var(--spacing-sm);
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
    filter: brightness(1.05);
}

.popup-privacy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: var(--spacing-md);
}

.popup-privacy a {
    color: var(--primary-light);
    text-decoration: none;
}

.popup-privacy a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 520px) {
    .lead-popup {
        max-width: 100%;
        margin: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }

    .popup-header {
        min-height: 120px;
        padding: var(--spacing-lg);
    }

    .popup-content {
        padding: var(--spacing-lg);
    }

    .popup-assignment-name {
        font-size: 1.25rem;
    }
}

/* ===== EXPERT CARD DESIGN (Premium) ===== */
.expert-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-2xl);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
}

.expert-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
}

.expert-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--spacing-xs);
}

.expert-credentials {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
}

.expert-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

/* Sources Card Design */
.sources-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sources-card h3 {
    color: var(--text-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sources-card ol {
    counter-reset: source-counter;
    list-style: none;
    padding: 0;
}

.sources-card li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.5;
}

.sources-card li::before {
    counter-increment: source-counter;
    content: counter(source-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    border-radius: 50%;
    text-align: center;
    line-height: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}
