/*
Theme Name: Sarkari Yojana Pro
Theme URI: https://apnavibhag.com
Author: Apna Vibhag
Author URI: https://apnavibhag.com
Description: Professional SEO-first WordPress theme for Sarkari Yojana / Sarkari Result / Government Schemes websites. Built for Googlebot: semantic HTML5, Schema.org JSON-LD, breadcrumbs, blazing-fast Core Web Vitals, mobile-first design. Includes a full Font & Size control panel (logo size, container width, H1-H6 typography, article text, separate mobile sliders) plus optional Beauty Effects. Fully compatible with Rank Math SEO, Google Site Kit, Jetpack, Ad Inserter, Ads.txt Manager and LiteSpeed Cache.
Version: 3.0.1
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-yojana-pro
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, sticky-post, footer-widgets
*/

/* ==========================================================================
   1. Design Tokens
   --------------------------------------------------------------------------
   EVERY size below is overridable from:
   Appearance → Customize → "Design: Font & Size"
   The Customizer prints a tiny :root{} block that wins over these defaults,
   plus a mobile @media block for the "— Mobile" sliders.
   ========================================================================== */
:root {
  /* --- Colour --- */
  --sy-primary: #e65100;            /* Saffron */
  --sy-primary-dark: #bf360c;
  --sy-primary-soft: #fff3e9;
  --sy-secondary: #1b5e20;          /* Deep green */
  --sy-secondary-soft: #e8f5e9;
  --sy-bg: #ffffff;
  --sy-bg-soft: #f8f7f4;
  --sy-text: #1f2937;
  --sy-text-muted: #6b7280;
  --sy-border: #e5e7eb;
  --sy-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
  --sy-shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.1);

  /* --- Font families --- */
  --sy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --sy-font-heading: var(--sy-font);
  --sy-font-menu: var(--sy-font);

  /* --- Base text --- */
  --sy-body-size: 16px;
  --sy-body-line: 1.65;
  --sy-body-weight: 400;
  --sy-body-spacing: 0px;

  /* --- Headings H1 → H6 --- */
  --sy-heading-color: var(--sy-text);
  --sy-heading-transform: none;

  --sy-h1-size: 1.75rem;  --sy-h1-weight: 800; --sy-h1-line: 1.25; --sy-h1-spacing: 0px; --sy-h1-mt: 1.2rem; --sy-h1-mb: 0.5rem;
  --sy-h2-size: 1.4rem;   --sy-h2-weight: 800; --sy-h2-line: 1.3;  --sy-h2-spacing: 0px; --sy-h2-mt: 1.4rem; --sy-h2-mb: 0.5rem;
  --sy-h3-size: 1.2rem;   --sy-h3-weight: 700; --sy-h3-line: 1.35; --sy-h3-spacing: 0px; --sy-h3-mt: 1.3rem; --sy-h3-mb: 0.4rem;
  --sy-h4-size: 1.08rem;  --sy-h4-weight: 700; --sy-h4-line: 1.4;  --sy-h4-spacing: 0px; --sy-h4-mt: 1.2rem; --sy-h4-mb: 0.4rem;
  --sy-h5-size: 0.98rem;  --sy-h5-weight: 700; --sy-h5-line: 1.45; --sy-h5-spacing: 0px; --sy-h5-mt: 1.1rem; --sy-h5-mb: 0.35rem;
  --sy-h6-size: 0.9rem;   --sy-h6-weight: 700; --sy-h6-line: 1.5;  --sy-h6-spacing: 0px; --sy-h6-mt: 1rem;   --sy-h6-mb: 0.35rem;

  /* --- Article / post content --- */
  --sy-content-size: 1.02rem;
  --sy-content-line: 1.75;
  --sy-para-gap: 1.1rem;
  --sy-entry-title-size: 1.7rem;
  --sy-meta-size: 0.82rem;
  --sy-toc-size: 0.92rem;
  --sy-table-size: 0.95rem;
  --sy-table-pad: 0.6rem;

  /* --- Logo & header --- */
  --sy-logo-w: 200px;
  --sy-logo-h: 56px;
  --sy-logo-radius: 0px;
  --sy-site-title-size: 1.55rem;
  --sy-site-title-weight: 800;
  --sy-tagline-size: 0.82rem;
  --sy-topbar-size: 0.8rem;
  --sy-header-pad: 1rem;
  --sy-header-border: 3px;

  /* --- Layout --- */
  --sy-max: 1200px;
  --sy-sidebar-w: 340px;
  --sy-layout-gap: 2rem;
  --sy-side-pad: 1rem;
  --sy-radius: 10px;
  --sy-radius-sm: 6px;
  --sy-article-pad: 1.5rem;

  /* --- Menu --- */
  --sy-menu-size: 0.92rem;
  --sy-menu-weight: 600;
  --sy-menu-pad-y: 0.7rem;
  --sy-menu-pad-x: 1rem;
  --sy-menu-spacing: 0px;
  --sy-breadcrumb-size: 0.82rem;

  /* --- Cards / listing --- */
  --sy-card-title-size: 1.02rem;
  --sy-card-title-weight: 700;
  --sy-card-excerpt-size: 0.88rem;
  --sy-card-meta-size: 0.78rem;
  --sy-card-pad: 1rem;
  --sy-grid-gap: 1.25rem;
  --sy-grid-template: repeat(2, minmax(0, 1fr));
  --sy-section-title-size: 1.25rem;
  --sy-badge-size: 0.72rem;
  --sy-thumb-ratio: 16 / 9;

  /* --- Sidebar / widgets --- */
  --sy-widget-title-size: 1rem;
  --sy-widget-size: 0.9rem;
  --sy-widget-pad: 1rem;
  --sy-widget-gap: 1.25rem;

  /* --- Buttons --- */
  --sy-btn-size: 0.95rem;
  --sy-btn-weight: 700;
  --sy-btn-pad-y: 0.65rem;
  --sy-btn-pad-x: 1.4rem;
  --sy-btn-radius: 6px;

  /* --- Footer --- */
  --sy-footer-size: 0.9rem;
  --sy-footer-title-size: 0.95rem;
  --sy-footer-pad: 2.25rem;
  --sy-top-btn-size: 42px;
}

body.sy-dark {
  --sy-bg: #111827;
  --sy-bg-soft: #1f2937;
  --sy-text: #f3f4f6;
  --sy-text-muted: #9ca3af;
  --sy-border: #374151;
  --sy-primary-soft: #3a2415;
  --sy-secondary-soft: #14291a;
  --sy-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --sy-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: var(--sy-body-size);   /* drives every rem value on the site */
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--sy-font);
  font-size: 1rem;
  font-weight: var(--sy-body-weight);
  line-height: var(--sy-body-line);
  letter-spacing: var(--sy-body-spacing);
  color: var(--sy-text);
  background: var(--sy-bg);
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sy-primary); text-decoration: none; }
a:hover { color: var(--sy-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sy-font-heading);
  color: var(--sy-heading-color);
  text-transform: var(--sy-heading-transform);
  text-wrap: balance;
}

h1 { font-size: var(--sy-h1-size); font-weight: var(--sy-h1-weight); line-height: var(--sy-h1-line); letter-spacing: var(--sy-h1-spacing); margin: var(--sy-h1-mt) 0 var(--sy-h1-mb); }
h2 { font-size: var(--sy-h2-size); font-weight: var(--sy-h2-weight); line-height: var(--sy-h2-line); letter-spacing: var(--sy-h2-spacing); margin: var(--sy-h2-mt) 0 var(--sy-h2-mb); }
h3 { font-size: var(--sy-h3-size); font-weight: var(--sy-h3-weight); line-height: var(--sy-h3-line); letter-spacing: var(--sy-h3-spacing); margin: var(--sy-h3-mt) 0 var(--sy-h3-mb); }
h4 { font-size: var(--sy-h4-size); font-weight: var(--sy-h4-weight); line-height: var(--sy-h4-line); letter-spacing: var(--sy-h4-spacing); margin: var(--sy-h4-mt) 0 var(--sy-h4-mb); }
h5 { font-size: var(--sy-h5-size); font-weight: var(--sy-h5-weight); line-height: var(--sy-h5-line); letter-spacing: var(--sy-h5-spacing); margin: var(--sy-h5-mt) 0 var(--sy-h5-mb); }
h6 { font-size: var(--sy-h6-size); font-weight: var(--sy-h6-weight); line-height: var(--sy-h6-line); letter-spacing: var(--sy-h6-spacing); margin: var(--sy-h6-mt) 0 var(--sy-h6-mb); }

table {
  border-collapse: collapse; width: 100%;
  margin: 1rem 0; font-size: var(--sy-table-size);
}
th, td {
  border: 1px solid var(--sy-border);
  padding: var(--sy-table-pad) calc(var(--sy-table-pad) * 1.35);
  text-align: left;
}
th { background: var(--sy-bg-soft); font-weight: 700; }

blockquote {
  margin: 1rem 0; padding: 0.75rem 1rem;
  border-left: 4px solid var(--sy-primary);
  background: var(--sy-bg-soft);
  border-radius: 0 var(--sy-radius-sm) var(--sy-radius-sm) 0;
}

pre, code { background: var(--sy-bg-soft); border-radius: var(--sy-radius-sm); }
pre { padding: 1rem; overflow-x: auto; }
code { padding: 0.15em 0.4em; font-size: 0.9em; }

input, textarea, select, button { font-family: inherit; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--sy-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.screen-reader-text {
  border: 0; 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 !important;
}
.screen-reader-text:focus {
  background: var(--sy-bg); clip: auto !important; clip-path: none;
  color: var(--sy-primary); display: block; font-size: 0.9rem; font-weight: 700;
  height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
  box-shadow: var(--sy-shadow-lg); border-radius: var(--sy-radius-sm);
}

.sy-container {
  max-width: var(--sy-max);
  margin: 0 auto;
  padding: 0 var(--sy-side-pad);
}

/* ==========================================================================
   3. Top Bar
   ========================================================================== */
.sy-topbar { background: var(--sy-secondary); color: #fff; font-size: var(--sy-topbar-size); }
.sy-topbar .sy-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; flex-wrap: wrap;
}
.sy-topbar a { color: #fff; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.sy-header {
  background: var(--sy-bg);
  border-bottom: var(--sy-header-border) solid var(--sy-primary);
}
.sy-header .sy-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: var(--sy-header-pad);
  padding-bottom: var(--sy-header-pad);
}
.sy-branding { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.sy-custom-logo img,
.sy-custom-logo .custom-logo {
  max-width: var(--sy-logo-w);
  max-height: var(--sy-logo-h);
  width: auto;
  height: auto;
  border-radius: var(--sy-logo-radius);
  object-fit: contain;
}

.sy-site-title {
  margin: 0;
  font-family: var(--sy-font-heading);
  font-size: var(--sy-site-title-size);
  font-weight: var(--sy-site-title-weight);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sy-site-title a { color: var(--sy-primary); text-decoration: none; }
.sy-site-desc { margin: 0.1rem 0 0; font-size: var(--sy-tagline-size); color: var(--sy-text-muted); }

.sy-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.sy-search-form { display: flex; }
.sy-search-form input[type="search"] {
  padding: 0.5rem 0.75rem; border: 1px solid var(--sy-border);
  border-right: 0; border-radius: var(--sy-radius-sm) 0 0 var(--sy-radius-sm);
  font-size: 0.9rem; width: 180px; max-width: 45vw;
  background: var(--sy-bg); color: var(--sy-text);
}
.sy-search-form button {
  padding: 0.5rem 0.9rem; border: 0; background: var(--sy-primary); color: #fff;
  border-radius: 0 var(--sy-radius-sm) var(--sy-radius-sm) 0;
  font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.sy-search-form button:hover { background: var(--sy-primary-dark); }

.sy-dark-toggle {
  border: 1px solid var(--sy-border); background: var(--sy-bg); color: var(--sy-text);
  border-radius: var(--sy-radius-sm); padding: 0.45rem 0.6rem;
  cursor: pointer; font-size: 1rem; line-height: 1;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.sy-nav { background: var(--sy-primary); position: relative; font-family: var(--sy-font-menu); }
.sy-nav-toggle {
  display: none; width: 100%; border: 0;
  padding: var(--sy-menu-pad-y) var(--sy-menu-pad-x);
  background: var(--sy-primary); color: #fff;
  font-weight: var(--sy-menu-weight); font-size: var(--sy-menu-size);
  text-align: left; cursor: pointer;
}
.sy-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.sy-nav li { position: relative; }
.sy-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: var(--sy-menu-pad-y) var(--sy-menu-pad-x);
  font-weight: var(--sy-menu-weight);
  font-size: var(--sy-menu-size);
  letter-spacing: var(--sy-menu-spacing);
}
.sy-nav a:hover, .sy-nav .current-menu-item > a { background: var(--sy-primary-dark); color: #fff; }
.sy-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  background: var(--sy-primary-dark); min-width: 220px; flex-direction: column;
  box-shadow: var(--sy-shadow-lg); border-radius: 0 0 var(--sy-radius-sm) var(--sy-radius-sm);
}
.sy-nav li:hover > ul, .sy-nav li:focus-within > ul { display: flex; }

/* ==========================================================================
   6. Breadcrumb
   ========================================================================== */
.sy-breadcrumb {
  font-size: var(--sy-breadcrumb-size); color: var(--sy-text-muted);
  padding: 0.6rem 0; overflow-x: auto; white-space: nowrap;
}
.sy-breadcrumb a { color: var(--sy-text-muted); }
.sy-breadcrumb a:hover { color: var(--sy-primary); }
.sy-breadcrumb .separator { margin: 0 0.35rem; }

/* ==========================================================================
   7. Layout
   ========================================================================== */
.sy-main-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sy-sidebar-w);
  gap: var(--sy-layout-gap);
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 960px) { .sy-main-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   8. Notice ticker
   ========================================================================== */
.sy-ticker {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--sy-primary-soft); border: 1px solid var(--sy-primary);
  border-radius: var(--sy-radius); padding: 0.5rem 0.75rem; margin: 1rem 0 0;
  overflow: hidden; font-size: 0.9rem;
}
.sy-ticker-label {
  background: var(--sy-primary); color: #fff; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: var(--sy-radius-sm);
  font-size: var(--sy-badge-size); white-space: nowrap; flex-shrink: 0;
}
.sy-ticker-items { display: flex; gap: 2.5rem; animation: sy-ticker 30s linear infinite; white-space: nowrap; }
.sy-ticker:hover .sy-ticker-items { animation-play-state: paused; }
@keyframes sy-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sy-ticker-items { animation: none; flex-wrap: wrap; white-space: normal; } }

/* ==========================================================================
   9. Post Cards
   ========================================================================== */
.sy-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--sy-section-title-size);
  margin: 1.6rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sy-border);
}
.sy-section-title::before {
  content: ""; width: 6px; height: 1.05em; background: var(--sy-primary);
  border-radius: 3px; flex-shrink: 0;
}

.sy-grid { display: grid; grid-template-columns: var(--sy-grid-template); gap: var(--sy-grid-gap); }
@media (max-width: 640px) { .sy-grid { grid-template-columns: minmax(0, 1fr); } }

.sy-card {
  background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); overflow: hidden; box-shadow: var(--sy-shadow);
  display: flex; flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.sy-card:hover { box-shadow: var(--sy-shadow-lg); transform: translateY(-2px); }
.sy-card-body {
  padding: calc(var(--sy-card-pad) * 0.9) var(--sy-card-pad) var(--sy-card-pad);
  display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
}
.sy-card-title {
  margin: 0;
  font-size: var(--sy-card-title-size);
  font-weight: var(--sy-card-title-weight);
  line-height: 1.4;
}
.sy-card-title a { color: var(--sy-text); }
.sy-card-title a:hover { color: var(--sy-primary); text-decoration: none; }
.sy-card-excerpt { margin: 0; font-size: var(--sy-card-excerpt-size); color: var(--sy-text-muted); }
.sy-card-meta {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-size: var(--sy-card-meta-size); color: var(--sy-text-muted);
  margin-top: auto; padding-top: 0.4rem;
}
.sy-cat-badge {
  display: inline-block; background: var(--sy-secondary-soft); color: var(--sy-secondary);
  font-size: var(--sy-badge-size); font-weight: 700; padding: 0.15rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
a.sy-cat-badge:hover { background: var(--sy-secondary); color: #fff; text-decoration: none; }

/* List style rows (archive) */
.sy-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1rem;
  background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); overflow: hidden; box-shadow: var(--sy-shadow);
  margin-bottom: 1rem;
}
.sy-row .sy-card-body { padding: calc(var(--sy-card-pad) * 0.8) var(--sy-card-pad); }
@media (max-width: 560px) { .sy-row { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   10. Auto Thumbnail (no image needed)
   ========================================================================== */
.sy-auto-thumb {
  aspect-ratio: var(--sy-thumb-ratio); display: flex; flex-direction: column;
  justify-content: center; gap: 0.35rem; padding: 1rem 1.1rem;
  color: #fff; position: relative; overflow: hidden;
}
.sy-auto-thumb::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.sy-thumb-cat {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; opacity: 0.9;
}
.sy-thumb-title { font-size: 1rem; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.sy-thumb-site { font-size: 0.68rem; opacity: 0.85; margin-top: 0.2rem; }

.sy-thumb-default     { background: #b45309; }
.sy-thumb-agriculture { background: #2e7d32; }
.sy-thumb-health      { background: #c62828; }
.sy-thumb-education   { background: #1565c0; }
.sy-thumb-women       { background: #ad1457; }
.sy-thumb-housing     { background: #4e342e; }
.sy-thumb-employment  { background: #283593; }
.sy-thumb-pension     { background: #00695c; }
.sy-thumb-finance     { background: #6a4f1d; }

/* ==========================================================================
   11. Single Post
   ========================================================================== */
.sy-article {
  background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); padding: var(--sy-article-pad); box-shadow: var(--sy-shadow);
}
.sy-entry-title {
  margin-top: 0;
  font-size: var(--sy-entry-title-size);
}
.sy-entry-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: var(--sy-meta-size); color: var(--sy-text-muted);
  padding-bottom: 1rem; border-bottom: 1px solid var(--sy-border); margin-bottom: 1rem;
}
.sy-updated-badge {
  background: var(--sy-secondary-soft); color: var(--sy-secondary);
  padding: 0.12rem 0.5rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem;
}
.sy-entry-thumb { margin: 0 0 1.25rem; }
.sy-entry-thumb img { border-radius: var(--sy-radius-sm); width: 100%; }

.sy-entry-content {
  font-size: var(--sy-content-size);
  line-height: var(--sy-content-line);
}
.sy-entry-content > p,
.sy-entry-content > ul,
.sy-entry-content > ol,
.sy-entry-content > figure,
.sy-entry-content > blockquote,
.sy-entry-content > table,
.sy-entry-content > .wp-block-image { margin-bottom: var(--sy-para-gap); }
.sy-entry-content li { margin-bottom: calc(var(--sy-para-gap) * 0.35); }

.sy-entry-content h2 {
  padding: 0.45rem 0.8rem; background: var(--sy-bg-soft);
  border-left: 4px solid var(--sy-primary);
  border-radius: 0 var(--sy-radius-sm) var(--sy-radius-sm) 0;
}
.sy-entry-content a { text-decoration: underline; }
.sy-entry-content .wp-block-table, .sy-entry-content table { overflow-x: auto; display: block; }
@media (min-width: 640px) { .sy-entry-content table { display: table; } }

/* Table of contents */
.sy-toc {
  background: var(--sy-bg-soft); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); padding: 1rem 1.25rem; margin: 1.25rem 0;
  font-size: var(--sy-toc-size);
}
.sy-toc-title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 800; }
.sy-toc ol { margin: 0; padding-left: 1.25rem; }
.sy-toc li { margin: 0.3rem 0; }

/* Yojana info box */
.sy-infobox {
  border: 2px solid var(--sy-primary); border-radius: var(--sy-radius);
  overflow: hidden; margin: 1.25rem 0;
}
.sy-infobox-title {
  background: var(--sy-primary); color: #fff; font-weight: 800;
  padding: 0.6rem 1rem; font-size: 1rem; margin: 0;
}
.sy-infobox table { margin: 0; border: 0; }
.sy-infobox th { width: 38%; background: var(--sy-primary-soft); color: var(--sy-text); border-color: var(--sy-border); }
.sy-infobox td { border-color: var(--sy-border); }

/* Apply / important link buttons */
.sy-btn {
  display: inline-block; background: var(--sy-primary); color: #fff !important;
  font-weight: var(--sy-btn-weight);
  padding: var(--sy-btn-pad-y) var(--sy-btn-pad-x);
  border-radius: var(--sy-btn-radius);
  text-decoration: none !important; font-size: var(--sy-btn-size);
  border: 0; cursor: pointer; line-height: 1.4;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sy-btn:hover { background: var(--sy-primary-dark); }
.sy-btn-green { background: var(--sy-secondary); }
.sy-btn-green:hover { background: #0d3f12; }
.sy-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }

/* FAQ details */
.sy-entry-content details {
  border: 1px solid var(--sy-border); border-radius: var(--sy-radius-sm);
  padding: 0.7rem 1rem; margin: 0.6rem 0; background: var(--sy-bg-soft);
}
.sy-entry-content summary { font-weight: 700; cursor: pointer; }

/* Tags + share */
.sy-entry-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--sy-border); }
.sy-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sy-tags a {
  background: var(--sy-bg-soft); border: 1px solid var(--sy-border);
  color: var(--sy-text-muted); font-size: 0.8rem; padding: 0.25rem 0.7rem;
  border-radius: 999px; text-decoration: none;
}
.sy-tags a:hover { border-color: var(--sy-primary); color: var(--sy-primary); }
.sy-share { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.sy-share a {
  font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.9rem;
  border-radius: var(--sy-btn-radius); color: #fff; text-decoration: none;
}
.sy-share-wa { background: #1faa53; }
.sy-share-tg { background: #2599d2; }
.sy-share-fb { background: #3b5998; }
.sy-share-x  { background: #111; }
.sy-share a:hover { opacity: 0.88; color: #fff; }

/* Post navigation */
.sy-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.sy-post-nav a {
  display: block; background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); padding: 0.8rem 1rem; text-decoration: none;
  color: var(--sy-text); font-size: 0.9rem;
}
.sy-post-nav a:hover { border-color: var(--sy-primary); }
.sy-post-nav .nav-label { display: block; font-size: 0.75rem; color: var(--sy-text-muted); margin-bottom: 0.2rem; }
.sy-post-nav .nav-next { text-align: right; }
@media (max-width: 560px) { .sy-post-nav { grid-template-columns: 1fr; } }

/* Related posts */
.sy-related { margin-top: 1.5rem; }

/* ==========================================================================
   12. Sidebar & Widgets
   ========================================================================== */
.sy-sidebar { display: flex; flex-direction: column; gap: var(--sy-widget-gap); }
.sy-widget {
  background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius);
  padding: var(--sy-widget-pad) calc(var(--sy-widget-pad) * 1.15);
  box-shadow: var(--sy-shadow);
  font-size: var(--sy-widget-size);
}
.sy-widget-title {
  margin: 0 0 0.75rem;
  font-family: var(--sy-font-heading);
  font-size: var(--sy-widget-title-size); font-weight: 800;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--sy-primary);
}
.sy-widget ul { list-style: none; margin: 0; padding: 0; }
.sy-widget li {
  padding: 0.45rem 0; border-bottom: 1px dashed var(--sy-border);
  font-size: var(--sy-widget-size);
}
.sy-widget li:last-child { border-bottom: 0; }
.sy-widget a { color: var(--sy-text); }
.sy-widget a:hover { color: var(--sy-primary); }

/* Ad slots */
.sy-ad-slot { margin: 1.25rem 0; text-align: center; }
.sy-ad-slot:empty { display: none; }
.sy-ad-label {
  display: block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--sy-text-muted); margin-bottom: 0.25rem;
}

/* ==========================================================================
   13. Pagination
   ========================================================================== */
.sy-pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0 0.5rem; }
.sy-pagination .page-numbers {
  display: inline-block; min-width: 2.4rem; text-align: center;
  padding: 0.5rem 0.7rem; border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius-sm); color: var(--sy-text);
  text-decoration: none; font-size: 0.9rem; background: var(--sy-bg);
}
.sy-pagination .page-numbers.current { background: var(--sy-primary); color: #fff; border-color: var(--sy-primary); }
.sy-pagination a.page-numbers:hover { border-color: var(--sy-primary); color: var(--sy-primary); }

/* ==========================================================================
   14. Comments
   ========================================================================== */
.sy-comments { margin-top: 1.5rem; }
.sy-comments .comment-list { list-style: none; padding: 0; }
.sy-comments .comment-body {
  background: var(--sy-bg); border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius); padding: 1rem; margin-bottom: 1rem;
}
.sy-comments .children { list-style: none; padding-left: 1.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius-sm); font-family: inherit; font-size: 0.95rem;
  background: var(--sy-bg); color: var(--sy-text);
}
.comment-form .submit {
  background: var(--sy-primary); color: #fff; border: 0;
  font-weight: var(--sy-btn-weight);
  padding: var(--sy-btn-pad-y) calc(var(--sy-btn-pad-x) * 1.05);
  border-radius: var(--sy-btn-radius); cursor: pointer;
  font-size: var(--sy-btn-size);
}
.comment-form .submit:hover { background: var(--sy-primary-dark); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.sy-footer { background: #14181f; color: #d1d5db; margin-top: 2rem; font-size: var(--sy-footer-size); }
.sy-footer a { color: #f0b27a; }
.sy-footer-widgets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: var(--sy-footer-pad) 0 1.5rem;
}
.sy-footer-widget h4, .sy-footer-widget .sy-widget-title {
  color: #fff; margin: 0 0 0.75rem;
  font-size: var(--sy-footer-title-size);
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 0; padding: 0;
}
.sy-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.sy-footer-widget li { padding: 0.3rem 0; border: 0; }
.sy-footer-widget .sy-widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.sy-footer-widget a { color: #f0b27a; }
.sy-footer-bottom {
  border-top: 1px solid #2a3140; padding: 1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap; font-size: 0.82rem;
}
.sy-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Back to top */
.sy-top-btn {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: var(--sy-top-btn-size); height: var(--sy-top-btn-size);
  border-radius: 50%;
  background: var(--sy-primary); color: #fff; border: 0; cursor: pointer;
  font-size: calc(var(--sy-top-btn-size) * 0.42);
  box-shadow: var(--sy-shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
.sy-top-btn.sy-show { opacity: 1; visibility: visible; }

/* ==========================================================================
   16. 404 / Search empty
   ========================================================================== */
.sy-empty {
  text-align: center; padding: 3rem 1rem;
  background: var(--sy-bg-soft); border-radius: var(--sy-radius);
}
.sy-empty h1 { margin-top: 0; }

/* ==========================================================================
   17. Mobile
   ========================================================================== */
@media (max-width: 782px) {
  .sy-nav-toggle { display: block; }
  .sy-nav > .sy-container { padding: 0; }
  .sy-nav ul { display: none; flex-direction: column; }
  .sy-nav.sy-open ul { display: flex; }
  .sy-nav ul ul { position: static; box-shadow: none; padding-left: 1rem; }
}
@media (max-width: 640px) {
  .sy-article { padding: calc(var(--sy-article-pad) * 0.66); }
}

/* ==========================================================================
   18. Print — save ink, hide chrome
   ========================================================================== */
@media print {
  .sy-topbar, .sy-nav, .sy-sidebar, .sy-footer, .sy-share,
  .sy-ad-slot, .sy-top-btn, .sy-search-form, .sy-post-nav, .sy-comments,
  .sy-progress, .sy-toc { display: none !important; }
  .sy-main-wrap { grid-template-columns: 1fr; }
  .sy-article { border: 0; box-shadow: none; }
}
