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

:root {
    --bg: #cadbdb;
    --surface: #d8dbca;
    --surface-2: #eef3f3;
    --card: #ffffff;
    --text: #233642;
    --muted: #4f6b76;
    --accent: #235b5c;
    --accent-2: #6f4986;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

html {
    font-size: 16px;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 0 16px 80px 0;
    font-size: 16px;
}

.page {
    display: block;
    width: 100%;
    margin: 0;
    padding: 24px 16px 80px 16px;
    padding-left: 256px;
    box-sizing: border-box;
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
    border-right: 1px solid rgba(35, 54, 66, 0.12);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 10;
    border-radius: 0px 10px 10px 0px;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: #ffffff;
    z-index: 11;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle .icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 14px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6f4986, #235b5c);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.brand-name {
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #eef3f3;
    font-size: 16px;
}

.nav-btn {
    border: none;
    background: transparent;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
    color: #eef3f3;
    font-size: 16px;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn .icon {
    color: currentColor;
    width: 20px;
    height: 20px;
}

.nav-spacer {
    flex: 1;
}

.side-nav .nav-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(35, 54, 66, 0.15);
}

.side-nav .nav-btn.active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateX(2px);
    font-weight: 700;
}
.side-nav .nav-btn.active:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(35, 54, 66, 0.15);
}

.app {
    width: 100%;
    background: var(--surface-2);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(35, 54, 66, 0.08);
}

.icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--radius-md);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(35, 54, 66, 0.08);
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.floating-add {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #2c6f6a, #6f4986);
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.floating-add-wrapper {
    position: relative;
}

.floating-add:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #357a75, #7f5a96);
}

.floating-add .icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

@media (max-width: 769px) {
    .sidebar-toggle {
        display: block;
    }

    .side-nav {
        transform: translateX(-100%);
        width: 220px;
        z-index: 1000;
    }

    .side-nav.collapsed {
        transform: translateX(0);
    }

    .sidebar-toggle-float {
        position: fixed;
        top: 16px;
        left: 16px;
        background: linear-gradient(135deg, #2c6f6a, #6f4986);
        border: none;
        border-radius: 12px;
        padding: 12px;
        cursor: pointer;
        color: #ffffff;
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        display: none;
        transition: all 0.2s ease;
    }

    .sidebar-toggle-float:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    .sidebar-toggle-float .icon {
        width: 24px;
        height: 24px;
        color: #ffffff;
    }

    body:not(.sidebar-open) .sidebar-toggle-float {
        display: block;
    }

    .page {
        padding-left: 16px !important;
        padding-right: 16px !important;
        overflow-x: hidden;
    }
    
    body {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }
    
    .app {
        overflow-x: hidden;
    }

    .side-nav .brand-name,
    .side-nav .nav-btn span {
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .side-nav.collapsed .brand-name,
    .side-nav.collapsed .nav-btn span {
        opacity: 1;
    }

    .side-nav .nav-spacer {
        flex: 0 0 24px;
        min-height: 24px;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    body.sidebar-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
}

  
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
  
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}

.close {
    color: var(--muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 16px 20px;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--text);
}



/* Introduction */
.intro {
    text-align: center;
    margin-top: 10px;
    padding: 10px 30px 15px 30px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 1000px;
    margin: auto;
}
.intro-title {
    text-align: center;
    padding: 12px 12px 12px 12px;
    border-radius: 0 0 18px 18px;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
    color: white;
}
.intro-image {
    object-fit: cover;
    width: 100%;
    max-height: 200px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.project-title-box {
    padding: 40px 48px 48px 48px;
    margin-bottom: 22px;
    background-color: #E7EAEC;
}

.project-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    text-align: center;
}

.resource-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 15px;
}
.resource-card {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(35,54,66,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}
.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.resource-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
}
.resource-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.resource-desc {
    font-size: 14px;
    color: var(--muted);
}

.hero {
    padding: 48px 40px 36px;
    border-bottom: 1px solid rgba(35, 54, 66, 0.08);
    background: linear-gradient(135deg, rgba(44, 111, 106, 0.06), rgba(111, 73, 134, 0.06));
}
.hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    max-width: 720px;
}
.hero p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 680px;
}

.page-body {
    padding: 40px 40px 56px;
    display: grid;
    gap: 48px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.prose {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 780px;
}
.prose p + p {
    margin-top: 14px;
}


/* Chart */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.chart-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(35, 54, 66, 0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.chart-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 240px;
}

.chart-container.tall {
    height: 300px;
}

/* Divider between major sections */
.section-divider {
    border: none;
    border-top: 2px solid rgba(35, 54, 66, 0.08);
    margin: 0;
}

/* ── DATASET CARDS ── */
.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.dataset-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(35, 54, 66, 0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dataset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.dataset-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
    display: flex;
    align-items: center;
    gap: 12px;
}
.dataset-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dataset-icon svg { width: 18px; height: 18px; color: #fff; }
.dataset-card-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.dataset-card-source { font-size: 11px; color: rgba(255,255,255,0.7); }
.dataset-card-body { padding: 16px 20px; }
.dataset-card-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.dataset-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dataset-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(35, 91, 92, 0.08);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ── DATA TABLE ── */
.table-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(35, 54, 66, 0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow-x: auto;
    margin-top: 24px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead tr {
    background: linear-gradient(135deg, rgba(44,111,106,0.08), rgba(111,73,134,0.08));
}
.data-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid rgba(35,54,66,0.08);
    white-space: nowrap;
}
.data-table td {
    padding: 13px 20px;
    color: var(--text);
    border-bottom: 1px solid rgba(35,54,66,0.05);
    vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(35,91,92,0.03); }
.td-muted { color: var(--muted) !important; font-size: 12px; }
.td-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(35,91,92,0.1);
    color: var(--accent);
}
.td-badge.purple {
    background: rgba(111,73,134,0.1);
    color: var(--accent-2);
}

/* ── PIPELINE STEPS ── */
.pipeline {
    display: grid;
    gap: 0;
    margin-top: 24px;
}
.pipeline-step {
    display: flex;
    gap: 20px;
    position: relative;
}
.pipeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--accent), rgba(111,73,134,0.3));
}
.pipeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(35,91,92,0.3);
    z-index: 1;
}
.pipeline-content {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(35,54,66,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 18px 22px;
    margin-bottom: 16px;
    flex: 1;
}
.pipeline-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.pipeline-content p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

/* ── MODEL CARDS ── */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.model-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(35,54,66,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.model-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.model-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.model-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

/* ── EQUATION BLOCK ── */
.equation-block {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(35,54,66,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 24px 28px;
    margin-top: 24px;
    overflow-x: auto;
}
.equation-block .eq-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.equation-block .eq-formula {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 14px;
}
.equation-block .eq-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.intro-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(35, 54, 66, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meta-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c6f6a, #6f4986);
}

/* Stat row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid rgba(35, 54, 66, 0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.stat-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.stat-value.accent { color: var(--accent); }
.stat-value.purple { color: var(--accent-2); }

/* Callout block */
.callout {
    background: linear-gradient(135deg, rgba(44, 111, 106, 0.08), rgba(111, 73, 134, 0.08));
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
}

.callout p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
}

/* Banner image */
.banner-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Placeholder shown when no real image is set */
.banner-placeholder {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2c6f6a 0%, #4a7f7a 40%, #6f4986 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    border: 1px solid rgba(35, 54, 66, 0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.team-avatar {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
}

.team-avatar.teal   { background: linear-gradient(135deg, #2c6f6a, #235b5c); }
.team-avatar.purple { background: linear-gradient(135deg, #6f4986, #9b6abf); }
.team-avatar.mixed  { background: linear-gradient(135deg, #2c6f6a, #6f4986); }

img.team-avatar {
    object-fit: cover;
    background: var(--surface);
}

.team-name { font-weight: 700; font-size: 18px; color: var(--text); }
.team-role { font-size: 14px; color: var(--muted); line-height: 1.5; }

.about-header {
    justify-content: center;
    text-align: center;
}

.about-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.about-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-body p {
    font-size: 18px;
    line-height: 1.7;
}