/*
Theme Name: Seller Marketplace Learning V49
Template: Divi
Version: 49.0
Description: Seller Marketplace landing + Learning Module (usaha) CPT with dynamic syllabus.
*/
@import url("../Divi/style.css");

.sm-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    font-size: .875rem;
}
.sm-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sm-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: .35rem;
    color: #6b7280;
}
.sm-breadcrumb li[aria-current="page"] {
    color: #4b5563;
}
.sm-breadcrumb li, .module-hero h1 { min-width: 0; overflow-wrap: anywhere; }
.sm-breadcrumb a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* ===== Base design (from justademo-design.html) ===== */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #6C63FF;
            --primary-dark: #5A52D5;
            --secondary: #FF6B6B;
            --accent: #4ECDC4;
            --dark: #1A1A2E;
            --gray: #6B7280;
            --light: #F8FAFC;
            --white: #FFFFFF;
            --gradient: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%);
            --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFA07A 100%);
            --shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
            --shadow-lg: 0 30px 80px rgba(108, 99, 255, 0.25);
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: var(--light);
            color: var(--dark);
            overflow-x: hidden;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(108, 99, 255, 0.1);
        }

        .navbar.scrolled {
            padding: 0.75rem 2rem;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--dark);
            text-decoration: none;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: var(--gradient);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--gray);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s;
        }

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

        .btn-nav {
            background: var(--gradient);
            color: white !important;
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-weight: 600 !important;
            transition: transform 0.3s, box-shadow 0.3s !important;
        }

        .btn-nav:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
        }

.mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--dark);
            cursor: pointer;
        }
.mobile-toggle::before { content: "\2630"; font-family: Arial, sans-serif; font-weight: 700; line-height: 1; }
.mobile-toggle[aria-expanded="true"]::before { content: "\00D7"; font-size: 2rem; }
.mobile-toggle > i { display: none; }

        /* ===== HERO ===== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 8rem 2rem 4rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 8s ease-in-out infinite;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 10s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(30px, -30px); }
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(108, 99, 255, 0.1);
            color: var(--primary);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.6s ease;
        }

        .hero-badge i {
            color: var(--secondary);
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.6s ease 0.1s both;
        }

        .hero h1 .gradient-text {
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.15rem;
            color: var(--gray);
            line-height: 1.7;
            margin-bottom: 2rem;
            max-width: 480px;
            animation: fadeInUp 0.6s ease 0.2s both;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.6s ease 0.3s both;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--gradient);
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: white;
            color: var(--dark);
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            border: 2px solid #E5E7EB;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-3px);
        }

        .hero-stats {
            display: flex;
            gap: 2.5rem;
            margin-top: 3rem;
            animation: fadeInUp 0.6s ease 0.4s both;
        }

        .stat-item {
            text-align: left;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: var(--dark);
        }

        .stat-number span {
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--gray);
            font-weight: 500;
        }

        /* Hero Visual */
        .hero-visual {
            position: relative;
            animation: fadeInUp 0.8s ease 0.3s both;
        }

        .hero-card {
            background: white;
            border-radius: 24px;
            padding: 2rem;
            box-shadow: var(--shadow-lg);
            position: relative;
            transform: rotate(2deg);
            transition: transform 0.3s;
        }

        .hero-card:hover {
            transform: rotate(0deg);
        }

        .hero-card-inner {
            background: var(--gradient);
            border-radius: 16px;
            padding: 2.5rem;
            color: white;
            text-align: center;
        }

        .hero-card-inner i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.9;
        }

        .hero-card-inner h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .hero-card-inner p {
            opacity: 0.85;
            font-size: 0.95rem;
        }

        .floating-card {
            position: absolute;
            background: white;
            border-radius: 16px;
            padding: 1rem 1.25rem;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            animation: floatCard 6s ease-in-out infinite;
        }

        .floating-card.fc-1 {
            top: -20px;
            left: -40px;
            animation-delay: 0s;
        }

        .floating-card.fc-2 {
            bottom: -20px;
            right: -30px;
            animation-delay: 2s;
        }

        .floating-card.fc-3 {
            top: 50%;
            right: -60px;
            animation-delay: 4s;
        }

        @keyframes floatCard {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }

        .fc-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .fc-icon.green { background: #D1FAE5; color: #059669; }
        .fc-icon.purple { background: #EDE9FE; color: #7C3AED; }
        .fc-icon.orange { background: #FED7AA; color: #EA580C; }

        .fc-text strong {
            display: block;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .fc-text span {
            font-size: 0.75rem;
            color: var(--gray);
        }

        /* ===== TRUSTED BY ===== */
        .trusted {
            padding: 3rem 2rem;
            text-align: center;
        }

        .trusted p {
            font-size: 0.85rem;
            color: var(--gray);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1.5rem;
        }

        .trusted-logos {
            display: flex;
            justify-content: center;
            gap: 3rem;
            flex-wrap: wrap;
            opacity: 0.5;
        }

        .trusted-logos span {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--gray);
        }

        /* ===== FEATURES / KATEGORI ===== */
        .features {
            padding: 6rem 2rem;
            position: relative;
        }

        .section-header {
            text-align: center;
            max-width: 600px;
            margin: 0 auto 4rem;
        }

        .section-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(108, 99, 255, 0.1);
            color: var(--primary);
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 1rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .section-header p {
            color: var(--gray);
            font-size: 1.05rem;
        }

        .features-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .feature-card {
            background: white;
            border-radius: 24px;
            padding: 2.5rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid #F1F5F9;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow);
            border-color: transparent;
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .feature-icon.purple { background: #EDE9FE; color: #7C3AED; }
        .feature-icon.green { background: #D1FAE5; color: #059669; }
        .feature-icon.blue { background: #DBEAFE; color: #2563EB; }
        .feature-icon.orange { background: #FED7AA; color: #EA580C; }
        .feature-icon.pink { background: #FCE7F3; color: #DB2777; }
        .feature-icon.teal { background: #CCFBF1; color: #0D9488; }

        .feature-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .feature-card p {
            color: var(--gray);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* ===== HOW IT WORKS ===== */
        .how-it-works {
            padding: 6rem 2rem;
            background: var(--dark);
            position: relative;
            overflow: hidden;
        }

        .how-it-works::before {
            content: '';
            position: absolute;
            top: -200px;
            right: -200px;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
            border-radius: 50%;
        }

        .how-it-works .section-header {
            position: relative;
            z-index: 2;
        }

        .how-it-works .section-tag {
            background: rgba(108, 99, 255, 0.2);
        }

        .how-it-works .section-header h2 {
            color: white;
        }

        .how-it-works .section-header p {
            color: rgba(255, 255, 255, 0.6);
        }

        .steps {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            position: relative;
            z-index: 2;
        }

        .steps::before {
            content: '';
            position: absolute;
            left: 32px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
        }

        .step {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
        }

        .step-number {
            width: 64px;
            height: 64px;
            min-width: 64px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            position: relative;
            z-index: 2;
        }

        .step-content {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 1.5rem 2rem;
            flex: 1;
            transition: all 0.3s;
        }

        .step-content:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(108, 99, 255, 0.3);
        }

        .step-content h3 {
            color: white;
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .step-content p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95rem;
        }

        /* ===== TESTIMONIALS ===== */
        .testimonials {
            padding: 6rem 2rem;
        }

        .testimonials-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .testimonial-card {
            background: white;
            border-radius: 24px;
            padding: 2rem;
            border: 1px solid #F1F5F9;
            transition: all 0.3s;
        }

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

        .testimonial-stars {
            color: #FBBF24;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .testimonial-card p {
            color: var(--gray);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-style: italic;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .author-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .author-info strong {
            display: block;
            font-size: 0.9rem;
        }

        .author-info span {
            font-size: 0.8rem;
            color: var(--gray);
        }

        /* ===== CTA ===== */
        .cta {
            padding: 6rem 2rem;
            text-align: center;
        }

        .cta-box {
            max-width: 800px;
            margin: 0 auto;
            background: var(--gradient);
            border-radius: 32px;
            padding: 4rem 3rem;
            position: relative;
            overflow: hidden;
        }

        .cta-box::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 400px;
            height: 400px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .cta-box::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -10%;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .cta-box h2 {
            font-size: 2.5rem;
            font-weight: 800;
            color: white;
            margin-bottom: 1rem;
            position: relative;
            z-index: 2;
        }

        .cta-box p {
            color: rgba(255, 255, 255, 0.85);
            font-size: 1.1rem;
            margin-bottom: 2rem;
            position: relative;
            z-index: 2;
        }

        .btn-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: white;
            color: var(--primary);
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.05rem;
            text-decoration: none;
            transition: all 0.3s;
            position: relative;
            z-index: 2;
        }

        .btn-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--dark);
            color: white;
            padding: 4rem 2rem 2rem;
        }

        .footer-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-brand p {
            color: rgba(255, 255, 255, 0.6);
            margin-top: 1rem;
            font-size: 0.9rem;
            line-height: 1.7;
        }

        .footer-col h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 0.75rem;
        }

        .footer-col ul li a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .footer-col ul li a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-bottom p {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.85rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-links a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero p {
                margin: 0 auto 2rem;
            }

            .hero-buttons {
                justify-content: center;
            }

            .hero-stats {
                justify-content: center;
            }

            .hero-visual {
                order: -1;
            }

            .hero-card {
                max-width: 350px;
                margin: 0 auto;
                transform: none;
            }

            .floating-card.fc-1 { left: -10px; }
            .floating-card.fc-3 { right: -10px; }

            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .testimonials-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-toggle {
                display: block;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

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

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

            .cta-box {
                padding: 3rem 1.5rem;
            }

            .cta-box h2 {
                font-size: 1.75rem;
            }

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

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .hero-stats {
                flex-direction: column;
                gap: 1.5rem;
                align-items: center;
            }

            .stat-item {
                text-align: center;
            }
        }

/* ===== Learning Module components ===== */
.modules-section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.modules-section h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; }
.modules-section h2 span { color: var(--primary); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.module-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.module-thumb { height: 160px; background: var(--gradient); background-size: cover; background-position: center; }
.module-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.module-body h3 { font-size: 1.25rem; color: var(--dark); }
.module-body p { color: var(--gray); font-size: .95rem; flex: 1; }
.module-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.syl-chip { background: rgba(108,99,255,.12); color: var(--primary); padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.views { color: var(--gray); font-size: .8rem; }
.module-single { max-width: 1100px; margin: 0 auto; padding: 7rem 2rem 4rem; }
.module-hero { text-align: center; margin-bottom: 3rem; }
.module-hero h1 { font-size: 2.6rem; margin-bottom: 1rem; }
.module-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.module-layout > *, .module-content { min-width: 0; }
.module-syllabus { background: var(--white); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 100px; }
.module-syllabus h3 { margin-bottom: 1rem; color: var(--primary); }
.module-syllabus .syl-term { font-weight: 700; color: var(--primary); margin-bottom: .75rem; font-size: .95rem; }
.module-syllabus ol { padding-left: 1.2rem; }
.module-syllabus li { margin-bottom: .6rem; color: var(--dark); }
.module-syllabus ol.syl-list { list-style: none; padding-left: 0; }
.module-syllabus ol.syl-list li { margin-bottom: .4rem; }
.module-syllabus ol.syl-list a { color: var(--dark); text-decoration: none; display: block; padding: .4rem .65rem; border-radius: 8px; transition: background .2s, color .2s; }
.module-syllabus ol.syl-list a:hover { background: rgba(108,99,255,.12); color: var(--primary); }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
.module-content h2, .module-content h3 { scroll-margin-top: 150px; }
.module-content { font-size: 1.05rem; line-height: 1.9; color: var(--dark); overflow-wrap: anywhere; }
.module-content a, .module-content code, .module-content pre { overflow-wrap: anywhere; word-break: break-word; }
.module-content code { white-space: normal; }
.module-content pre { max-width: 100%; white-space: pre-wrap; overflow-x: auto; }
.module-content img, .module-content iframe, .module-content video { max-width: 100%; height: auto; }
.module-content h2, .module-content h3 { margin: 1.5rem 0 1rem; color: var(--primary-dark); }
.module-content ul,
.module-content ol { margin: 0 0 1.25rem; padding-left: 1.65rem; }
.module-content ul { list-style: disc outside; }
.module-content ol { list-style: decimal outside; }
.module-content li { margin-bottom: .45rem; padding-left: .2rem; }
.module-content li::marker { color: var(--primary-dark); font-weight: 700; }
.module-archive-main { max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 5rem; }
.module-archive-header { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.module-archive-eyebrow { color: var(--primary); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.module-archive-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 1rem; }
.module-archive-header p:last-child { color: var(--gray); font-size: 1.05rem; line-height: 1.7; }
.module-filters { margin: 0 0 2rem; padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr); gap: .85rem; align-items: start; background: var(--white); border: 1px solid #edf0f5; border-radius: 18px; box-shadow: 0 12px 36px rgba(26,26,46,.06); }
.module-filter-field { min-width: 0; }
.module-filter-field label { display: block; margin-bottom: .45rem; color: var(--dark); font-size: .82rem; font-weight: 700; }
.module-filter-input, .module-filter-select { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid #dbe0e8; border-radius: 12px; background: #fff; color: var(--dark); font: inherit; }
.module-filter-help { display: block; margin-top: .4rem; color: var(--gray); font-size: .76rem; line-height: 1.4; }
.module-filter-summary { grid-column: 1 / -1; margin: 0; color: var(--gray); font-size: .88rem; }
.module-archive-grid { align-items: stretch; }
.module-archive-grid .module-card { min-width: 0; }
.module-pagination { margin-top: 3rem; }
.module-pagination .nav-links { display: flex; justify-content: center; gap: .5rem; }
.module-pagination .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: .5rem .75rem; border-radius: 10px; background: var(--white); color: var(--dark); text-decoration: none; box-shadow: 0 8px 24px rgba(26,26,46,.08); }
.module-pagination .page-numbers.current { background: var(--gradient); color: #fff; }
.module-archive-empty { grid-column: 1 / -1; text-align: center; padding: 3rem; background: var(--white); border-radius: 18px; }
.owned-store-scope { max-width: 1200px; margin: 1.5rem auto 0; padding: 1.5rem 2rem; display: flex; align-items: flex-start; gap: 1rem; background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.16); border-radius: 18px; }
.owned-store-scope .scope-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--gradient); border-radius: 14px; }
.owned-store-scope h3 { margin-bottom: .4rem; color: var(--primary-dark); }
.owned-store-scope p { color: var(--gray); line-height: 1.7; }
.owned-store-scope .scope-status { display: inline-block; margin-bottom: .5rem; color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 768px) { .module-layout { grid-template-columns: 1fr; } .module-syllabus { position: static; } }

/* ===== Standardized article template ===== */
.sm-skip-link { position: fixed; left: 1rem; top: -100px; z-index: 2000; padding: .75rem 1rem; background: var(--dark); color: #fff; border-radius: 8px; }
.sm-skip-link:focus { top: 1rem; }
.sm-article-main { padding: 8rem 1.5rem 5rem; }
.sm-article { max-width: 780px; margin: 0 auto; }
.sm-breadcrumb { margin-bottom: 1.25rem; color: var(--gray); font-size: .9rem; }
.sm-breadcrumb a { color: var(--primary-dark); }
.sm-article-header { margin-bottom: 2.25rem; }
.sm-article-header h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: .75rem 0 1rem; }
.sm-article-dek { color: var(--gray); font-size: 1.1rem; line-height: 1.7; margin-bottom: 1rem; }
.sm-article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; color: var(--gray); font-size: .9rem; }
.sm-article-media { margin: 0 0 2rem; border-radius: 20px; overflow: hidden; }
.sm-article-media img { width: 100%; height: auto; display: block; }
.sm-article-content { font-size: 1.08rem; line-height: 1.85; }
.sm-article-content > * + * { margin-top: 1.25rem; }
.sm-article-content h2, .sm-article-content h3 { color: var(--primary-dark); line-height: 1.3; scroll-margin-top: 150px; margin-top: 2.25rem; }
.sm-article-content :is(h2, h3, h4)[id], .module-content :is(h2, h3, h4)[id] { scroll-margin-top: 150px; }
.sm-article-content img { max-width: 100%; height: auto; border-radius: 14px; }
.sm-article-content table,
.module-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.sm-article-content th, .sm-article-content td,
.module-content th, .module-content td { padding: .75rem; border: 1px solid #d9dde5; text-align: left; vertical-align: top; }
.sm-article-content th,
.module-content th { background: rgba(108, 99, 255, .1); color: var(--dark); font-weight: 700; }
.sm-article-content tbody tr:nth-child(even),
.module-content tbody tr:nth-child(even) { background: rgba(248, 250, 252, .85); }
.sm-related { max-width: 1200px; margin: 4rem auto 0; border-top: 1px solid #e5e7eb; padding-top: 3rem; }
.sm-related h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; }
.sm-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.sm-related-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.sm-related-type { align-self: flex-start; margin-bottom: .75rem; padding: .25rem .65rem; color: var(--primary-dark); background: rgba(108,99,255,.1); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sm-related-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: .75rem; }
.sm-related-card p { color: var(--gray); flex: 1; }
.sm-related-meta { color: var(--gray); font-size: .8rem; margin-top: 1rem; }
.module-single .sm-related { margin-top: 4rem; }
.navbar .nav-links.is-open { display: flex; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 767px) {
  html { scroll-padding-top: 164px; }
  .sm-article-content :is(h2, h3, h4)[id], .module-content :is(h2, h3, h4)[id] { scroll-margin-top: 164px; }
  .module-grid, .sm-related-grid { grid-template-columns: 1fr; }
  .module-single { width: 100%; padding: 6.5rem 1rem 3.5rem; }
  .module-layout { width: 100%; gap: 1.5rem; }
  .module-content { width: 100%; max-width: 100%; font-size: 1rem; }
  .module-content ul, .module-content ol { padding-left: 1.4rem; }
  .module-hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .sm-breadcrumb { width: 100%; padding-right: 1rem; padding-left: 1rem; }
  .module-archive-main { padding: 7rem 1rem 3.5rem; }
  .module-filters { grid-template-columns: 1fr; }
  .owned-store-scope { margin: 1rem; padding: 1.25rem; }
  .modules-section { padding: 3.5rem 1rem; }
  .navbar .nav-links.is-open { position: absolute; top: 100%; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
  .navbar .nav-links.is-open a { display: block; padding: .75rem; }
  .navbar .mobile-toggle { display: inline-flex !important; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; color: var(--dark); background: transparent; border: 0; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
