* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;
}

body {
    background-color: #F4F1EB;
    color: #242424;
}

/* ---------- หน้าเรื่องราว (landing สำหรับ QR) ---------- */
.story-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: #FFFFFF;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(36, 36, 36, 0.06);
}

.story-topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #E0E0DE;
}

.story-topbar img {
    height: 54px;
}

.story-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F4F1EB;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 32px 28px 40px;
}

.story-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #04757B;
    margin-bottom: 12px;
    padding-left: 40px;
    position: relative;
}

.story-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #04757B;
    transform: translateY(-50%);
}

.story-content h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    color: #242424;
    margin-bottom: 22px;
}

.story-text {
    font-size: 17px;
    line-height: 1.9;
    color: #444444;
    margin-bottom: 32px;
}

.story-btn {
    display: inline-block;
    background-color: #04757B;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(4, 117, 123, 0.28);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.story-btn:hover {
    background-color: #035E63;
    transform: translateY(-2px);
}

.story-social {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #E0E0DE;
    text-align: center;
    color: #6B6B6B;
    font-size: 14px;
}

.story-social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.story-social-links a {
    color: #04757B;
    text-decoration: none;
    font-weight: 500;
}

.story-social-links a:hover {
    text-decoration: underline;
}

.story-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #FFFFFF;
    background-color: #04757B;
}

/* ---------- หน้าไม่พบเรื่องราว ---------- */
.story-notfound {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    gap: 14px;
}

.story-notfound .story-logo {
    height: 70px;
    margin-bottom: 8px;
}

.story-notfound h1 {
    font-size: 26px;
    color: #242424;
}

.story-notfound p {
    color: #6B6B6B;
    margin-bottom: 10px;
}

/* ---------- มือถือ/แท็บเล็ต ---------- */
@media (max-width: 768px) {
    /* header ติดบนจอตอนเลื่อน — สแกน QR มาแล้วกลับหน้าหลักได้ตลอด */
    .story-topbar {
        position: sticky;
        top: 0;
        background: #FFFFFF;
        z-index: 10;
    }
}

/* ---------- จอเล็ก ---------- */
@media (max-width: 480px) {
    .story-content { padding: 24px 20px 32px; }
    .story-content h1 { font-size: 24px; }
    .story-text { font-size: 16px; line-height: 1.8; }
    .story-topbar img { height: 46px; }

    /* ปุ่มเต็มกว้าง กดง่ายด้วยนิ้วโป้ง */
    .story-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .story-social-links {
        flex-wrap: wrap;
        gap: 14px;
    }
    .story-social-links a {
        padding: 8px 12px;
        border: 1px solid #E0E0DE;
        border-radius: 8px;
    }
}
