/* 1. Global Reset & Base Styles */
body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
}

/* 2. Responsive Containers */
/* Instead of fixed %, we use max-width so it looks good on desktop but fits on mobile */
.intro-container, 
.abstract-container, 
.method-container, 
.results-container, 
.ack-container, 
.bib-container,
.video-container {
    width: 90%;
    max-width: 850px; /* Standard readable line length */
    margin: 0 auto 3rem auto;
    text-align: center; /* Add this line */
}

.teaser-container {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

/* 3. Typography Hierarchy */
h1, .ourh1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Dynamically scales with screen size */
    color: #444;
    text-align: center;
    margin-top: 5%;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

p, li {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.2rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 5. Components & Media */
.benchmark-container img, 
.swiper-slide img, 
.swiper-slide video {
    width: 60%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto; /* This pushes the element to the center */
}

/* Histograms & Tabs scaling */
.histograms-table-container,
.results-table-container {
    width: 80%;
    max-width: 1100px;
    margin: 2rem auto;
}

.results-table-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.results-table-container .tab-pane {
    flex: 1;
}

/* 6. Fix for those 270deg Rotated Headings */
/* Rotating elements with fixed 'left: 100' usually breaks layouts. 
   Using % or viewport units makes it stay in place. */
h3, h4 {
    font-size: 1.2rem;
    transform: rotate(270deg);
    position: absolute;
    left: 2%; 
    white-space: nowrap;
}

.author-block {
    display: inline-block;
    margin: 0.5rem 1rem;
    font-size: 1.1rem;
}

.conference-block {
    color: #0064c8;
    font-weight: bold;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    text-align: center;
}

/* 7. Specific sizing for method analysis graph and results table */
.method-analysis-section .im_container img {
    width: 75%;
    max-width: 75%;
    display: block;
    margin: 0 auto;
}

.results-table-container img {
    width: 75%;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 8. Media Queries for Mobile Fine-tuning */
@media (max-width: 768px) {
    .intro-container, .abstract-container {
        width: 92%;
    }
    
    .author-block {
        display: block; /* Stack authors on small screens */
        text-align: center;
        margin: 0.2rem 0;
    }

    h3, h4 {
        position: static; /* Remove rotation on mobile to save space */
        transform: none;
        text-align: center;
        margin-bottom: 1rem;
    }
}