:root {
    --primary: #2d2d2d;
    --accent: #499a13;
    --accent-dark: #35780d;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.07);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: "Syne", sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

::selection {
    background: var(--accent);
    color: #fff;
}

.blog-nav {
    position: sticky;
    top: 1rem;
    z-index: 100;
    width: min(92%, 1180px);
    margin: 1rem auto 0;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.blog-logo {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--primary);
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

.blog-nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    color: var(--accent);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.back-home:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.article-hero {
    width: min(92%, 1180px);
    margin: 2rem auto 0;
    min-height: 560px;
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
}

.article-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: clamp(1.7rem, 5vw, 4.5rem);
    color: #fff;
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-hero h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.article-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.article-layout {
    width: min(92%, 1180px);
    margin: 3rem auto 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
}

.article-main {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 3.2rem);
    box-shadow: var(--shadow);
}

.article-main>p:first-of-type {
    font-size: 1.08rem;
    color: #404040;
}

.article-main h2 {
    margin: 2.4rem 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.article-main h3 {
    margin: 1.8rem 0 0.8rem;
    font-size: 1.2rem;
}

.article-main p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
}

.article-main ul,
.article-main ol {
    margin: 0.8rem 0 1.4rem 1.25rem;
    color: var(--text-muted);
}

.article-main li {
    margin-bottom: 0.55rem;
}

.article-image {
    margin: 2rem 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.tip-box {
    margin: 2rem 0;
    padding: 1.4rem;
    border-radius: 18px;
    border-left: 5px solid var(--accent);
    background: rgba(73, 154, 19, 0.08);
}

.tip-box strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Syne", sans-serif;
    text-transform: uppercase;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.4rem 0 2rem;
}

.quick-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.quick-card i {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.quick-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.quick-card p {
    margin: 0;
    font-size: 0.88rem;
}

.article-sidebar {
    position: sticky;
    top: 7rem;
}

.sidebar-card {
    padding: 1.4rem;
    margin-bottom: 1.3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.toc {
    list-style: none;
}

.toc li+li {
    margin-top: 0.65rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.toc a:hover {
    color: var(--accent);
}

.share-row {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.share-row a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
}

.share-row a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.related-section {
    width: min(92%, 1180px);
    margin: 0 auto 5rem;
}

.related-section>h2 {
    margin-bottom: 1.4rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.2rem;
}

.related-card span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.related-card h3 {
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.related-card a {
    text-decoration: none;
}

.article-footer {
    padding: 2.4rem 5%;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 0.9rem;
}

.article-footer strong {
    color: #fff;
}

@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 0.7rem);
        justify-self: center;
    }
}

@media (max-width: 720px) {
    .blog-nav-links {
        display: none;
    }

    .article-hero {
        min-height: 500px;
        border-radius: 26px;
    }

    .article-hero h1 {
        letter-spacing: -2px;
    }

    .article-layout {
        gap: 1.5rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .quick-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .article-image img {
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .blog-nav {
        width: 94%;
        padding: 0.75rem 0.8rem;
    }

    .blog-logo {
        font-size: 1.05rem;
    }

    .back-home {
        padding: 0.62rem 0.82rem;
        font-size: 0.75rem;
    }

    .article-hero {
        width: 94%;
        min-height: 460px;
    }

    .article-hero-content {
        padding: 1.4rem;
    }

    .article-hero h1 {
        font-size: 2.25rem;
    }

    .article-layout,
    .related-section {
        width: 94%;
    }

    .article-main {
        padding: 1.25rem;
    }
}