/*
Theme Name: Orviila.com Portal Theme
Theme URI: https://orviila.com/
Author: Orviila.com Editorial
Description: Responsive Regional News, Sarkari Yojana & Education Portal WordPress Theme. Includes built-in head SEO, Schema.org JSON-LD, Google AdSense head verification, Customizer controls, and starter compliance pages.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orviila-portal
*/

:root {
  --theme-primary: #0B2545;
  --theme-primary-dark: #071930;
  --theme-primary-hover: #133663;
  --theme-accent: #DC2626;
  --theme-accent-hover: #B91C1C;
  --theme-secondary: #1D4ED8;
  --sp-bg: #ffffff;
  --sp-surface: #f8fafc;
  --sp-border: #e2e8f0;
  --sp-text: #0f172a;
  --sp-muted: #475569;
  --sp-logo-height: 44px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, .font-editorial {
  font-family: var(--font-display);
}

.sp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar with 3px Editorial Accent Stripe */
.sp-utility-bar {
  border-top: 3px solid var(--theme-accent);
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-border);
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  flex-wrap: wrap;
}

.sp-utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.sp-utility-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-utility-links a {
  font-weight: 500;
}

.sp-utility-links a:hover {
  color: var(--theme-primary);
  text-decoration: underline;
}

/* Brand Header */
.sp-header {
  background: #fff;
  border-bottom: 1px solid var(--sp-border);
  padding: 14px 0;
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.sp-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sp-brand .custom-logo {
  height: var(--sp-logo-height);
  max-height: var(--sp-logo-height);
  width: auto;
  object-fit: contain;
  display: block;
}

.sp-brand-text-link {
  display: block;
  min-width: 0;
}

.sp-brand > div {
  min-width: 0;
}

.sp-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-hover));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.16);
}

.sp-site-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--theme-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-site-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--sp-muted);
  margin: 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-search-form {
  display: flex;
  flex: 1;
  max-width: 460px;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-search-form input[type="search"] {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: var(--sp-surface);
  font-size: 14px;
}

.sp-search-form button {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: var(--theme-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sp-search-form button:hover {
  background: var(--theme-primary-hover);
}

.sp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--theme-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sp-cta-btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-1px);
}

/* Sticky Navbar */
.sp-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--theme-primary);
  color: #fff;
  border-bottom: 1px solid var(--theme-primary-hover);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.14);
}

.sp-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
}

.sp-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-nav-list::-webkit-scrollbar {
  display: none;
}

.sp-nav-list li a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.sp-nav-list li.current-menu-item a,
.sp-nav-list li.current-cat a,
.sp-nav-list li a:hover {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--theme-accent);
}

.sp-mobile-strip {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.sp-mobile-strip::-webkit-scrollbar {
  display: none;
}

.sp-mobile-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-mobile-chip.is-active {
  background: var(--theme-accent);
  color: #fff;
}

.sp-mobile-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-mobile-drawer {
  display: none;
  background: var(--theme-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
}

.sp-mobile-drawer.is-open {
  display: block;
}

.sp-mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sp-mobile-drawer-grid a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 500;
}

.sp-mobile-drawer-grid a.is-active {
  background: var(--theme-accent);
  color: #fff;
  font-weight: 600;
}

/* Breaking News Ticker */
.sp-ticker {
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-border);
  padding: 8px 0;
}

.sp-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sp-breaking-badge {
  background: var(--theme-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.sp-ticker-link {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-ticker-link:hover {
  color: var(--theme-secondary);
}

.sp-ticker-controls {
  display: flex;
  gap: 6px;
}

.sp-ticker-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
}

/* Hero 3-Card Asymmetric Grid */
.sp-section {
  padding: 28px 0;
}

.sp-section-muted {
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  padding: 40px 0;
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.sp-hero-lead {
  position: relative;
  min-height: 410px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  display: block;
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease;
}

.sp-hero-lead:hover {
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.16);
}

.sp-hero-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.sp-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.sp-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  color: #fff;
}

.sp-badge {
  display: inline-block;
  background: var(--theme-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
}

.sp-badge-accent {
  background: var(--theme-accent);
}

.sp-hero-content h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 10px 0 8px;
  color: #fff;
}

.sp-hero-content p {
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
}

.sp-hero-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.sp-hero-side-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-hero-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.sp-hero-side-thumb {
  width: 210px;
  flex-shrink: 0;
  background: #f1f5f9;
}

.sp-hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-hero-side-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sp-hero-side-body h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: var(--sp-text);
}

.sp-hero-side-card:hover h2 {
  color: var(--theme-secondary);
}

.sp-hero-side-body p {
  margin: 0;
  font-size: 13px;
  color: var(--sp-muted);
}

/* Section Headers & 4-Col Grid */
.sp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.sp-section-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-section-head-bar {
  width: 6px;
  height: 24px;
  border-radius: 9999px;
  background: var(--theme-accent);
  display: inline-block;
  flex-shrink: 0;
}

.sp-section-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--theme-primary);
}

.sp-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-secondary);
  white-space: nowrap;
}

.sp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sp-card {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.sp-card-thumb {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.sp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sp-card-meta {
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-card-meta .cat {
  font-weight: 600;
  color: var(--theme-secondary);
}

.sp-card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--sp-text);
}

.sp-card:hover h3 {
  color: var(--theme-secondary);
}

.sp-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--sp-muted);
}

/* 2-Column Category Portal Blocks */
.sp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sp-portal-box {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.sp-portal-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.sp-portal-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-portal-accent {
  width: 6px;
  height: 22px;
  border-radius: 9999px;
  background: var(--theme-secondary);
}

.sp-portal-box-title h2 {
  margin: 0;
  font-size: 20px;
  color: var(--theme-primary);
}

.sp-portal-lead {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.sp-portal-lead-img {
  width: 170px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.sp-portal-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-portal-lead h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.sp-portal-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--sp-border);
}

.sp-portal-list li {
  border-bottom: 1px solid #f1f5f9;
}

.sp-portal-list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.sp-portal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.sp-portal-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--theme-secondary);
  opacity: 0.65;
  margin-top: 7px;
  flex-shrink: 0;
}

.sp-portal-list a:hover {
  color: var(--theme-secondary);
}

.sp-portal-list span.date {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Quick Resources & Newsletter */
.sp-panel {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-panel h2 {
  margin: 0 0 8px;
  font-size: 21px;
  color: var(--theme-primary);
}

.sp-resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sp-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--sp-surface);
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sp-resource-link:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.sp-newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sp-newsletter-form input[type="email"] {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.sp-newsletter-form button {
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: var(--theme-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sp-newsletter-feedback {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
}

.sp-newsletter-feedback.is-error {
  color: #dc2626;
}

.sp-newsletter-success {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-newsletter-reset {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
  text-decoration: underline;
  cursor: pointer;
}

/* Official WhatsApp & Telegram Join Now Bars */
.sp-join-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.sp-join-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
}

.sp-join-bar--wa {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}

.sp-join-bar--tg {
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
}

.sp-join-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-join-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-join-bar--wa .sp-join-icon {
  background: #16a34a;
}

.sp-join-bar--tg .sp-join-icon {
  background: #0284c7;
}

.sp-join-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.sp-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-join-bar--wa .sp-join-btn {
  background: #16a34a;
}

.sp-join-bar--wa .sp-join-btn:hover {
  background: #15803d;
}

.sp-join-bar--tg .sp-join-btn {
  background: #0284c7;
}

.sp-join-bar--tg .sp-join-btn:hover {
  background: #0369a1;
}

/* Single Article & Page Layout */
.sp-article-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 36px;
  align-items: start;
}

.sp-article-layout--full {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.sp-home-widgets {
  margin: 20px 0;
}

.sp-widget-area .widget {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-widget-area .widget-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--theme-primary);
}

.sp-builder-content {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.sp-builder-content--clean {
  background: transparent;
  border: none;
  padding: 0;
}

.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
}

.sp-breadcrumbs {
  font-size: 12px;
  color: var(--sp-muted);
  margin-bottom: 18px;
}

.sp-article-title {
  font-size: 34px;
  line-height: 1.2;
  color: var(--theme-primary);
  margin: 12px 0;
}

.sp-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  padding: 12px 0;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
}

.sp-article-meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.sp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  color: #64748b;
  white-space: nowrap;
}

.sp-meta-item strong,
.sp-meta-item a {
  color: #0f172a;
  font-weight: 600;
}

.sp-meta-item a:hover {
  color: var(--theme-secondary);
  text-decoration: underline;
}

.sp-meta-sep {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.sp-article-content {
  font-size: 16px;
  line-height: 1.75;
  color: #1e293b;
}

.sp-article-content h2 {
  color: var(--theme-primary);
  margin-top: 28px;
}

.sp-table-scroll,
.wp-block-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  position: relative;
  z-index: 1;
}

.wp-block-table .sp-table-scroll {
  margin: 0;
}

.sp-key-table,
.wp-block-table table,
.sp-article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--sp-border);
  font-size: 14px;
  background: #fff;
}

.sp-key-table {
  margin: 20px 0;
}

.sp-key-table th, .sp-key-table td,
.wp-block-table th, .wp-block-table td,
.sp-article-content table th, .sp-article-content table td {
  padding: 12px 14px;
  border: 1px solid var(--sp-border);
  text-align: left;
  vertical-align: top;
}

.sp-key-table th,
.wp-block-table th,
.sp-article-content table th {
  width: 38%;
  background: var(--sp-surface);
  font-weight: 600;
  color: var(--sp-text);
}

.sp-article-content a,
.sp-key-table a,
.wp-block-table a,
.sp-article-content table a,
a.sp-table-link {
  color: var(--theme-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.sp-article-content a:hover,
.sp-key-table a:hover,
.wp-block-table a:hover,
.sp-article-content table a:hover,
a.sp-table-link:hover {
  color: var(--theme-accent);
}

.sp-inline-links-box,
.sp-official-links-box {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: #f8fafc;
}

.sp-inline-links-box {
  border-left: 4px solid var(--theme-primary);
}

.sp-official-links-box {
  border-left: 4px solid var(--theme-secondary);
  background: #eff6ff;
}

.sp-inline-links-title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
}

.sp-inline-links-box ul,
.sp-official-links-box ul {
  margin: 0;
  padding-left: 18px;
}

.sp-inline-links-box li,
.sp-official-links-box li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.sp-faq-section {
  margin-top: 32px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
}

.sp-faq-section > h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--theme-primary);
}

.sp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-faq-item {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.sp-faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-faq-item summary::-webkit-details-marker {
  display: none;
}

.sp-faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-secondary);
  flex-shrink: 0;
}

.sp-faq-item[open] summary::after {
  content: "−";
}

.sp-faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.sp-faq-answer p {
  margin: 12px 0 0;
}

.sp-sidebar-box {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-sidebar-box h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sp-border);
  color: var(--theme-primary);
}

.sp-related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-related-item:last-child {
  border-bottom: none;
}

.sp-related-thumb {
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Landing Page About Us, Source, Author Profile & Contact Form */
.sp-trust-section {
  background: #f8fafc;
  border-top: 1px solid var(--sp-border);
  padding: 40px 0;
}

.sp-landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sp-trust-card {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-top: 3px solid var(--theme-primary);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: box-shadow 0.15s ease;
}

.sp-trust-card:hover {
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.08);
}

.sp-trust-card--source {
  border-top-color: #047857;
}

.sp-trust-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sp-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-trust-card--source .sp-trust-icon {
  background: #ecfdf5;
  color: #047857;
}

.sp-trust-card h2 {
  margin: 0;
  font-size: 18px;
  color: var(--theme-primary);
}

.sp-trust-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.sp-trust-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-secondary);
}

.sp-trust-link:hover {
  text-decoration: underline;
}

/* Single Post & Homepage Author Box + Photo */
.sp-byline-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  color: #64748b;
  white-space: nowrap;
}

.sp-byline-row strong {
  color: #0f172a;
  font-weight: 600;
}

.sp-byline-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #cbd5e1;
  display: block;
  flex-shrink: 0;
}

.sp-author-box {
  margin-top: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-left: 4px solid var(--theme-primary);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-author-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.sp-author-photo {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(11, 37, 69, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  flex-shrink: 0;
  display: block;
}

.sp-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(11, 37, 69, 0.14);
}

.sp-author-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sp-author-role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 6px;
  padding: 4px 10px;
}

.sp-author-bio-desktop {
  margin-top: 8px;
}

.sp-author-bio-mobile {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.sp-prev-next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.sp-prev-next-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease;
}

.sp-prev-next-card:hover {
  border-color: var(--theme-secondary);
}

/* Inline Contact Form Box (Landing Page + Bottom of Every Post) */
.sp-post-contact-box {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.sp-post-contact-head {
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-border);
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-post-contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-post-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(217, 4, 41, 0.1);
  color: var(--theme-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-post-contact-email-pill {
  font-size: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 6px;
  padding: 4px 10px;
}

.sp-post-contact-body {
  padding: 20px 22px;
}

.sp-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.sp-contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-contact-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.sp-contact-input,
.sp-contact-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--sp-surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--sp-text);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-contact-input:focus,
.sp-contact-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.sp-contact-input {
  height: 44px;
}

.sp-contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.sp-contact-submit {
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sp-contact-submit:hover {
  background: var(--theme-primary-hover);
}

.sp-contact-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.sp-contact-feedback.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sp-contact-feedback.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Footer */
.sp-footer {
  background: var(--theme-primary);
  color: #cbd5e1;
  border-top: 3px solid var(--theme-accent);
  margin-top: 40px;
  padding: 48px 0 28px;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sp-footer h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 14px;
}

.sp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-footer ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.sp-footer ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.sp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1023px) {
  .sp-nav-list {
    display: none;
  }
  .sp-mobile-strip {
    display: flex;
  }
  .sp-mobile-toggle {
    display: inline-flex;
  }
  .sp-hero-grid,
  .sp-grid-2,
  .sp-article-layout,
  .sp-landing-trust-grid {
    grid-template-columns: 1fr;
  }
  .sp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sp-grid-4,
  .sp-grid-3,
  .sp-footer-grid,
  .sp-prev-next-grid,
  .sp-contact-form-grid {
    grid-template-columns: 1fr;
  }
  .sp-hero-side-card,
  .sp-portal-lead,
  .sp-newsletter-form {
    flex-direction: column;
  }
  .sp-author-box,
  .sp-trust-card,
  .sp-post-contact-head,
  .sp-post-contact-body,
  .sp-faq-section,
  .sp-inline-links-box,
  .sp-official-links-box {
    padding: 16px;
  }
  .sp-faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
  }
  .sp-faq-answer {
    padding: 0 14px 14px;
  }
  .sp-author-top {
    gap: 14px;
    align-items: center;
  }
  .sp-author-photo,
  .sp-author-avatar {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  .sp-author-bio-desktop {
    display: none;
  }
  .sp-author-bio-mobile {
    display: block;
  }
  .sp-contact-input,
  .sp-contact-textarea {
    font-size: 16px;
  }
  .sp-contact-submit {
    width: 100%;
  }
  .sp-hero-side-thumb,
  .sp-portal-lead-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .sp-search-form {
    order: 3;
    min-width: 100%;
  }
}
