/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    font-size: 62.5%;
}

body {
    background-color: #01074B;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    width: 100%;
    font-display: swap; /* Prevent font loading layout shifts */
}

/* ===== LAYOUT COMPONENTS ===== */
footer {
    position: sticky;
    width: 100%;
    bottom: 0;
}

.container {
    position: relative;
}

.logo_container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 156px;
    min-height: 60px;
}

.main_container {
    display: flex;
    border-top: 0.3rem solid #00A99D;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    justify-content: center;
}

.main_container_wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 660px;
}

.header_content_container {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.header_image_container {
    height: 10rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.header_image_container img {
    object-fit: cover;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: block;
}

.article_title {
    font-family: sans-serif;
    font-size: 1.6rem;
    line-height: 1.7rem;
    margin: 0.5rem auto;
}

.article_container {
    padding: 0 1.5rem;
    font-size: 1.44rem;
    line-height: 2.2rem;
    font-family: sans-serif;
    font-weight: 100;
}

.article_description {
    padding-top: 1.5rem;
    font-weight: 100;
}

.continue_reading_container {
    padding: 0 1.5rem;
}

.article_container h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 3rem;
}

.continue_reading_container_wrapper {
    width: 100%;
    margin-top: 1.6rem;
    border-bottom: 0.1rem solid #eceff1;
    border-top: 0.1rem solid #eceff1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.continue_reading_text {
    display: inline-block;
    padding: 1rem 0;
    width: 100%;
}

.continue_reading_button {
    background-color: #00A99D;
    border-radius: 0.4rem;
    min-width: 4rem;
    min-height: 4.8rem;
    position: relative;
}

.continue_reading_button::after {
    content: '';
    position: absolute;
    width: 0.3em;
    height: 0.3em;
    border-right: 0.1em solid #fff;
    border-top: 0.1em solid #fff;
    margin-left: 20px;
    transform: rotate(45deg);
    margin-right: 0.5em;
    font-size: 3rem;
    top: 35%;
    left: -25%;
}

.continue_reading_note {
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 2.4rem;
    max-width: calc(100% - 4rem);
    padding-right: 1rem;
}

.continue_reading_title {
    font-size: 2rem;
    color: #ffffff;
    line-height: 2.4rem;
    max-width: calc(100% - 4rem);
    padding-right: 1rem;
    font-weight: bold;
}

.author_article_container {
    margin-top: 2.6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.author_image_container {
    display: flex;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    margin-bottom: 1.6rem;
    position: relative;
    overflow: hidden;
}

.author_image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author_timestamp_container {
    text-align: center;
    font-size: 1.4rem;
    font-family: Arial, Helvetica, sans-serif;
}

.share_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.6rem;
}

.share_container p {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5rem;
    margin-bottom: 1.2rem;
    margin-top: 0;
}

.socials_container ul li {
    list-style: none;
}

.socials_container ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.socials_container a {
    background-color: #f1f3f4;
    border-radius: 0.4rem;
    display: inline-block;
    height: 3.2rem;
    line-height: 3.2rem;
    padding: 0.8rem;
    position: relative;
    width: 3.2rem;
}

.socials_container ul li:not(:first-child) {
    margin-left: 1rem;
}

.socials_container img {
    font-size: 0.1rem;
    overflow: hidden;
    display: inline;
    left: 50%;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 1.6rem;
    height: 1.6rem;
}

.article_disclaimer {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.legal_container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 0.3rem solid #00A99D;
    padding: 1rem 1.5rem 1rem 1.5rem;
    position: relative;
    text-align: center;
    font-size: 1.3rem;
    font-family: Arial, Helvetica, sans-serif;
}

.legal_container .legal_container_wrapper {
    line-height: 2.6rem;
    margin: 0;
    padding: 0 1.5rem;

}

/* ===== IFRAME CONTAINERS ===== */
#relatedsearches1 {
    margin-top: 1.5rem;
    contain: layout;
}

#relatedsearches2 {
    contain: layout;
}

/* Hide empty containers to prevent unnecessary space */
#relatedsearches1:empty,
#relatedsearches2:empty {
    display: none;
}

.legal_container_wrapper ul {
    display: flex;
    font-size: 0;
    list-style: none;
    padding-left: 0;
}

.legal_container li {
    font-size: 1.3rem;
    display: inline-flex;
}

.legal_container li:not(:first-child)::before {
    content: "-";
    display: inline-block;
    padding: 0 0.8rem;
}

.cookie_notice_container {
    border-top: 0.1rem solid #eeeeee;
    padding: 0.9rem 0;
    font-size: 1.2rem;
    display: block;
    text-align: center;
    line-height: 1.4rem;
    background-color: #01074B;
    font-family: Arial, Helvetica, sans-serif;
}

.cookie_notice_container a {
    text-decoration: underline;
    cursor: pointer;
}

.logo_container_mobile {
    display: none;
    width: 156px;
    min-height: 60px;
    margin: 0 auto;
}

/* Reserve minimal space for dynamic content */
.article_container_header {
    min-height: 20px;
}

.article_container_footer {
    min-height: 20px;
}

@media (max-width: 991px) {
    .logo_container {
        display: none;
    }

    .logo_container_mobile {
        display: block;
        margin-top: 4rem;
        padding-left: 1.5rem;
        text-align: center;
        padding-right: 1.5rem;
        width: 156px;
        min-height: 60px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    body {
        border-top: 0.3rem solid #00A99D;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        /* Mobile performance optimizations */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
        /* Prevent font loading layout shifts */
        font-display: swap;
        font-variant-ligatures: none;
    }

    .main_container_wrapper {
        width: 100%;
    }

    .main_container {
        border-top: none;
    }

    .continue_reading_container {
        max-width: 100%;
        width: 100%;
    }

    .header_image_container {
        height: auto;
        min-height: 8rem;
        contain: layout style paint;
    }

    .legal_container_wrapper ul {
        display: block;
    }

    .logo_container {
        display: contents;
    }

    .logo_container img {
        margin: 5px 0 0 5px;
    }

    .back_to_top_btn {
        position: fixed;
        width: 4rem;
        height: 4rem;
        background-color: #00A99D;
        right: 0;
        z-index: 99;
        bottom: 6rem;
        touch-action: manipulation;
        /* Optimize rendering */
        will-change: transform;
    }

    .back_to_top_btn::after {
        content: '';
        position: absolute;
        width: 0.3em;
        height: 0.3em;
        border-right: 0.1em solid #fff;
        border-top: 0.1em solid #fff;
        transform: rotate(-45deg);
        font-size: 3rem;
        top: 45%;
        left: 40%;
    }

}
