/*
Theme Name:  Web1500
Theme URI:   https://web1500.com
Author:      Web1500
Author URI:  https://web1500.com
Description: Custom WordPress Theme สำหรับ Web1500 - รับทำเว็บไซต์ราคาถูก ดีไซน์ modern premium
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: web1500
Tags:        dark, modern, responsive, business, agency
*/

/* ============================================================
   WEB1500 THEME — Design System
   Colors: Navy #0a1628 | Blue #2563eb | Gold #f59e0b
   Fonts:  Inter (EN) + Prompt (TH)
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --navy:      #0a1628;
    --navy-dark: #060d1a;
    --brand:     #2563eb;
    --brand-dark:#1d4ed8;
    --gold:      #f59e0b;
    --gold-dark: #d97706;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white:     #ffffff;
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow:    0 8px 24px rgba(0,0,0,.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.15);
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: #0a1628 !important;
}
/* Admin bar offset — ป้องกัน fixed header ขยับเมื่อ login */
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }

body {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: #0a1628 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section { padding: 96px 24px; }
.section--dark { background: var(--navy-dark); }
.section--navy { background: var(--navy); }
.section--gray { background: var(--slate-50); }
.section--white { background: var(--white); }

/* ── Site Layout ───────────────────────────────────────────── */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#primary { flex: 1; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes blobPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15) translate(20px, -15px); }
}
@keyframes gradShift {
    to { background-position: 200% center; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Gradient Text ─────────────────────────────────────────── */
.grad-text {
    background: linear-gradient(135deg, #60a5fa, #ffffff, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradShift 4s linear infinite;
}

/* ── Section Label ─────────────────────────────────────────── */
.section-label {
    display: inline-block;
    background: rgba(37,99,235,.1);
    border: 1px solid rgba(37,99,235,.25);
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.section-label--gold {
    background: rgba(245,158,11,.1);
    border-color: rgba(245,158,11,.25);
    color: var(--gold);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,99,235,.5); color: var(--white); }

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(245,158,11,.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245,158,11,.5); color: var(--navy); }

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.3);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); transform: translateY(-2px); color: var(--white); }

.btn--ghost {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--slate-200);
}
.btn--ghost:hover { border-color: var(--brand); background: rgba(37,99,235,.05); }

.btn--lg { padding: 18px 40px; font-size: 1rem; }
.btn--sm { padding: 10px 22px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card--dark {
    background: #111827;
    border-color: rgba(255,255,255,.07);
    color: var(--white);
}
.card--dark:hover { border-color: rgba(245,158,11,.4); box-shadow: 0 24px 48px rgba(0,0,0,.5); }

/* ── Site Header ───────────────────────────────────────────── */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(6,13,26,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s ease, box-shadow .3s ease;
}
#masthead.scrolled {
    background: rgba(6,13,26,.98);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #60a5fa, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.site-title a { color: inherit; }
.custom-logo { height: 44px; width: auto; }

/* Nav */
.main-navigation { display: flex; align-items: center; gap: 4px; }

.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item a {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

.nav-cta {
    margin-left: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--navy) !important;
    padding: 8px 18px !important;
    border-radius: var(--radius) !important;
    font-weight: 700 !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.4); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--white);
    font-size: 1.1rem;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .22;
    animation: blobPulse 8s ease-in-out infinite;
    pointer-events: none;
}
.hero__blob--1 { width: 600px; height: 600px; background: #1d4ed8; top: -200px; left: -200px; }
.hero__blob--2 { width: 500px; height: 500px; background: #7c3aed; top: 100px; right: -150px; animation-delay: 2s; }
.hero__blob--3 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; left: 40%; animation-delay: 4s; }

.hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero__eyebrow .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero__heading { color: var(--white); margin-bottom: 20px; }
.hero__subtext { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 56px; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero__stat {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 5s ease-in-out infinite;
    color: var(--white);
}
.hero__stat:nth-child(2) { animation-delay: .8s; }
.hero__stat:nth-child(3) { animation-delay: 1.6s; }

.hero__stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.hero__stat-num  { font-size: 1.25rem; font-weight: 900; }
.hero__stat-text { font-size: .72rem; color: rgba(255,255,255,.6); }

/* Typing cursor */
.typing-cursor {
    border-right: 3px solid var(--gold);
    animation: blink .7s infinite;
    margin-left: 2px;
}

/* ── Counter Strip ─────────────────────────────────────────── */
.counter-strip {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e1b4b 100%);
    padding: 56px 24px;
}
.counter-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.counter-num { font-size: 2.75rem; font-weight: 900; color: var(--white); }
.counter-num--gold { color: var(--gold); }
.counter-num--emerald { color: #4ade80; }
.counter-label { font-size: .85rem; color: var(--slate-400); margin-top: 4px; }

/* ── Why Us ────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 56px;
}
.why-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    text-align: center;
    transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.why-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p  { color: var(--slate-500); font-size: .9rem; }

/* ── Services (dark) ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.svc-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: left;
    transition: var(--transition);
    color: var(--white);
}
.svc-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.5); }

.svc-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: transform .3s;
}
.svc-card:hover .svc-card__icon { transform: scale(1.1) rotate(5deg); }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.svc-card p  { color: var(--slate-400); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }

.svc-card__list { margin: 0; }
.svc-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-bottom: 8px;
}
.svc-card__list li::before { content: '✦'; color: var(--gold); font-size: .7rem; flex-shrink: 0; }

.svc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    margin-top: 18px;
    transition: gap .2s;
}
.svc-card__link:hover { gap: 10px; }

/* ── Process ───────────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    margin-top: 56px;
}
.process-step { text-align: center; }
.process-step__num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p  { color: var(--slate-500); font-size: .85rem; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 56px;
    align-items: center;
}
.price-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.price-card--featured {
    background: linear-gradient(145deg, var(--slate-900), var(--slate-800));
    border: 2px solid var(--gold);
    color: var(--white);
    transform: scale(1.04);
    animation: pulseRing 2.5s infinite;
}
.price-card--featured:hover { transform: scale(1.04) translateY(-4px); }
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
    70%  { box-shadow: 0 0 0 16px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

.price-card__tier { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 6px; }
.price-card--featured .price-card__tier { color: var(--gold); }
.price-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.price-card__desc { font-size: .85rem; color: var(--slate-500); margin-bottom: 20px; }
.price-card--featured .price-card__desc { color: rgba(255,255,255,.5); }

.price-card__amount { font-size: 2.75rem; font-weight: 900; color: var(--brand); }
.price-card--featured .price-card__amount { color: var(--gold); }
.price-card__currency { font-size: 1rem; color: var(--slate-400); }
.price-card--featured .price-card__currency { color: rgba(255,255,255,.5); }

.price-card__features { flex: 1; margin: 20px 0 24px; }
.price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    margin-bottom: 10px;
    color: var(--slate-600);
}
.price-card--featured .price-card__features li { color: rgba(255,255,255,.8); }
.price-card__features li .check { color: #10b981; flex-shrink: 0; margin-top: 2px; }
.price-card--featured .price-card__features li .check { color: var(--gold); }

/* ── Portfolio ─────────────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 56px;
}
.port-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.port-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.6); border-color: rgba(245,158,11,.3); }

.port-card__img-wrap { position: relative; height: 200px; overflow: hidden; }
.port-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.port-card:hover .port-card__img-wrap img { transform: scale(1.08); }

.port-card__overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.port-card:hover .port-card__overlay { opacity: 1; }
.port-card__overlay-btn {
    background: var(--white); color: var(--navy);
    font-weight: 700; font-size: .85rem;
    padding: 8px 20px; border-radius: 100px;
}

.port-card__body { padding: 20px; }
.port-card__tag {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    padding: 3px 12px; border-radius: 100px;
    background: rgba(37,99,235,.15); color: #93c5fd;
    margin-bottom: 10px;
}
.port-card__title { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.port-card__link { color: #4ade80; font-size: .85rem; font-weight: 700; }
.port-card__link:hover { color: #86efac; }

/* ── Testimonials ──────────────────────────────────────────── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 56px;
}
.testi-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}
.testi-card::before {
    content: '\201C';
    position: absolute; top: -8px; left: 24px;
    font-size: 5rem; font-family: Georgia, serif;
    color: var(--brand); opacity: .12; line-height: 1;
}
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.testi-card__stars { display: flex; gap: 2px; color: var(--gold); font-size: .9rem; margin-bottom: 16px; }
.testi-card__text  { color: var(--slate-600); font-size: .9rem; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testi-card__author { display: flex; align-items: center; gap: 12px; }
.testi-card__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; color: var(--white);
    flex-shrink: 0;
}
.testi-card__name  { font-weight: 700; font-size: .9rem; }
.testi-card__role  { font-size: .75rem; color: var(--slate-400); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    transition: border-color .3s;
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: .93rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform .3s; color: var(--brand); font-size: .8rem; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 22px 18px; color: var(--slate-500); font-size: .88rem; line-height: 1.75; }

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark), #1e1b4b, var(--navy-dark));
    background-size: 400% 400%;
    animation: ctaGrad 8s ease infinite;
    position: relative; overflow: hidden;
    padding: 100px 24px;
    text-align: center;
}
@keyframes ctaGrad { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.cta-glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 560px; margin: 0 auto 40px; }
.cta-section__badge {
    display: inline-block;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.3);
    color: var(--gold);
    font-size: .82rem; font-weight: 700;
    padding: 6px 18px; border-radius: 100px;
    margin-bottom: 24px;
}
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ── Contact Form Section ──────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrap {
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
    padding: 40px;
}
@media (max-width: 600px) { .contact-form-wrap { padding: 24px 20px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--slate-300); }
.form-group .req { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(37,99,235,.08);
}
.form-group select option { background: var(--slate-800); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
}
.contact-info__icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(37,99,235,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--brand); flex-shrink: 0;
}
.contact-info__item strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.contact-info__item p { margin: 0; font-size: .85rem; color: var(--slate-400); }
.contact-info__item a { color: var(--brand); text-decoration: none; }
.contact-info__item a:hover { color: #60a5fa; }

/* ── Site Footer ───────────────────────────────────────────── */
#colophon {
    background: var(--slate-900);
    color: rgba(255,255,255,.7);
    padding: 60px 24px 32px;
}
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer__brand h3 {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.footer__brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.5); }

.footer__col-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer__nav a:hover { color: var(--white); }

.footer__contact-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.footer__contact-item i { color: var(--gold); width: 16px; text-align: center; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    transition: var(--transition);
}
.footer__social a:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }

/* ── Scroll to Top ─────────────────────────────────────────── */
#scroll-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--brand); color: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
    box-shadow: 0 8px 24px rgba(37,99,235,.4);
    opacity: 0; transform: translateY(20px);
    transition: var(--transition); pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top:hover   { background: var(--brand-dark); transform: translateY(-2px); }

/* ── Line Floating Button ──────────────────────────────────── */
.line-fab {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #00B900; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0,185,0,.4);
    transition: var(--transition); text-decoration: none;
    animation: float 4s ease-in-out infinite;
}
.line-fab:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0,185,0,.6); color: var(--white); }

/* ── WordPress Core Elements ───────────────────────────────── */
.wp-block-image img { border-radius: var(--radius); }
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { text-align: center; }

/* Gutenberg */
.wp-block-separator { border: none; border-top: 1px solid var(--slate-200); margin: 40px 0; }
.entry-content { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.entry-content h2 { font-size: 1.75rem; margin: 1.5em 0 .5em; }
.entry-content h3 { font-size: 1.35rem; margin: 1.25em 0 .4em; }
.entry-content p  { color: var(--slate-600); line-height: 1.8; margin-bottom: 1.25em; }
.entry-content a  { color: var(--brand); }
.entry-content a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card--featured { transform: scale(1); }
    .price-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .section { padding: 64px 20px; }
    .main-navigation .nav-menu { display: none; }
    .main-navigation .nav-menu.toggled { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(6,13,26,.98); padding: 16px; gap: 4px; }
    .main-navigation .nav-menu.toggled li a { padding: 12px 16px; }
    .menu-toggle { display: flex; }
    .hero { padding: 100px 20px 60px; }
    .hero__cta { gap: 12px; }
    .hero__stat { padding: 12px 16px; }
    .counter-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { justify-content: center; text-align: center; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn--lg { padding: 16px 28px; width: 100%; justify-content: center; }
}

@media (min-width: 1025px) {
    .counter-strip__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Utility ───────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-white    { color: var(--white) !important; }
.text-gold     { color: var(--gold) !important; }
.text-brand    { color: var(--brand) !important; }
.text-muted    { color: var(--slate-500) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-center{ justify-content: center; }
.gap-16        { gap: 16px; }
.gap-24        { gap: 24px; }
.hidden        { display: none !important; }

/* ============================================================
   SCROLL REVEAL — JS adds .is-visible
   ============================================================ */
.reveal,
.why-card,
.svc-card,
.process-step,
.price-card,
.port-card,
.testi-card,
.faq-item,
.post-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible,
.why-card.is-visible,
.svc-card.is-visible,
.process-step.is-visible,
.price-card.is-visible,
.port-card.is-visible,
.testi-card.is-visible,
.faq-item.is-visible,
.post-card.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Header hide/show on scroll ───────────────────────────── */
#masthead {
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
#masthead.header--hidden  { transform: translateY(-100%); }
#masthead.header--visible { transform: translateY(0); }

/* ============================================================
   PAGE TEMPLATE (page.php)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate-900) 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero__sub {
    font-size: 1.1rem;
    color: var(--slate-400);
    max-width: 600px;
    margin: 0 auto;
}
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   BLOG TEMPLATES (index.php)
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate-900) 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.blog-hero__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.blog-hero__sub {
    color: var(--slate-400);
    font-size: 1.05rem;
}
.blog-main { padding: 72px 0 80px; background: var(--slate-900); }
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
    /* single post: sidebar stays BELOW article */
    .single-layout .blog-sidebar { order: 1; position: static; }
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
}

/* Post Card */
.post-card {
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.post-card__thumb-link { display: block; overflow: hidden; }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }

.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.post-card__cat {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand);
    background: rgba(37,99,235,.12);
    border: 1px solid rgba(37,99,235,.25);
    padding: 3px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s;
}
.post-card__cat:hover { background: rgba(37,99,235,.25); }

.post-card__title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.4; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--brand); }

.post-card__excerpt { color: var(--slate-400); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }

.post-card__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.post-card__date, .post-card__read {
    font-size: .8rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-card__btn { align-self: flex-start; }

/* Pagination */
.blog-pagination { margin-top: 48px; }
.blog-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--slate-300);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--brand); color: var(--white); border-color: var(--brand);
}
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 16px; gap: 6px; }

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--slate-400);
}
.no-posts i { font-size: 3rem; color: var(--slate-600); margin-bottom: 16px; display: block; }
.no-posts h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.no-posts p { margin-bottom: 24px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 90px; }

.sidebar-widget {
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
    padding: 24px;
}
.sidebar-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-widget .search-form { display: flex; gap: 8px; }
.sidebar-widget .search-field {
    flex: 1;
    background: var(--slate-900);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--white);
    font-size: .9rem;
}
.sidebar-widget .search-submit {
    background: var(--brand);
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    color: var(--white);
    cursor: pointer;
    font-size: .9rem;
}
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { color: var(--slate-300); text-decoration: none; font-size: .9rem; }
.sidebar-cats a:hover { color: var(--brand); }
.sidebar-cats .post-count { color: var(--slate-500); font-size: .8rem; }

.sidebar-recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar-recent__item { display: flex; gap: 12px; align-items: flex-start; }
.sidebar-recent__thumb { flex-shrink: 0; }
.sidebar-recent__thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); display: block; }
.sidebar-recent__info { display: flex; flex-direction: column; gap: 4px; }
.sidebar-recent__info a { color: var(--slate-200); font-size: .88rem; line-height: 1.4; text-decoration: none; font-weight: 600; }
.sidebar-recent__info a:hover { color: var(--brand); }
.sidebar-recent__info span { font-size: .78rem; color: var(--slate-500); }

.sidebar-cta { text-align: center; background: linear-gradient(135deg, var(--slate-800) 0%, rgba(37,99,235,.15) 100%); border-color: rgba(37,99,235,.2); }
.sidebar-cta__icon { font-size: 2.5rem; color: var(--brand); margin-bottom: 12px; display: block; }
.sidebar-cta h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.sidebar-cta p { font-size: .88rem; color: var(--slate-400); margin-bottom: 16px; }
.sidebar-cta strong { color: var(--gold); }

/* Author box */
.sidebar-author { display: flex; gap: 14px; align-items: center; }
.sidebar-author__avatar img { border-radius: 50%; width: 64px; height: 64px; display: block; }
.sidebar-author__info strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.sidebar-author__info p { font-size: .82rem; color: var(--slate-400); margin: 0; line-height: 1.5; }

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.toc-list__item a { color: var(--slate-400); font-size: .88rem; text-decoration: none; display: block; padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all .2s; }
.toc-list__item a:hover, .toc-list__item a.active { color: var(--brand); border-color: var(--brand); }
.toc-list__item--h3 { padding-left: 12px; }
.toc-list__item--h3 a { font-size: .82rem; }

/* ============================================================
   SINGLE POST (single.php)
   ============================================================ */
.single-hero {
    position: relative;
    padding: 172px 0 70px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}
.single-hero--has-thumb { min-height: 480px; display: flex; align-items: flex-end; }
.single-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(1px);
}
.single-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,.98) 40%, rgba(10,22,40,.6) 100%);
}
.single-hero__inner { position: relative; z-index: 1; }

.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: .82rem; color: var(--slate-500);
    margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--slate-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb i { font-size: .65rem; }

.single-hero__cats { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.single-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800; color: var(--white); margin-bottom: 20px; line-height: 1.25;
    max-width: 820px;
}
.single-hero__meta { display: flex; gap: 24px; flex-wrap: wrap; }
.single-hero__meta span { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--slate-400); }
.single-hero__meta i { color: var(--brand); }

.single-body { padding: 64px 0 80px; background: var(--slate-900); }
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1024px) {
    .single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* Single Hero */
    .single-hero { padding: 120px 0 48px; }
    .single-hero--has-thumb { min-height: 340px; }
    .single-hero__title { font-size: 1.65rem; }
    /* Single Body */
    .single-body { padding: 40px 0 60px; }
    /* More Posts */
    .more-posts { padding: 48px 0 60px; }
    /* LINE FAB — ขนาดเล็กลงบน mobile */
    .line-fab { width: 48px; height: 48px; font-size: 1.35rem; bottom: 16px; right: 14px; }
    /* WordPress default widget override ใน sidebar */
    .blog-sidebar .widget { background: var(--slate-800) !important; color: var(--slate-200) !important; border-radius: var(--radius-xl); padding: 24px; }
    .blog-sidebar .widgettitle, .blog-sidebar .widget-title { color: var(--white) !important; font-size: 1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .blog-sidebar .search-field { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: var(--radius); padding: 10px 14px; width: 100%; }
}

/* Entry Content Typography */
.entry-content {
    color: var(--slate-300);
    line-height: 1.8;
    font-size: 1.05rem;
}
.entry-content h2 { font-size: 1.75rem; color: var(--white); margin: 2em 0 .75em; font-weight: 700; }
.entry-content h3 { font-size: 1.35rem; color: var(--white); margin: 1.75em 0 .65em; font-weight: 700; }
.entry-content h4 { font-size: 1.15rem; color: var(--white); margin: 1.5em 0 .5em; font-weight: 700; }
.entry-content p  { margin-bottom: 1.4em; }
.entry-content a  { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #60a5fa; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
    border-left: 4px solid var(--brand);
    margin: 2em 0;
    padding: 16px 24px;
    background: rgba(37,99,235,.08);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--slate-300);
    font-style: italic;
}
.entry-content img {
    max-width: 100%; height: auto; border-radius: var(--radius-lg);
    margin: 1.5em 0; display: block;
}
.entry-content code {
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.1);
    padding: 2px 7px; border-radius: 4px;
    font-size: .88em; color: #f9a8d4;
}
.entry-content pre {
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.entry-content pre code { background: none; border: none; padding: 0; font-size: .88rem; color: #86efac; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th { background: var(--slate-800); color: var(--white); font-weight: 700; padding: 12px 16px; text-align: left; }
.entry-content td { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.entry-content tr:hover td { background: rgba(255,255,255,.02); }

/* Tags */
.single-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.single-tags > i { color: var(--slate-500); }
.single-tag {
    font-size: .8rem; color: var(--slate-400);
    background: var(--slate-800);
    border: 1px solid rgba(255,255,255,.08);
    padding: 4px 12px; border-radius: 100px;
    text-decoration: none;
}
.single-tag:hover { color: var(--brand); border-color: var(--brand); }

/* Post Navigation */
.post-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px;
}
.post-nav__item { padding: 20px; background: var(--slate-800); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.07); }
.post-nav__item--next { text-align: right; }
.post-nav__label { display: block; font-size: .78rem; color: var(--slate-500); margin-bottom: 8px; }
.post-nav__title { color: var(--slate-200); font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.4; display: block; }
.post-nav__title:hover { color: var(--brand); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

/* More Posts */
.more-posts { padding: 60px 0 80px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.06); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--slate-900);
    padding: 80px 20px;
}
.error-404__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.error-404__number {
    font-size: clamp(8rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -20px;
    display: block;
    opacity: .15;
}
.error-404__icon { font-size: 3.5rem; color: var(--gold); margin-bottom: 20px; }
.error-404__title { font-size: 1.75rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.error-404__sub { color: var(--slate-400); margin-bottom: 28px; line-height: 1.6; }
.error-404__search { max-width: 400px; margin: 0 auto 28px; }
.error-404__search .search-form { display: flex; gap: 8px; }
.error-404__search .search-field {
    flex: 1; background: var(--slate-800); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 12px 16px; color: var(--white); font-size: .95rem;
}
.error-404__search .search-submit {
    background: var(--brand); border: none; border-radius: var(--radius);
    padding: 12px 20px; color: var(--white); cursor: pointer; font-size: .95rem;
    font-weight: 600;
}
.error-404__links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.error-404__popular { color: var(--slate-500); font-size: .88rem; }
.error-404__popular-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.error-404__popular-links a { color: var(--brand); text-decoration: none; }
.error-404__popular-links a:hover { text-decoration: underline; }

/* ============================================================
   LINE FAB — pulse state
   ============================================================ */
.line-fab--pulse { animation: linePulse 2s ease-in-out infinite; }
@keyframes linePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 24px rgba(0, 185, 0, .4); }
    50%       { transform: scale(1.1); box-shadow: 0 8px 32px rgba(0, 185, 0, .65); }
}
