/*
Theme Name: Webseotrends Theme
Theme URI: https://webseotrends.com
Author: Webseotrends
Author URI: https://webseotrends.com
Description: Fast, SEO-optimized WordPress theme for digital marketing agencies and SEO blogs. Mega Menu, AJAX search, custom deal templates, author pages, Core Web Vitals optimized. Fully compatible with Rank Math, Yoast, Elementor, WooCommerce.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webseotrends-theme
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles, editor-style, elementor, seo-optimized, fast, lightweight
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --wst-primary: #1a56db;
  --wst-primary-dark: #1041b2;
  --wst-primary-light: #eff6ff;
  --wst-accent: #f97316;
  --wst-accent-dark: #ea6c0a;
  --wst-dark: #0f172a;
  --wst-dark-2: #1e293b;
  --wst-gray-800: #334155;
  --wst-gray-600: #475569;
  --wst-gray-400: #94a3b8;
  --wst-gray-300: #cbd5e1;
  --wst-gray-200: #e2e8f0;
  --wst-gray-100: #f1f5f9;
  --wst-gray-50: #f8fafc;
  --wst-white: #ffffff;
  --wst-footer-bg: #0f172a;
  --wst-font-heading: 'Sora', 'Segoe UI', sans-serif;
  --wst-font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --wst-font-mono: 'JetBrains Mono', monospace;
  --wst-container: 1200px;
  --wst-container-wide: 1400px;
  --wst-radius: 10px;
  --wst-radius-lg: 18px;
  --wst-radius-xl: 24px;
  --wst-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.06);
  --wst-shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --wst-shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --wst-transition: 0.2s ease;
  --wst-header-h: 68px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body { font-family: var(--wst-font-body); font-size: 1rem; line-height: 1.75; color: var(--wst-gray-800); background: var(--wst-white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wst-primary); text-decoration: none; transition: color var(--wst-transition); }
a:hover { color: var(--wst-primary-dark); }
ul, ol { padding-left: 1.5rem; }
h1,h2,h3,h4,h5,h6 { font-family: var(--wst-font-heading); font-weight: 700; line-height: 1.2; color: var(--wst-dark); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.25rem; } p:last-child { margin-bottom: 0; }
button { cursor: pointer; font-family: inherit; }

/* ===== ACCESSIBILITY ===== */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--wst-primary); color: #fff; padding: .5rem 1rem; border-radius: var(--wst-radius); font-size: .875rem; z-index: 9999; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--wst-primary); outline-offset: 3px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }

/* ===== LAYOUT ===== */
.wst-container { max-width: var(--wst-container); margin: 0 auto; padding: 0 1.5rem; }
.wst-container-wide { max-width: var(--wst-container-wide); margin: 0 auto; padding: 0 1.5rem; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.content-area { padding: 3rem 0; }
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.sidebar-left .site-main { order: 2; }
.sidebar-left .widget-area { order: 1; }
.sidebar-none { grid-template-columns: 1fr; }

@media (max-width: 1024px) { .content-sidebar-wrap { grid-template-columns: 1fr; } }

/* ===== READING PROGRESS BAR ===== */
#wst-reading-progress-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: transparent; pointer-events: none; }
#wst-reading-progress { height: 100%; width: 0; background: var(--wst-primary); transition: width .1s linear; }

/* ===== TOP ANNOUNCEMENT BAR ===== */
.wst-topbar { background: var(--wst-primary); color: #fff; font-size: .8125rem; font-weight: 500; padding: .5rem 0; position: relative; z-index: 1001; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 28px; }
.topbar-text { text-align: center; }
.topbar-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topbar-close { background: transparent; border: none; color: rgba(255,255,255,.7); display: flex; align-items: center; padding: .25rem; border-radius: 4px; transition: color var(--wst-transition); margin-left: auto; position: absolute; right: 1rem; }
.topbar-close:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--wst-gray-200); transition: box-shadow .2s; height: var(--wst-header-h); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--wst-header-h); gap: 1.5rem; }

/* Logo */
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.site-name-link { display: block; }
.site-title { font-family: var(--wst-font-heading); font-size: 1.35rem; font-weight: 800; color: var(--wst-dark); letter-spacing: -0.03em; }
.site-title span { color: var(--wst-primary); }

/* ===== PRIMARY NAVIGATION ===== */
.main-navigation { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: .25rem; }
.nav-menu > .menu-item { position: relative; }
.nav-menu > .menu-item > .nav-link { display: flex; align-items: center; gap: .3rem; padding: .55rem .75rem; font-size: .925rem; font-weight: 600; color: var(--wst-dark); border-radius: var(--wst-radius); transition: background var(--wst-transition), color var(--wst-transition); white-space: nowrap; }
.nav-menu > .menu-item > .nav-link:hover,
.nav-menu > .menu-item.current > .nav-link { background: var(--wst-gray-100); color: var(--wst-primary); }
.nav-arrow { display: flex; align-items: center; transition: transform var(--wst-transition); }
.has-dropdown:hover .nav-arrow,
.has-dropdown.keyboard-open .nav-arrow { transform: rotate(180deg); }

/* Standard Dropdown */
.sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); box-shadow: var(--wst-shadow-lg); list-style: none; padding: .5rem; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s; pointer-events: none; z-index: 100; }
.has-dropdown:hover .sub-menu,
.has-dropdown:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.sub-menu .menu-item { } 
.sub-menu .nav-link { display: block; padding: .5rem .75rem; font-size: .875rem; font-weight: 500; color: var(--wst-gray-800); border-radius: 6px; transition: background var(--wst-transition), color var(--wst-transition); }
.sub-menu .nav-link:hover { background: var(--wst-gray-100); color: var(--wst-primary); }

/* ===== MEGA MENU ===== */
.has-mega { position: static; }
.mega-dropdown { position: absolute; top: calc(var(--wst-header-h)); left: 0; right: 0; background: #fff; border-top: 2px solid var(--wst-primary); border-bottom: 1px solid var(--wst-gray-200); box-shadow: 0 20px 40px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, visibility .2s, transform .2s; pointer-events: none; z-index: 999; }
.has-mega:hover .mega-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mega-inner { max-width: var(--wst-container); margin: 0 auto; padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.mega-col { list-style: none; padding: 0; margin: 0; }
.mega-col > .menu-item > .nav-link { display: block; padding: .45rem .5rem; font-size: .875rem; font-weight: 500; color: var(--wst-gray-700); border-radius: 6px; }
.mega-col > .menu-item > .nav-link:hover { background: var(--wst-primary-light); color: var(--wst-primary); }

/* ===== HEADER ACTIONS ===== */
.header-actions { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.header-search-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--wst-gray-200); border-radius: 50%; background: transparent; color: var(--wst-gray-600); transition: all var(--wst-transition); }
.header-search-btn:hover { border-color: var(--wst-primary); color: var(--wst-primary); background: var(--wst-primary-light); }

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown { background: #fff; border-top: 1px solid var(--wst-gray-200); border-bottom: 1px solid var(--wst-gray-200); box-shadow: 0 8px 32px rgba(0,0,0,.08); padding: 1.25rem 0; }
.search-dropdown-inner { }
.search-form-main { display: flex; align-items: center; gap: .75rem; background: var(--wst-gray-50); border: 2px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); padding: .5rem .75rem .5rem 1rem; transition: border-color var(--wst-transition); }
.search-form-main:focus-within { border-color: var(--wst-primary); background: #fff; }
.search-icon { color: var(--wst-gray-400); flex-shrink: 0; }
.search-form-main input[type="search"] { flex: 1; border: none; background: transparent; font-size: 1rem; font-family: inherit; color: var(--wst-dark); outline: none; min-width: 0; }
.search-form-main input::placeholder { color: var(--wst-gray-400); }
.search-submit { background: var(--wst-primary); color: #fff; border: none; padding: .45rem 1.1rem; border-radius: 8px; font-size: .875rem; font-weight: 600; transition: background var(--wst-transition); }
.search-submit:hover { background: var(--wst-primary-dark); }
.search-close-btn { background: transparent; border: none; color: var(--wst-gray-400); display: flex; padding: .25rem; border-radius: 4px; }
.search-close-btn:hover { color: var(--wst-dark); }

/* Live search results */
.search-live-results { margin-top: .75rem; border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); overflow: hidden; max-height: 400px; overflow-y: auto; background: #fff; }
.search-result-item { display: flex; align-items: center; gap: .875rem; padding: .75rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--wst-gray-100); transition: background var(--wst-transition); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--wst-gray-50); }
.sr-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sr-thumb-placeholder { width: 52px; height: 52px; background: var(--wst-gray-100); border-radius: 6px; flex-shrink: 0; }
.sr-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wst-primary); margin-bottom: .2rem; }
.sr-title { font-size: .9rem; font-weight: 600; color: var(--wst-dark); line-height: 1.3; }
.sr-meta { font-size: .75rem; color: var(--wst-gray-400); margin-top: .2rem; }
.no-results-msg { padding: 1rem; text-align: center; color: var(--wst-gray-600); font-size: .875rem; }

/* ===== MOBILE HAMBURGER ===== */
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 36px; height: 36px; border: 1px solid var(--wst-gray-200); border-radius: 8px; background: transparent; padding: 0; }
.bar { display: block; width: 18px; height: 2px; background: var(--wst-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle.is-open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.wst-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--wst-font-heading); font-weight: 700; border-radius: var(--wst-radius); text-decoration: none; transition: all .2s; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.wst-btn-primary { background: var(--wst-primary); color: #fff; border-color: var(--wst-primary); }
.wst-btn-primary:hover { background: var(--wst-primary-dark); border-color: var(--wst-primary-dark); color: #fff; }
.wst-btn-accent { background: var(--wst-accent); color: #fff; border-color: var(--wst-accent); }
.wst-btn-accent:hover { background: var(--wst-accent-dark); border-color: var(--wst-accent-dark); color: #fff; }
.wst-btn-outline { background: transparent; color: var(--wst-primary); border-color: var(--wst-primary); }
.wst-btn-outline:hover { background: var(--wst-primary); color: #fff; }
.wst-btn-sm { padding: .4rem .9rem; font-size: .8125rem; }
.wst-btn-md { padding: .65rem 1.4rem; font-size: .9375rem; }
.wst-btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.wst-btn-full { width: 100%; }

/* ===== BREADCRUMBS ===== */
.wst-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-size: .8125rem; color: var(--wst-gray-400); margin-bottom: 1rem; }
.wst-breadcrumbs a { color: var(--wst-gray-600); } .wst-breadcrumbs a:hover { color: var(--wst-primary); }
.wst-breadcrumbs .sep { color: var(--wst-gray-300); }
.wst-breadcrumbs .current { color: var(--wst-gray-600); }

/* ===== ARCHIVE PAGE ===== */
.archive-header { background: var(--wst-gray-50); border-bottom: 1px solid var(--wst-gray-200); padding: 2.5rem 0 2rem; }
.archive-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.archive-desc { color: var(--wst-gray-600); font-size: 1.05rem; margin-top: .5rem; margin-bottom: 0; }

/* Category filter tabs */
.blog-category-tabs { background: #fff; border-bottom: 1px solid var(--wst-gray-200); padding: .75rem 0; position: sticky; top: var(--wst-header-h); z-index: 50; }
.cat-tabs-inner { display: flex; align-items: center; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 100px; font-size: .8125rem; font-weight: 600; color: var(--wst-gray-600); background: var(--wst-gray-100); text-decoration: none; transition: all var(--wst-transition); border: 1px solid transparent; }
.cat-tab:hover, .cat-tab.active { background: var(--wst-primary); color: #fff; border-color: var(--wst-primary); }
.cat-count { background: rgba(255,255,255,.3); border-radius: 100px; padding: .05rem .4rem; font-size: .7rem; }
.cat-tab.active .cat-count { background: rgba(255,255,255,.25); }

/* ===== POST GRID & CARDS ===== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; margin-bottom: 2.5rem; }
.posts-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .posts-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .posts-grid, .posts-grid-3 { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Post Card */
.post-card { background: #fff; border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--wst-shadow-lg); transform: translateY(-2px); }
.post-card-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.card-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wst-primary); background: var(--wst-primary-light); padding: .2rem .6rem; border-radius: 100px; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--wst-dark); margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: inherit; } .card-title a:hover { color: var(--wst-primary); }
.card-excerpt { font-size: .875rem; color: var(--wst-gray-600); line-height: 1.6; margin-bottom: .875rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .775rem; color: var(--wst-gray-400); margin-top: auto; padding-top: .875rem; border-top: 1px solid var(--wst-gray-100); }
.card-meta .author-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.card-meta-author { color: var(--wst-gray-600); font-weight: 600; }
.card-meta-sep { color: var(--wst-gray-300); }

/* Featured Post Card */
.featured-post-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--wst-radius-xl); overflow: hidden; border: 1px solid var(--wst-gray-200); background: #fff; margin-bottom: .5rem; }
.featured-post-card:hover { box-shadow: var(--wst-shadow-xl); }
.featured-card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.featured-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-post-card:hover .featured-card-thumb img { transform: scale(1.04); }
.featured-card-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--wst-accent); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .7rem; border-radius: 100px; margin-bottom: 1rem; width: fit-content; }
.featured-card-title { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: .875rem; line-height: 1.2; }
.featured-card-title a { color: inherit; } .featured-card-title a:hover { color: var(--wst-primary); }
.featured-card-excerpt { color: var(--wst-gray-600); margin-bottom: 1.25rem; }
@media (max-width: 768px) { .featured-post-card { grid-template-columns: 1fr; } .featured-card-thumb { aspect-ratio: 16/9; } .featured-card-body { padding: 1.5rem; } }

/* ===== SINGLE POST ===== */
.single-post-header { background: var(--wst-gray-50); border-bottom: 1px solid var(--wst-gray-200); padding: 2rem 0 2.5rem; }
.single-post-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.post-category { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--wst-primary); background: var(--wst-primary-light); padding: .25rem .75rem; border-radius: 100px; border: 1px solid rgba(26,86,219,.15); }
.single-post-title { font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1.2; max-width: 860px; margin-bottom: 1.25rem; }
.single-post-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; font-size: .8125rem; color: var(--wst-gray-500); }
.post-author-inline { display: flex; align-items: center; gap: .4rem; }
.meta-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.meta-author-name { font-weight: 600; color: var(--wst-gray-700); }
.meta-author-name:hover { color: var(--wst-primary); }
.meta-sep { color: var(--wst-gray-300); }
.post-date, .post-updated, .post-read-time { display: flex; align-items: center; gap: .3rem; color: var(--wst-gray-500); }
.post-updated { color: var(--wst-accent); font-weight: 500; }

/* Post body */
.single-post-area { padding: 2.5rem 0 3.5rem; }
.single-article { }
.single-featured-image { border-radius: var(--wst-radius-xl); overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16/9; }
.single-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Entry content typography */
.entry-content { font-size: 1.0625rem; line-height: 1.8; color: var(--wst-gray-800); }
.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 .875rem; }
.entry-content h4 { margin: 1.75rem 0 .75rem; }
.entry-content p { margin-bottom: 1.35rem; }
.entry-content a { color: var(--wst-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { margin-bottom: 1.35rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content blockquote { border-left: 4px solid var(--wst-primary); background: var(--wst-primary-light); padding: 1rem 1.25rem; margin: 1.75rem 0; border-radius: 0 var(--wst-radius) var(--wst-radius) 0; font-style: italic; color: var(--wst-dark); }
.entry-content code { font-family: var(--wst-font-mono); font-size: .85em; background: var(--wst-gray-100); padding: .15em .45em; border-radius: 4px; color: var(--wst-primary-dark); }
.entry-content pre { background: var(--wst-dark); color: #e2e8f0; padding: 1.25rem; border-radius: var(--wst-radius-lg); overflow-x: auto; margin: 1.75rem 0; font-family: var(--wst-font-mono); font-size: .875rem; line-height: 1.7; }
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.entry-content img { border-radius: var(--wst-radius); margin: 1.5rem auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.entry-content table th, .entry-content table td { padding: .6rem .9rem; border: 1px solid var(--wst-gray-200); }
.entry-content table th { background: var(--wst-gray-100); font-weight: 700; text-align: left; }
.entry-content table tr:nth-child(even) { background: var(--wst-gray-50); }

/* ===== TABLE OF CONTENTS ===== */
.wst-toc { background: var(--wst-gray-50); border: 1px solid var(--wst-gray-200); border-left: 3px solid var(--wst-primary); border-radius: var(--wst-radius-lg); padding: 1.25rem 1.5rem; margin: 1.75rem 0 2rem; }
.wst-toc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.wst-toc-header > span { font-family: var(--wst-font-heading); font-weight: 700; font-size: .95rem; color: var(--wst-dark); }
.wst-toc-toggle { background: transparent; border: 1px solid var(--wst-gray-300); border-radius: 4px; font-size: .75rem; color: var(--wst-gray-500); padding: .1rem .5rem; }
.wst-toc-list { padding-left: 1.25rem; margin: 0; }
.wst-toc-list li { margin-bottom: .3rem; line-height: 1.4; font-size: .875rem; }
.wst-toc-list li.toc-sub { margin-left: 1rem; }
.wst-toc-list a { color: var(--wst-gray-700); text-decoration: none; }
.wst-toc-list a:hover { color: var(--wst-primary); text-decoration: underline; }

/* ===== TAGS ===== */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--wst-gray-200); }
.tags-label { font-size: .8rem; font-weight: 700; color: var(--wst-gray-500); text-transform: uppercase; letter-spacing: .06em; }
.post-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--wst-gray-600); background: var(--wst-gray-100); border: 1px solid var(--wst-gray-200); padding: .2rem .75rem; border-radius: 100px; transition: all var(--wst-transition); }
.post-tag:hover { background: var(--wst-primary); color: #fff; border-color: var(--wst-primary); }

/* ===== SHARE BUTTONS ===== */
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 1.25rem; background: var(--wst-gray-50); border-radius: var(--wst-radius-lg); border: 1px solid var(--wst-gray-200); }
.share-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wst-gray-500); margin-right: .25rem; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .875rem; border-radius: 100px; font-size: .8rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all var(--wst-transition); background: #fff; border-color: var(--wst-gray-200); color: var(--wst-gray-700); }
.share-btn:hover { border-color: currentColor; }
.share-twitter:hover { color: #1d9bf0; }
.share-linkedin:hover { color: #0077b5; }
.share-facebook:hover { color: #1877f2; }
.share-copy { font-family: inherit; }
.share-copy.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* ===== AUTHOR BOX ===== */
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; background: var(--wst-gray-50); border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-xl); margin: 2.5rem 0; }
.author-box-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.author-box-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wst-gray-400); margin-bottom: .2rem; }
.author-box-name { font-family: var(--wst-font-heading); font-size: 1.1rem; font-weight: 700; color: var(--wst-dark); }
.author-box-name:hover { color: var(--wst-primary); }
.author-box-role { font-size: .8rem; font-weight: 600; color: var(--wst-primary); margin-bottom: .5rem; }
.author-box-bio { font-size: .875rem; color: var(--wst-gray-600); line-height: 1.6; margin-bottom: .75rem; }
.author-box-link { font-size: .8rem; font-weight: 700; color: var(--wst-primary); }
@media (max-width: 520px) { .author-box { flex-direction: column; align-items: center; text-align: center; } }

/* ===== POST NAVIGATION ===== */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-nav-item { display: block; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); transition: all .2s; }
.post-nav-item:hover { border-color: var(--wst-primary); background: var(--wst-primary-light); }
.post-nav-label { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--wst-primary); margin-bottom: .35rem; }
.post-nav-next .post-nav-label { justify-content: flex-end; }
.post-nav-title { font-size: .875rem; font-weight: 600; color: var(--wst-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-next { text-align: right; }
@media (max-width: 580px) { .post-navigation { grid-template-columns: 1fr; } }

/* ===== RELATED POSTS ===== */
.related-posts { margin: 2.5rem 0; }
.related-posts-title { font-size: 1.35rem; margin-bottom: 1.25rem; }

/* ===== COMMENTS ===== */
.comments-area { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--wst-gray-200); }
.comments-area h2, .comment-reply-title { font-size: 1.35rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--wst-gray-100); }
.comment-author-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.comment-avatar { border-radius: 50%; width: 44px; height: 44px; }
.comment-author-name { font-weight: 700; font-size: .9rem; color: var(--wst-dark); }
.comment-date { font-size: .775rem; color: var(--wst-gray-400); }
.comment-text p { font-size: .9375rem; }
.comment-reply a { font-size: .8rem; font-weight: 700; color: var(--wst-primary); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .3rem; color: var(--wst-gray-700); text-transform: uppercase; letter-spacing: .05em; }
.comment-form input, .comment-form textarea { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--wst-gray-200); border-radius: var(--wst-radius); font-family: inherit; font-size: .9375rem; background: var(--wst-gray-50); transition: border-color var(--wst-transition); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--wst-primary); background: #fff; outline: none; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 520px) { .comment-form-fields { grid-template-columns: 1fr; } }
.submit { background: var(--wst-primary); color: #fff; padding: .65rem 1.75rem; border: none; border-radius: var(--wst-radius); font-family: var(--wst-font-heading); font-size: .9375rem; font-weight: 700; transition: background var(--wst-transition); }
.submit:hover { background: var(--wst-primary-dark); }

/* ===== PAGINATION ===== */
.pagination-wrap { display: flex; justify-content: center; margin: 2rem 0; }
.pagination-wrap ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .35rem; align-items: center; }
.pagination-wrap li a, .pagination-wrap li span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .5rem; border: 1.5px solid var(--wst-gray-200); border-radius: 8px; font-size: .875rem; font-weight: 600; color: var(--wst-gray-700); transition: all var(--wst-transition); }
.pagination-wrap li a:hover, .pagination-wrap li span.current { background: var(--wst-primary); border-color: var(--wst-primary); color: #fff; }

/* ===== SIDEBAR ===== */
.widget-area { position: sticky; top: calc(var(--wst-header-h) + 1.5rem); }
.widget { background: #fff; border: 1px solid var(--wst-gray-200); border-radius: var(--wst-radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1rem; font-weight: 800; color: var(--wst-dark); padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--wst-primary); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--wst-gray-100); font-size: .875rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--wst-gray-700); } .widget ul li a:hover { color: var(--wst-primary); }

/* Recent Posts Widget */
.wst-recent-posts-widget { list-style: none !important; padding: 0 !important; }
.wst-recent-posts-widget li { padding: 0 !important; border-bottom: none !important; }
.recent-post-item { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--wst-gray-100); align-items: flex-start; }
.recent-post-item:last-child { border-bottom: none; }
.recent-thumb img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.recent-post-title { font-size: .825rem; font-weight: 600; color: var(--wst-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-title:hover { color: var(--wst-primary); }
.recent-post-meta { font-size: .72rem; color: var(--wst-gray-400); margin-top: .2rem; display: flex; gap: .4rem; }

/* CTA Widget */
.wst-cta-widget { text-align: center; }
.wst-cta-title { font-size: 1.05rem; margin-bottom: .5rem; }
.wst-cta-text { font-size: .85rem; color: var(--wst-gray-600); margin-bottom: 1rem; }

/* Deal Widget */
.wst-deal-widget { text-align: center; }
.deal-widget-brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wst-gray-500); margin-bottom: .25rem; }
.deal-widget-discount { font-size: 2rem; font-weight: 800; font-family: var(--wst-font-heading); color: var(--wst-accent); line-height: 1; margin-bottom: .35rem; }
.deal-widget-title { font-size: .9rem; font-weight: 700; color: var(--wst-dark); margin-bottom: 1rem; }
.deal-widget-code-wrap { display: flex; align-items: center; gap: .5rem; background: var(--wst-gray-100); border: 1.5px dashed var(--wst-gray-300); border-radius: var(--wst-radius); padding: .5rem .75rem; margin-bottom: .75rem; }
.deal-code { flex: 1; font-family: var(--wst-font-mono); font-weight: 700; font-size: .95rem; color: var(--wst-dark); letter-spacing: .1em; }
.copy-code-btn { background: var(--wst-primary); color: #fff; border: none; border-radius: 6px; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; transition: background var(--wst-transition); }
.copy-code-btn:hover { background: var(--wst-primary-dark); }
.copy-code-btn.copied { background: #22c55e; }
.deal-expiry { font-size: .72rem; color: var(--wst-gray-400); margin-bottom: .75rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--wst-footer-bg); color: rgba(255,255,255,.7); margin-top: auto; }
.footer-main { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand-col .custom-logo { max-height: 44px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-logo-text { font-family: var(--wst-font-heading); font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; display: block; margin-bottom: .75rem; }
.footer-logo-text span { color: var(--wst-primary); }
.footer-tagline { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .625rem; flex-wrap: wrap; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: rgba(255,255,255,.7); transition: all .2s; }
.social-icon:hover { background: var(--wst-primary); border-color: var(--wst-primary); color: #fff; }

.footer-col { }
.footer-widget-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.9); margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--wst-transition); }
.footer-links a:hover { color: #fff; }

/* Trust bar */
.footer-trust { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: .875rem 0; }
.footer-trust-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.65); }
.trust-item svg { color: var(--wst-primary); flex-shrink: 0; }

/* Footer bottom */
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.45); }
.footer-copy a { color: rgba(255,255,255,.6); } .footer-copy a:hover { color: #fff; }
.footer-bottom-links { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 1.25rem; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.45); transition: color var(--wst-transition); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== DEALS PAGE ===== */
.deals-page-header { background: linear-gradient(135deg, var(--wst-dark) 0%, var(--wst-dark-2) 100%); color: #fff; padding: 3rem 0; }
.deals-page-header .wst-breadcrumbs a { color: rgba(255,255,255,.6); }
.deals-page-header .wst-breadcrumbs .current, .deals-page-header .wst-breadcrumbs .sep { color: rgba(255,255,255,.4); }
.deals-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.4); color: var(--wst-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1rem; }
.deals-title { font-size: clamp(1.8rem, 4vw, 2.75rem); color: #fff; margin-bottom: .875rem; }
.deals-desc { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; margin-bottom: 1.5rem; }
.deals-meta-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.deals-stat strong { display: block; font-family: var(--wst-font-heading); font-size: 1.4rem; font-weight: 800; color: #fff; }
.deals-stat span { font-size: .775rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

.deal-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.deal-filter-btn { padding: .4rem 1rem; border-radius: 100px; font-size: .8125rem; font-weight: 600; color: var(--wst-gray-600); background: var(--wst-gray-100); border: 1.5px solid transparent; transition: all var(--wst-transition); }
.deal-filter-btn.active, .deal-filter-btn:hover { background: var(--wst-primary); color: #fff; border-color: var(--wst-primary); }

/* ===== AUTHOR PAGE ===== */
.author-page-header { background: var(--wst-gray-50); border-bottom: 1px solid var(--wst-gray-200); padding: 2.5rem 0; }
.author-profile-card { display: flex; align-items: flex-start; gap: 1.75rem; }
.author-profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid #fff; box-shadow: var(--wst-shadow-lg); }
.author-profile-name { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .35rem; }
.author-profile-role { font-size: .9rem; font-weight: 700; color: var(--wst-primary); margin-bottom: .6rem; }
.author-profile-bio { font-size: .9375rem; color: var(--wst-gray-600); max-width: 620px; margin-bottom: .875rem; }
.author-profile-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.author-stat { } .author-stat strong { font-size: 1.1rem; color: var(--wst-dark); } .author-stat span { font-size: .75rem; color: var(--wst-gray-500); display: block; }
.author-website { font-size: .8rem; font-weight: 700; color: var(--wst-primary); }
@media (max-width: 640px) { .author-profile-card { flex-direction: column; align-items: center; text-align: center; } }

/* ===== SECTION HEADING ===== */
.section-heading { font-size: 1.35rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--wst-gray-200); }

/* ===== 404 PAGE ===== */
.error-404 .page-content { text-align: center; padding: 5rem 1rem; }
.error-404 .page-title { font-size: 5rem; color: var(--wst-primary); line-height: 1; }

/* ===== BACK TO TOP ===== */
#wst-back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: var(--wst-primary); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; box-shadow: var(--wst-shadow); z-index: 500; }
#wst-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#wst-back-to-top:hover { background: var(--wst-primary-dark); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-navigation {
    position: fixed; top: var(--wst-header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 1.5rem; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s ease;
    flex-direction: column; align-items: flex-start;
    border-top: 1px solid var(--wst-gray-200);
    z-index: 999;
  }
  .main-navigation.is-open { transform: translateX(0); box-shadow: var(--wst-shadow-xl); }
  .nav-menu { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav-menu > .menu-item { width: 100%; }
  .nav-menu > .menu-item > .nav-link { padding: .875rem .5rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--wst-gray-100); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--wst-gray-50); border-radius: 0; padding: 0 .5rem; display: none; }
  .has-dropdown:hover .sub-menu, .has-dropdown:focus-within .sub-menu { display: block; }
  .mega-dropdown { position: static; transform: none; opacity: 1; visibility: visible; border: none; box-shadow: none; background: var(--wst-gray-50); display: none; }
  .has-mega:hover .mega-dropdown { display: block; }
  .mega-inner { padding: .5rem; grid-template-columns: 1fr; gap: 0; }
  .header-actions .wst-btn-primary { display: none; }
}

@media (max-width: 768px) {
  :root { --wst-header-h: 60px; }
  .content-area { padding: 2rem 0; }
  .single-post-header { padding: 1.5rem 0 2rem; }
}

@media (max-width: 480px) {
  .wst-container { padding: 0 1rem; }
  h1 { font-size: 1.75rem; }
}

/* ===== PLUGIN COMPATIBILITY ===== */
/* Rank Math */
.rank-math-breadcrumb { margin-bottom: 1rem; font-size: .8125rem; }
/* Yoast */
.yoast-breadcrumbs { margin-bottom: 1rem; font-size: .8125rem; }
/* Elementor */
.elementor-section { margin-bottom: 0; }
.elementor-page .site-main { padding: 0; }
/* WooCommerce */
.woocommerce table.shop_table { border-collapse: collapse; }
