/* tutorials.php — moved from its inline <style> block (loaded at the same position). */
:root {
    --green: #067647;
    --deep: #062f25;
    --mint: #dff8ec;
    --lime: #a9edc5;
    --ink: #10231d;
    --muted: #62756d;
    --line: #dceae3;
    --gold: #e5b84b;
}

* { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background: #fbfdfc;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.7;
    padding-bottom: 2rem;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Breadcrumb */
.breadcrumb-section { padding: 22px 0 0; }
.breadcrumb { margin: 0; }

/* Page hero */
.pg-hero { padding: 18px 0 36px; }
.pg-hero h1 {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.02em;
    margin: 12px 0 10px;
}
.pg-hero h1 i { color: var(--green); margin-right: 10px; }
.pg-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }

.content-section { padding: 0 0 20px; }

/* Notice callout */
.notice-box {
    background: var(--mint);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}
.notice-box i { color: var(--green); font-size: 1.3rem; margin-top: .1rem; }
.notice-box p { margin: 0; color: var(--ink); }
.notice-box a { color: var(--green); font-weight: 700; text-decoration: none; }
.notice-box a:hover { text-decoration: underline; }

/* Tutorial grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.tutorial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: .25s;
}
.tutorial-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px #12553616; }

.tutorial-thumb {
    aspect-ratio: 16 / 9;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.tutorial-thumb i { font-size: 3rem; color: var(--green); }
.tutorial-thumb .soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--deep);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 20px;
    letter-spacing: .04em;
}

.tutorial-body { padding: 1.3rem 1.4rem 1.5rem; }
.tutorial-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
}
.tutorial-body p {
    margin: 0 0 .8rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}
.tutorial-meta {
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.tutorial-meta i { color: var(--green); }

.section-title {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: .25s;
}
.section-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px #12553616; }
.section-body { padding: 1.8rem; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 118, 71, .35);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    z-index: 1000;
}

.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(6, 118, 71, .45); }
.back-to-top.visible { display: flex; }

/* Footer — matching index.php / sitemap.php */
footer {
    padding: 48px 0;
    background: var(--deep);
    color: #d3e8dc;
    margin-top: 20px;
}

footer .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

footer strong { font: 700 21px Inter; color: #fff; }
footer p { color: #a8c8b7; margin: 4px 0 0; }

footer nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    align-items: center;
}

footer nav a,
footer nav a:hover,
footer nav a:visited,
footer nav a:focus {
    color: #d3e8dc;
    text-decoration: none;
}

footer nav a:hover { color: var(--lime); }

@media (max-width: 768px) {
    .pg-hero h1 { font-size: 1.8rem; }
    .tutorial-grid { grid-template-columns: 1fr; }
    .section-body { padding: 1.4rem 1.1rem; }
    footer .foot { flex-direction: column; align-items: flex-start; }
}
