/*
Theme Name: PIXELS CCTV Clone
Author: PIXELS
Version: 1.0.0
*/
:root{--teal:#008f95;--deep:#002f32;--ink:#15191b;--muted:#6f7779;--soft:#f5f7f7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Noto Sans Thai",Arial,sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.wrap{width:min(1120px,calc(100% - 40px));margin:auto}
.topline{height:6px;background:var(--teal)}
.site-header{height:76px;background:#fff;border-bottom:1px solid #e7e7e7;position:sticky;top:0;z-index:50}
.nav{height:100%;display:flex;align-items:center;gap:34px}
.brand img{width:145px;height:auto}
.menu{display:flex;align-items:center;gap:28px;margin-left:auto;font-size:14px}
.menu a{padding:29px 0;transition:.2s}
.menu a:hover{color:var(--teal)}
.nav-tools{display:flex;gap:12px;color:#555}
.hamb{display:none;border:0;background:transparent;font-size:28px}
.hero{position:relative;min-height:520px;background:linear-gradient(90deg,rgba(0,35,37,.08),rgba(0,0,0,0)),url('assets/hero.avif') center/cover no-repeat;display:flex;align-items:center}
.hero-card{max-width:520px;background:rgba(255,255,255,.91);padding:42px;border-left:6px solid var(--teal);box-shadow:0 20px 60px rgba(0,0,0,.12)}
.eyebrow{color:var(--teal);font-weight:700;letter-spacing:2px;font-size:13px}
.hero h1{font-size:44px;line-height:1.18;margin:12px 0}
.hero p{font-size:18px;line-height:1.75;color:#4c5557}
.btn{display:inline-block;background:#111;color:#fff;border-radius:28px;padding:12px 27px;font-size:14px}
.btn.teal{background:var(--teal)}
.section{padding:82px 0}
.section-title{text-align:center;margin-bottom:42px}
.section-title h2{font-size:30px;margin:0 0 6px}
.section-title p{margin:0;color:var(--muted)}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.category-card{position:relative;min-height:365px;overflow:hidden;background:#ddd}
.category-card img{width:100%;height:100%;object-fit:cover;transition:.5s}
.category-card:hover img{transform:scale(1.04)}
.category-card:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.category-copy{position:absolute;z-index:2;bottom:28px;left:28px;color:#fff}
.category-copy h3{font-size:23px;margin:0 0 5px}
.category-copy p{margin:0 0 14px;opacity:.85}
.news{background:var(--soft)}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{background:#fff;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.post-card img{width:100%;height:205px;object-fit:cover}
.post-body{padding:22px}
.post-body h3{font-size:18px;line-height:1.5;margin:0 0 10px}
.post-body p{font-size:14px;line-height:1.7;color:var(--muted)}
.post-date{font-size:12px;color:var(--teal)}
.reviews{background:#fff}
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:44px;text-align:center}
.review img{width:130px;height:130px;border-radius:50%;object-fit:cover;margin:0 auto 20px;border:5px solid #e8f5f5}
.review p{line-height:1.75;color:#555}
.review strong{color:var(--teal)}
.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:500px}
.split-media{height:100%;min-height:500px;background:#e8f5f5;display:flex;align-items:end;justify-content:center;overflow:hidden}
.split-media img{max-height:470px;width:auto}
.split-copy{padding:70px 11%;}
.split-copy h2{font-size:36px;margin:8px 0 16px}
.split-copy p{color:#596264;line-height:1.8}
.app-section{background:#f4f4f4}
.app-section .split-media{background:#fff}
.stay{background:var(--deep);color:#fff;text-align:center;padding:70px 20px}
.stay h2{font-size:30px;margin:0 0 8px}
.contact{display:grid;grid-template-columns:1fr 1fr}
.contact-info{padding:62px 10%;background:#fff}
.contact-info h3{color:var(--teal);margin:25px 0 8px}
.contact-info p{line-height:1.8;margin:0;color:#596264}
.contact-map{min-height:430px;background:linear-gradient(135deg,#e6eded,#cbd7d7);display:flex;align-items:center;justify-content:center;text-align:center;color:#48605f}
.qr{width:105px;margin-top:20px}
.footer{background:#080b0c;color:#b7c0c1;padding:50px 0 28px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px}
.footer img{filter:brightness(0) invert(1);width:140px}
.footer h4{color:#fff}
.footer a{display:block;margin:9px 0}
.copyright{border-top:1px solid #252a2b;margin-top:35px;padding-top:22px;font-size:12px}
.floating-line{position:fixed;right:22px;bottom:22px;background:#06c755;color:#fff;border-radius:50px;padding:14px 20px;z-index:30;box-shadow:0 8px 25px rgba(0,0,0,.25);font-weight:700}
@media(max-width:800px){.site-header{height:64px}
.brand img{width:120px}
.menu{display:none}
.hamb{display:block;margin-left:auto}
.hero{min-height:470px;background-position:center}
.hero-card{margin:30px 20px;padding:28px}
.hero h1{font-size:32px}
.section{padding:58px 0}
.category-grid,.posts-grid,.review-grid,.split,.contact,.footer-grid{grid-template-columns:1fr}
.category-card{min-height:330px}
.split-media{min-height:380px}
.split-copy{padding:55px 25px}
.contact-info{padding:50px 25px}
.contact-map{min-height:300px}
.floating-line{font-size:13px;padding:12px 16px}
.wrap{width:min(100% - 28px,1120px)}
}
.memorial img{width:100%;height:auto}
.hero{position:relative;display:block;min-height:0;background:#0b7377;overflow:hidden}
.hero-track{display:flex;transition:transform .7s cubic-bezier(.65,0,.35,1)}
.hero-slide{position:relative;min-width:100%;height:620px;background:#0b7377}
.hero-slide img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-slide .slide-link{position:absolute;inset:0}
.slider-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:52px;height:72px;border:0;background:rgba(0,0,0,.08);color:#fff;font-size:54px;font-weight:200;cursor:pointer;transition:.2s}
.slider-arrow:hover{background:rgba(0,0,0,.25)}
.slider-arrow.prev{left:4%}.slider-arrow.next{right:4%}
.slider-dots{position:absolute;z-index:5;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
.slider-dot{width:9px;height:9px;padding:0;border:1px solid #fff;border-radius:50%;background:transparent;cursor:pointer}
.slider-dot.active{background:#fff}
@media(max-width:800px){.hero{min-height:0}.hero-slide{height:330px}.hero-slide img{object-fit:cover}.slider-arrow{width:38px;height:54px;font-size:38px}.slider-arrow.prev{left:1%}.slider-arrow.next{right:1%}}
.topline{display:none}.site-header{height:54px;top:0;background:#efefef}.wrap.nav{width:min(1200px,calc(100% - 36px));gap:20px}.brand img{width:122px}.social{display:flex;gap:14px;color:#858585;font-weight:700}.social a{font-size:18px}.menu{gap:34px;margin-left:0;font-size:14px}.menu a{padding:17px 0}.head-search{margin-left:auto;width:210px;height:34px;border-radius:18px;background:#fff;display:flex;align-items:center;padding:0 13px;gap:8px}.head-search input{width:100%;border:0;outline:0;background:transparent;font:inherit}.login{display:flex;gap:7px;align-items:center;color:#479b98;white-space:nowrap}.login:first-letter{font-size:22px;color:#000}.nav-tools{display:none}.memorial{height:434px;overflow:hidden;background:#000}.memorial img{height:100%;object-fit:cover}.category-card{min-height:0;overflow:visible;background:#fff}.category-card img{height:330px;object-fit:cover}.category-card:after{display:none}.category-copy{position:static;color:#111;text-align:center;padding:18px 10px 0}.category-copy h3{font-weight:500}.category-copy p{color:#666}.presenter{background:#063b3e;color:#fff;padding:0}.presenter-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:520px}.presenter-photo{height:520px;display:flex;align-items:end;justify-content:center;overflow:hidden}.presenter-photo img{max-height:500px}.presenter-copy{padding:60px}.presenter-copy h2{font-size:34px;line-height:1.35}.presenter-copy h2 span{color:#48b6b5}.presenter-copy p{line-height:1.8;color:#d3e4e4}.finance{padding:80px 0;background:#fff}.finance-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px}.finance-grid h2{font-size:38px}.finance-grid h2 span{color:var(--teal);font-size:52px}.finance-grid img{width:100%;max-height:430px;object-fit:cover}@media(max-width:800px){.social,.head-search,.login{display:none}.site-header{height:64px;background:#fff}.wrap.nav{width:calc(100% - 28px)}.memorial{height:210px}.hero-slide{height:330px}.category-card img{height:auto}.presenter-grid,.finance-grid{grid-template-columns:1fr}.presenter-photo{height:380px}.presenter-copy{padding:45px 24px}.finance{padding:55px 0}.finance-grid{gap:30px}}
