/*
Theme Name: Piknikdong 2026
Description: Piknikdong 2026 — child theme for GeneratePress Premium, portal berita.
Template: generatepress
Version: 1.0.9
*/

:root{--ji-red:#d71920;--ji-text:#111;--ji-border:#e5e5e5;--ji-max:1140px}
body{background:#fff;color:var(--ji-text);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none}.site.grid-container,.grid-container{max-width:var(--ji-max)}
.site-header{background:#fff;border-bottom:1px solid var(--ji-border)}
.inside-header{padding-top:8px;padding-bottom:8px}.main-navigation{background:#fff}
.main-navigation .main-nav ul li a{font-size:12px;font-weight:600;color:#222;padding:0 9px}
.main-navigation .main-nav ul li a:hover{color:var(--ji-red)}
.ji-home{max-width:var(--ji-max);margin:0 auto;padding:25px 15px 10px}
.ji-section{margin:0 0 38px}.ji-section-title{position:relative;margin:0 0 15px;padding-left:10px;font-size:16px;line-height:20px;font-weight:700}
.ji-section-title:before{content:"";position:absolute;left:0;top:0;width:3px;height:20px;background:var(--ji-red)}
.ji-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:25px;margin-bottom:38px}
.ji-hero{position:relative;overflow:hidden;border-radius:3px;background:#111;min-height:340px}
.ji-hero img{display:block;width:100%;height:340px;object-fit:cover}
.ji-overlay{position:absolute;left:0;right:0;bottom:0;padding:75px 25px 22px;color:#fff;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.9))}
.ji-overlay h1,.ji-overlay h2{margin:0;color:#fff;font-size:25px;line-height:1.2;font-weight:700}
.ji-meta{margin-top:7px;color:#ddd;font-size:10px}.ji-category{color:var(--ji-red);font-size:8px;font-weight:700;text-transform:uppercase;margin-bottom:4px}
.ji-trending-title{position:relative;margin:0 0 10px;padding-left:9px;font-size:16px;line-height:20px}
.ji-trending-title:before{content:"";position:absolute;left:0;top:0;width:3px;height:20px;background:var(--ji-red)}
.ji-trend{display:grid;grid-template-columns:82px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #eee}
.ji-trend img{display:block;width:82px;height:58px;object-fit:cover}.ji-trend h3{margin:0;font-size:12px;line-height:1.35;font-weight:700}
.ji-trend .ji-meta{color:#999;font-size:9px}.ji-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 25px}
.ji-card{display:grid;grid-template-columns:115px 1fr;gap:12px;padding-bottom:12px;border-bottom:1px solid #eee}
.ji-card img{display:block;width:115px;height:78px;object-fit:cover}.ji-card h3{margin:0;font-size:13px;line-height:1.3;font-weight:700}.ji-card .ji-meta{color:#999;font-size:9px}
.ji-feature{position:relative;overflow:hidden;border-radius:3px;background:#111}.ji-feature img{display:block;width:100%;height:300px;object-fit:cover}
.ji-feature .ji-overlay h2{font-size:22px}.ji-feature .ji-overlay p{margin:7px 0 0;color:#eee;font-size:11px;line-height:1.4}
.ji-ad{display:flex;align-items:center;justify-content:center;min-height:90px;margin:0 auto 30px;border:1px dashed #ddd;background:#fafafa;color:#aaa;font-size:10px}
.ji-ad-728{max-width:728px}.ji-ad-300{width:300px;min-height:250px}
.ji-footer{margin-top:50px;padding:30px 15px;text-align:center;background:#fafafa;border-top:1px solid #eee;color:#999;font-size:11px}
.ji-footer strong{color:#222;font-size:14px}.ji-breadcrumb{margin:0 0 15px;font-size:10px;color:#999}
.ji-single-title{font-size:34px;line-height:1.15;margin-bottom:10px}.ji-single-meta{font-size:11px;color:#888;margin-bottom:20px}
.ji-single-thumb img{width:100%;height:auto}.ji-single-content{font-size:17px;line-height:1.75}.ji-single-content img{max-width:100%;height:auto}
@media(max-width:768px){.ji-top{grid-template-columns:1fr}.ji-grid{grid-template-columns:1fr}.ji-hero,.ji-hero img{height:260px;min-height:260px}.ji-feature img{height:250px}.ji-overlay h1,.ji-overlay h2{font-size:20px}.ji-single-title{font-size:28px}}
@media(max-width:480px){.ji-home{padding-left:12px;padding-right:12px}.ji-card{grid-template-columns:95px 1fr}.ji-card img{width:95px;height:70px}.ji-hero,.ji-hero img{height:220px;min-height:220px}.ji-overlay{padding:50px 15px 15px}.ji-overlay h1,.ji-overlay h2{font-size:18px}}


/* =========================================================
   PIKNIKDONG 2026 — SINGLE ARTICLE
   Layout inspired by the supplied article reference
   ========================================================= */

.ji-article-page{
  max-width:1140px;
  margin:0 auto;
  padding:26px 15px 0;
  width:100%;
  box-sizing:border-box;
}

.ji-article-shell{
  max-width:740px;
  margin:0 auto;
}

.ji-article-breadcrumb{
  font-size:10px;
  color:#aaa;
  margin:0 0 18px;
  line-height:1.5;
}
.ji-article-breadcrumb a{color:#999}
.ji-article-breadcrumb .current{
  color:var(--ji-red);
  font-weight:700;
}

.ji-article-header h1{
  margin:0 0 16px;
  font-size:38px;
  line-height:1.12;
  letter-spacing:-1.1px;
  font-weight:750;
  color:#171717;
}

.ji-article-deck{
  margin:0 0 20px;
  color:#777;
  font-size:14px;
  line-height:1.65;
}

.ji-article-byline{
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  padding:14px 0;
  margin-bottom:24px;
  font-size:11px;
  color:#777;
}
.ji-article-byline strong{color:#222}
.ji-article-byline a{color:var(--ji-red);font-weight:700}
.ji-article-date{margin-top:5px;color:#aaa;font-size:10px}

.ji-article-hero{
  margin:0 -100px 8px;
}
.ji-article-hero img{
  display:block;
  width:calc(100% + 0px);
  max-width:none;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:4px;
}
.ji-caption{
  text-align:center;
  color:#999;
  font-size:9px;
  line-height:1.4;
  margin:8px 0 30px;
}

.ji-article-content{
  max-width:650px;
  margin:0 auto;
  color:#444;
  font-size:15px;
  line-height:1.78;
}
.ji-article-content p{margin:0 0 20px}
.ji-article-content h2{
  font-size:23px;
  line-height:1.3;
  margin:30px 0 13px;
  color:#222;
}
.ji-article-content h3{
  font-size:18px;
  line-height:1.4;
  margin:25px 0 10px;
  color:#222;
}
.ji-article-content blockquote{
  margin:25px 0;
  padding:12px 18px;
  border-left:3px solid var(--ji-red);
  background:#fafafa;
  color:#555;
}
.ji-article-content img{
  max-width:100%;
  height:auto;
  border-radius:3px;
}

.ji-tags{
  max-width:650px;
  margin:25px auto 0;
  padding-top:5px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}
.ji-tags-label{
  color:#aaa;
  font-size:9px;
  text-transform:uppercase;
  font-weight:700;
  margin-right:3px;
}
.ji-tag{
  background:#f4f4f4;
  border-radius:20px;
  padding:6px 11px;
  color:#777;
  font-size:9px;
}

.ji-follow{
  max-width:650px;
  margin:18px auto 0;
  padding:14px 0;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  font-size:10px;
}
.ji-follow strong{margin-right:10px}

.ji-author-box{
  max-width:650px;
  margin:18px auto 20px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:14px;
  background:#f7f7f6;
  border-radius:10px;
}
.ji-author-avatar img{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:50%;
}
.ji-author-name{
  font-size:14px;
  font-weight:700;
  color:#222;
}
.ji-author-role{
  margin-top:3px;
  color:#999;
  font-size:10px;
}

.ji-comments-box{
  max-width:650px;
  margin:14px auto 60px;
  padding:24px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fafafa;
  text-align:center;
  color:#777;
  font-size:11px;
}
.ji-comments-box .comment-form{margin-top:15px;text-align:left}
.ji-comments-box textarea,
.ji-comments-box input{
  max-width:100%;
}

.ji-related-wrap{
  clear:both;
  display:block;
  width:100%;
  max-width:1140px;
  box-sizing:border-box;
  border-top:1px solid #eee;
  padding:32px 0 45px;
  margin:35px auto 0;
}
.ji-related{
  width:100%;
  max-width:900px;
  margin:0 auto;
  padding:0;
}
.ji-related-title{
  position:relative;
  margin:0 0 18px;
  padding-left:11px;
  font-size:17px;
  line-height:22px;
  font-weight:700;
}
.ji-related-title:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:3px;
  height:22px;
  background:var(--ji-red);
}
.ji-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 35px;
}
.ji-related-item{
  display:grid;
  grid-template-columns:75px 1fr;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #eee;
}
.ji-related-item img{
  width:75px;
  height:62px;
  object-fit:cover;
  border-radius:3px;
}
.ji-related-item h3{
  margin:0;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
.ji-related-item .ji-related-meta{
  margin-top:5px;
  color:#999;
  font-size:8px;
  text-transform:uppercase;
}

@media(max-width:900px){
  .ji-article-hero{margin-left:0;margin-right:0}
}
@media(max-width:768px){
  .ji-article-page{padding-top:20px}
  .ji-article-header h1{font-size:30px}
  .ji-article-deck{font-size:13px}
  .ji-article-content{font-size:15px}
  .ji-related-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .ji-article-header h1{font-size:27px;letter-spacing:-.5px}
  .ji-article-hero img{aspect-ratio:16/10}
  .ji-author-box{padding:14px}
}

/* =========================================================
   PIKNIKDONG 2026 — CATEGORY ARCHIVE
   Layout based on the supplied category reference.
   ========================================================= */

.ji-archive-page{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:38px 15px 0;
  box-sizing:border-box;
}

.ji-archive-header{
  max-width:900px;
  margin:0 auto;
}
.ji-archive-label{
  margin:0 0 8px;
  color:var(--ji-red);
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.ji-archive-header h1{
  margin:0 0 10px;
  color:#171717;
  font-size:36px;
  line-height:1.1;
  letter-spacing:-1.2px;
  font-weight:750;
}
.ji-archive-header p{
  max-width:780px;
  margin:0;
  color:#8a8a8a;
  font-size:14px;
  line-height:1.7;
}
.ji-archive-divider{
  max-width:900px;
  margin:34px auto 28px;
  border-top:1px solid #e9e9e9;
}

.ji-archive-section{
  max-width:900px;
  margin:0 auto;
}
.ji-archive-section-title{
  position:relative;
  margin:0 0 30px;
  padding-left:13px;
  color:#222;
  font-size:17px;
  line-height:22px;
  font-weight:700;
}
.ji-archive-section-title:before{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:3px;
  height:24px;
  background:var(--ji-red);
}

.ji-archive-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:46px;
}
.ji-archive-item{
  min-width:0;
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid #ededed;
}
.ji-archive-thumb,
.ji-archive-thumb-placeholder{
  display:block;
  width:120px;
  height:78px;
  overflow:hidden;
  border-radius:4px;
  background:#eee;
}
.ji-archive-thumb img{
  display:block;
  width:120px;
  height:78px;
  object-fit:cover;
}
.ji-archive-item-body{min-width:0}
.ji-archive-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin:1px 0 8px;
  color:#aaa;
  font-size:9px;
  line-height:1.25;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.ji-archive-cat{
  color:var(--ji-red);
  font-weight:700;
}
.ji-archive-dot{color:#c8c8c8}
.ji-archive-item h3{
  margin:0;
  color:#1d1d1d;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
}
.ji-archive-item h3 a{color:inherit}
.ji-archive-item h3 a:hover{color:var(--ji-red)}

.ji-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:42px 0 44px;
}
.ji-pagination a,
.ji-pagination span.page-numbers{
  min-width:36px;
  height:36px;
  padding:0 10px;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e5e5;
  border-radius:5px;
  color:#555;
  background:#fff;
  font-size:11px;
  line-height:1;
}
.ji-pagination .current{
  min-width:36px;
  height:36px;
  padding:0 10px;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ji-red);
  border-radius:5px;
  color:#fff;
  background:var(--ji-red);
  font-size:11px;
}
.ji-pagination .prev,
.ji-pagination .next{
  gap:8px;
  min-width:auto;
  padding-left:14px;
  padding-right:14px;
  color:#555;
}
.ji-pagination .prev{color:#bcbcbc}
.ji-pagination .dots{
  min-width:20px;
  padding:0 2px;
  border-color:transparent;
  color:#999;
  background:transparent;
}
.ji-pagination a:hover{border-color:#ccc;color:var(--ji-red)}
.ji-pagination .current:hover{color:#fff}

.ji-archive-empty{
  padding:30px 0 70px;
  color:#888;
  font-size:14px;
}

@media(max-width:768px){
  .ji-archive-page{padding-top:28px}
  .ji-archive-header,
  .ji-archive-section,
  .ji-archive-divider{max-width:none}
  .ji-archive-header h1{font-size:32px}
  .ji-archive-grid{grid-template-columns:1fr;column-gap:0}
  .ji-archive-item{grid-template-columns:120px minmax(0,1fr)}
}

@media(max-width:480px){
  .ji-archive-page{padding-left:12px;padding-right:12px}
  .ji-archive-header h1{font-size:29px}
  .ji-archive-header p{font-size:13px}
  .ji-archive-section-title{margin-bottom:24px}
  .ji-archive-item{grid-template-columns:100px minmax(0,1fr);gap:11px}
  .ji-archive-thumb,
  .ji-archive-thumb-placeholder,
  .ji-archive-thumb img{width:100px;height:70px}
  .ji-archive-item h3{font-size:13px}
  .ji-pagination{gap:5px;margin-top:32px}
  .ji-pagination a,
  .ji-pagination span.page-numbers,
  .ji-pagination .current{min-width:34px;height:34px}
}


/* =========================================================
   PIKNIKDONG 2026 — PORTAL HEADER
   Logo kiri | menu tengah | search paling kanan
   ========================================================= */
.pd-portal-header{
  display:block;
  width:100%;
  background:#fff;
  border-bottom:1px solid #e6e6e6;
  position:relative;
  z-index:100;
}
.pd-header-inner{
  width:100%;
  max-width:1320px;
  min-height:84px;
  margin:0 auto;
  padding:0 28px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:34px;
}
.pd-header-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  white-space:nowrap;
}
.pd-header-logo .custom-logo-link{
  display:flex;
  align-items:center;
}
.pd-header-logo img.custom-logo{
  display:block;
  width:auto;
  max-width:310px;
  max-height:52px;
}
.pd-header-text-logo{
  color:#222;
  font-family:Georgia,'Times New Roman',serif;
  font-size:27px;
  font-weight:700;
  letter-spacing:-1px;
}
.pd-header-text-logo span{
  color:#222;
  margin-right:4px;
}
.pd-header-text-logo b{color:var(--ji-red)}
.pd-header-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  justify-content:center;
}
.pd-header-nav .pd-menu{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  margin:0;
  padding:0;
}
.pd-header-nav .pd-menu > li{margin:0;padding:0}
.pd-header-nav .pd-menu > li > a{
  display:block;
  padding:8px 0;
  color:#444;
  font-size:16px;
  line-height:1.2;
  font-weight:500;
  white-space:nowrap;
}
.pd-header-nav .pd-menu > li > a:hover,
.pd-header-nav .pd-menu > li.current-menu-item > a,
.pd-header-nav .pd-menu > li.current-menu-ancestor > a,
.pd-header-nav .pd-menu > li.current-category-ancestor > a{
  color:var(--ji-red);
}
.pd-header-search{
  flex:0 0 26px;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#222;
  margin-left:auto;
}
.pd-header-search svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.pd-header-search:hover{color:var(--ji-red)}

/* Matikan header/navigation GeneratePress bawaan supaya tidak dobel. */
body .site-header,
body .main-navigation{display:none!important}

@media(max-width:1100px){
  .pd-header-inner{gap:22px;padding-left:20px;padding-right:20px}
  .pd-header-nav .pd-menu{gap:20px}
  .pd-header-nav .pd-menu > li > a{font-size:14px}
  .pd-header-logo img.custom-logo{max-width:250px}
}
@media(max-width:768px){
  .pd-header-inner{min-height:70px;gap:14px;padding-left:14px;padding-right:14px}
  .pd-header-logo img.custom-logo{max-width:190px;max-height:44px}
  .pd-header-text-logo{font-size:22px}
  .pd-header-nav{justify-content:flex-end;overflow-x:auto}
  .pd-header-nav .pd-menu{gap:16px;justify-content:flex-start}
  .pd-header-nav .pd-menu > li > a{font-size:12px}
  .pd-header-search{flex-basis:23px;width:23px}
  .pd-header-search svg{width:21px;height:21px}
}
@media(max-width:560px){
  .pd-header-inner{min-height:62px}
  .pd-header-logo img.custom-logo{max-width:145px;max-height:38px}
  .pd-header-text-logo{font-size:18px}
  .pd-header-nav .pd-menu{gap:12px}
  .pd-header-nav .pd-menu > li > a{font-size:11px}
}

/* =========================================================
   PIKNIKDONG 2026 — SEARCH RESULTS
   Layout based on the supplied search-page reference.
   ========================================================= */
.ji-search-page{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:38px 15px 0;
  box-sizing:border-box;
}
.ji-search-header{
  max-width:900px;
  margin:0 auto;
}
.ji-search-label{
  margin:0 0 8px;
  color:var(--ji-red);
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.ji-search-header h1{
  margin:0 0 10px;
  color:#171717;
  font-size:36px;
  line-height:1.1;
  letter-spacing:-1.2px;
  font-weight:750;
}
.ji-search-header p{
  margin:0;
  color:#929292;
  font-size:14px;
  line-height:1.7;
}
.ji-search-form{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  max-width:428px;
  min-height:48px;
  margin:18px 0 0;
  padding:0 8px 0 36px;
  box-sizing:border-box;
  border:1px solid #e2e2e2;
  border-radius:7px;
  background:#f7f7f6;
}
.ji-search-form-icon{
  position:absolute;
  left:13px;
  top:50%;
  width:17px;
  height:17px;
  transform:translateY(-50%);
  fill:none;
  stroke:#777;
  stroke-width:1.6;
  stroke-linecap:round;
}
.ji-search-form input{
  min-width:0;
  flex:1 1 auto;
  height:44px;
  margin:0;
  padding:0 10px 0 0;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#333;
  font-size:13px;
}
.ji-search-form button{
  flex:0 0 auto;
  height:36px;
  padding:0 16px;
  border:0;
  border-radius:6px;
  background:var(--ji-red);
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.ji-search-form button:hover{opacity:.9}
.ji-search-divider{
  max-width:900px;
  margin:21px auto 42px;
  border-top:1px solid #e9e9e9;
}
.ji-search-results{
  max-width:900px;
  margin:0 auto;
}
.ji-search-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:46px;
}
.ji-search-item{
  min-width:0;
  display:grid;
  grid-template-columns:75px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid #ededed;
}
.ji-search-thumb,
.ji-search-thumb-placeholder{
  display:block;
  width:75px;
  height:74px;
  overflow:hidden;
  border-radius:4px;
  background:#eee;
}
.ji-search-thumb img{
  display:block;
  width:75px;
  height:74px;
  object-fit:cover;
}
.ji-search-item-body{min-width:0}
.ji-search-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin:2px 0 8px;
  color:#aaa;
  font-size:9px;
  line-height:1.25;
  letter-spacing:.55px;
  text-transform:uppercase;
}
.ji-search-cat{color:var(--ji-red);font-weight:700}
.ji-search-dot{color:#c8c8c8}
.ji-search-item h2{
  margin:0;
  color:#1d1d1d;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
}
.ji-search-item h2 a{color:inherit}
.ji-search-item h2 a:hover{color:var(--ji-red)}
.ji-search-pagination{margin-top:44px;margin-bottom:44px}
.ji-search-empty{
  max-width:900px;
  margin:0 auto;
  padding:10px 0 70px;
  color:#888;
}
.ji-search-empty h2{margin:0 0 8px;color:#222;font-size:20px}
.ji-search-empty p{margin:0;font-size:13px}

/* Header alignment refined to match the supplied desktop reference. */
.pd-header-inner{
  max-width:1320px;
  padding-left:0;
  padding-right:0;
  gap:0;
}
.pd-header-logo{flex:0 0 360px}
.pd-header-nav{flex:1 1 auto;justify-content:center}
.pd-header-nav .pd-menu{gap:30px}
.pd-header-search{flex:0 0 28px;width:28px;margin-left:24px}

@media(max-width:1100px){
  .pd-header-inner{padding-left:20px;padding-right:20px;gap:20px}
  .pd-header-logo{flex-basis:280px}
  .pd-header-nav .pd-menu{gap:20px}
}
@media(max-width:768px){
  .ji-search-page{padding-top:28px}
  .ji-search-header,.ji-search-results,.ji-search-divider{max-width:none}
  .ji-search-header h1{font-size:32px}
  .ji-search-grid{grid-template-columns:1fr;column-gap:0}
  .pd-header-inner{padding-left:14px;padding-right:14px;gap:14px}
  .pd-header-logo{flex-basis:auto}
}
@media(max-width:480px){
  .ji-search-page{padding-left:12px;padding-right:12px}
  .ji-search-header h1{font-size:29px}
  .ji-search-header p{font-size:13px}
  .ji-search-item{grid-template-columns:75px minmax(0,1fr);gap:11px}
  .ji-search-item h2{font-size:13px}
  .ji-search-form{max-width:none}
}


/* =========================================================
   V8 — DESKTOP WIDTH + EXPANDABLE HEADER SEARCH
   ========================================================= */
:root{--ji-max:1100px}
.site.grid-container,.grid-container{max-width:1100px}
.ji-home,.ji-article-page,.ji-archive-page,.ji-search-page{max-width:1100px}

.pd-header-inner{max-width:1100px;min-height:74px;padding-left:0;padding-right:0;gap:0}
.pd-header-logo{flex:0 0 300px}
.pd-header-logo img.custom-logo{max-width:250px;max-height:48px}
.pd-header-nav{justify-content:center}
.pd-header-nav .pd-menu{gap:24px}
.pd-header-nav .pd-menu > li > a{font-size:14px}
.pd-header-search{flex:0 0 42px;width:42px;height:42px;margin-left:20px;padding:0;border:0;border-radius:5px;background:#f7f7f6;color:#222;cursor:pointer}
.pd-header-search svg{width:22px;height:22px}
.pd-header-search:hover,.pd-header-search[aria-expanded="true"]{color:#222;background:#f1f1f0}

.pd-search-panel{width:100%;background:#fff;border-bottom:1px solid #e7e7e7;box-sizing:border-box;opacity:0;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease}
.pd-search-panel.is-open{opacity:1;transform:translateY(0)}
.pd-search-panel[hidden]{display:none}
.pd-search-panel-inner{max-width:1100px;min-height:60px;margin:0 auto;padding:0;box-sizing:border-box}
.pd-search-form{min-height:60px;display:flex;align-items:center;position:relative}
.pd-search-form-icon{flex:0 0 22px;width:22px;height:22px;margin-right:13px;fill:none;stroke:#888;stroke-width:1.8;stroke-linecap:round}
.pd-search-form input{flex:1 1 auto;min-width:0;height:58px;padding:0 48px 0 0;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#333;font-size:18px}
.pd-search-form input::placeholder{color:#999;opacity:1}
.pd-search-close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:36px;height:36px;padding:0;border:0;background:transparent;color:#999;cursor:pointer;font-size:29px;line-height:36px;font-weight:300}
.pd-search-close:hover{color:#222}

@media(max-width:1100px){
  .pd-header-inner,.pd-search-panel-inner{padding-left:20px;padding-right:20px}
  .pd-header-logo{flex-basis:270px}
  .pd-header-nav .pd-menu{gap:19px}
}
@media(max-width:768px){
  .pd-header-inner{min-height:68px;padding-left:14px;padding-right:14px;gap:12px}
  .pd-header-logo{flex:0 0 auto}
  .pd-header-logo img.custom-logo{max-width:185px;max-height:42px}
  .pd-header-nav{justify-content:flex-end;overflow-x:auto}
  .pd-header-nav .pd-menu{gap:15px;justify-content:flex-start}
  .pd-header-nav .pd-menu > li > a{font-size:12px}
  .pd-header-search{flex-basis:38px;width:38px;height:38px;margin-left:10px}
  .pd-search-panel-inner{padding-left:14px;padding-right:14px}
  .pd-search-form input{font-size:16px}
}
@media(max-width:560px){
  .pd-header-inner{min-height:62px;padding-left:12px;padding-right:12px}
  .pd-header-logo img.custom-logo{max-width:145px;max-height:36px}
  .pd-header-nav .pd-menu{gap:11px}
  .pd-header-nav .pd-menu > li > a{font-size:11px}
  .pd-header-search{flex-basis:34px;width:34px;height:34px;margin-left:7px}
  .pd-header-search svg{width:19px;height:19px}
  .pd-search-panel-inner{padding-left:12px;padding-right:12px}
}

/* =========================================================
   V9 — DESKTOP PROPORTIONS MATCH REFERENCE
   ========================================================= */
:root{--ji-max:1040px}
.site.grid-container,.grid-container{max-width:1040px}
.ji-home,.ji-article-page,.ji-archive-page,.ji-search-page{max-width:1040px}

/* Header: narrower centered canvas, logo starts further right with content. */
.pd-header-inner{max-width:1040px;min-height:72px;padding-left:0;padding-right:0}
.pd-header-logo{flex:0 0 285px}
.pd-header-logo img.custom-logo{max-width:245px;max-height:46px}
.pd-header-nav .pd-menu{gap:22px}
.pd-header-nav .pd-menu > li > a{font-size:14px}
.pd-header-search{flex:0 0 40px;width:40px;height:40px;margin-left:18px}

/* Homepage top area: smaller lead image and a slightly wider Trending column. */
.ji-home{padding-top:24px}
.ji-top{grid-template-columns:minmax(0,1.32fr) minmax(270px,1fr);gap:22px;margin-bottom:34px}
.ji-hero{min-height:0;height:320px}
.ji-hero img{height:320px}
.ji-overlay{padding:65px 20px 18px}
.ji-overlay h1{font-size:23px}
.ji-trend{grid-template-columns:78px 1fr;gap:10px;padding:9px 0}
.ji-trend img{width:78px;height:56px}
.ji-trend h3{font-size:12px}

@media(max-width:1100px){
  .pd-header-inner{padding-left:20px;padding-right:20px}
  .pd-header-logo{flex-basis:270px}
  .ji-home,.ji-article-page,.ji-archive-page,.ji-search-page{max-width:1040px}
}
@media(max-width:768px){
  .ji-top{grid-template-columns:1fr}
  .ji-hero,.ji-hero img{height:260px;min-height:260px}
}

/* V10 — prevent GeneratePress mobile header/menu from rendering alongside the portal header. */
body .site-header,
body .main-navigation,
body .mobile-menu-control-wrapper,
body .menu-toggle,
body .mobile-menu{display:none!important}

@media(max-width:768px){
  .pd-portal-header{display:block!important}
  .pd-header-inner{display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important}
  .pd-header-logo{flex:0 0 auto!important}
  .pd-header-nav{flex:1 1 auto!important;min-width:0!important}
  .pd-header-nav .pd-menu{flex-wrap:nowrap!important}
  .pd-header-search{flex:0 0 34px!important}
}


/* =========================================================
   V11 — MOBILE HEADER: LOGO + HAMBURGER ONLY
   GeneratePress mobile header/navigation is removed from layout.
   ========================================================= */
@media(max-width:768px){
  /* Keep exactly one visible portal header. */
  body .site-header,
  body .main-navigation,
  body .mobile-menu-control-wrapper,
  body .mobile-menu,
  body .menu-toggle,
  body .secondary-navigation{display:none!important;height:0!important;min-height:0!important;overflow:hidden!important}

  .pd-portal-header{display:block!important;position:relative!important;z-index:9999!important}
  .pd-header-inner{max-width:none!important;width:100%!important;min-height:64px!important;height:64px!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:0!important;box-sizing:border-box!important}
  .pd-header-logo{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important}
  .pd-header-logo img.custom-logo{display:block!important;width:auto!important;max-width:180px!important;max-height:42px!important}
  .pd-header-text-logo{font-size:22px!important}

  /* Desktop navigation and desktop search disappear on phones. */
  .pd-header-nav,.pd-header-search{display:none!important}

  .pd-mobile-toggle{display:flex!important;flex:0 0 42px!important;width:42px!important;height:42px!important;margin:0!important;padding:9px!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#222!important;cursor:pointer!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important}
  .pd-mobile-toggle span{display:block!important;width:23px!important;height:2px!important;background:currentColor!important;border-radius:2px!important;transition:transform .18s ease,opacity .18s ease!important}
  .pd-mobile-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)!important}
  .pd-mobile-toggle.is-open span:nth-child(2){opacity:0!important}
  .pd-mobile-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)!important}

  .pd-mobile-panel{display:block!important;width:100%!important;background:#fff!important;border-bottom:1px solid #e5e5e5!important;box-shadow:0 8px 20px rgba(0,0,0,.06)!important;opacity:0!important;transform:translateY(-8px)!important;transition:opacity .18s ease,transform .18s ease!important}
  .pd-mobile-panel.is-open{opacity:1!important;transform:translateY(0)!important}
  .pd-mobile-panel[hidden]{display:none!important}
  .pd-mobile-panel-inner{padding:10px 16px 16px!important}
  .pd-mobile-menu{list-style:none!important;margin:0!important;padding:0!important}
  .pd-mobile-menu li{margin:0!important;border-bottom:1px solid #eee!important}
  .pd-mobile-menu li:last-child{border-bottom:0!important}
  .pd-mobile-menu a{display:block!important;padding:13px 2px!important;color:#222!important;font-size:15px!important;font-weight:600!important}
  .pd-mobile-menu a:hover,.pd-mobile-menu .current-menu-item>a,.pd-mobile-menu .current-menu-ancestor>a{color:var(--ji-red)!important}
  .pd-mobile-search-form{display:flex!important;align-items:center!important;gap:9px!important;margin-top:12px!important;padding:0!important;border:1px solid #ddd!important;border-radius:5px!important;height:44px!important;overflow:hidden!important}
  .pd-mobile-search-form svg{flex:0 0 19px!important;width:19px!important;height:19px!important;margin-left:12px!important;fill:none!important;stroke:#888!important;stroke-width:1.8!important;stroke-linecap:round!important}
  .pd-mobile-search-form input{flex:1 1 auto!important;min-width:0!important;height:42px!important;padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;font-size:14px!important}
  .pd-mobile-search-form button{height:32px!important;margin-right:6px!important;padding:0 13px!important;border:0!important;border-radius:4px!important;background:var(--ji-red)!important;color:#fff!important;font-size:13px!important;font-weight:700!important}
}
@media(min-width:769px){
  .pd-mobile-toggle,.pd-mobile-panel{display:none!important}
}

/* =========================================================
   V12 — CUSTOM FOOTER
   ========================================================= */
/* Hide GeneratePress' native footer because the portal footer below replaces it. */
body .site-footer,
body #site-footer,
body .footer-widgets,
body .site-info{display:none!important}

.pd-footer{display:block!important;background:#f7f7f6;border-top:1px solid #ececea;margin-top:55px;color:#727272;font-size:14px;line-height:1.65}
.pd-footer-inner{width:100%;max-width:1040px;margin:0 auto;padding:62px 0 0;box-sizing:border-box}
.pd-footer-brand{text-align:center}
.pd-footer-tagline{margin:-8px auto 0;color:#5f5f5f;font-size:14px;line-height:1.6;letter-spacing:.1px}
.pd-footer-logo{display:flex;justify-content:center;align-items:center;margin-bottom:26px}
.pd-footer-logo .custom-logo-link{display:inline-flex;align-items:center;justify-content:center}
.pd-footer-logo img.custom-logo{display:block;width:auto;max-width:315px;max-height:58px}
.pd-footer-text-logo{font-family:Georgia,serif;color:#222;text-decoration:none;font-size:32px;font-weight:700;letter-spacing:-1.2px}
.pd-footer-text-logo span{font-size:44px;color:#222;margin-right:4px}
.pd-footer-text-logo b{color:#d71920}
.pd-footer-brand p{margin:0 auto;color:#858585;font-size:14px;line-height:1.7}
.pd-footer-quick{display:flex;justify-content:center;align-items:center;gap:28px;margin-top:30px;color:#4d4d4d}
.pd-footer-quick a{color:#4d4d4d;text-decoration:none}
.pd-footer-quick a:hover{color:var(--ji-red)}
.pd-footer-quick span{color:#b9b9b9}
.pd-footer-divider{height:1px;background:#dededb;margin:42px 0 40px}
.pd-footer-columns{display:grid;grid-template-columns:1.1fr 1.1fr 1fr;gap:70px;padding:0 0 48px}
.pd-footer-col h3{position:relative;margin:0 0 16px;padding-left:15px;color:#202020;font-size:16px;font-weight:700}
.pd-footer-col h3:before{content:"";position:absolute;left:0;top:2px;width:3px;height:20px;background:var(--ji-red)}
.pd-footer-col ul,.pd-footer-menu{list-style:none;margin:0;padding:0}
.pd-footer-col li{margin:0 0 8px}
.pd-footer-col a{color:#7c7c7c;text-decoration:none}
.pd-footer-col a:hover{color:var(--ji-red)}
.pd-footer-social{display:flex;gap:13px;margin:22px 0 0;padding:0;list-style:none}
.pd-footer-social li{margin:0}
.pd-footer-social a{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:#60656b;color:#fff!important;text-decoration:none;font-size:12px;font-weight:700;line-height:1}
.pd-footer-bottom{border-top:1px solid #dededb;text-align:center;padding:25px 15px 30px;color:#8b8b8b;font-size:12px}

@media(max-width:768px){
  .pd-footer{margin-top:40px}
  .pd-footer-inner{padding:42px 20px 0}
  .pd-footer-brand p{font-size:13px}
  .pd-footer-tagline{font-size:13px;max-width:520px}
  .pd-footer-brand-break{display:none}
  .pd-footer-quick{gap:14px;flex-wrap:wrap;font-size:13px}
  .pd-footer-divider{margin:32px 0 30px}
  .pd-footer-columns{grid-template-columns:1fr 1fr;gap:30px 28px;padding-bottom:32px}
  .pd-footer-col h3{font-size:15px}
  .pd-footer-col li{font-size:13px}
  .pd-footer-bottom{margin:0 -20px;padding-left:20px;padding-right:20px}
}
@media(max-width:480px){
  .pd-footer-columns{grid-template-columns:1fr 1fr}
  .pd-footer-social-col{grid-column:1 / -1}
}
