/*
Theme Name: Rizvi Theme
Theme URI: https://t.me/qasimkarbalaei
Author: Rizvi
Author URI: https://t.me/qasimkarbalaei
Description: Professional wrestling & sports entertainment theme. White theme, 1045px container, fully responsive, SEO optimized.
Version: 1.4.5
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rizvi-theme
*/

:root {
  --red:    #cc0000;
  --red-h:  #aa0000;
  --bg:     #f5f5f5;
  --white:  #ffffff;
  --border: #e0e0e0;
  --bord-l: #f0f0f0;
  --text:   #222222;
  --muted:  #999999;
  --w:      1045px;
  --sb:     300px;
  --gap:    15px;
  --r:      4px;
  --t:      0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none !important; transition: color var(--t); }
a:hover { color: var(--red); text-decoration: none !important; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

.ww-container { max-width: var(--w); margin: 0 auto; padding: 0 15px; width: 100%; }

/* HEADER */
#site-header { background: var(--white); border-bottom: 3px solid var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.07); position: sticky; top: 0; z-index: 1000; width: 100%; overflow: visible; }
.header-inner { display: flex; align-items: center; height: 54px; max-width: var(--w); margin: 0 auto; padding: 0 15px; }
.site-logo { flex-shrink: 0; margin-right: 16px; }
.site-logo a { display: flex; align-items: center; text-decoration: none; }
.site-logo .custom-logo-link img { max-height: 44px; width: auto; display: block; }
.logo-text { font-family: "Arial Black","Arial Bold",Arial,sans-serif; font-size: 22px; font-weight: 900; color: #111; letter-spacing: 1px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.logo-text span { color: #111; }

.nav-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; min-width: 0; }
#primary-menu { display: flex; list-style: none; align-items: center; flex-wrap: nowrap; padding: 0; margin: 0; }
#primary-menu > li { padding: 0; margin: 0; position: relative; }
#primary-menu > li > a { display: block; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; border-radius: var(--r); transition: background var(--t), color var(--t); }
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a { background: var(--red); color: #fff; }
#primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e0e0e0; border-top: 2px solid #cc0000; border-radius: 0 0 4px 4px; min-width: 180px; z-index: 9999; list-style: none; padding: 0; margin: 0; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
#primary-menu > li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li { padding: 0; margin: 0; }
#primary-menu .sub-menu li a { display: block; padding: 9px 14px; font-size: 12px; font-weight: 600; color: #333; white-space: nowrap; border-bottom: 1px solid #f0f0f0; text-decoration: none; transition: background .15s, color .15s; text-transform: none; border-radius: 0; }
#primary-menu .sub-menu li:last-child a { border-bottom: none; }
#primary-menu .sub-menu li a:hover { background: #cc0000; color: #fff; }

.search-icon-btn { background: none; border: 1px solid var(--border); color: #999; width: 32px; height: 32px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-left: 12px; transition: all var(--t); padding: 0; }
.search-icon-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.search-icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; display: block; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: #888; width: 32px; height: 32px; border-radius: var(--r); align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; flex-shrink: 0; padding: 0; }
.nav-toggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; display: block; }

/* SEARCH DROP */
.search-dropdown { display: none; background: #fafafa; border-bottom: 1px solid var(--border); width: 100%; }
.search-dropdown.open { display: block; }
.search-dropdown-inner { padding: 9px 15px; max-width: var(--w); margin: 0 auto; }
.search-dropdown-inner form { display: flex; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.search-dropdown-inner input[type="search"] { background: transparent; border: none; outline: none; color: var(--text); padding: 9px 13px; font-size: 13px; flex: 1; min-width: 0; font-family: inherit; }
.search-dropdown-inner input::placeholder { color: #bbb; }
.search-dropdown-inner button { background: var(--red); border: none; color: #fff; padding: 9px 16px; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }

/* LAYOUT */
#content-area { padding: 14px 0 30px; width: 100%; }
.content-wrapper { display: grid; grid-template-columns: 1fr var(--sb); gap: var(--gap); align-items: start; }
#main-content { min-width: 0; width: 100%; }
.home-full-width { width: 100%; }

/* POST GRID */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.posts-grid-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 15px !important; }

.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: block; text-decoration: none; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.post-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(204,0,0,.1); }

body.layout-box .posts-grid,
body.layout-box .posts-grid-4 { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; gap: 0 !important; }
body.layout-box .post-card { border: none; border-bottom: 1px solid var(--border); border-radius: 0; }
body.layout-box .post-card:hover { transform: none; box-shadow: none; }

.post-card-thumb { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; background: #f0f0f0; }
.post-card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .no-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #eee; }
.post-card-thumb .no-thumb svg { width: 32px; height: 32px; stroke: #ccc; fill: none; }

.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background var(--t); }
.post-card:hover .play-overlay { background: rgba(0,0,0,.3); }
.play-overlay svg { width: 36px; height: 36px; opacity: 0; transition: opacity var(--t); filter: drop-shadow(0 0 4px rgba(0,0,0,.5)); }
.post-card:hover .play-overlay svg { opacity: 1; }

.cat-badge { position: absolute; top: 5px; left: 5px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; letter-spacing: .5px; z-index: 1; }
.post-card-body { padding: 8px 9px; }
.post-card-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; display: block; }

/* PAGINATION */
.ww-pagination { display: flex; gap: 4px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.ww-pagination a, .ww-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r); font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: #888; background: var(--white); transition: all var(--t); }
.ww-pagination a:hover, .ww-pagination span.current { background: var(--red); border-color: var(--red); color: #fff; }

/* SEO BLOCK */
.seo-text-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-top: 14px; }
.seo-text-block h2 { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .5px; }
.seo-text-block p { font-size: 12px; color: #666; line-height: 1.8; }

/* CATEGORY BANNER */
.category-banner { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--r); padding: 12px 16px; margin-bottom: 13px; }
.category-banner h1 { font-size: 18px; font-weight: 700; color: #111; text-transform: uppercase; margin-bottom: 3px; }
.category-banner p { font-size: 11px; color: var(--muted); }

/* SEARCH PAGE */
.search-results-header { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-bottom: 13px; }
.search-form-inline { display: flex; background: #f5f5f5; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 9px; }
.search-form-inline input { background: transparent; border: none; outline: none; color: var(--text); padding: 9px 13px; font-size: 13px; flex: 1; min-width: 0; font-family: inherit; }
.search-form-inline button { background: var(--red); border: none; color: #fff; padding: 9px 16px; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }
.search-count { font-size: 12px; color: var(--muted); }
.search-count span { color: var(--red); font-weight: 700; }
.no-results-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 50px 20px; text-align: center; }
.no-results-wrap h2 { font-size: 18px; color: #111; margin-bottom: 8px; }
.no-results-wrap p { font-size: 13px; color: var(--muted); }

/* SINGLE POST */
.single-post-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; width: 100%; }
.single-post-title { font-size: 22px; font-weight: 700; color: #111; line-height: 1.35; padding: 14px 16px 5px; word-wrap: break-word; overflow-wrap: break-word; margin: 0; }

/* Meta — NO border-top, NO author, NO gap above */
.single-post-meta { display: flex; align-items: center; gap: 6px; padding: 4px 16px 12px; flex-wrap: wrap; margin: 0; }
.single-post-cat { background: var(--red); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; letter-spacing: .5px; text-decoration: none; }
.meta-sep { color: #ddd; font-size: 12px; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.meta-item svg { width: 12px; height: 12px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; }

/* CONTENT — NO border-top */
.single-post-content { padding: 14px 16px; font-size: 14px; color: #333; line-height: 1.85; border-bottom: 1px solid var(--bord-l); word-wrap: break-word; overflow-wrap: break-word; }
.single-post-content p { margin-bottom: 12px; }
.single-post-content p:last-child { margin-bottom: 0; }
.single-post-content a { color: var(--red); }
.single-post-content strong { font-weight: 700; }
.single-post-content em { font-style: italic; }
.single-post-content blockquote { border-left: 3px solid var(--red); padding: 8px 14px; margin: 12px 0; background: #fafafa; font-style: italic; color: #555; }
.single-post-content img { display: block; margin: 12px auto; max-width: 100%; height: auto; border-radius: var(--r); }
.single-post-content figure { margin: 12px 0; text-align: center; }
.single-post-content figure img { margin: 0 auto; }
.single-post-content .aligncenter { text-align: center; }
.single-post-content .aligncenter img { margin: 0 auto; display: block; }
.single-post-content .alignleft { float: left; margin: 0 16px 12px 0; }
.single-post-content .alignright { float: right; margin: 0 0 12px 16px; }
.single-post-content::after { content: ''; display: table; clear: both; }
.single-post-content ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.single-post-content ul ul { list-style: circle; }
.single-post-content ol { list-style: decimal; padding-left: 22px; margin: 10px 0; }
.single-post-content li { margin-bottom: 5px; line-height: 1.7; }
.single-post-content h1 { font-size: 20px; font-weight: 700; color: #111; margin: 18px 0 10px; }
.single-post-content h2 { font-size: 17px; font-weight: 700; color: #111; margin: 16px 0 9px; }
.single-post-content h3 { font-size: 15px; font-weight: 700; color: #111; margin: 14px 0 8px; }
.single-post-content h4 { font-size: 14px; font-weight: 700; color: #111; margin: 12px 0 7px; }
.single-post-content iframe { max-width: 100%; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 12px 0; background: #000; border-radius: var(--r); }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* SHARE */
.share-bar { padding: 10px 16px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.share-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #aaa; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 12px; border-radius: var(--r); font-size: 10px; font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity var(--t); text-decoration: none; height: 30px; font-family: inherit; }
.sh-btn:hover { opacity: .82; }
.sh-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.sh-btn-txt { display: inline; }
.sh-fb { background: #1877f2; color: #fff; }
.sh-tg { background: #0088cc; color: #fff; }
.sh-wa { background: #25d366; color: #fff; }
.sh-cp { background: #f0f0f0; color: #666; border: 1px solid #ddd; }

/* RELATED */
.related-posts { margin-top: 14px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #111; letter-spacing: .5px; margin-bottom: 9px; padding-bottom: 7px; border-bottom: 2px solid var(--border); display: flex; align-items: center; }
.section-title::before { content: ''; display: inline-block; width: 3px; height: 13px; background: var(--red); margin-right: 8px; border-radius: 2px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* SIDEBAR */
#sidebar { min-width: 0; width: 100%; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.widget-title { background: var(--red); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 10px 14px; margin: 0; display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.widget-body { padding: 0; }

.cat-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: #222; text-decoration: none; transition: background var(--t), color var(--t); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.cat-list-item:last-child { border-bottom: 1px solid var(--border); }
.cat-list-item:hover, .cat-list-item.current-cat { background: var(--red); color: #fff; }
.cat-list-item:hover .cat-date { color: rgba(255,255,255,.75); }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-date { font-size: 11px; font-weight: 400; color: var(--muted); flex-shrink: 0; margin-left: 8px; }

.latest-show-item { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background var(--t); }
.latest-show-item:last-child { border-bottom: 1px solid var(--border); }
.latest-show-item:hover { background: #fafafa; }
.show-bullet { width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.show-item-title { font-size: 13px; color: #222; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; font-weight: 700; transition: color var(--t); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.latest-show-item:hover .show-item-title { color: var(--red); }

/* STATIC PAGES */
.static-page-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.static-page-header { border-bottom: 1px solid var(--bord-l); padding: 16px 18px; }
.static-page-header h1 { font-size: 22px; font-weight: 700; color: #111; border-left: 4px solid var(--red); padding-left: 12px; }
.static-page-content { padding: 18px; font-size: 13px; color: #444; line-height: 1.85; word-wrap: break-word; }
.static-page-content p { margin-bottom: 12px; }
.static-page-content h2 { font-size: 14px; font-weight: 700; color: #111; text-transform: uppercase; margin: 18px 0 8px; border-bottom: 1px solid var(--bord-l); padding-bottom: 5px; }
.static-page-content a { color: var(--red); }
.static-page-content ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.static-page-content ol { list-style: decimal; padding-left: 20px; margin: 10px 0; }
.static-page-content li { margin-bottom: 5px; }

/* CONTACT */
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.form-field input, .form-field textarea { background: #f7f7f7; border: 1px solid var(--border); border-radius: var(--r); padding: 9px 12px; font-size: 13px; color: var(--text); outline: none; font-family: inherit; transition: border-color var(--t); width: 100%; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit { background: var(--red); color: #fff; border: none; padding: 10px 28px; border-radius: var(--r); font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; align-self: flex-start; transition: background var(--t); font-family: inherit; }
.form-submit:hover { background: var(--red-h); }

/* 404 */
.error-404-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 60px 20px; text-align: center; }
.error-code { font-size: 100px; font-weight: 900; color: var(--red); line-height: 1; opacity: .7; margin-bottom: 10px; }
.error-404-wrap h2 { font-size: 22px; color: #111; margin-bottom: 8px; text-transform: uppercase; }
.error-404-wrap p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.btn-home { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; padding: 10px 28px; border-radius: var(--r); transition: background var(--t); }
.btn-home:hover { background: var(--red-h); color: #fff; }

/* FOOTER */
#site-footer { background: #ffffff; border-top: 3px solid var(--red); margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.footer-copy { font-size: 11px; color: #555; }
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { font-size: 11px; color: #555; text-decoration: none; transition: color var(--t); }
.footer-nav a:hover { color: var(--red); }


/* =============================================
   BOXED LAYOUT
============================================= */
#box-wrap {
  max-width: var(--w);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 50px rgba(0,0,0,.4);
  position: relative;
  min-height: 100vh;
}

body.boxed-layout {
  padding: 0;
}

body.boxed-layout #site-header {
  position: relative !important;
  top: auto !important;
}

body.boxed-layout #site-footer {
  margin-top: 0;
}


/* =============================================
   STATIC OVERRIDES — moved from inline
============================================= */

/* Links: no underline anywhere */
a{text-decoration:none !important;}
a:hover{text-decoration:none !important;}

/* Logo */
.site-logo .logo-text{color:#111 !important;}
.site-logo .logo-text span{color:var(--red) !important;}

/* Single post: no top gap, no border-top */
.single-post-wrap .single-post-title{padding:12px 16px 4px !important;margin:0 !important;}
.single-post-wrap .single-post-meta{padding:3px 16px 10px !important;border-top:none !important;box-shadow:none !important;margin:0 !important;}
.single-post-wrap .single-post-content{border-top:none !important;padding:12px 16px 14px !important;}

/* Lists in classic editor */
.single-post-content ul{list-style:disc !important;padding-left:24px !important;margin:10px 0 !important;}
.single-post-content ul ul{list-style:circle !important;}
.single-post-content ol{list-style:decimal !important;padding-left:24px !important;margin:10px 0 !important;}
.single-post-content li{display:list-item !important;list-style-position:outside !important;margin-bottom:5px !important;line-height:1.7 !important;}
.single-post-content ul > li{list-style-type:disc !important;}
.single-post-content ol > li{list-style-type:decimal !important;}
.single-post-content img{display:block !important;margin-left:auto !important;margin-right:auto !important;}
.seo-text-block{border-left:1px solid #e0e0e0 !important;}

/* Sub-menu: overflow visible on all parents */
#site-header{overflow:visible !important;}
.header-inner{overflow:visible !important;}
.nav-wrap{overflow:visible !important;}
#primary-menu{overflow:visible !important;}
#primary-menu > li{position:relative !important;overflow:visible !important;}
#primary-menu .sub-menu{display:none !important;position:absolute !important;top:100% !important;left:0 !important;background:#fff !important;border:1px solid #e0e0e0 !important;border-top:2px solid var(--red) !important;border-radius:0 0 4px 4px !important;min-width:180px !important;z-index:99999 !important;list-style:none !important;padding:0 !important;margin:0 !important;box-shadow:0 6px 16px rgba(0,0,0,.15) !important;}
#primary-menu > li.menu-open > .sub-menu,
#primary-menu > li:hover > .sub-menu{display:block !important;}
#primary-menu .sub-menu li{padding:0 !important;margin:0 !important;list-style:none !important;}
#primary-menu .sub-menu li a{display:block !important;padding:9px 16px !important;font-size:12px !important;font-weight:600 !important;color:#333 !important;border-bottom:1px solid #f0f0f0 !important;text-decoration:none !important;text-transform:none !important;background:#fff !important;border-radius:0 !important;white-space:nowrap !important;}
#primary-menu .sub-menu li:last-child a{border-bottom:none !important;}
#primary-menu .sub-menu li a:hover{background:var(--red) !important;color:#fff !important;}

/* Sidebar */
#sidebar .sidebar,.sidebar{display:flex !important;flex-direction:column !important;gap:18px !important;}
#sidebar .widget,.widget_categories,.widget_recent_entries{background:#fff !important;border:1px solid #e0e0e0 !important;border-radius:4px !important;overflow:hidden !important;margin-bottom:0 !important;}
#sidebar .widget-title,#sidebar h2.widget-title,#sidebar h3.widget-title,#sidebar .widgettitle{background:var(--red) !important;color:#fff !important;font-size:13px !important;font-weight:700 !important;text-transform:uppercase !important;letter-spacing:1px !important;padding:10px 14px !important;margin:0 !important;display:block !important;border:none !important;border-radius:0 !important;}

/* Categories widget */
#sidebar .widget_categories ul,#sidebar .widget_categories ul li,.widget_categories ul,.widget_categories ul li{list-style:none !important;padding:0 !important;margin:0 !important;}
#sidebar .widget_categories ul li a,.widget_categories ul li a{display:block !important;padding:10px 14px !important;border-bottom:1px solid #e0e0e0 !important;font-size:13px !important;font-weight:700 !important;color:#222 !important;text-decoration:none !important;background:#fff !important;}
#sidebar .widget_categories ul li a:hover,.widget_categories ul li a:hover{background:var(--red) !important;color:#fff !important;}
.widget_categories .post-count{display:none !important;}

/* Recent posts widget — no dots */
#sidebar .widget_recent_entries ul,.widget_recent_entries ul{list-style:none !important;padding:0 !important;margin:0 !important;}
#sidebar .widget_recent_entries ul li,.widget_recent_entries ul li{list-style:none !important;padding:0 !important;margin:0 !important;border-bottom:1px solid #e0e0e0 !important;}
#sidebar .widget_recent_entries ul li::marker,.widget_recent_entries ul li::marker{display:none !important;content:"" !important;}
#sidebar .widget_recent_entries ul li::before,.widget_recent_entries ul li::before{display:none !important;content:none !important;}
#sidebar .widget_recent_entries ul li a::before,.widget_recent_entries ul li a::before{display:none !important;content:none !important;}
#sidebar .widget_recent_entries ul li a,.widget_recent_entries ul li a{display:block !important;padding:10px 14px !important;font-size:13px !important;font-weight:700 !important;color:#222 !important;text-decoration:none !important;background:#fff !important;line-height:1.4 !important;}
#sidebar .widget_recent_entries ul li a:hover,.widget_recent_entries ul li a:hover{color:var(--red) !important;background:#fafafa !important;}
.widget_recent_entries .post-date{display:none !important;}

/* Custom widgets */
.cat-list-item{display:flex !important;align-items:center !important;padding:10px 14px !important;border-bottom:1px solid #e0e0e0 !important;font-size:13px !important;font-weight:700 !important;color:#222 !important;text-decoration:none !important;background:#fff !important;}
.cat-list-item:hover{background:var(--red) !important;color:#fff !important;}
.latest-show-item{display:flex !important;align-items:center !important;gap:9px !important;padding:10px 14px !important;border-bottom:1px solid #e0e0e0 !important;text-decoration:none !important;background:#fff !important;}
.latest-show-item:hover{background:#fafafa !important;}
.show-bullet{width:6px !important;height:6px !important;min-width:6px !important;background:var(--red) !important;border-radius:50% !important;display:inline-block !important;flex-shrink:0 !important;}
.show-item-title{font-size:13px !important;color:#222 !important;font-weight:700 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;flex:1 !important;min-width:0 !important;}
.latest-show-item:hover .show-item-title{color:var(--red) !important;}

/* RESPONSIVE 1000px — 4col stays */
@media (max-width: 1000px) {
  :root { --sb: 260px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .posts-grid-4 { grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* RESPONSIVE 768px — 3col */
@media (max-width: 768px) {
  .content-wrapper { grid-template-columns: 1fr; gap: 14px; }
  #sidebar { order: 2; }
  .nav-wrap { display: none; }
  .nav-toggle { display: flex; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .posts-grid-4 { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .single-post-title { font-size: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .logo-text { font-size: 19px; }
  .nav-wrap.nav-open { display: flex; position: absolute; top: 57px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--red); z-index: 999; padding: 8px 15px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
  .nav-wrap.nav-open #primary-menu { flex-wrap: wrap; gap: 4px; }
  #primary-menu .sub-menu { position: static; border: none; border-top: none; box-shadow: none; min-width: auto; background: #f5f5f5; display: none; }
  #primary-menu > li:hover > .sub-menu { display: block; }
}

/* RESPONSIVE 480px — 2col */
@media (max-width: 480px) {
  .ww-container { padding: 0 12px; }
  .header-inner { padding: 0 12px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .posts-grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .single-post-title { font-size: 16px; padding: 12px 14px 5px; }
  .single-post-meta { padding: 0 14px 12px; }
  .single-post-content { padding: 12px 14px; }
  .share-bar { padding: 9px 14px; }
  .sh-btn-txt { display: none; }
  .sh-btn { padding: 6px 9px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .logo-text { font-size: 17px; }
}

/* RESPONSIVE 380px */
@media (max-width: 380px) {
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .single-post-title { font-size: 15px; }
}
