/*
Theme Name: Phetchabun News
Theme URI: https://phetchabunnews.com/
Author: Phetchabun News
Description: ข่าวเพชรบูรณ์ — modern Thai news portal theme based on the approved visual design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: phetchabun-news
*/
:root{
 --navy:#071b3a;--navy2:#0b2c5c;--blue:#075bd6;--red:#df171d;--gold:#f7b500;
 --green:#25a95a;--text:#172033;--muted:#667085;--bg:#f5f7fa;--white:#fff;
 --shadow:0 2px 10px rgba(15,23,42,.12);--radius:8px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif;font-size:16px;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(1500px,calc(100% - 30px));margin:auto}
.site-header{background:var(--navy);color:#fff}
.brandbar{min-height:120px;background:
linear-gradient(90deg,rgba(3,13,32,.96),rgba(3,13,32,.48)),
url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80') center/cover}
.brandbar-inner{min-height:120px;display:grid;grid-template-columns:1fr 220px 250px;gap:24px;align-items:center}
.logo{font-size:48px;font-weight:900;letter-spacing:-2px;line-height:1}
.logo .gold{color:var(--gold)}
.tagline{color:#6ee36d;font-weight:700;margin-top:7px;font-size:18px}
.weather-mini{background:rgba(2,16,39,.78);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:12px 18px}
.weather-mini strong{display:block;font-size:29px}
.weather-mini small{opacity:.9}
.social-search{display:grid;gap:8px}
.socials{display:flex;justify-content:flex-end;gap:10px}
.socials a{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#075bd6;font-weight:900}
.socials a:nth-child(2){background:#e21b23}.socials a:nth-child(3){background:#111}.socials a:nth-child(4){background:#20a85a}
.searchbox{background:#fff;border-radius:8px;display:flex;overflow:hidden}
.searchbox input{border:0;outline:0;padding:10px 12px;flex:1;font-size:15px}
.searchbox button{border:0;background:#fff;padding:0 13px;font-size:20px}
.main-nav{background:#06172f;border-top:1px solid rgba(255,255,255,.08)}
.main-nav .container{display:flex;align-items:center;overflow:auto}
.main-nav a{padding:14px 17px;color:#fff;font-weight:800;white-space:nowrap}
.main-nav a:hover,.main-nav .active{background:var(--blue)}
.home-btn{font-size:20px;background:var(--blue)}
.menu-toggle{margin-left:auto;background:transparent;color:#fff;border:0;font-size:24px;padding:10px 14px}
.breaking{background:#fff;padding:9px 0;border-bottom:1px solid #ddd}
.breaking-inner{display:flex;gap:12px;align-items:center}
.breaking-badge{background:var(--red);color:#fff;font-weight:900;padding:7px 15px;border-radius:7px;white-space:nowrap}
.breaking-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.breaking-time{margin-left:auto;background:#111;color:#fff;padding:7px 13px;border-radius:6px;font-weight:900}
.hero-grid{display:grid;grid-template-columns:1.25fr .95fr;gap:10px;margin:10px 0}
.hero-card,.side-card{position:relative;overflow:hidden;border-radius:8px;background:#111;color:#fff;min-height:190px;box-shadow:var(--shadow)}
.hero-card{min-height:390px}
.hero-card img,.side-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.hero-card:after,.side-card:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.92))}
.hero-copy,.side-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:15px}
.badge{display:inline-block;background:var(--red);padding:5px 9px;border-radius:4px;font-weight:900;font-size:13px;margin-bottom:8px}
.badge.blue{background:var(--blue)}
.hero-copy h1{font-size:36px;line-height:1.12;margin:0 0 8px}
.hero-copy h1 span{color:var(--gold)}
.side-stack{display:grid;gap:10px}
.side-copy h2{font-size:23px;line-height:1.18;margin:0 0 8px}
.meta{font-size:13px;opacity:.9}
.readmore{display:inline-block;background:var(--blue);padding:8px 14px;border-radius:5px;margin-top:9px;font-weight:900}
.category-strip{display:flex;gap:5px;background:#fff;border-radius:8px;box-shadow:var(--shadow);padding:7px;overflow:auto}
.category-strip a{min-width:90px;text-align:center;padding:8px 10px;font-weight:800;border-radius:7px}
.category-strip a:hover{background:#eef5ff}
.icon{display:block;font-size:23px;margin-bottom:2px}
.section{margin:14px 0}
.section-title{display:flex;align-items:center;gap:9px;margin:0 0 8px;font-size:24px;color:var(--navy)}
.section-title:before{content:"";width:5px;height:25px;background:var(--blue);border-radius:3px}
.section-title.green:before{background:var(--green)}
.section-title.red:before{background:var(--red)}
.section-title .more{margin-left:auto;font-size:13px;color:var(--blue)}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px}
.news-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.news-card{background:#fff;border-radius:7px;overflow:hidden;box-shadow:var(--shadow)}
.news-card .thumb{position:relative;aspect-ratio:1.45;overflow:hidden}
.news-card .thumb img{width:100%;height:100%;object-fit:cover}
.number{position:absolute;top:7px;left:7px;background:var(--blue);color:#fff;width:27px;height:27px;border-radius:5px;display:grid;place-items:center;font-weight:900}
.news-body{padding:9px}
.news-cat{display:inline-block;font-size:11px;background:#173b71;color:#fff;padding:2px 6px;border-radius:3px}
.news-title{font-size:16px;font-weight:800;line-height:1.3;margin:7px 0;min-height:42px}
.news-meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}
.sidebar-box{background:#fff;border-radius:8px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:12px}
.box-head{background:var(--red);color:#fff;font-weight:900;padding:10px 12px;display:flex;justify-content:space-between}
.latest-list{list-style:none;margin:0;padding:0}
.latest-list li{display:grid;grid-template-columns:36px 1fr 62px;gap:6px;align-items:center;padding:8px;border-bottom:1px solid #eee;font-size:13px}
.latest-list img{width:58px;height:42px;object-fit:cover;border-radius:4px;grid-column:3;grid-row:1/3}
.latest-list .time{color:var(--red);font-size:11px;font-weight:800}
.travel-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.travel-card{position:relative;height:150px;border-radius:7px;overflow:hidden;color:#fff;background:#123}
.travel-card img{width:100%;height:100%;object-fit:cover}
.travel-card:after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.85))}
.travel-card .tcopy{position:absolute;z-index:2;left:10px;bottom:9px;font-weight:900}
.lower-grid{display:grid;grid-template-columns:1.35fr 1fr .9fr;gap:12px}
.panel{background:#fff;border-radius:8px;box-shadow:var(--shadow);overflow:hidden}
.panel-head{padding:10px 13px;font-weight:900;font-size:20px;border-bottom:1px solid #e5e7eb}
.video-main{aspect-ratio:16/9;position:relative;background:#111;overflow:hidden}
.video-main img{width:100%;height:100%;object-fit:cover;opacity:.85}
.play{position:absolute;inset:0;display:grid;place-items:center;font-size:58px;color:#fff;text-shadow:0 2px 12px #000}
.panel-body{padding:10px}
.ranked{list-style:none;margin:0;padding:0}
.ranked li{display:flex;gap:9px;padding:8px 0;border-bottom:1px solid #eee;font-size:13px}
.rank{width:26px;height:26px;background:#0c3b8d;color:#fff;display:grid;place-items:center;border-radius:4px;font-weight:900;flex:0 0 auto}
.weather-panel{background:linear-gradient(145deg,#0a3f8f,#0b66c9);color:#fff}
.weather-now{padding:12px 15px;display:flex;align-items:center;gap:14px}
.weather-now .temp{font-size:48px;font-weight:900}
.forecast{background:#fff;color:#172033}
.forecast div{display:grid;grid-template-columns:1fr 42px 45px 45px;padding:7px 10px;border-bottom:1px solid #eee;font-size:12px}
.follow{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}
.follow a{padding:9px;border-radius:6px;background:#eef3f9;font-weight:800}
.newsletter{padding:12px;background:#063478;color:#fff}
.newsletter input{width:100%;padding:9px;border-radius:5px;border:0;margin:7px 0}
.newsletter button{width:100%;padding:9px;background:var(--blue);color:#fff;border:0;border-radius:5px;font-weight:900}
.site-footer{background:#061a38;color:#fff;margin-top:18px;padding:26px 0 12px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px}
.site-footer h3{margin:0 0 8px}.site-footer ul{margin:0;padding-left:17px;color:#d6deeb}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.1);margin-top:18px;padding-top:10px;color:#aab8cc;font-size:12px}
@media(max-width:1100px){
 .brandbar-inner{grid-template-columns:1fr 200px}.social-search{display:none}
 .news-grid{grid-template-columns:repeat(2,1fr)}.travel-grid{grid-template-columns:repeat(3,1fr)}
 .content-layout{grid-template-columns:1fr}.content-layout>.sidebar-box{display:none}.lower-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .container{width:min(100% - 16px,1500px)}
 .brandbar-inner{grid-template-columns:1fr;min-height:150px}.weather-mini{display:none}
 .logo{font-size:35px}.tagline{font-size:13px}
 .hero-grid{grid-template-columns:1fr}.hero-card{min-height:310px}.side-card{min-height:170px}
 .hero-copy h1{font-size:27px}.category-strip a{min-width:75px;font-size:12px}
 .news-grid{grid-template-columns:repeat(2,1fr);gap:7px}.news-title{font-size:13px}
 .travel-grid{grid-template-columns:repeat(2,1fr)}.travel-card{height:125px}
 .lower-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
 .main-nav a{padding:11px 12px;font-size:13px}
 .breaking-text{font-size:12px}.breaking-time{display:none}
}
