/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Container */
.container {
    padding: 20px;
}

/* Typography */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.2em;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 2em;
    color: #333;
}

h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: 0.2em;
}

/* First h3 should have less top margin */
.container > h3:first-of-type {
    margin-top: 1em;
}

p {
    margin-bottom: 1em;
    text-align: justify;
}

/* Lists */
ul {
    list-style: none;
    margin-bottom: 1em;
    padding-left: 0;
}

li {
    margin-bottom: 0.5em;
    padding-left: 0;
}

li strong {
    font-weight: 600;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* PDF Link */
.pdf-link {
    margin: 1.5em 0;
}

.pdf-link a {
    display: inline-block;
    padding: 0;
    font-size: 1em;
}

/* Alternative Version Link */
.alt-version {
    /* font-style: italic; */
    margin-top: 1.5em;
}

/* Strong/Bold Text */
strong {
    font-weight: 600;
}

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

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.45em;
        font-weight: 700;
    }

    p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.2em;
    }
}

.image-section {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 220px;
    overflow: hidden;
    margin-top: 15px;
}

.home-link {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #1a1a2e;
    font-size: 0.85em;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    opacity: 0.8;
}

.home-link:hover {
    text-decoration: underline;
    opacity: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: #2d3561;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .image-section {
        margin-top: 0;
        height: 180px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .image-section {
        height: 140px;
    }
}

p {
    line-height: 1.5;
    margin-bottom: 0.25em;
}

h3:not(:first-of-type) ~ p {
    line-height: 1.5;
    margin-bottom: 1em;
}

h4 {
    font-size: 1.05em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.blue {
    color: #0066cc;
}