/* ===== TrangCCTV — หน้าบทความ (สไตล์เดียวกับหน้าแรก) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Kanit', sans-serif; background-color: #f9fafb; color: #1f2937; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s ease-out, transform .8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Nav */
nav#navbar { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.1); position: fixed; width: 100%; top: 0; z-index: 1000; transition: box-shadow .3s ease; }
nav#navbar.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
nav#navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #1e3a8a; text-decoration: none; white-space: nowrap; }
.logo span { color: #f97316; }
.nav-menu { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-menu a { color: #374151; text-decoration: none; transition: color .3s; font-size: .95rem; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: #f97316; }
.nav-btn { background: #1e3a8a; color: #fff; padding: 10px 20px; border-radius: 25px; text-decoration: none; transition: all .3s; white-space: nowrap; }
.nav-btn:hover { background: #1e40af; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(30,58,138,.3); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #1e3a8a; cursor: pointer; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: #94a3b8; margin-bottom: 14px; }
.breadcrumb a { color: #cbd5e1; text-decoration: none; }
.breadcrumb a:hover { color: #fb923c; }
.breadcrumb i { font-size: .6rem; margin: 0 6px; opacity: .7; }

/* หน้ารวมบทความ */
.blog-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 120px 20px 70px; text-align: center; margin-top: 0; position: relative; overflow: hidden; }
.blog-hero > .container { position: relative; z-index: 2; }
.blog-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.blog-hero h1 span { color: #fb923c; }
.blog-hero p { color: #cbd5e1; font-weight: 300; font-size: 1.1rem; }
.blog-main { padding: 46px 0 80px; min-height: 40vh; }
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cat-chips a { padding: 7px 16px; border-radius: 99px; background: #fff; border: 1px solid #e5e7eb; color: #374151; text-decoration: none; font-size: .9rem; transition: all .25s; }
.cat-chips a:hover { border-color: #f97316; color: #f97316; }
.cat-chips a.active { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; color: #6b7280; }
.pager a { padding: 9px 18px; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; color: #1e3a8a; text-decoration: none; }
.pager a:hover { border-color: #f97316; color: #f97316; }
.blog-empty { text-align: center; padding: 60px 20px; color: #6b7280; }
.blog-empty > i { font-size: 3rem; color: #f97316; margin-bottom: 14px; }
.blog-empty h1, .blog-empty h2 { color: #1e3a8a; font-size: 1.5rem; margin-bottom: 8px; }
.blog-empty p { margin-bottom: 20px; }
.blog-empty a:not(.btn-outline) { color: #f97316; }
.blog-404 { padding-top: 130px; }

/* หน้าบทความ */
.post-main { background: #fff; }
.post-narrow { max-width: 820px; }
.post-head { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 112px 0 42px; }
.post-cat { display: inline-block; background: #f97316; color: #fff; text-decoration: none; font-size: .8rem; padding: 3px 12px; border-radius: 99px; margin-bottom: 12px; }
.post-head h1 { font-size: 2.3rem; line-height: 1.3; font-weight: 700; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #cbd5e1; font-size: .9rem; font-weight: 300; }
.post-meta i { color: #fb923c; margin-right: 4px; }
.post-cover { margin: -2px 0 0; padding-top: 30px; }
.post-figure { margin: 30px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 26px rgba(15,23,42,.12); background: #f1f5f9; }
.post-cover .post-figure { margin-top: 0; }
.post-figure figcaption { text-align: center; color: #6b7280; font-size: .88rem; margin-top: 10px; }
.post-body { font-size: 1.08rem; line-height: 1.95; color: #334155; font-weight: 300; padding: 10px 0 20px; }
.post-body p { margin-bottom: 1.25em; }
.post-body h2 { font-size: 1.5rem; color: #1e3a8a; margin: 1.8em 0 .6em; line-height: 1.35; font-weight: 700; padding-left: 14px; border-left: 4px solid #f97316; }
.post-body h3 { font-size: 1.22rem; color: #1e293b; margin: 1.5em 0 .5em; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 1.3em 1.4em; }
.post-body li { margin-bottom: .45em; }
.post-body ul li::marker { color: #f97316; }
.post-body strong { color: #0f172a; font-weight: 600; }
.post-body a { color: #2563eb; word-break: break-word; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #fff; border-radius: 16px; padding: 26px 28px; margin: 34px 0 26px; }
.post-cta h2 { font-size: 1.25rem; margin-bottom: 4px; }
.post-cta p { color: #c7d2fe; font-size: .92rem; font-weight: 300; }
.post-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-cta-btns a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; transition: transform .2s; }
.post-cta-btns a:hover { transform: translateY(-2px); }
.btn-call { background: #f97316; }
.btn-line { background: #06c755; }
.post-share { display: flex; align-items: center; gap: 10px; padding: 0 0 50px; color: #6b7280; font-size: .92rem; }
.post-share a, .post-share button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; border: none; cursor: pointer; font-size: 1.05rem; transition: transform .2s; }
.post-share a:hover, .post-share button:hover { transform: scale(1.1); }
.sh-line { background: #06c755; } .sh-fb { background: #1877f2; } .sh-copy { background: #64748b; }
.related { background: #f1f5f9; padding: 60px 0 80px; }
.related h2 { text-align: center; color: #1e3a8a; font-size: 1.7rem; margin-bottom: 30px; }
.related-more { text-align: center; margin-top: 34px; }

/* Footer */
footer { background: #111827; color: #fff; padding: 60px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; }
.footer-section p { color: #9ca3af; margin-bottom: 8px; }
.footer-section .small, .footer-section p.small { font-size: .9rem; color: #6b7280; }
.footer-h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.footer-h3 i { color: #f97316; margin-right: 6px; }
.map-link { color: #fb923c; text-decoration: none; }
.contact-list { display: flex; flex-direction: column; gap: 15px; }
.contact-list a { display: flex; align-items: center; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all .3s; }
.contact-list a:hover { transform: translateX(5px); color: #f97316; }
.contact-list a i { margin-right: 12px; width: 25px; }
.fa-phone-square-alt, .fa-phone-alt { color: #f97316; }
.fa-line { color: #10b981; }
.fa-facebook { color: #3b82f6; }
.post-cta-btns .fa-phone-alt, .post-cta-btns .fa-line, .float-contact .fa-phone-alt, .float-contact .fa-line, .post-share i { color: #fff; }
.footer-divider { border: none; border-top: 1px solid #374151; margin: 30px 0; }
.footer-bottom { text-align: center; color: #6b7280; font-size: .9rem; }

@media (min-width: 769px) and (max-width: 1100px) { nav#navbar .container { gap: 14px; } .nav-menu { gap: 14px; } .nav-menu a { font-size: .88rem; } .logo { font-size: 1.3rem; } .nav-btn { padding: 8px 14px; font-size: .9rem; } }

@media (max-width: 768px) {
    .nav-menu { flex-direction: column; background: #fff; position: absolute; top: 70px; left: 0; right: 0; width: 100%; padding: 20px; display: none; box-shadow: 0 4px 6px rgba(0,0,0,.1); gap: 15px; }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .nav-btn { display: none; }
    .blog-hero { padding: 100px 20px 50px; }
    .blog-hero h1 { font-size: 2rem; }
    .post-head { padding: 96px 0 30px; }
    .post-head h1 { font-size: 1.65rem; }
    .post-body { font-size: 1.02rem; }
    .post-cta { padding: 22px; }
    .post-cta-btns, .post-cta-btns a { width: 100%; justify-content: center; }
}
