/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Links */
.header-links {
    text-align: right;
    margin-bottom: 30px;
    font-size: 14px;
}

.header-links a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 5px;
}

.header-links a:hover {
    text-decoration: underline;
}

/* Typography */
h1 {
    font-size: 2.2em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #000;
}

h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #000;
}

h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

/* Authors and Metadata */
.authors {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.authors a {
    color: #0066cc;
    text-decoration: none;
}

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

.affiliation {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

.venue {
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
}

/* Paragraphs and Text */
p {
    margin-bottom: 15px;
    line-height: 1.7;
}

ul, ol {
    margin-left: 35px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Figures */
.figure {
    margin: 30px 0;
}

.figure img,
.figure video {
    width: 100%;
    height: auto;
    display: block;
}

.figure-row {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.figure-half {
    flex: 1;
}

.figure-half img {
    width: 100%;
    height: auto;
    display: block;
}

.figure-third {
    flex: 1;
}

.figure-third img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* Research Questions */
.rq-section {
    margin: 25px 0;
}

.rq-box {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #ddd;
}

.rq-box h3 {
    margin-top: 0;
    font-size: 1.1em;
}

.rq-box p {
    margin-bottom: 0;
}

/* Citation */
.citation {
    background-color: #f5f5f5;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.citation pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-slide .caption {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    margin-top: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-indicators {
    text-align: center;
    padding: 15px 0;
}

.carousel-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: #0066cc;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95em;
}

table thead tr {
    background-color: #f5f5f5;
    text-align: left;
}

table th,
table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.1em;
    }

    .figure-row {
        flex-direction: column;
    }

    .container {
        padding: 30px 15px;
    }
}
