@import url('https://fonts.cdnfonts.com/css/poppins');

:root {
    --secondary: #ff0042;
    --primary: #fd6750;
    --ink: #0c0f14;
    --ink-2: #222328;
    --ink-3: #a2abb4;
    --ink-4: #86868b;
    --surface: #ffffff;
    --surface-2: #fbfbfd;
    --surface-3: #f5f5f7;
    --divider: rgba(255, 255, 255, .08);
    --radius-xl: 2rem;
    --radius-md: 1rem;
    --container: 1080px;
    --fitium-gradient: linear-gradient(135deg, #ff0042 0%, #fd6750 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #a2abb4 100%);
    --dark-gradient: linear-gradient(135deg, #0c0f14 0%, #222328 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--surface-2);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}

/* Header */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ink-2);
    border-bottom: 1px solid var(--divider);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
}

.blog-header .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.blog-header .brand img {
    width: auto;
    height: 40px;
    border-radius: 0;
}

.blog-header .nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.blog-header .nav-item {
    color: var(--surface);
    font-size: .82rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: color .16s ease;
}

.blog-header .nav-item:hover {
    color: var(--ink-3);
}

.blog-header .nav-item.active {
    color: var(--secondary);
}

.blog-header .lang-switcher {
    display: inline-flex;
    align-items: center;
}

.blog-header .lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    text-align: center;
    color: var(--surface);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.blog-header .lang-option:hover {
    background: rgba(255, 255, 255, .08);
}

.blog-header .lang-option.active {
    background: var(--surface);
    color: var(--ink-2);
    border-color: var(--surface);
}

.blog-header .cta-mini {
    display: inline-flex;
    text-wrap: nowrap;
    align-items: center;
    padding: .6rem 1.25rem;
    border-radius: 999px;
    background: var(--fitium-gradient);
    color: var(--surface);
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .18s, background .18s, color .18s;
}

.blog-header .cta-mini:hover {
    text-wrap: nowrap;
    background: var(--surface);
    color: var(--ink-2);
}

@media (max-width: 900px) {
    .blog-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: .65rem;
    }

    .blog-header .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: .95rem;
        row-gap: .45rem;
    }

    .blog-header .cta-mini {
        margin-top: .2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero img {
        max-height: 320px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-header .container {
        min-height: auto;
        padding: .7rem 0;
    }

    .blog-header .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: .55rem .75rem;
    }

    .blog-header .nav-item {
        font-size: .75rem;
    }

    .blog-header .lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .blog-header .cta-mini {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .search form,
    .newsletter {
        flex-direction: column;
        align-items: stretch;
    }

    .search button,
    .newsletter .btn-cta {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }
}

/* Hero */
.hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.hero h1 {
    max-width: 15ch;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.045em;
    color: transparent;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 58ch;
    margin: 0;
    color: var(--ink-3);
    font-size: 1.08rem;
}

.hero img {
    width: 100%;
    min-height: 260px;
    max-height: 390px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.breadcrumbs {
    width: min(92%, var(--container));
    margin: 1.25rem auto 0;
    color: var(--ink-3);
    font-size: .82rem;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* Controls and calls to action */
.search {
    margin: 1.25rem auto 3rem;
}

.search form {
    display: flex;
    gap: .7rem;
}

.search input {
    min-width: 0;
    flex: 1;
    padding: .82rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    color: var(--ink-2);
    font: inherit;
}

.search input::placeholder {
    color: var(--ink-3);
}

.search button,
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .82rem 1.45rem;
    border: 0;
    border-radius: 999px;
    background: var(--fitium-gradient);
    color: var(--surface);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, opacity .16s ease;
}

.search button:hover,
.btn-cta:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.cta-top,
.cta-bottom {
    margin: 0 auto 2.25rem;
    text-align: left;
}

/* Listings */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface-3);
    color: var(--ink-2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 34px rgba(0, 0, 0, .2);
}

.card a {
    display: block;
    height: 100%;
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card h3 {
    margin: 1.25rem 1.3rem .45rem;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: transparent;
    background: var(--fitium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.card p {
    margin: 0 1.3rem 1.4rem;
    color: var(--ink-4);
    font-size: .92rem;
}

.category-card {
    background: rgba(0, 0, 0, 0.08);
    color: var(--surface);
    border: 1px solid var(--divider);
}

.category-card h3 {
    color: var(--ink-2);
    background: none;
    -webkit-text-fill-color: initial;
}

.category-card p {
    color: var(--ink-3);
}

/* Article */
.entry {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.toc,
.entry section,
.faq details {
    border-radius: var(--radius-md);
    border: 1px solid rgba(12, 15, 20, .07);
    background: var(--surface);
    color: var(--ink-2);
}

.author-card {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.25rem;
    padding: 1rem 2rem 1rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(12, 15, 20, .07);
    background: var(--surface);
    color: var(--ink-2);
}

.author-card p {
    margin: 0 !important;
    font-size: .6rem;
    align-content: center;
}

.author-card strong {
    font-weight: normal;
    color: var(--ink);
}

.share {
    display: flex;
    gap: .65rem;
}

.share a {
    padding: .45rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--surface);
    font-size: .78rem;
    font-weight: 600;
}

.share a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.entry .intro {
    margin: .5rem 0;
    color: var(--ink-2);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.toc {
    padding: 1.25rem 1.4rem;
}

.toc h2,
.entry section h2,
.faq h2,
.container>h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -.03em;
}

.toc h2 {
    color: var(--ink-2);
}

.toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.toc li {
    margin: .4rem 0;
    color: var(--secondary);
}

.toc a {
    color: var(--ink-4);
}

.toc a:hover {
    color: var(--secondary);
}

.entry section {
    padding: clamp(1.35rem, 3vw, 2rem);
}

.entry section h2 {
    color: var(--ink-2);
}

.entry section p {
    margin: 0 0 1rem;
    color: var(--ink-4);
    font-size: 1rem;
}

.entry section p:last-of-type {
    margin-bottom: 0;
}

.entry section ul {
    margin: 1.1rem 0 0;
    padding-left: 1.2rem;
    color: var(--ink-4);
}

.entry section li {
    margin: .45rem 0;
    padding-left: .2rem;
}

.entry section li::marker {
    color: var(--secondary);
}

.entry section:has(h2) {
    scroll-margin-top: 5.5rem;
}

.faq {
    margin: 3.5rem auto;
}

.faq h2,
.container>h2 {
    color: var(--ink-2);
}

.faq details {
    margin: .75rem 0;
    padding: 0;
    overflow: hidden;
}

.faq summary {
    padding: 1rem 3rem 1rem 1.15rem;
    cursor: pointer;
    font-weight: 700;
    position: relative;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 1.15rem;
    color: var(--secondary);
    font-size: 1.3rem;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details p {
    margin: 0;
    padding: 0 1.15rem 1.1rem;
    color: var(--ink-4);
}

.entry a:not(.btn-cta),
.faq a {
    color: var(--secondary);
    border-color: var(--primary);
    text-decoration: none;
    text-underline-offset: 3px;
}

/* Newsletter and footer */
.newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 4rem auto;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border-radius: var(--radius-xl);
    background: var(--ink-2);
}

.newsletter p {
    margin: 0;
    max-width: 55ch;
    color: var(--surface);
    font-size: 1.1rem;
    font-weight: 600;
}

.newsletter .btn-cta {
    background: var(--surface);
    color: var(--ink-2);
    white-space: nowrap;
}

.blog-footer {
    border-top: 1px solid var(--divider);
    background: var(--ink-2);
}

.blog-footer .container {
    padding: 2rem 0;
}

.blog-footer p {
    margin: 0;
    color: var(--surface-3);
    font-size: .85rem;
}

@media (max-width: 900px) {
    .blog-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: .65rem;
    }

    .blog-header .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: .95rem;
        row-gap: .45rem;
    }

    .blog-header .cta-mini {
        margin-top: .2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero img {
        max-height: 320px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-header .container {
        min-height: auto;
        padding: .7rem 0;
    }

    .blog-header .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: .55rem .75rem;
    }

    .blog-header .nav-item {
        font-size: .75rem;
    }

    .blog-header .lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .blog-header .cta-mini {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .search form,
    .newsletter {
        flex-direction: column;
        align-items: stretch;
    }

    .search button,
    .newsletter .btn-cta {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }
}
