body {
    font-family: 'Noto Sans', 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    color: #4a4a4a;
    background-color: #ffffff;
    line-height: 1.5; /* Slightly tighter line height */
}

/* --- TYPOGRAPHY --- */

h1 {
    font-family: "Noto Sans", sans-serif;
    font-size: 52px; /* Slightly smaller for tighter look */
    color: #1a1a1a;
    letter-spacing: -1.5px;
    word-spacing: 2px;
    line-height: 1.0; /* Very tight line height */
    margin-top: 30px; /* Drastically reduced */
    margin-bottom: 10px; /* Reduced */
    font-weight: 800;
}

h2 {
    font-family: "Noto Sans", sans-serif;
    font-size: 35px;
    margin-top: 10px; /* Reduced from 40 */
    margin-bottom: 0px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

h3 {
    font-family: "Noto Sans", sans-serif;
    font-size: 35px;
    margin-top: 0px; /* Reduced from 40 */
    margin-bottom: 3px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

h4 {
    font-family: "Noto Sans", sans-serif;
    font-size: 40px;
    margin-top: 0px; /* Reduced from 40 */
    margin-bottom: 0px;
    font-weight: 900;
    color: #e8725a;
    letter-spacing: -0.5px;
}

p {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 10px; /* Reduced paragraph spacing */
}

/* --- TEXT TAGS (Highlighters) --- */
/* No background, specific colors, bold */

p_Stat {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: #f2711c; /* Orange */
    font-weight: 700;
    background-color: transparent;
}

p_dyn {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: #8e44ad; /* Purple */
    font-weight: 700;
    background-color: transparent;
}

p_mesh {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: #c0392b; /* Red */
    font-weight: 700;
    background-color: transparent;
}

/* NEW TAG */
p_appear {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: #008080; /* Teal */
    font-weight: 700;
    background-color: transparent;
}

p_b {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

li {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
}

/* --- LINKS & AUTHORS --- */

.authors_block {
    margin-bottom: 5px;
}

.author-block {
    font-size: 20px; /* Slightly smaller */
    margin: 0 8px;
}

.author-block a {
    color: #209cee;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.author-block a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.author-block2 {
    font-size: 17px;
    color: #444;
    text-decoration: none;
}

.affiliations {
    margin-top: 5px; /* Tight spacing */
    margin-bottom: 0px;
}

/* --- BUTTONS --- */

.publication-links {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 5px;
}

.link-block {
    margin: 0 4px;
}

.button {
    padding: 8px 20px; /* Smaller padding */
    background-color: #ffffff;
    border-radius: 50px;
    font-size: 15px;
    color: #363636;
    border: 1px solid #dbdbdb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    border-color: #b5b5b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.button .icon {
    margin-right: 6px;
}

/* --- INTERACTIVE BUTTONS --- */

.button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px; /* Tighter gap */
    margin: 15px 0;
}

button[class^="prompt_title_"] {
    font-family: "Noto Sans", sans-serif;
    border-radius: 6px; /* Slightly squarer */
    padding: 10px 20px; /* Smaller padding */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.prompt_title_red_small {
    background-color: #ff6b6b;
    color: white;
}

.prompt_title_black_small {
    background-color: #f5f5f5;
    color: #4a4a4a;
    border: 1px solid #ddd !important;
}
.prompt_title_black_small:hover {
    background-color: #e0e0e0;
}

.prompt_title_blue_small {
    background-color: #eef6fc;
    color: #209cee;
    border: 1px solid #209cee !important;
}
.prompt_title_blue_small:hover {
    background-color: #209cee;
    color: white;
}

/* --- VIDEO & IMAGES --- */

.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 15px 0; /* Reduced margin */
    min-height: 400px;
}

.result-video {
    width: 60%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.im_container img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/*-------VIDEO GRID-------*/

.results-swiper {
    padding-bottom: 30px;
    position: relative;
}

.results-swiper .swiper-button-prev,
.results-swiper .swiper-button-next {
    color: #666;
    transition: color 0.2s ease;
    --swiper-navigation-size: 35px;
}

.results-swiper .swiper-button-prev:hover,
.results-swiper .swiper-button-next:hover {
    color: #1a1a1a;
}
.results-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
}

.results-swiper .swiper-pagination-bullet-active {
    background: #209cee;
    transform: scale(1.2);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 50px;
}

.result-item {
    text-align: center;
    margin-bottom: 40px;
}

.result-item video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
}

.result-caption {
    font-family: 'Lora', serif;
    font-size: 18px;       /* Slightly bumped up for better readability */
    font-style: italic;
    color: #000;           /* A slightly softer gray to match the image's muted tone */
    margin-top: 8px;      /* Gives the text a bit more breathing room under the video */
    line-height: 1.5;      /* Increased slightly for an elegant, spacious feel */
    font-weight: 500;      /* Changed from 500 to normal (400) to stop the italics from looking too heavy */
    text-align: center;    /* Essential for making it sit nicely centered under your video */
    letter-spacing: 0.3px; /* A tiny bit of spacing makes serif italics look much more refined */
}
.result-caption.rw-caption {
    color: #a801f5;
}

.rw-highlight {
    color: #a801f5;
    font-weight: 600;
}

/* --- LAYOUT CONTAINERS --- */

.page-container {
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.intro-container, 
.abstract-container {
    width: 62%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.abstract-container p {
    font-size: 18px;
}

.method-container, 
.ack-container, 
.bib-container {
    width: 62%; /* Use full available width of page-container */
    /* max-width: 100%; */
    margin: 0 auto;
    margin-bottom: 30px; /* Reduced spacing between sections */
}

/* TL;DR Box styling - Removed Box */
.tldr-section .intro-container {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0px;
    width: 62%;
}

.intro-paragraph_bold {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 20px;
}
.intro-paragraph p {
    width: 100%;
    font-size: 18px;
}
.interactive_bold {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-top: 10px;
}

/* --- TOP VIDEO GRID (TIGHT) --- */
.weather-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px auto;
    gap: 0px; /* Remove gap */
}

.grid-row {
    display: flex;
    justify-content: center;
    gap: 0px; /* Remove gap */
}

.grid-cell {
    width: 48%; /* Almost half, allowing for tiny pixel rounding errors */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px; /* Tiny padding to prevent direct video collision visual artifacts, or set to 0 */
}

.grid-cell video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Smaller radius for tight grid */
    /* No shadow here for cleaner grid look */
}

/* --- BIBTEX --- */

.code-container {
    width: 100%;
    background-color: #f4f6f8;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e1e4e8;
}

.bib-container code {
    font-family: "Consolas", "Monaco", monospace;
    color: #24292e;
    font-size: 16px;
    background-color: transparent;
}

/* --- MOBILE --- */

@media (max-width: 768px) {
    .intro-container,
    .abstract-container,
    .method-container,
    .ack-container,
    .bib-container,
    .tldr-section .intro-container {
        width: 95%;
    }
    .page-container {
    width: 100%;
    padding: 0 12px;
    }   

    p {
        font-size: 15px;
    }

    .abstract-container p,
    .intro-paragraph p {
        font-size: 16px;
    }

    .result-caption {
        font-size: 15px;
    }

    .author-block {
        font-size: 16px;
    }

    .author-block2 {
        font-size: 14px;
    }

    .intro-paragraph_bold {
        font-size: 17px;
    }

    h1 {
    font-size: 26px;
    margin-top: 16px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 22px;
    }


    .result-video {
        width: 100%;
    }

    .grid-cell {
        width: 50%; /* Full tightness on mobile */
        padding: 0;
    }
}