* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f7fb;
    color: #111827;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 21px;
    font-weight: 900;
    color: #1d4ed8;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.nav-links a:hover {
    color: #1d4ed8;
}

/* HERO */
.site-header {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 45%, #1d4ed8);
    color: #fff;
    padding: 76px 20px;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #dbeafe;
}

.site-header h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.site-header p {
    margin: 20px auto 0;
    max-width: 720px;
    font-size: 18px;
    color: #dbeafe;
}

/* MAIN */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px 60px;
}

.section-title {
    margin-bottom: 26px;
}

.section-title h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 6px 0 0;
    color: #6b7280;
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* POST CARD */
.post-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.post-image-link img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.post-placeholder {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 30%),
        linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.post-content {
    padding: 24px;
}

.post-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-content h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.post-content h2 a {
    color: #111827;
}

.post-content h2 a:hover {
    color: #1d4ed8;
}

.post-excerpt {
    margin: 14px 0 20px;
    color: #4b5563;
    font-size: 15px;
}

.post-footer {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.post-footer a {
    color: #1d4ed8;
    font-weight: 800;
    white-space: nowrap;
}

.post-footer a:hover {
    color: #0f172a;
}

/* EMPTY */
.empty-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 45px 25px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.empty-box h3 {
    margin: 0;
    font-size: 24px;
}

.empty-box p {
    color: #6b7280;
}

.empty-box a {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 18px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
}

/* FOOTER */
.site-footer {
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nav-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header {
        padding: 56px 18px;
    }

    .site-header p {
        font-size: 16px;
    }

    .container {
        padding: 32px 16px 45px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SINGLE POST CLEAN DESIGN */
.single-post {
    max-width: 920px;
    margin: 35px auto;
    background: #ffffff;
    padding: 44px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.single-category {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 13px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-post h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    color: #020617;
}

.single-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.single-featured-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 32px;
}

.content {
    font-size: 18px;
    color: #1f2937;
    line-height: 1.85;
}

.content p {
    margin: 0 0 20px;
}

.content h2 {
    margin: 36px 0 14px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.035em;
    color: #111827;
}

.content h3 {
    margin: 28px 0 12px;
    font-size: 22px;
    color: #111827;
}

.content ul,
.content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.content li {
    margin-bottom: 8px;
}

.content pre {
    background: #020617;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid #1e293b;
}

.content code {
    font-family: Consolas, Monaco, monospace;
}

.content p code {
    background: #eef2ff;
    color: #1d4ed8;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.92em;
}

.content a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .single-post {
        padding: 24px;
        margin: 20px auto;
        border-radius: 18px;
    }

    .content {
        font-size: 16px;
    }

    .content h2 {
        font-size: 24px;
    }
}
/* BLOGGER-STYLE TUTORIAL PAGE */
.tutorial-hero {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 48px 20px 30px;
}

.tutorial-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.tutorial-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tutorial-hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.tutorial-hero p {
    max-width: 850px;
    margin: 0 auto;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.tutorial-tags {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tutorial-tags span {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
}

.tutorial-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.tutorial-post {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.notice-box {
    margin: 24px 0;
    padding: 18px 22px;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    line-height: 1.7;
}

.notice-box.danger {
    border-left: 5px solid #ef4444;
    background: #fffafa;
}

.notice-box.info {
    border-left: 5px solid #3b82f6;
    background: #f8fbff;
}

.notice-box ul {
    margin: 12px 0 0;
    padding-left: 24px;
}

.notice-box li {
    margin-bottom: 7px;
}

.tutorial-content {
    font-size: 16px;
    line-height: 1.85;
    color: #111827;
}

.tutorial-content h1,
.tutorial-content h2,
.tutorial-content h3 {
    color: #1f2937;
    line-height: 1.3;
}

.tutorial-content h2 {
    margin-top: 38px;
    font-size: 24px;
}

.tutorial-content h3 {
    margin-top: 28px;
    font-size: 20px;
}

.tutorial-content p {
    margin: 0 0 18px;
}

.tutorial-content ul,
.tutorial-content ol {
    padding-left: 28px;
    margin-bottom: 22px;
}

.tutorial-content li {
    margin-bottom: 8px;
}

.tutorial-content a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.tutorial-content a:hover {
    text-decoration: underline;
}

.tutorial-content pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 22px 0;
    font-size: 14px;
    line-height: 1.65;
}

.tutorial-content code {
    font-family: Consolas, Monaco, monospace;
}

.tutorial-content p code {
    background: #eef2ff;
    color: #1d4ed8;
    padding: 3px 6px;
    border-radius: 5px;
}

@media (max-width: 700px) {
    .tutorial-hero {
        padding: 36px 16px 24px;
    }

    .tutorial-hero h1 {
        font-size: 27px;
    }

    .tutorial-wrap {
        padding: 26px 16px 45px;
    }

    .tutorial-meta {
        flex-direction: column;
        gap: 5px;
    }

    .tutorial-content {
        font-size: 15.5px;
    }
}

html {
    scroll-behavior: smooth;
}

.sections-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 25px 0;
}

.sections-box ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

.sections-box li {
    margin: 10px 0;
}

.sections-box a {
    color: #0b57ff;
    font-weight: 800;
    text-decoration: none;
}

.sections-box a:hover {
    text-decoration: underline;
}

/* Keeps heading visible below sticky navbar */
.tutorial-content h2,
.content h2 {
    scroll-margin-top: 90px;
}