@charset "UTF-8";
body {
    margin: 0;
}

html,
body {
    background-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

.paper-header {
    position: relative;
    width: 100%;
    height: auto; /* allow it to grow with content */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem 0rem; /* add some internal padding for breathing space */
}

.paper-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes it fill and crop like background */
    z-index: 0;
    filter: brightness(80%);
}

.paper-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 80%;
    font-family: "Google Sans", sans-serif;
    max-width: 1300px;
    width: 100%;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
}

.authors {
    font-size: 1.5rem;
    margin: 10px 0;
    line-height: 1.6;
}

.authors a {
    color: #ffebc6;
    text-decoration: none;
    font-weight: 500;
}

.authors a:hover {
    text-decoration: underline;
}

.affiliations {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 5px;
}

.conference {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e6c361;
}

.corresponding-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffebc6;
    opacity: 0.95;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem; /* smaller top margin */
    margin-bottom: 0; /* removes extra bottom spacing */
}

.link-button {
    display: inline-flex;
    align-items: center; /* Ensures children center vertically */
    justify-content: center; /* Centers text + icon horizontally */
    gap: 0.6rem;
    background: rgba(34, 34, 34, 0.7);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.75rem 1.6rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease-in-out;
    line-height: 1; /* Prevents vertical offsets */
}

.link-button:hover {
    background: rgba(68, 68, 68, 0.9); /* less transparent when hovered */
    transform: translateY(-2px);
    border-color: #ffffff; /* stronger white edge on hover */
}

.link-button i.icon {
    font-size: 1.3rem;
    color: #f0f0f0;
}

.link-button img.icon {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
    display: flex; /* Treat the image as a flex item */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    position: relative; /* Keep inside parent flex flow */
    flex-shrink: 0;
    margin: 0;
}

.oral-presentation {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffb347; /* warm orange that matches the gold tone */
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 0rem 1rem;
    border-radius: 9999px;
    /* border: 1px solid rgba(255, 179, 71, 0.3); */
    /* box-shadow: 0 0 6px rgba(255, 179, 71, 0.25); */
    transition: all 0.3s ease-in-out;
}

.oral-presentation:hover {
    background: rgba(255, 179, 71, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.35);
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 20px 80px 20px;
    font-family: "Google Sans", sans-serif;
    color: #222;
}

/* Section titles */
.content h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #0f3d73; /* marine blue accent */
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: #3b82f6;
    margin: 10px auto 30px;
    border-radius: 2px;
}

.content section {
    background-color: transparent; /* or your preferred background */
}

/* Section text */
.content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 2rem;
}

/* Subheadings (e.g., Introduction, Dataset, etc.) */
.content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    text-align: left;
}

.content ol,
.content ul {
    font-size: 1.1rem;
    /* line-height: 1.75;
    margin: 0rem 0 1.5rem 2rem; */
    color: #333;
    /* padding-left: 0; */
    margin-left: 0;
    list-style-position: inside;
}

.content ol li,
.content ul li {
    margin-bottom: 0.75rem;
}

.content ol {
    list-style-type: decimal;
}

.content ul {
    list-style-type: disc;
}

/* Marine-colored markers */
.content ol li::marker {
    color: #1e3a8a;
    font-weight: 600;
}

/* Figures within .content only */
.content figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto;
    text-align: center;
}

.content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    background-color: transparent;
}

.content figure img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.content figcaption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    max-width: 700px;
    line-height: 1.5;
}

/* Inline strong */
.content .toolname {
    color: #0f3d73;
    font-weight: 600;
}

.content a {
    color: #1e3a8a; /* marine/royal blue accent */
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(59, 130, 246, 0.4); /* soft underline accent */
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.content a:hover {
    color: #0f3d73; /* slightly deeper blue on hover */
    border-bottom-color: rgba(15, 61, 115, 0.9);
}

.content a:active {
    color: #0a2e5c; /* slightly darker when clicked */
    border-bottom-color: rgba(10, 46, 92, 1);
}

.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow-x: auto; /* enable horizontal scroll on small screens */
}

.caption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    text-align: justify;
    text-align-last: center; /* center the last line */
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto 0;
    padding: 0.5rem 0;
    display: block;
}

/* Video figure styling — aligned with .content figure */
.video-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto;
    text-align: center;
    max-width: 800px;
}

/* Video appearance */
.video-figure video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    background-color: #000;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Subtle hover animation — same feel as image hover */
.video-figure video:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Caption — reuse your existing figcaption style */
.video-figure figcaption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    max-width: 700px;
    line-height: 1.5;
    margin-top: 0.75rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.code-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

/* Allow hover through the pre/code layers */
.code-container pre,
.code-container code {
    pointer-events: none;
}

.code-container pre {
    background-color: #f1f3f5;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 0;
}

.code-container code {
    font-family: "Fira Code", monospace;
    color: #2c3e50;
    display: block;
    white-space: pre;
}

/* Copy button styles */
.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
    pointer-events: auto; /* Button remains clickable */
    z-index: 2; /* Stay on top */
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-btn.copied {
    background-color: #28a745;
}

.code-container:hover .copy-btn {
    opacity: 1;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #0f3d73; /* suggested professional medium blue */
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

/* === NEW / IMPROVED RESPONSIVE DESIGN RULES === */

/* 1️⃣ Tablet breakpoint — adjust layout smoothly around medium screens */
@media (max-width: 1200px) {
    .header {
        max-width: 95%;
    }

    .authors {
        font-size: 1.2rem;
    }

    .link-buttons {
        gap: 0.8rem;
    }

    .link-button {
        padding: 0.6rem 1.3rem;
    }

    .content {
        padding: 0px 20px 80px 20px;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1.05rem;
    }
}

/* 2️⃣ Phone breakpoint — stacked header elements, readable typography, full-width buttons */
@media (max-width: 800px) {
    .paper-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem 3rem;
        min-height: 320px;
    }

    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .authors {
        font-size: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .link-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .link-button {
        width: 90%;
        text-align: center;
    }

    .content {
        padding: 50px 15px;
    }

    .content h2 {
        font-size: 1.6rem;
    }

    .content p {
        font-size: 1rem;
    }

    .content figure img {
        border-radius: 8px;
    }

    .video-figure {
        margin: 1.8rem auto;
        width: 100%;
    }

    .video-wrapper {
        padding-bottom: 56.25%;
        border-radius: 8px;
    }

    .video-wrapper iframe {
        border-radius: 8px;
    }

    .content a {
        border-bottom: 1.5px solid #0f3d73;
    }

    .link-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 1rem; /* adds padding to the container edges */
        box-sizing: border-box;
    }

    .link-button {
        width: 100%;
        max-width: 400px; /* optional — keeps buttons from being too wide on large phones */
        text-align: center;
    }
}

/* 3️⃣ Extra small devices — prioritize vertical spacing, hide some minor text decorations */
@media (max-width: 500px) {
    .header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .authors {
        font-size: 0.9rem;
    }

    .affiliations {
        font-size: 0.9rem;
    }

    .conference {
        font-size: 1rem;
    }

    .link-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.1rem;
    }

    .content h2 {
        font-size: 1.4rem;
    }

    .content p {
        font-size: 0.95rem;
    }

    .copy-btn {
        top: 0.4rem;
        right: 0.4rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .link-buttons {
        padding: 0 1.2rem; /* slightly more space on very small screens */
    }

    .link-button {
        width: 100%;
        max-width: 350px;
    }
}

.performance-table {
    width: 100%;
    border-collapse: separate; /* change from collapse to separate */
    border-spacing: 0; /* removes gaps between cells */
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    text-align: center;
    color: #1e293b;

    border: 1px solid #e2e8f0; /* outer border */
    border-radius: 10px; /* adjust radius as you like */
    overflow: hidden; /* ensures the corners stay neat */
}

.performance-table th,
.performance-table td {
    padding: 0.75rem 0.6rem;
    border: 1px solid #e2e8f0;
}

.performance-table thead th {
    background: linear-gradient(90deg, #0f3d73 0%, #1e3a8a 100%);
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.performance-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.performance-table tbody tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s ease-in-out;
}

/* Section headings like “Open-source VLMs” */
.performance-table-group {
    background-color: #e2e8f0;
    font-weight: 600;
    font-style: italic;
    color: #0f3d73;
    text-align: center;
}

/* Bold highlight for best-performing values */
.performance-table td.best {
    background-color: #dbeafe;
    color: #0f3d73;
    font-weight: 700;
}

/* Avg rows styling */
.performance-table tbody tr.avg-row {
    background-color: #fef3c7;
    font-weight: 600;
    color: #92400e;
}

/* Human performance section */
.performance-table .human-row {
    background-color: #dcfce7;
    font-weight: 600;
    color: #14532d;
}

.summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Google Sans", sans-serif;
    font-size: 1.5rem; /* slightly larger font */
    text-align: center;
    color: #1e293b;

    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.summary-table th,
.summary-table td {
    padding: 0.9rem 0.7rem;
    border: 1px solid #e2e8f0;
    font-weight: 600; /* make all cells bold */
    font-size: 1.3rem; /* slightly larger font */
}

.summary-table thead th {
    background: linear-gradient(90deg, #0f3d73 0%, #1e3a8a 100%);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.summary-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.summary-table tbody tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s ease-in-out;
}

canvas {
    width: 100%;
    height: auto;
}

#dimension-overview {
    position: relative;
    display: inline-block;
}

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

.mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent SVG container from blocking */
}

.mask {
    fill: transparent;
    stroke: transparent;
    stroke-width: 5px;
    pointer-events: all; /* Allow the paths to capture interaction */
    transition: all 0.25s ease;
    cursor: default;
}

.mask:hover {
    stroke: #3ab4ff;
    stroke-width: 10px;
    animation: glow-outline-blue 1.6s ease-in-out infinite;
}

@keyframes glow-outline-blue {
    0% {
        stroke: #3ab4ff;
        filter: drop-shadow(0 0 3px #3ab4ff);
    }
    50% {
        stroke: #73d7ff;
        filter: drop-shadow(0 0 8px #73d7ff);
    }
    100% {
        stroke: #3ab4ff;
        filter: drop-shadow(0 0 3px #3ab4ff);
    }
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background: rgba(25, 25, 25, 0.92);
    color: #f9f9f9;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 220px;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    transform: translate(-50%, -120%) scale(0.98);
    text-align: left; /* overall base alignment */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    white-space: normal;
    z-index: 20;
}

.tooltip.show {
    opacity: 1;
    transform: translate(-50%, -130%) scale(1);
}

/* Title left-aligned */
.tooltip-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: left;
}

/* Description justified for paragraph readability */
.tooltip-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #cccccc;
    text-align: justify;
    text-justify: inter-word;
}

.data-gallery-container {
    position: relative;
    width: 100vw; /* full viewport */
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 2rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%);
    flex-direction: column;
}

/* ======== DATA CARD ======== */
.data-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 600px; /* lower limit */
    height: 800px; /* initial default */
    resize: vertical; /* ✅ allow vertical drag resizing */
    overflow: auto; /* ✅ needed for scroll inside */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 3rem;
    box-sizing: border-box;
    font-family: "Google Sans", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
    min-width: 900px;
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

/* ======== CARD HEADER (Question ID, Dimension, Type) ======== */
.data-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f3d73;
    text-align: center;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.dimension-label {
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.25rem;
    text-align: center;
}

.question-type {
    margin-top: 0.9rem;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 20px;
}

/* ======== GALLERY ======== */
.gallery-wrapper {
    width: 100%;
    margin-top: 1.4rem;
    margin-bottom: 1.8rem;
}

.gallery.fixed-height {
    width: 100%;
    height: 450px; /* ✅ constant across entries */
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

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

.transform-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    translate: -50% -50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    /* width: 100%;
    height: 100%; */
    object-position: center;
    transition:
        opacity 0.3s ease-in-out,
        transform 0.3s ease;
    display: block;
    max-width: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* ======== NAV BUTTONS (outer only) ======== */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 61, 115, 0.85);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease-in-out;
    opacity: 0.75;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1e40af, #0f3d73);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.nav-btn.prev {
    left: 18px;
}

.nav-btn.next {
    right: 18px;
}

/* ======== QUESTION TEXT ======== */
.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    color: #0f3d73;
    margin-top: 1.2rem;
    padding: 0 1rem;
    border-top: 2px solid #e0e7ff;
    padding-top: 1rem;
}

/* ======== ANSWERS AREA ======== */
.answers {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
    gap: 8px; /* spacing between buttons */
    justify-content: center; /* center align the buttons */
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.answer-btn {
    padding: 0.6rem 1.4rem;
    margin: 0.4rem;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
    cursor: default;
    transition: background-color 0.2s ease;
    font-size: 20px;
}

.answer-btn.correct {
    background: #22a24f;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(34, 162, 79, 0.25);
}

.option-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    width: fit-content;
    background: #f8fafc;
    color: #334155;
    font-weight: 500;
    font-size: 20px;
}

.option-item.correct {
    background: #38b64a;
    color: #fff;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25);
}

.local-note {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* ======== BOUNDING BOX ======== */
.bbox {
    position: absolute;
    border: 3px solid rgba(255, 59, 59, 0.85);
    box-shadow: 0 0 6px rgba(255, 59, 59, 0.5);
    pointer-events: none;
    z-index: 10;
    transition: all 0.1s ease;
}

.gallery-image.fade-enter {
    opacity: 0;
    transform: scale(0.98);
}
.gallery-image.fade-enter-active {
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 15;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.gallery-btn:hover {
    opacity: 1;
}
.gallery-btn.prev-inner {
    left: 10px;
}
.gallery-btn.next-inner {
    right: 10px;
}

/* ===== COMPACT, SCROLLABLE OPEN-ENDED ANSWER LIST ===== */
/* ===== ELEGANT + FIXED HEIGHT OPEN-ENDED ANSWER LIST ===== */
.answer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0.75rem 0 0.5rem 0;
    padding: 0.4rem 0.5rem 0.4rem 0.25rem;
    box-sizing: border-box;

    list-style: none; /* ✅ remove dot markers */
    overflow-y: auto; /* ✅ scroll content */
    scroll-behavior: smooth;
    scrollbar-gutter: stable; /* prevents small shifts */
}

/* individual open-ended answer block */
.answer-list li {
    position: relative;
    background: #f9fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem 0.65rem 2.35rem;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.55;
    transition: all 0.2s ease-in-out;
    overflow-wrap: break-word;

    list-style: none; /* ✅ removes the native list dots */
    padding-left: 0; /* ✅ prevents default indentation */
    margin: 0; /* (optional) keeps spacing consistent */

    padding-left: 2.2rem; /* tweak to match your 💬 icon width */
}

/* Custom icon marker (no dot) */
.answer-list li::before {
    content: "💬";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.75;
}

/* Hover feedback */
.answer-list li:hover {
    background: #f1f5ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
}

/* Alternating tone for rhythm */
.answer-list li:nth-child(even) {
    background-color: #f3f6fb;
}

/* ===== Scrollbar refinement ===== */
.answer-list::-webkit-scrollbar {
    width: 6px;
}

.answer-list::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.45);
    border-radius: 4px;
}

.answer-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(37, 99, 235, 0.65);
}

.answer-list::-webkit-scrollbar-track {
    background: transparent;
}

/* Shared base smooth transitions */
.answer-btn,
.option-item {
    transition: all 0.2s ease-in-out;
    transform-origin: center;
}

/* ===== Hover for YES/NO (answer-btn) ===== */
.answer-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.answer-btn.correct:hover {
    background-color: #1f9f4f;
    box-shadow: 0 5px 14px rgba(34, 197, 94, 0.3);
    transform: translateY(-3px) scale(1.05);
}

/* ===== Hover for MCQ options (option-item) ===== */
.option-item:hover {
    background-color: #e0ecff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

.option-item.correct:hover {
    background: #2fb64a;
    box-shadow: 0 5px 14px rgba(34, 197, 94, 0.3);
    transform: translateY(-3px) scale(1.05);
}

/* ===== Active click feedback ===== */
.answer-btn:active,
.option-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Optional: cursor feedback */
.answer-btn,
.option-item {
    cursor: default;
}

.dataset-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.dataset-btn-container a,
.dataset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(90deg, #0f3d73 0%, #1e3a8a 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 9999px;
    padding: 0.9rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    transition: all 0.25s ease-in-out;
}

.dataset-btn i {
    font-size: 1.3rem;
    color: #ffebc6;
}

.dataset-btn:hover {
    background: linear-gradient(90deg, #1e40af 0%, #0f3d73 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dataset-btn:active {
    transform: translateY(0);
}

.code-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

/* Allow hover through the pre/code layers */
.code-container pre,
.code-container code {
    pointer-events: none;
}

.code-container pre {
    background-color: #f1f3f5;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 0;
}

.code-container code {
    font-family: "Fira Code", monospace;
    color: #2c3e50;
    display: block;
    white-space: pre;
}

/* Copy button styles */
.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
    pointer-events: auto; /* Button remains clickable */
    z-index: 2; /* Stay on top */
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-btn.copied {
    background-color: #28a745;
}

.code-container:hover .copy-btn {
    opacity: 1;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #0f3d73; /* suggested professional medium blue */
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .data-card {
        min-height: 640px;
    }
    .gallery.fixed-height {
        height: 380px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
}

@media (max-width: 640px) {
    .data-card {
        min-height: 560px;
    }
    .gallery.fixed-height {
        height: 280px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .data-card h3 {
        font-size: 1.3rem;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (max-width: 800px) {
    .performance-table-container {
        padding: 1rem;
    }
    .performance-table th,
    .performance-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }
    .performance-table caption {
        font-size: 0.85rem;
    }

    .chart-container {
        padding: 1rem;
    }

    .summary-table th,
    .summary-table td {
        padding: 0.6rem 0.45rem;
        font-size: 0.95rem;
    }

    .gallery-image-wrapper {
        max-height: 320px;
    }

    .gallery-btn {
        width: 18%;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .citation-section {
        padding: 1rem;
    }
}
