/*
Theme Name: SarkariResults Portal
Theme URI: https://sarkariresults.io/
Author: SarkariResults.io
Author URI: https://sarkariresults.io/
Description: A fast, SEO-friendly, mobile-first WordPress theme for government-exam / Sarkari Result information portals. Fully customizable from the WordPress admin: branding, colors, typography, navigation, homepage section manager, featured colored cards, breaking-news, WhatsApp/Telegram CTAs, ad slots, and more. Original implementation, no page-builder / jQuery / framework dependency.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkariresults
Tags: news, blog, portal, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* =========================================================================
   1. DESIGN TOKENS (CSS variables)
   These defaults are overridden at runtime by admin settings via
   wp_add_inline_style() so every important color/size stays configurable.
   ========================================================================= */
:root {
    --srp-primary: #d40000;          /* header / brand red */
    --srp-primary-dark: #9e0000;     /* maroon (box headers) */
    --srp-secondary: #14158c;        /* navigation navy blue */
    --srp-secondary-dark: #0a0b52;
    --srp-accent: #d84315;
    --srp-text: #1e232b;
    --srp-muted: #5b6472;
    --srp-border: #d7dce6;
    --srp-surface: #ffffff;
    --srp-bg: #eceff5;
    --srp-link: #123fbf;
    --srp-box-border: #e6c2c2;       /* light-red box outline */
    --srp-viewmore: #1a73e8;         /* blue "View More" pill */
    --srp-nav-bg: var(--srp-secondary);
    --srp-nav-text: #ffffff;
    --srp-nav-active: #ffd54f;
    --srp-header-bg: var(--srp-primary);
    --srp-header-height: 130px;
    --srp-logo-width: 64px;

    --srp-container: 1120px;
    --srp-gap: 14px;
    --srp-radius: 6px;
    --srp-radius-sm: 4px;
    --srp-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06);
    --srp-shadow-lg: 0 6px 20px rgba(16, 24, 40, .12);

    --srp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --srp-font-heading: var(--srp-font-body);

    --srp-fs-base: clamp(15px, 0.95rem + 0.15vw, 17px);
    --srp-fs-nav: 15px;
    --srp-fs-section-title: clamp(1.05rem, 1rem + 0.6vw, 1.4rem);
    --srp-fs-card-title: 15px;
    --srp-fs-h1: clamp(1.55rem, 1.25rem + 1.6vw, 2.3rem);
    --srp-lh: 1.65;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: var(--srp-font-body);
    font-size: var(--srp-fs-base);
    line-height: var(--srp-lh);
    color: var(--srp-text);
    background: var(--srp-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
    overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
img { border: 0; }

a { color: var(--srp-link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--srp-font-heading);
    line-height: 1.25;
    margin: 0 0 .5em;
    color: var(--srp-text);
    font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 3px solid var(--srp-nav-active);
    outline-offset: 2px;
}

/* =========================================================================
   3. ACCESSIBILITY HELPERS
   ========================================================================= */
.srp-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.srp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--srp-radius-sm) 0;
}
.srp-skip-link:focus {
    left: 0;
    text-decoration: none;
}

/* =========================================================================
   4. LAYOUT
   ========================================================================= */
.srp-container {
    width: 100%;
    max-width: var(--srp-container);
    margin-inline: auto;
    padding-inline: var(--srp-gap);
}

.srp-site {
    background: var(--srp-surface);
    max-width: var(--srp-container);
    margin-inline: auto;
    box-shadow: 0 0 24px rgba(16, 24, 40, .06);
}

.srp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 20px;
}
.srp-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
}
.srp-layout.has-sidebar.srp-sidebar-left {
    grid-template-columns: 300px minmax(0, 1fr);
}
.srp-layout.srp-sidebar-left .srp-sidebar { order: -1; }
@media (max-width: 900px) {
    .srp-layout.has-sidebar,
    .srp-layout.has-sidebar.srp-sidebar-left { grid-template-columns: 1fr; }
    .srp-layout.srp-sidebar-left .srp-sidebar { order: 0; }
}
.srp-main { min-width: 0; }

/* =========================================================================
   5. HEADER
   ========================================================================= */
.srp-header {
    background: var(--srp-header-bg);
    color: #fff;
    background-size: cover;
    background-position: center;
}
.srp-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: var(--srp-header-height);
    padding-block: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.srp-header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}
.srp-header__brand:hover, .srp-header__brand:focus { text-decoration: none; }
.srp-header__logo { width: var(--srp-logo-width); height: auto; flex: 0 0 auto; }
.srp-header__titles { min-width: 0; }
.srp-header__title {
    font-size: clamp(1.4rem, 1rem + 3vw, 2.5rem);
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    word-wrap: break-word;
}
.srp-header__subtitle {
    margin: 4px 0 0;
    font-size: clamp(.85rem, .7rem + .6vw, 1.1rem);
    font-weight: 500;
    opacity: .95;
    color: #fff;
}
.srp-header__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================================================
   6. CTA / SOCIAL BUTTONS
   ========================================================================= */
.srp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--srp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    min-height: 40px;
    background: #fff;
    color: var(--srp-secondary);
    border: 1px solid transparent;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.srp-btn:hover, .srp-btn:focus { text-decoration: none; filter: brightness(.96); }
.srp-btn:active { transform: translateY(1px); }
.srp-btn svg { width: 18px; height: 18px; fill: currentColor; }
.srp-btn--block { display: flex; width: 100%; justify-content: center; }

.srp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}
.srp-cta-row .srp-btn { flex: 1 1 auto; justify-content: center; }

/* Homepage intro (tagline + LIVE badge + centered WhatsApp/Telegram CTA) */
.srp-home-intro { text-align: center; margin: 16px 0 8px; }
.srp-home-tagline { font-weight: 600; color: var(--srp-text); margin: 0 auto 10px; font-size: 15px; max-width: 760px; }
.srp-live {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--srp-border);
    color: var(--srp-primary); font-weight: 700; font-size: 12px;
    padding: 3px 12px; border-radius: 50px; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: .05em;
}
.srp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--srp-primary); display: inline-block; }
.srp-home-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.srp-home-cta .srp-btn { flex: 0 0 auto; }

/* Floating mobile CTA */
.srp-cta-floating {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.srp-cta-floating .srp-btn {
    box-shadow: var(--srp-shadow-lg);
    border-radius: 50px;
}

/* =========================================================================
   7. NAVIGATION (desktop)
   ========================================================================= */
.srp-nav {
    background: var(--srp-nav-bg);
    color: var(--srp-nav-text);
    position: relative;
    z-index: 50;
}
.srp-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.srp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.srp-menu li { position: relative; }
.srp-menu a {
    display: flex;
    align-items: center;
    color: var(--srp-nav-text);
    padding: 14px 14px;
    font-size: var(--srp-fs-nav);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.1;
}
.srp-menu a:hover,
.srp-menu a:focus,
.srp-menu .current-menu-item > a,
.srp-menu .current-menu-ancestor > a {
    background: rgba(255, 255, 255, .12);
    color: var(--srp-nav-active);
    text-decoration: none;
}
/* Submenus */
.srp-menu ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--srp-nav-bg);
    box-shadow: var(--srp-shadow-lg);
    border-radius: 0 0 var(--srp-radius-sm) var(--srp-radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 60;
}
.srp-menu li:hover > ul.sub-menu,
.srp-menu li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.srp-menu ul.sub-menu a { padding: 10px 16px; font-weight: 500; }
.srp-menu ul.sub-menu li { width: 100%; }
.srp-menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 5px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

/* Search toggle in nav */
.srp-nav__search-toggle {
    background: transparent;
    border: 0;
    color: var(--srp-nav-text);
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}
.srp-nav__search-toggle svg { width: 20px; height: 20px; fill: currentColor; }

/* Inline nav search panel */
.srp-nav__search {
    display: none;
    background: var(--srp-nav-bg);
    padding: 0 var(--srp-gap) 12px;
}
.srp-nav__search.is-open { display: block; }

/* Hamburger */
.srp-nav__toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--srp-nav-text);
    padding: 12px 14px;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-height: 48px;
}
.srp-nav__toggle .srp-burger {
    width: 22px; height: 2px; background: currentColor; position: relative; display: block;
}
.srp-nav__toggle .srp-burger::before,
.srp-nav__toggle .srp-burger::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.srp-nav__toggle .srp-burger::before { top: -7px; }
.srp-nav__toggle .srp-burger::after { top: 7px; }

/* =========================================================================
   8. SEARCH FORM
   ========================================================================= */
.srp-search-form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 520px;
}
.srp-search-form input[type="search"] {
    flex: 1 1 auto;
    padding: 11px 14px;
    border: 1px solid var(--srp-border);
    border-right: 0;
    border-radius: var(--srp-radius-sm) 0 0 var(--srp-radius-sm);
    background: #fff;
    color: var(--srp-text);
    min-height: 44px;
}
.srp-search-form button {
    padding: 0 18px;
    background: var(--srp-primary);
    color: #fff;
    border: 0;
    border-radius: 0 var(--srp-radius-sm) var(--srp-radius-sm) 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.srp-search-form button svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================================
   9. AD SLOTS
   ========================================================================= */
.srp-ad {
    margin: 16px auto;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.srp-ad__label {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--srp-muted);
    margin-bottom: 4px;
}
.srp-ad__inner { width: 100%; }
.srp-ad--mobile { display: none; }
@media (max-width: 782px) {
    .srp-ad--desktop { display: none; }
    .srp-ad--mobile { display: flex; }
}

/* =========================================================================
   10. BREAKING / LIVE NEWS
   ========================================================================= */
.srp-breaking {
    display: flex;
    align-items: stretch;
    background: #fff7f7;
    border: 1px solid var(--srp-border);
    border-left: 4px solid var(--srp-primary);
    border-radius: var(--srp-radius-sm);
    overflow: hidden;
    margin: 16px 0;
}
.srp-breaking__badge {
    background: var(--srp-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.srp-breaking__viewport {
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}
.srp-breaking__track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    padding-inline: 16px;
    will-change: transform;
}
.srp-breaking--animate .srp-breaking__track {
    animation: srp-marquee 30s linear infinite;
}
.srp-breaking--animate:hover .srp-breaking__track { animation-play-state: paused; }
.srp-breaking__track a { color: var(--srp-text); font-weight: 600; font-size: 14px; }
.srp-breaking--scroll .srp-breaking__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@keyframes srp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .srp-breaking--animate .srp-breaking__track { animation: none; }
    .srp-breaking__viewport { overflow-x: auto; }
}

/* =========================================================================
   11. FEATURED COLORED CARDS
   ========================================================================= */
.srp-cards {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.srp-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.srp-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.srp-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.srp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 4px;
    color: #fff;
    background: var(--srp-secondary);
    text-decoration: none;
    min-height: 62px;
    transition: transform .15s ease, filter .15s ease;
}
.srp-card:hover, .srp-card:focus {
    text-decoration: none;
    filter: brightness(1.06);
}
.srp-card:active { transform: translateY(1px); }
.srp-card__icon {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    font-size: 16px;
    margin-bottom: 2px;
}
.srp-card__icon svg { width: 18px; height: 18px; fill: currentColor; }
.srp-card__body { min-width: 0; width: 100%; }
.srp-card__title { font-weight: 700; font-size: var(--srp-fs-card-title); line-height: 1.25; }
.srp-card__subtitle { font-size: 12px; opacity: .92; margin-top: 1px; }
.srp-card__badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
}

@media (max-width: 782px) { .srp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
    .srp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .srp-cards--m1 { grid-template-columns: 1fr; }
}

/* =========================================================================
   12. FEATURED GRID (link tiles)
   ========================================================================= */
.srp-fgrid {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.srp-fgrid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.srp-fgrid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.srp-fgrid__item {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-top: 3px solid var(--srp-primary);
    border-radius: var(--srp-radius);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--srp-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 56px;
    transition: box-shadow .15s ease;
}
.srp-fgrid__item:hover, .srp-fgrid__item:focus { box-shadow: var(--srp-shadow); text-decoration: none; }
@media (max-width: 600px) { .srp-fgrid, .srp-fgrid--cols-3, .srp-fgrid--cols-4 { grid-template-columns: 1fr; } }

/* =========================================================================
   13. HOMEPAGE SECTIONS
   ========================================================================= */
.srp-section { margin: 22px 0; }
.srp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--srp-secondary);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--srp-radius) var(--srp-radius) 0 0;
}
.srp-section__title {
    margin: 0;
    font-size: var(--srp-fs-section-title);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.srp-section__viewall {
    color: #fff;
    background: rgba(255,255,255,.16);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.srp-section__viewall:hover, .srp-section__viewall:focus { background: rgba(255,255,255,.28); text-decoration: none; }
.srp-section__body {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-top: 0;
    border-radius: 0 0 var(--srp-radius) var(--srp-radius);
    padding: 8px 14px;
}

/* List variants */
.srp-list { list-style: none; margin: 0; padding: 0; }
.srp-list li {
    border-bottom: 1px dashed var(--srp-border);
}
.srp-list li:last-child { border-bottom: 0; }
.srp-list a {
    display: block;
    padding: 9px 4px 9px 20px;
    position: relative;
    color: var(--srp-text);
    font-weight: 500;
}
.srp-list a::before {
    content: "";
    position: absolute;
    left: 2px; top: 50%;
    width: 7px; height: 7px;
    transform: translateY(-50%);
    background: var(--srp-primary);
    border-radius: 2px;
}
.srp-list a:hover, .srp-list a:focus { color: var(--srp-link); }
.srp-list .srp-new-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}
/* numbered */
.srp-list--numbered { counter-reset: srp; }
.srp-list--numbered a { padding-left: 34px; }
.srp-list--numbered a::before {
    counter-increment: srp;
    content: counter(srp);
    width: 22px; height: 22px;
    background: var(--srp-secondary);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
    left: 2px;
}
/* two-column */
.srp-list--two { column-count: 2; column-gap: 24px; }
.srp-list--two li { break-inside: avoid; }
@media (max-width: 600px) { .srp-list--two { column-count: 1; } }
/* compact */
.srp-list--compact a { padding-top: 5px; padding-bottom: 5px; font-size: 14px; }

/* Card grid variant */
.srp-postgrid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    padding: 6px 0;
}

/* =========================================================================
   13b. DENSE COLORED LINK-BOX GRID (classic Sarkari-portal layout)
   ========================================================================= */
.srp-boxgrid {
    column-count: 3;
    column-gap: var(--srp-gap);
    margin: 16px 0;
}
@media (max-width: 900px) { .srp-boxgrid { column-count: 2; } }
@media (max-width: 560px) { .srp-boxgrid { column-count: 1; } }

.srp-box {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 var(--srp-gap);
    background: var(--srp-surface);
    border: 1px solid var(--srp-box-border);
    border-radius: var(--srp-radius);
    overflow: hidden;
    vertical-align: top;
}
.srp-box__head {
    margin: 0;
    padding: 9px 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: var(--srp-primary-dark); /* uniform maroon (configurable) */
    line-height: 1.25;
}
.srp-box__body { padding: 6px 14px 10px; }
.srp-box__list { list-style: none; margin: 0; padding: 0; }
.srp-box__list li { border-bottom: 1px solid #eef0f4; }
.srp-box__list li:last-child { border-bottom: 0; }
.srp-box__list a {
    display: block;
    padding: 8px 2px 8px 18px;
    position: relative;
    color: var(--srp-link);
    font-size: 14.5px;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(18, 63, 191, .35);
}
.srp-box__list a::before {
    content: "";
    position: absolute;
    left: 3px; top: 14px;
    width: 6px; height: 6px;
    background: #333a45;
    border-radius: 50%;
}
.srp-box__list a:hover, .srp-box__list a:focus { color: var(--srp-primary); text-decoration-color: currentColor; }
.srp-box__list--num { counter-reset: srpbox; }
.srp-box__list--num a { padding-left: 32px; text-decoration: none; }
.srp-box__list--num a:hover { text-decoration: underline; }
.srp-box__list--num a::before {
    counter-increment: srpbox;
    content: counter(srpbox);
    width: 20px; height: 20px; top: 50%; left: 3px;
    transform: translateY(-50%);
    background: var(--srp-secondary);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 10px; font-weight: 700;
}
.srp-box__more {
    text-align: right;
    padding: 8px 12px 12px;
}
.srp-box__more a {
    display: inline-block;
    background: var(--srp-viewmore);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 50px;
    text-decoration: none;
}
.srp-box__more a:hover, .srp-box__more a:focus { filter: brightness(1.08); text-decoration: none; }

/* =========================================================================
   13c. LINK TABLE ("Top Pages") + CONTENT BAND (SEO blocks)
   ========================================================================= */
.srp-linktable-wrap { margin: 20px 0; }
.srp-linktable__title {
    text-align: center;
    color: var(--srp-primary);
    font-weight: 800;
    font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
    margin: 0 0 10px;
}
.srp-linktable__title::before,
.srp-linktable__title::after {
    content: "\273B\273B\273B";
    color: #1b7d3c;
    font-size: .7em;
    letter-spacing: 2px;
    margin: 0 10px;
    vertical-align: middle;
}
.srp-linktable {
    border-collapse: collapse;
    width: 100%;
    background: var(--srp-surface);
}
.srp-linktable td {
    border: 1px solid #111418;
    padding: 9px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}
.srp-linktable a { color: var(--srp-link); text-decoration: none; }
.srp-linktable a:hover, .srp-linktable a:focus { color: var(--srp-primary); text-decoration: underline; }
@media (max-width: 560px) {
    .srp-linktable td { font-size: 13px; padding: 8px 6px; }
}

/* Full-width content band + body (SEO content blocks). */
.srp-richblock { margin: 18px 0; }
.srp-band {
    background: var(--srp-primary-dark);
    color: #fff;
    text-align: center;
    font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
    font-weight: 700;
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--srp-radius) var(--srp-radius) 0 0;
}
.srp-richblock__body {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-top: 0;
    border-radius: 0 0 var(--srp-radius) var(--srp-radius);
    padding: 16px 18px;
    text-align: center;
    line-height: 1.75;
}
.srp-richblock__body:first-child {
    border-top: 1px solid var(--srp-border);
    border-radius: var(--srp-radius);
}

/* =========================================================================
   14. ARTICLE CARD
   ========================================================================= */
.srp-article-card {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease;
}
.srp-article-card:hover { box-shadow: var(--srp-shadow); }
.srp-article-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--srp-bg); }
.srp-article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.srp-article-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.srp-article-card__cat {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--srp-primary);
}
.srp-article-card__title { font-size: 16px; margin: 0; line-height: 1.3; }
.srp-article-card__title a { color: var(--srp-text); }
.srp-article-card__title a:hover { color: var(--srp-link); }
.srp-article-card__meta { font-size: 12px; color: var(--srp-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.srp-article-card__excerpt { font-size: 14px; color: var(--srp-muted); margin: 0; }

/* =========================================================================
   15. BREADCRUMBS
   ========================================================================= */
.srp-breadcrumbs {
    font-size: 13px;
    color: var(--srp-muted);
    padding: 10px 0;
}
.srp-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.srp-breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.srp-breadcrumbs li + li::before { content: "/"; color: var(--srp-border); }
.srp-breadcrumbs a { color: var(--srp-muted); }
.srp-breadcrumbs a:hover { color: var(--srp-link); }
.srp-breadcrumbs [aria-current="page"] { color: var(--srp-text); font-weight: 600; }

/* =========================================================================
   16. SINGLE POST / PAGE
   ========================================================================= */
.srp-entry { background: var(--srp-surface); }
.srp-entry__header { margin-bottom: 16px; }
.srp-entry__cat a {
    display: inline-block;
    background: var(--srp-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}
.srp-entry__title { font-size: var(--srp-fs-h1); margin: 10px 0; }
.srp-entry__meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    font-size: 13px; color: var(--srp-muted);
    border-block: 1px solid var(--srp-border);
    padding: 8px 0;
}
.srp-entry__meta .srp-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.srp-entry__thumb { margin: 16px 0; }
.srp-entry__thumb img { width: 100%; border-radius: var(--srp-radius); }

.srp-content { font-size: var(--srp-fs-base); line-height: var(--srp-lh); }
.srp-content > * { margin-bottom: 1.1em; }
.srp-content h2 { font-size: 1.5em; margin-top: 1.3em; padding-bottom: .25em; border-bottom: 2px solid var(--srp-border); }
.srp-content h3 { font-size: 1.25em; margin-top: 1.2em; }
.srp-content a { color: var(--srp-link); text-decoration: underline; }
.srp-content img { border-radius: var(--srp-radius); height: auto; }
.srp-content ul, .srp-content ol { padding-left: 1.4em; }
.srp-content li { margin-bottom: .4em; }
.srp-content blockquote {
    margin: 1.2em 0; padding: 12px 18px;
    border-left: 4px solid var(--srp-primary);
    background: var(--srp-bg); border-radius: 0 var(--srp-radius-sm) var(--srp-radius-sm) 0;
}
.srp-content table {
    margin: 1.2em 0; font-size: 15px;
    border: 1px solid var(--srp-border);
}
.srp-content table caption { font-weight: 700; padding: 8px; }
.srp-content th, .srp-content td { border: 1px solid var(--srp-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.srp-content thead th { background: var(--srp-secondary); color: #fff; }
.srp-content tbody tr:nth-child(even) { background: var(--srp-bg); }
.srp-content figure { margin: 1.2em 0; }
.srp-content .wp-caption-text, .srp-content figcaption { font-size: 13px; color: var(--srp-muted); text-align: center; }

/* Important info box */
.srp-infobox {
    border: 1px solid #f2c94c;
    background: #fffbea;
    border-left: 4px solid #f2c94c;
    border-radius: var(--srp-radius-sm);
    padding: 14px 16px;
    margin: 1.2em 0;
}
.srp-infobox__title { font-weight: 700; margin-bottom: 6px; }

/* table wrapper for horizontal scroll */
.srp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Tags */
.srp-tags { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.srp-tags a {
    background: var(--srp-bg); color: var(--srp-muted);
    padding: 4px 12px; border-radius: 50px; font-size: 13px;
}
.srp-tags a:hover { background: var(--srp-secondary); color: #fff; text-decoration: none; }

/* =========================================================================
   17. SOCIAL SHARE
   ========================================================================= */
.srp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.srp-share__label { font-weight: 700; margin-right: 4px; }
.srp-share a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--srp-secondary); color: #fff;
}
.srp-share a svg { width: 18px; height: 18px; fill: currentColor; }
.srp-share a:hover { filter: brightness(1.1); text-decoration: none; }

/* =========================================================================
   18. RELATED + PREV/NEXT
   ========================================================================= */
.srp-related { margin: 28px 0; }
.srp-related__grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.srp-postnav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0;
}
.srp-postnav a {
    display: block; padding: 12px 14px; border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius); color: var(--srp-text); background: var(--srp-surface);
}
.srp-postnav a:hover { box-shadow: var(--srp-shadow); text-decoration: none; }
.srp-postnav small { color: var(--srp-muted); display: block; font-size: 12px; }
.srp-postnav .srp-postnav__next { text-align: right; }
@media (max-width: 560px) { .srp-postnav { grid-template-columns: 1fr; } }

/* =========================================================================
   19. SIDEBAR / WIDGETS
   ========================================================================= */
.srp-sidebar .widget {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius);
    padding: 14px;
    margin-bottom: 18px;
}
.srp-sidebar .widget-title,
.srp-sidebar .widgettitle {
    font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
    margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--srp-primary);
}
.srp-sidebar ul { list-style: none; margin: 0; padding: 0; }
.srp-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--srp-border); }
.srp-sidebar li:last-child { border-bottom: 0; }
.srp-sidebar.is-sticky { position: sticky; top: 12px; }

/* =========================================================================
   20. PAGINATION
   ========================================================================= */
.srp-pagination { margin: 24px 0; }
.srp-pagination .nav-links,
.srp-pagination.srp-numeric { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.srp-pagination a,
.srp-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; min-height: 42px; padding: 0 12px;
    border: 1px solid var(--srp-border); border-radius: var(--srp-radius-sm);
    background: var(--srp-surface); color: var(--srp-text); font-weight: 600;
}
.srp-pagination .page-numbers.current { background: var(--srp-secondary); color: #fff; border-color: var(--srp-secondary); }
.srp-pagination a:hover { background: var(--srp-bg); text-decoration: none; }

/* =========================================================================
   21. COMMENTS
   ========================================================================= */
.srp-comments { margin: 28px 0; }
.srp-comments__list { list-style: none; margin: 0; padding: 0; }
.srp-comments__list .children { list-style: none; margin-left: 20px; padding-left: 10px; border-left: 2px solid var(--srp-border); }
.srp-comment { padding: 14px 0; border-bottom: 1px solid var(--srp-border); }
.srp-comment .comment-author { font-weight: 700; }
.srp-comment .comment-meta { font-size: 12px; color: var(--srp-muted); }
.srp-comment .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.srp-form-row { margin-bottom: 14px; }
.srp-form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.srp-comments input[type=text],
.srp-comments input[type=email],
.srp-comments input[type=url],
.srp-comments textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius-sm); background: #fff; min-height: 44px;
}
.srp-comments textarea { min-height: 120px; }

/* =========================================================================
   22. FOOTER
   ========================================================================= */
.srp-footer { background: var(--srp-secondary-dark); color: #d7dcf2; margin-top: 24px; }
.srp-footer a { color: #fff; }
.srp-footer__cols {
    display: grid; gap: 24px; padding: 28px 0;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.srp-footer__title { color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 12px; letter-spacing: .03em; }
.srp-footer__desc { font-size: 14px; line-height: 1.7; }
.srp-footer ul { list-style: none; margin: 0; padding: 0; }
.srp-footer li { padding: 5px 0; }
.srp-footer__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.srp-footer__social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-grid; place-items: center; background: rgba(255,255,255,.1);
}
.srp-footer__social a svg { width: 18px; height: 18px; fill: #fff; }
.srp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 0; font-size: 13px; text-align: center;
}
.srp-footer__disclaimer {
    background: rgba(0,0,0,.18); font-size: 12px; line-height: 1.6;
    padding: 14px 0; text-align: center; color: #c3cae8;
}

/* =========================================================================
   23. ARCHIVE / SEARCH / 404
   ========================================================================= */
.srp-page-header {
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius);
    padding: 16px 18px;
    margin-bottom: 18px;
}
.srp-page-header__title { margin: 0 0 6px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.srp-page-header__desc { margin: 0; color: var(--srp-muted); }

.srp-archive-list { display: flex; flex-direction: column; gap: 14px; }
.srp-article-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 14px;
    background: var(--srp-surface);
    border: 1px solid var(--srp-border);
    border-radius: var(--srp-radius);
    overflow: hidden;
}
.srp-article-row--large { grid-template-columns: 1fr; }
.srp-article-row__thumb { display: block; overflow: hidden; background: var(--srp-bg); }
.srp-article-row__thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.srp-article-row--large .srp-article-row__thumb img { aspect-ratio: 21 / 9; }
.srp-article-row__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.srp-article-row__title { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.srp-article-row--large .srp-article-row__title { font-size: 1.4rem; }
.srp-article-row__title a { color: var(--srp-text); }
.srp-article-row__title a:hover { color: var(--srp-link); }
.srp-readmore { font-size: 13px; font-weight: 600; align-self: flex-start; }
@media (max-width: 560px) {
    .srp-article-row { grid-template-columns: 1fr; }
    .srp-article-row__thumb img { aspect-ratio: 16 / 9; }
}

.srp-empty {
    text-align: center; padding: 40px 16px;
    background: var(--srp-surface); border: 1px solid var(--srp-border); border-radius: var(--srp-radius);
}
.srp-404 { text-align: center; padding: 48px 16px; }
.srp-404__code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; color: var(--srp-primary); line-height: 1; }

/* =========================================================================
   24. RESPONSIVE / MOBILE NAV
   ========================================================================= */
@media (max-width: 860px) {
    .srp-nav__toggle { display: inline-flex; }
    .srp-nav__search-toggle { display: none; }
    .srp-menu {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(84vw, 340px);
        background: var(--srp-nav-bg);
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 64px 0 24px;
        transform: translateX(-100%);
        transition: transform .2s ease;
        overflow-y: auto;
        z-index: 1002;
        box-shadow: var(--srp-shadow-lg);
    }
    .srp-menu.is-open { transform: translateX(0); }
    .srp-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .srp-menu a { padding: 14px 20px; }
    /* submenus become static/expandable */
    .srp-menu ul.sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: rgba(0,0,0,.18); border-radius: 0;
        display: none;
    }
    .srp-menu li.is-expanded > ul.sub-menu { display: block; }
    .srp-menu .menu-item-has-children > a::after { margin-left: auto; }
    .srp-nav__inner { flex-wrap: wrap; }
    .srp-nav__search { display: block; }

    .srp-menu-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,.5);
        opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 1001;
    }
    .srp-menu-overlay.is-open { opacity: 1; visibility: visible; }
    .srp-menu-close-item { display: block; border-bottom: 0 !important; }
    .srp-menu-close {
        position: absolute; top: 10px; right: 12px;
        background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1;
        width: 44px; height: 44px; border-radius: 50%;
    }
    body.srp-menu-open { overflow: hidden; }
}
@media (min-width: 861px) {
    .srp-menu-close, .srp-menu-overlay, .srp-menu-close-item { display: none; }
    /* Submenu toggle button is injected by JS for mobile only. */
    .srp-submenu-toggle { display: none; }
}
@media (max-width: 860px) {
    .srp-menu .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
    .srp-menu .menu-item-has-children > a { flex: 1 1 auto; }
    .srp-menu .menu-item-has-children > a::after { display: none; }
    .srp-submenu-toggle { flex: 0 0 auto; }
    .srp-menu .menu-item-has-children > ul.sub-menu { flex: 1 1 100%; }
}

/* WordPress core alignment / block support */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: min(1000px, 100%); }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor { display: block; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px); word-wrap: normal;
}

/* Utilities */
.srp-mt-0 { margin-top: 0; }
.srp-hidden { display: none !important; }
.srp-text-center { text-align: center; }
