/* ═══════════════════════════════════════════════════════════════ */
        /* GLOBAL RESET & TYPOGRAPHY */
        /* ═══════════════════════════════════════════════════════════════ */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
            line-height: 1.7;
            color: #1a1a1a;
            background: #ffffff;
            overflow-x: hidden;
        }
        
        h1, h2, h3, h4 {
            font-weight: 600;
            line-height: 1.2;
            color: #0d0d0d;
        }
        
        h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
        h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
        h3 { font-size: 1.75rem; margin-bottom: 1rem; }
        h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
        
        p { 
            font-size: 1.1rem; 
            margin-bottom: 1.2rem; 
            color: #2d2d2d;
        }
        
        a {
            color: #2563eb;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s;
        }
        
        a:hover { border-bottom-color: #2563eb; }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* NAVIGATION BAR */
        /* ═══════════════════════════════════════════════════════════════ */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 1rem 0;
        }

        .nav-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-logo {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e40af;
            text-decoration: none;
            border-bottom: none;
        }

        .nav-logo:hover {
            color: #2563eb;
        }

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

        .nav-links a {
            color: #334155;
            font-weight: 500;
            font-size: 1rem;
            text-decoration: none;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
            padding-bottom: 0.25rem;
        }

        .nav-links a:hover {
            color: #2563eb;
            border-bottom-color: #2563eb;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* HERO SECTION - FULL SCREEN IMPACT */
        /* ═══════════════════════════════════════════════════════════════ */
        .hero {
            height: 100vh;
            background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/></svg>') repeat;
            opacity: 0.3;
        }
        
        .hero-content {
            text-align: center;
            color: white;
            z-index: 2;
            padding: 2rem;
            max-width: 1100px;
        }
        
        .hero h1 {
            font-size: 4rem;
            color: white;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 20px rgba(0,0,0,0.2);
            animation: fadeInUp 0.8s ease-out;
        }
        
        .hero .subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            color: rgba(255,255,255,0.95);
            margin-bottom: 2rem;
            line-height: 1.6;
            animation: fadeInUp 1s ease-out;
        }
        
        .hero .mission {
            font-size: 1.15rem;
            font-style: italic;
            color: rgba(255,255,255,0.85);
            max-width: 800px;
            margin: 0 auto;
            animation: fadeInUp 1.2s ease-out;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* SECTION LAYOUT */
        /* ═══════════════════════════════════════════════════════════════ */
        section {
            padding: 7rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        section.alt-bg {
            background: #f8fafc;
            max-width: 100%;
            padding: 7rem 2rem;
        }
        
        .section-inner {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .section-header {
            max-width: 1100px;
            width: 100%;
            text-align: center;
        }
        .section-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #2563eb;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* CAPSTONE PROJECT - CENTERPIECE */
        /* ═══════════════════════════════════════════════════════════════ */
        /* Full-width background layer */
        .capstone.alt-bg {
            width: 100%;
            background: white;
            
            padding: 7rem 0;
        }
        
        /* Centered content column */
        .section-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        /* Centered header block */
        .section-header {
            max-width: 1100px;
            margin: 0 auto 3rem auto;
            text-align: center;
        }

        
        .section-label {
            letter-spacing: 0.15em;
            font-size: 0.875rem;
            text-transform: uppercase;
            opacity: 0.6;
            margin-bottom: 1rem;
        }
        
        .capstone-title {
            font-size: 2.6rem;
            line-height: 1.15;
            margin-bottom: 1.5rem;
        }
        
        .capstone-subtitle {
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 900px;
            margin: 0 auto;
            opacity: 0.85;
        }

        
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin-bottom: 4rem;
        }
        
        .comparison-panel {
            background: white;
            border-radius: 8px;
            padding: 2.5rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
        }
        
        .comparison-panel h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: #0f172a;
        }
        
        .comparison-panel.status-quo {
            border-left: 4px solid #dc2626;
        }
        
        .comparison-panel.innovation {
            border-left: 4px solid #16a34a;
        }
        
        .panel-image {
            width: 100%;
            height: 300px;
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: #64748b;
            font-style: italic;
        }
        
        .panel-caption {
            font-size: 1rem;
            color: #475569;
            line-height: 1.6;
        }
        
        .capstone-narrative {
            background: white;
            padding: 3rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .narrative-section {
            margin-bottom: 2.5rem;
        }
        
        .narrative-section h4 {
            color: #1e40af;
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        
        .narrative-section p {
            color: #334155;
            line-height: 1.8;
        }
        
        .narrative-section ul {
            margin-left: 2rem;
            color: #334155;
        }
        
        .narrative-section li {
            margin-bottom: 0.5rem;
        }
        
        .methodology-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .keyword {
            background: #dbeafe;
            color: #1e40af;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 1rem;
            font-weight: 500;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* METHODS STACK */
        /* ═══════════════════════════════════════════════════════════════ */
        .methods-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .method-card {
            background: #f8fafc;
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .method-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .method-card h4 {
            color: #1e40af;
            margin-bottom: 0.75rem;
        }
        
        .method-card .problem {
            font-size: 1rem;
            color: #64748b;
            font-style: italic;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #e2e8f0;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* POLICY LABORATORIES */
        /* ═══════════════════════════════════════════════════════════════ */
        .lab-card {
            background: white;
            padding: 3rem;
            margin-bottom: 3rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-left: 6px solid #2563eb;
        }
        
        .lab-card h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #0f172a;
        }
        
        .lab-meta {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .lab-meta-item {
            font-size: 0.9rem;
            color: #64748b;
        }
        
        .lab-meta-item strong {
            color: #1e40af;
            font-weight: 600;
        }
        
        .lab-content {
            display: grid;
            gap: 1.5rem;
        }
        
        .lab-content p {
            margin-bottom: 0.5rem;
        }
        
        .lab-links {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
        }
        
        .lab-links a {
            margin-right: 1.5rem;
            font-weight: 500;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* TECHNICAL ML SECTION */
        /* ═══════════════════════════════════════════════════════════════ */
        .ml-showcase {
            background: white;
            padding: 3rem;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .ml-showcase h3 {
            margin-bottom: 1.5rem;
        }
        
        .ml-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .ml-detail {
            padding: 1.5rem;
            background: #f8fafc;
            border-radius: 6px;
        }
        
        .ml-detail h4 {
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            color: #1e40af;
        }
        
        .tech-list {
            list-style: none;
            padding-left: 0;
        }
        
        .tech-list li {
            padding: 0.5rem 0;
            color: #475569;
            position: relative;
            padding-left: 1.5rem;
        }
        
        .tech-list li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: #2563eb;
            font-weight: bold;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* PUBLICATIONS */
        /* ═══════════════════════════════════════════════════════════════ */
        .publication {
            background: white;
            padding: 2.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
        }
        
        .publication h4 {
            font-size: 1.15rem;
            color: #0f172a;
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .pub-meta {
            font-size: 1rem;
            color: #64748b;
            margin-bottom: 1rem;
        }
        
        .pub-description {
            font-size: 1rem;
            color: #475569;
            line-height: 1.7;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* SKILLS SECTION */
        /* ═══════════════════════════════════════════════════════════════ */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .skill-category {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        
        .skill-category h4 {
            color: #1e40af;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }
        
        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .skill-tag {
            background: #f1f5f9;
            color: #334155;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* CONTACT & FOOTER */
        /* ═══════════════════════════════════════════════════════════════ */
        .contact {
            text-align: center;
            padding: 5rem 2rem;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
        }
        
        .contact h2 {
            color: white;
            margin-bottom: 2rem;
        }
        
        .contact p {
            color: rgba(255,255,255,0.9);
            margin: 0 auto 2rem;
        }
        
        .contact-links {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .contact-links a {
            color: white;
            font-size: 1.1rem;
            padding: 0.75rem 2rem;
            background: rgba(255,255,255,0.1);
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.3s;
        }
        
        .contact-links a:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.4);
        }
        
        /* ═══════════════════════════════════════════════════════════════ */
        /* RESPONSIVE */
        /* ═══════════════════════════════════════════════════════════════ */
        /* ═══════════════════════════════════════════════════════════════ */
        /* INTERACTIVE COMPONENTS */
        /* ═══════════════════════════════════════════════════════════════ */
        .interactive-toggle {
            display: flex;
            gap: 1rem;
            margin: 2rem 0;
            justify-content: center;
        }
        
        .toggle-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid #e2e8f0;
            background: white;
            color: #475569;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .toggle-btn.active {
            background: #2563eb;
            color: white;
            border-color: #2563eb;
        }
        
        .toggle-btn:hover {
            border-color: #2563eb;
        }
        
        .interactive-panel {
            background: white;
            border-radius: 8px;
            padding: 2rem;
            margin: 1.5rem 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: none;
        }
        
        .interactive-panel.active {
            display: block;
            animation: fadeIn 0.3s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .figure-container {
            width: 100%;
            max-width: 640px;     /* limits horizontal size */
            aspect-ratio: 16 / 9; /* keeps it visually balanced */
            height: auto;        /* lets aspect-ratio control height */
        
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            border-radius: 8px;
        
            display: flex;
            align-items: center;
            justify-content: center;
        
            margin: 1.5rem auto; /* centers the figure */
            color: #64748b;
            font-style: italic;
        
            position: relative;
            overflow: hidden;
        }
        .figure-label {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            font-size: 0.875rem;
            font-style: normal;
        }
        
        .slider-container {
            margin: 2rem 0;
            padding: 1.5rem;
            background: #f8fafc;
            border-radius: 8px;
        }
        
        .slider-container label {
            display: block;
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 1rem;
        }
        
        input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
            margin: 1rem 0;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #2563eb;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(37,99,235,0.4);
        }
        
        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #2563eb;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(37,99,235,0.4);
        }
        
        .slider-value {
            display: block;
            text-align: center;
            font-weight: 600;
            color: #2563eb;
            margin-top: 0.5rem;
            font-size: 1.2rem;
        }
        
        .tab-container {
            display: flex;
            gap: 0.5rem;
            margin: 2rem 0;
            flex-wrap: wrap;
            border-bottom: 2px solid #e2e8f0;
        }
        
        .tab-btn {
            padding: 1rem 1.5rem;
            background: none;
            border: none;
            color: #64748b;
            cursor: pointer;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
            position: relative;
            bottom: -2px;
        }
        
        .tab-btn:hover {
            color: #1e40af;
        }
        
        .tab-btn.active {
            color: #2563eb;
            border-bottom-color: #2563eb;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease-in;
        }
        
        .node-map {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .node {
            padding: 1.5rem;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .node:hover {
            border-color: #2563eb;
            box-shadow: 0 4px 12px rgba(37,99,235,0.2);
            transform: translateY(-2px);
        }
        
        .node.active {
            background: #dbeafe;
            border-color: #2563eb;
        }
        
        .node-label {
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 0.5rem;
        }
        
        .node-description {
            font-size: 0.875rem;
            color: #64748b;
            display: none;
        }
        
        .node.active .node-description {
            display: block;
        }
        
        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .stat-card {
            background: #f8fafc;
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #2563eb;
        }
        
        .stat-label {
            font-size: 0.875rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: #1e40af;
        }
        .policy-intro { 
            background: #f8fafc; 
            padding: 2rem; 
            border-radius: 12px; 
            margin-bottom: 2rem;
            border-left: 6px solid #1e40af;
        }
        .HRC-core-grid {
            display: flex !important; 
            flex-wrap: nowrap !important; 
            gap: 1rem !important; 
            justify-content: space-between !important; 
            padding: 0 !important;
            margin: 0 !important;
        }
        .HRC-core-card { 
            flex: 1 !important; 
            min-width: 220px !important;  /* ✅ FIXED */
            max-width: 240px !important;
            background: white; 
            padding: 1.5rem; 
            border-radius: 12px; 
            border-left: 4px solid;
            box-sizing: border-box !important;  /* ✅ ADDED */
        }
        .HRC-core-card p { 
            font-size: 1rem; 
            line-height: 1.4; 
            margin: 0; 
            overflow-wrap: break-word;  /* ✅ ADDED */
            color: #475569;
        }
        .HRC-core-card h5 { 
            font-size: 17.5px !important; 
            line-height: 1.4; 
            margin: 0; 
            overflow-wrap: break-word;  /* ✅ ADDED */
        }
        .stakeholder-grid { 
            display: flex !important; 
            flex-wrap: nowrap !important; 
            gap: 1rem !important; 
            justify-content: space-between !important; 
        }
        .stakeholder-card { 
            flex: 1 !important; 
            min-width: 170px !important; 
            background: white; 
            border: 2px solid #e5e7eb; 
            border-radius: 12px; 
            padding: 1.25rem; 
            border-left: 4px solid;
            box-sizing: border-box;
        }
        
        .blue-container {
            padding: 2.5rem !important;  /* ✅ SIMPLIFIED */
        }
        .stats-comparison {
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            gap: 2rem; 
            margin-top: 1.5rem;
        }
        .stat-card {
            background: white; 
            padding: 1.5rem; 
            border-radius: 12px; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-top: 4px solid #3b82f6;
        }
        .stat-card.no-tariff { border-top-color: #10b981; }
        .stat-card.with-tariff { border-top-color: #ef4444; }
        .stat-item {
            display: flex; 
            justify-content: space-between; 
            margin-bottom: 0.75rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid #f1f5f9;
        }
        .stat-item:last-child { border-bottom: none; margin-bottom: 0; }
        .stat-label { font-size: 0.9rem; color: #64748b; font-weight: 500; }
        .stat-value { font-weight: 700; color: #1e293b; font-size: 1rem; }
        .stat-change { font-size: 0.85rem; color: #ef4444; font-weight: 600; }
        .tooltip {
            position: relative;
            display: inline-block;
            border-bottom: 1px dotted #2563eb;
            cursor: help;
        }
        
        .tooltip .tooltiptext {
            visibility: hidden;
            width: 250px;
            background-color: #0f172a;
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 0.75rem;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -125px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.85rem;
        }
        
        .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #0f172a transparent transparent transparent;
        }
        
        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            h1 { font-size: 2.5rem; }
            h2 { font-size: 2rem; }
            
            .hero h1 { font-size: 2.5rem; }
            .hero .subtitle { font-size: 1.2rem; }
            
            section { padding: 4rem 1.5rem; }
            section.alt-bg { padding: 4rem 1.5rem; }
            
            .comparison-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .ml-grid {
                grid-template-columns: 1fr;
            }
            
            .capstone-title {
                font-size: 2rem;
            }
            
            .interactive-toggle {
                flex-direction: column;
            }
            
            .node-map {
                grid-template-columns: 1fr;
            }
            
            .stats-row {
                grid-template-columns: 1fr;
            }
        }

/* AWD-specific styling additions */
        .node {
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .node:hover {
            transform: scale(1.05);
            border-color: #1e40af;
        }

        .node.selected {
            background-color: #e0e7ff !important;
            border-color: #1e40af;
            box-shadow: 0 0 12px rgba(30, 64, 175, 0.3);
        }

        .tab-btn {
            cursor: pointer;
            padding: 0.75rem 1.25rem;
            border: 2px solid #e2e8f0;
            background: white;
            color: #475569;
            border-radius: 8px 8px 0 0;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-right: 0.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            position: relative;
        }

        .tab-btn:hover {
            background: #f1f5f9;
            border-color: #3b82f6;
            color: #1e40af;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(59,130,246,0.2);
        }

        .tab-btn.active {
            background: #1e40af;
            color: white;
            border-color: #1e40af;
            box-shadow: 0 4px 12px rgba(30,64,175,0.3);
            transform: translateY(-2px);
        }

        .tab-content {
            display: none;
            padding: 1.5rem;
            background: white;
            border: 1px solid #e2e8f0;
            border-top: none;
            border-radius: 0 6px 6px 6px;
        }

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

        /* Argentina Bayesian card styling */
        #argentina-bayes-card {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .bayes-hero {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            padding: 1.5rem;
            border-radius: 14px;
            border-left: 6px solid #0ea5e9;
        }

        .bayes-hero-title {
            color: #1e40af;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .bayes-hero-text {
            color: #0f172a;
            font-size: 1rem;
        }

        .bayes-tab-bar {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .bayes-tab-btn {
            padding: 0.75rem 1.25rem;
            border: 2px solid #3b82f6;
            background: #e0f2fe;
            color: #1e3a8a;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .bayes-tab-btn:hover:not(.active) {
            background: #dbeafe;
            transform: translateY(-1px);
        }

        .bayes-tab-btn.active {
            background: #3b82f6;
            color: #fff;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        }

        .bayes-tab-content {
            background: #f8fafc;
            padding: 1.25rem;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .bayes-prior-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
        }

        .bayes-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
            padding: 0.75rem;
        }

        .bayes-card-label {
            color: #64748b;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .bayes-image {
            width: 100%;
            height: auto;
            max-height: 360px;
            object-fit: contain;
            border-radius: 10px;
            background: #f8fafc;
            display: block;
        }

        .bayes-image.small {
            max-height: 240px;
        }

        .bayes-section {
            margin-bottom: 1.5rem;
        }

        .bayes-section-title {
            font-weight: 700;
            color: #1E293B;
            text-align: center;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
        }

        .bayes-section-title.winner {
            color: #0f766e;
            border-color: #0f766e;
        }

        .bayes-model-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .bayes-model-card {
            background: #fff;
            border-radius: 12px;
            padding: 0.75rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .bayes-model-name {
            font-weight: 600;
            color: #334155;
        }

        .bayes-model-name.highlight {
            color: #0f766e;
        }

        .bayes-model-elpd {
            font-size: 0.875rem;
            color: #94a3b8;
            margin-bottom: 0.5rem;
        }

        .bayes-model-elpd.highlight {
            color: #0ea5e9;
        }

        .bayes-elpd {
            background: #fff;
            padding: 1rem;
            border-radius: 12px;
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
        }

        .bayes-elpd-title {
            font-weight: 700;
            color: #dc2626;
            text-align: center;
            margin-bottom: 0.75rem;
        }

        .bayes-plot-wrapper {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 1rem;
        }

        .bayes-plot-wrapper canvas {
            width: 100%;
            display: block;
        }

        .bayes-findings h5 {
            color: #1e40af;
            text-align: center;
            margin-bottom: 1rem;
        }

        .bayes-findings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
        }

        .bayes-finding-card {
            background: #fff;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .bayes-finding-rank {
            font-size: 17.5px !important;
            color: #3b82f6;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .bayes-finding-title {
            font-weight: 700;
            color: #1E293B;
            margin-bottom: 0.75rem;
            font-size: 1rem !important;
        }

        .bayes-finding-text {
            color: #475569;
            line-height: 1.6;
            font-size: 1rem !important;
        }

        .bayes-policy {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            padding: 1.5rem;
            border-radius: 14px;
            border-left: 6px solid #1e293b;
        }

        .bayes-policy-title {
            color: #1e40af;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .bayes-policy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
        }

        .bayes-policy-card {
            background: #fff;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
            border-top: 5px solid #3b82f6;
        }

        .bayes-policy-card:nth-child(2) {
            border-top-color: #10b981;
        }

        .bayes-policy-card:nth-child(3) {
            border-top-color: #f59e0b;
        }

        .bayes-policy-card h5 {
            color: #3b82f6;
            font-weight: 700;
            margin-bottom: 0.75rem;
            font-size: 17.5px !important;
        }
        .bayes-policy-card p {
            font-size: 1rem !important;
            line-height: 1.6;
            color: #475569;
        }
        /* ═══════════════════════════════════════════════════════════════ */
        /* PROJECT PAGE STYLES */
        /* ═══════════════════════════════════════════════════════════════ */
        .project-hero {
            min-height: auto;
            height: auto;
            padding: 8rem 2rem 4rem;
            background: url('assets/background.png') center/cover fixed;
            position: relative;
        }

        .project-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
            z-index: 1;
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .project-breadcrumb {
            text-align: left;
            margin-bottom: 2.5rem;
        }

        .project-breadcrumb a {
            color: #e0e7ff;
            font-size: 1rem;
            border-bottom: 1px solid transparent;
            transition: all 0.3s;
        }

        .project-breadcrumb a:hover {
            color: #ffffff;
            border-bottom-color: #ffffff;
        }

        .hero-title {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #ffffff;
        }

        .hero-tagline {
            font-size: 1.3rem;
            font-weight: 300;
            line-height: 1.6;
            max-width: 900px;
            margin: 0 auto 1.5rem;
            color: #e5e7eb;
        }

        .project-tag {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .project-content {
            background: #ffffff;
            padding: 0;
        }

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

        .project-section:first-child {
            margin-top: 4rem;
        }

        .project-section h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            margin-top: 0;
        }

        .project-section h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .project-section h4 {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
        }

        .project-section p {
            margin-bottom: 1rem;
        }

        /* Donor strategy container */
        .donor-strategy-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        /* Comparison grid */
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

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

            .project-hero {
                padding: 6rem 1.5rem 3rem;
            }

            .hero-title {
                font-size: 2rem;
            }

            .hero-tagline {
                font-size: 1.1rem;
            }

            .project-section {
                padding: 0 1.5rem;
                margin-bottom: 3rem;
            }
        }

        /* Slider Container Styles */
        .slider-container input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, #ef4444 0%, #f97316 25%, #eab308 50%, #22c55e 75%, #16a34a 100%);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .slider-container input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            border: 2px solid #1e40af;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .slider-container input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            border: 2px solid #1e40af;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* Stats Row and Card Styles */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: white;
            padding: 1.25rem;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            text-align: center;
            transition: box-shadow 0.2s;
        }

        .stat-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .stat-label {
            font-size: 0.875rem;
            color: #64748b;
            margin-bottom: 0.75rem;
            font-weight: 500;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e40af;
            margin-bottom: 0.5rem;
        }

        /* Stats Comparison Styles (HRC Project) */
        .stats-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 2rem 0;
        }

        .stats-comparison .stat-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 2px solid #e2e8f0;
        }

        .stats-comparison .stat-card.no-tariff {
            border-top: 4px solid #059669;
        }

        .stats-comparison .stat-card.with-tariff {
            border-top: 4px solid #dc2626;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .stat-item:last-child {
            border-bottom: none;
        }

        .stat-item .stat-label {
            color: #64748b;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .stat-item .stat-value {
            color: #1e40af;
            font-size: 1.1rem;
            font-weight: 700;
        }

        /* HRC Core Findings Grid */
        .HRC-core-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .HRC-core-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #0ea5e9;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .HRC-core-card h5 {
            font-size: 1rem;
            margin: 0 0 0.75rem 0;
        }

        .HRC-core-card p {
            color: #475569;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }

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

            .HRC-core-grid {
                grid-template-columns: 1fr;
            }
        }

/* Bayesian Model Comparison Tabbed Interface */
.bayes-tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
}

.bayes-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.bayes-tab-btn:hover {
    color: #1e40af;
    background: #ffffff;
}

.bayes-tab-btn.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
    background: #ffffff;
}

.bayes-tab-content {
    animation: fadeIn 0.3s ease;
}

.bayes-tab-content[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bayes-prior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bayes-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.bayes-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bayes-card-label {
    color: #475569;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.bayes-image {
    width: 100%;
    height: auto;
    display: block;
}

.bayes-image.small {
    max-height: 150px;
    object-fit: contain;
}

.bayes-section {
    margin-bottom: 2.5rem;
}

.bayes-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #fbbf24;
}

.bayes-section-title.winner {
    color: #059669;
    border-bottom-color: #10b981;
}

.bayes-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bayes-model-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bayes-model-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
}

.bayes-model-card.highlight {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.bayes-model-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.bayes-model-name.highlight {
    color: #059669;
    font-size: 1.1rem;
}

.bayes-model-elpd {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bayes-model-elpd.highlight {
    color: #10b981;
    font-weight: 700;
}

.bayes-elpd {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.bayes-elpd-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 1.5rem;
}

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

    .bayes-model-grid {
        grid-template-columns: 1fr;
    }

    .bayes-tab-bar {
        flex-direction: column;
    }

    .bayes-tab-btn {
        width: 100%;
        text-align: left;
    }
}
