html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #0056b3;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

#hero {
    background: url('/img/User.png') no-repeat center center/cover;
    color: #000000;
    text-align: center;
    padding: 5em 1em;
}

#hero-text {
    background: linear-gradient(135deg, #0056b3 0%, #007BFF 100%);
    color: #fff;
    text-align: center;
    padding: 3em 1em;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

#hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

#hero-text h3 {
    font-weight: normal;
    font-size: 1.3rem;
    margin-top: 0;
    opacity: 0.9;
}

#hero-text h4 {
    font-weight: normal;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

#hero-text p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.6;
}

#hero-text .cta-button {
    background-color: #fff;
    color: #0056b3;
    font-weight: bold;
}

#hero-text .cta-button:hover {
    background-color: #f0f0f0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero image with SEO-optimized caption */
.hero-image {
    max-width: 800px;
    margin: 0 auto 2em auto;
    padding: 1.5em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.hero-image figcaption {
    margin-top: 1em;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.cta-button {
    background-color: #007BFF;
    color: #fff;
    padding: 1em 2em;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1em;
}

.cta-button:hover {
    background-color: #0056b3;
}

section {
    padding: 2em 1em;
    margin: 1em 0;
    background-color: #fff;
    border-radius: 5px;
    max-width: 800px;
    margin: 1em auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #0056b3;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 2em 0;
    text-align: center;
}

footer nav ul {
    list-style-type: none;
    padding: 0;
}

footer nav ul li {
    display: inline;
    margin: 0 1em;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
}

footer p {
    margin: 1em 0 0;
    color: #fff;
}

/* Override section styles inside footer */
footer section {
    background-color: transparent;
    box-shadow: none;
    max-width: none;
    color: #fff;
}

footer section h2 {
    color: #fff;
}

.vpn-provider {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f9f9f9;
}

.vpn-provider.featured {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
    border: 2px solid #0056b3;
    border-radius: 8px;
    position: relative;
}

.editors-choice {
    background-color: #0056b3;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.4;
}

/* Ensure h3 with editors-choice badge aligns properly */
.vpn-provider.featured h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vpn-provider.featured h3 a {
    color: #0056b3;
}

/* Make featured box fully clickable */
.vpn-provider.featured {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.vpn-provider.featured .vpn-details {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
}

.vpn-provider.featured .vpn-details .text-content {
    flex: 1;
    min-width: 0;
}

.vpn-provider.featured .vpn-details .text-content p {
    margin: 0 0 10px 0;
}

.vpn-provider.featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

/* Editors choice as link */
a.editors-choice {
    text-decoration: none;
    color: #fff !important;
    transition: background-color 0.2s ease;
}

a.editors-choice:hover {
    background-color: #003d80;
    color: #fff !important;
}

/* Logo link in featured box */
.vpn-provider.featured .logo-link {
    display: block;
    flex-shrink: 0;
}

.vpn-provider.featured .logo-link img {
    transition: transform 0.2s ease;
}

.vpn-provider.featured .logo-link:hover img {
    transform: scale(1.05);
}

/* CTA button in featured box */
.vpn-provider.featured .cta-button {
    display: inline-block;
    background-color: #e94560;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.vpn-provider.featured .cta-button:hover {
    background-color: #d63050;
    transform: scale(1.05);
}

/* About us in main content (not footer) */
section#about-us:not(footer *) p {
    color: #000;
    text-align: left;
}

/* About us in footer */
footer #about-us p,
footer #about-us h2 {
    color: #fff;
    text-align: center;
}

#toc {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

#toc h2 {
    margin-top: 0;
}

#toc ul {
    list-style: none;
    padding-left: 0;
}

#toc ul li {
    margin: 10px 0; 
    display: block; 
}

#toc ul li a {
    text-decoration: none;
    color: #007bff;
}

#toc ul li a:hover {
    text-decoration: underline;
}

/* Age verification section - full width dark background (all languages) */
#age-verification,
#aldersverifikation,
#altersverifikation,
#verification-age,
#verificacion-edad,
#ikavarmistus {
    max-width: none;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 20px;
    margin: 30px 0;
    color: #fff;
}

#age-verification h2,
#aldersverifikation h2,
#altersverifikation h2,
#verification-age h2,
#verificacion-edad h2,
#ikavarmistus h2 {
    color: #e94560;
}

#age-verification p,
#age-verification li,
#aldersverifikation p,
#aldersverifikation li,
#altersverifikation p,
#altersverifikation li,
#verification-age p,
#verification-age li,
#verificacion-edad p,
#verificacion-edad li,
#ikavarmistus p,
#ikavarmistus li {
    color: #fff;
}

#age-verification .content-wrapper,
#aldersverifikation .content-wrapper,
#altersverifikation .content-wrapper,
#verification-age .content-wrapper,
#verificacion-edad .content-wrapper,
#ikavarmistus .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

li {
    margin-bottom: 10px;
}

.right-align {
    text-align: right;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}
.breadcrumbs a {
    color: #0056b3;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    header > div {
        flex-direction: column;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 5px;
    }

    section {
        padding: 1.5em 1em;
        margin: 0.5em;
    }

    .hero-content {
        padding: 0 1rem;
    }

    #hero-text {
        padding: 2em 1em;
    }

    #hero-text h1 {
        font-size: 1.8rem;
    }

    #hero-text h3 {
        font-size: 1.1rem;
    }

    #hero-text p {
        font-size: 1rem;
    }

    .vpn-provider img {
        float: none !important;
        display: block;
        margin: 0 auto 15px auto !important;
    }

    .vpn-details {
        text-align: center;
    }

    .vpn-provider.featured .vpn-details {
        flex-direction: column;
        align-items: center;
    }

    .vpn-provider.featured .vpn-details .text-content {
        text-align: center;
    }

    #toc {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header img {
        height: 50px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    header nav ul li {
        margin: 3px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    #hero-text h1 {
        font-size: 1.5rem;
    }

    #hero-text h3 {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75em 1.5em;
        font-size: 0.9rem;
    }
}