*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --blue: #0d65d9;
    --orange: #f2b33d;
    --card-blue: rgba(13, 101, 217, 0.1);
    --whitefade: #f7f7f7;
    --font-geo: "Geologica", sans-serif;
    --font-space: "Space Grotesk", sans-serif;
    --font-nunito: "Nunito", sans-serif;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: var(--font-nunito);
    background: #fff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}
.beta-banner {
    background: var(--blue);
    color: #fff;
    text-align: center;
    font-family: var(--font-space);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
}
.beta-banner a {
    color: #fff;
    text-decoration: underline;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4.4%;
    gap: 16px;
}
.nav-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}
.nav-links {
    display: none;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-family: var(--font-geo);
    font-size: 14px;
    color: #111;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}
.nav-cta {
    display: none;
}
.nav-cta a {
    font-family: var(--font-geo);
    font-size: 14px;
    font-weight: 550;
    background: var(--blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    transition: opacity 0.2s;
}
.nav-cta a:hover {
    opacity: 0.9;
}
.nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #111;
    display: flex;
    align-items: center;
}
.nav-hamburger svg {
    width: 24px;
    height: 24px;
}
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 4.4% 24px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.nav-mobile-menu.open {
    display: flex;
}
.nav-mobile-menu a {
    font-family: var(--font-geo);
    font-size: 15px;
    color: #111;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    color: var(--orange);
}
.nav-mobile-cta {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.nav-mobile-cta a {
    display: block;
    text-align: center;
    background: var(--blue);
    color: #fff;
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-geo);
    font-size: 15px;
    border-bottom: none;
}
.nav-mobile-cta a:hover {
    opacity: 0.9;
    color: #fff;
}
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-cta {
        display: flex;
    }
    .nav-hamburger {
        display: none;
    }
}

/* ---- Page layout ---- */
.page-wrap {
    padding-top: 90px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}
.post-wrap {
    max-width: 752px;
    margin: 0 auto;
}

/* ---- Back link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-space);
    font-size: 14px;
    font-weight: 550;
    color: rgba(0, 0, 0, 0.5);
    padding: 32px 0 24px;
    transition: color 0.2s;
    animation: slideRight 0.4s ease both;
}
.back-link:hover {
    color: var(--blue);
}
.back-link svg {
    width: 15px;
    height: 15px;
}
@media (min-width: 640px) {
    .back-link {
        padding-top: 48px;
    }
}

/* ---- Post header ---- */
.post-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeUp 0.5s ease both;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.badge {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--card-blue);
    color: var(--blue);
    font-family: var(--font-space);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-space);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.post-title {
    font-family: var(--font-geo);
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    font-size: 26px;
}
@media (min-width: 640px) {
    .post-title {
        font-size: 34px;
    }
}
@media (min-width: 768px) {
    .post-title {
        font-size: 40px;
    }
}
.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.author-name {
    font-family: var(--font-space);
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.author-meta {
    font-family: var(--font-space);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
}

/* ---- Cover image ---- */
.cover-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: scaleIn 0.55s 0.1s ease both;
    width: 100%;
    transform: translateZ(0);
}

.cover-image-wrap img {
    width: 100%;
    height: auto;
    padding: 0px;
}

/* .cover-image-wrap img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    height: 260px;
}
@media (min-width: 480px) {
    .cover-image-wrap img {
        height: 320px;
    }
}
@media (min-width: 640px) {
    .cover-image-wrap img {
        height: 380px;
    }
}
@media (min-width: 768px) {
    .cover-image-wrap img {
        height: 440px;
        padding: 30px 0px;
    }
} */

/* ---- Article body ---- */
.article-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeUp 0.6s 0.15s ease both;
}

.block-intro {
    font-family: var(--font-nunito);
    font-size: 17px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.75;
    border-left: 4px solid var(--orange);
    padding-left: 20px;
    font-style: italic;
}
@media (min-width: 640px) {
    .block-intro {
        font-size: 18px;
    }
}

.block-paragraph {
    font-family: var(--font-nunito);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.85;
}
@media (min-width: 640px) {
    .block-paragraph {
        font-size: 16px;
    }
}

.block-heading {
    font-family: var(--font-geo);
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-top: 12px;
}
@media (min-width: 640px) {
    .block-heading {
        font-size: 24px;
    }
}

.block-quote {
    border-radius: 16px;
    background: var(--card-blue);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.block-quote p {
    font-family: var(--font-nunito);
    font-size: 16px;
    font-weight: 500;
    color: var(--blue);
    line-height: 1.65;
    font-style: italic;
}
@media (min-width: 640px) {
    .block-quote p {
        font-size: 17px;
    }
}

.block-closing {
    font-family: var(--font-nunito);
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.85;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 24px;
    margin-top: 8px;
}
@media (min-width: 640px) {
    .block-closing {
        font-size: 16px;
    }
}

/* ---- CTA ---- */
.cta-section {
    margin-top: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue) 0%, #0a4faa 100%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 640px) {
    .cta-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cta-title {
    font-family: var(--font-geo);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
@media (min-width: 640px) {
    .cta-title {
        font-size: 20px;
    }
}
.cta-sub {
    font-family: var(--font-nunito);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 28px;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-geo);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition:
        filter 0.2s,
        transform 0.15s;
}
.cta-btn:hover {
    filter: brightness(1.1);
}
.cta-btn:active {
    transform: scale(0.97);
}
.cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ---- More Articles ---- */
.more-section {
    margin-top: 64px;
}
.section-label {
    font-family: var(--font-space);
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}
.more-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .more-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.more-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--whitefade);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}
.more-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.more-card img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.more-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.more-card-cat {
    font-family: var(--font-space);
    font-size: 10px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.more-card-title {
    font-family: var(--font-geo);
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.more-card:hover .more-card-title {
    color: var(--blue);
}
.more-card-time {
    font-family: var(--font-space);
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
}

/* ---- Footer ---- */
.footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid #eee;
    text-align: center;
}
.footer p {
    font-family: var(--font-space);
    font-size: 13px;
    color: rgba(0, 0, 0, 0.4);
}
.footer a {
    color: var(--blue);
}
.footer a:hover {
    text-decoration: underline;
}

/* ---- Animations ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
