/*
Theme Name: ReviewNexa
Theme URI: https://reviewnexa.local
Author: AI Assistant
Author URI: https://reviewnexa.local
Description: A premium, modern, conversion-focused WordPress theme for AI, software & product reviews.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewnexa
*/

:root {
  /* Colors */
  --rn-primary: #6C47FF;
  --rn-primary-hover: #5A3BE0;
  --rn-secondary: #00C2A8;
  --rn-bg-main: #F8F9FC;
  --rn-bg-card: #FFFFFF;
  --rn-text-main: #1A1A2E;
  --rn-text-muted: #6B6B80;
  --rn-border: #E5E7EB;

  /* Status Colors */
  --rn-success: #10B981;
  --rn-danger: #EF4444;
  --rn-warning: #F59E0B;

  /* Typography */
  --rn-font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --rn-container-width: 1200px;
  --rn-border-radius: 12px;
  --rn-transition: all 0.3s ease;
  --rn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --rn-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--rn-font-sans);
  color: var(--rn-text-main);
  background-color: var(--rn-bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  /* Prevent long URLs from breaking the page globally */
  overflow-wrap: break-word;
}

img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rn-primary);
  text-decoration: none;
  transition: var(--rn-transition);
}

a:hover {
  color: var(--rn-primary-hover);
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* Ensure container never touches edge of screen */
}

@media(min-width: 1200px) {
  .container {
    max-width: var(--rn-container-width);
  }
}

@media(max-width: 768px) {
  .container {
    padding: 0 1rem;
    overflow-x: hidden;
    /* Prevent internal block elements from expanding wider than padding */
  }
}

/* Master Layout */
.site-content {
  min-height: calc(100vh - 400px);
  max-width: 100vw;
  overflow-x: hidden;
}

/* AGGRESSIVE MOBILE OVERFLOW RESETS */
@media(max-width: 768px) {

  /* Force the absolute root and body to clip any rogue extending elements */
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
  }

  /* Force all main structural wrappers to fit */
  .site-content,
  .site-main,
  #primary,
  #main,
  article,
  .entry-content,
  .article-content,
  .article-main,
  .review-content-wrap,
  .content-sidebar-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Force all typgraphy to break and wrap rather than overflow */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  span,
  a,
  div {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }

  /* Target specific undocumented Gutenberg classes from live DOM */
  .hero-section,
  .pricing-grid,
  .pricing-card {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

/* Helper Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--rn-border-radius);
  transition: var(--rn-transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--rn-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--rn-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--rn-shadow-md);
}

.btn-secondary {
  background-color: var(--rn-secondary);
  color: #fff;
}

.btn-secondary:hover {
  filter: brightness(1.1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--rn-primary);
  color: var(--rn-primary);
}

.btn-outline:hover {
  background-color: var(--rn-primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header Styles */
.site-header {
  background: var(--rn-bg-card);
  border-bottom: 1px solid var(--rn-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-branding {
  flex: 1;
}

.site-branding .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.site-branding .site-title a {
  color: var(--rn-primary);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--rn-text-main);
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--rn-primary);
}

/* Desktop dropdown submenus */
.main-navigation li {
  position: relative;
}

.main-navigation li.menu-item-has-children>a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 5px;
  vertical-align: middle;
  margin-top: -2px;
}

.main-navigation ul ul {
  visibility: hidden;
  pointer-events: none;
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 220px;
  background: rgba(15, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  /* Adjust positioning to leave a slight gap visually, but bridge it logically */
  margin-top: 15px;
}

/* Invisible bridge to prevent mouse leaving hover area when moving to submenu */
.main-navigation ul ul::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.main-navigation li:hover>ul {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7) !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.main-navigation ul ul a:hover {
  background: rgba(108, 71, 255, 0.1);
  color: #fff !important;
  padding-left: 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rn-border);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   Dark Header Mode (Front Page)
   ========================================================================== */
.site-header.header-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

/* On the front page, start transparent over the hero */
.home .site-header.header-dark {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home .site-header.header-dark.scrolled {
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Push page content below the fixed header */

/* Dark body on specific pages to match the dark theme components */
body.home,
body.blog,
body.archive,
body.search,
body.page-template-page-blog {
  background-color: #0f0f1a;
  color: #fff;
}

.header-dark .site-branding .site-title a,
.header-dark .main-navigation a,
.header-dark .menu-toggle {
  color: #fff;
}

.header-dark .main-navigation a:hover {
  color: #a78bfa;
}

.header-dark .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Logo keeps original colors on dark header */

/* ==========================================================================
   Live Search
   ========================================================================== */
.rn-search {
  position: relative;
  margin-left: 1rem;
}

.rn-search__trigger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rn-search__trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rn-search__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  background: rgba(20, 20, 35, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 9999;
  overflow: hidden;
}

.rn-search.is-open .rn-search__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rn-search__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rn-search__input-wrap svg {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.rn-search__input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--rn-font-sans);
}

.rn-search__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Results */
.rn-search__results {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.rn-search__results.has-results {
  max-height: 360px;
}

.rn-search__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rn-search__item:last-child {
  border-bottom: none;
}

.rn-search__item:hover {
  background: rgba(108, 71, 255, 0.08);
}

.rn-search__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}

.rn-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rn-search__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.rn-search__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rn-search__score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.rn-search__loading,
.rn-search__empty {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .rn-search__dropdown {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.rn-hero {
  position: relative;
  padding: 10rem 0 6rem;
  background: #0f0f1a;
  overflow: hidden;
  text-align: center;
}

/* Dot pattern */
.rn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(108, 71, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Floating orbs */
.rn-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rn-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.rn-hero__orb--1 {
  width: 500px;
  height: 500px;
  background: #6C47FF;
  top: -200px;
  left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.rn-hero__orb--2 {
  width: 400px;
  height: 400px;
  background: #e11d48;
  bottom: -150px;
  right: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.rn-hero__orb--3 {
  width: 300px;
  height: 300px;
  background: #0ea5e9;
  top: 50%;
  left: 60%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.rn-hero__inner {
  position: relative;
  z-index: 2;
}

.rn-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.rn-gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #6C47FF 30%, #38bdf8 70%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rn-hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* CTA Buttons */
.rn-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.rn-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.rn-hero__btn--primary {
  background: linear-gradient(135deg, #6C47FF 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 71, 255, 0.4);
}

.rn-hero__btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.rn-hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108, 71, 255, 0.6);
  color: #fff;
}

.rn-hero__btn--primary:hover::before {
  left: 150%;
}

.rn-hero__btn--primary svg {
  transition: transform 0.3s ease;
}

.rn-hero__btn--primary:hover svg {
  transform: translateX(3px);
}

.rn-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.rn-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Trust badges */
.rn-hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.rn-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  font-weight: 500;
}

.rn-trust-item svg {
  color: #a78bfa;
  flex-shrink: 0;
}

/* ==========================================================================
   Shared Section Styles
   ========================================================================== */
.rn-section {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.rn-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(108, 71, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.rn-section--featured {
  background: #13131f;
}

.rn-section--comparison {
  background: #0f0f1a;
}

.rn-section--latest {
  background: #13131f;
}

.rn-section__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.rn-section__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}

.rn-section__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.rn-section__cta-wrap {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.rn-empty {
  text-align: center;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

/* ==========================================================================
   Dark Review Cards
   ========================================================================== */
.rn-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.rn-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.rn-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(108, 71, 255, 0.15);
  border-color: rgba(108, 71, 255, 0.2);
}

.rn-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.rn-card__img a {
  display: block;
  width: 100%;
  height: 100%;
}

.rn-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rn-card:hover .rn-card__img img {
  transform: scale(1.06);
}

.rn-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}

.rn-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rn-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rn-card__score {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.rn-card__stars {
  color: #fbbf24;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.rn-card__badge {
  background: rgba(108, 71, 255, 0.15);
  color: #a78bfa;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.rn-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.rn-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rn-card:hover .rn-card__title a {
  color: #a78bfa;
}

.rn-card__excerpt {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  flex: 1;
}

.rn-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #6C47FF 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.rn-card__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.rn-card:hover .rn-card__btn::before {
  left: 150%;
}

.rn-card__btn svg {
  transition: transform 0.3s ease;
}

.rn-card:hover .rn-card__btn svg {
  transform: translateX(3px);
}

.rn-card__btn:hover {
  box-shadow: 0 8px 25px rgba(108, 71, 255, 0.4);
  color: #fff;
}

/* ==========================================================================
   Dark Comparison Table
   ========================================================================== */
.rn-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.rn-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rn-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rn-table th {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.rn-table td {
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.rn-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
}

.rn-table tbody tr:last-child {
  border-bottom: none;
}

.rn-table tbody tr:hover {
  background: rgba(108, 71, 255, 0.05);
}

.rn-table__tool {
  font-weight: 700;
  color: #fff !important;
}

.rn-table__muted {
  color: rgba(255, 255, 255, 0.4) !important;
}

.rn-table__rating-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rn-table__rating-cell .rn-star-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #fbbf24;
}

.rn-table__rating-cell .rn-star-rating svg {
  width: 16px;
  height: 16px;
}

.rn-table__rating {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.rn-table__cta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 140px;
}

.rn-table__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #ff6b00, #e63946);
  color: #fff;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.rn-table__cta-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.rn-table__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rn-table__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Responsive for review cards and table */
@media (max-width: 768px) {
  .rn-hero__title {
    font-size: 2.25rem;
  }

  .rn-hero {
    padding: 6rem 0 4rem;
  }

  .rn-hero__trust {
    gap: 1.25rem;
    flex-direction: column;
  }

  .rn-section {
    padding: 3.5rem 0 4rem;
  }

  .rn-section__title {
    font-size: 1.75rem;
  }

  .rn-review-grid {
    grid-template-columns: 1fr;
  }

  .rn-table-wrap {
    border-radius: 14px;
    overflow: hidden;
  }

  .rn-table,
  .rn-table thead,
  .rn-table tbody {
    display: block;
    width: 100%;
  }

  .rn-table thead {
    display: none;
  }

  .rn-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.6rem;
  }

  .rn-table tbody tr:last-child {
    border-bottom: none;
  }

  .rn-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .rn-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
    flex-shrink: 0;
  }

  .rn-table__tool {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .rn-table__rating-cell {
    flex-wrap: wrap;
    gap: 0.35rem !important;
    justify-content: flex-end !important;
  }

  .rn-table__rating-cell .rn-star-rating svg {
    width: 14px !important;
    height: 14px !important;
  }

  .rn-table__cta-cell {
    flex-direction: row !important;
    gap: 0.5rem;
    padding-top: 0.5rem !important;
    justify-content: stretch !important;
  }

  .rn-table__cta-cell::before {
    display: none !important;
  }

  .rn-table__cta-primary,
  .rn-table__cta-secondary {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Footer Styles */
.site-footer {
  background: #0f0f1a;
  color: #fff;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-widget-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  max-height: 45px;
  width: auto;
}

.footer-title {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
}

.footer-desc {
  color: #A0A0AB;
  font-size: 0.875rem;
}

.widget-title {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #A0A0AB;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--rn-secondary);
}

/* MailerLite form dark theme overrides */
.newsletter-col .ml-form-embedWrapper {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.newsletter-col .ml-form-embedBody {
  padding: 0 !important;
}

.newsletter-col .ml-form-embedContent {
  display: none !important;
}

.newsletter-col .ml-form-fieldRow input[type="email"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  transition: border-color 0.3s ease !important;
}

.newsletter-col .ml-form-fieldRow input[type="email"]:focus {
  border-color: rgba(108, 71, 255, 0.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.15) !important;
}

.newsletter-col .ml-form-fieldRow input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

.newsletter-col .ml-form-embedSubmit button {
  background: linear-gradient(135deg, #6C47FF, #3b82f6) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  margin-top: 0.5rem;
}

.newsletter-col .ml-form-embedSubmit button:hover {
  box-shadow: 0 6px 20px rgba(108, 71, 255, 0.4) !important;
  transform: translateY(-1px);
}

.newsletter-col .ml-form-successContent h4 {
  color: #fff !important;
  font-size: 1.1rem !important;
}

.newsletter-col .ml-form-successContent p {
  color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter-col .ml-form-checkboxRow .label-description,
.newsletter-col .ml-form-checkboxRow label p {
  color: rgba(255, 255, 255, 0.4) !important;
}

.newsletter-col .ml-form-checkboxRow label a {
  color: rgba(255, 255, 255, 0.6) !important;
}

.site-info {
  border-top: 1px solid #2D2D42;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #A0A0AB;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.copyright a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: #A0A0AB;
  margin-left: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

.footer-links ul li a {
  color: #A0A0AB;
  margin-left: 1rem;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .site-info {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    margin: 0 0.5rem;
  }

  .site-header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .site-branding {
    flex: 1;
    min-width: 0;
  }

  .main-navigation {
    position: static;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9998;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation ul li {
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .main-navigation ul li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
  }

  .main-navigation ul li a:hover {
    background: rgba(108, 71, 255, 0.08);
    color: #a78bfa !important;
  }

  /* Mobile submenus */
  .main-navigation li.menu-item-has-children>a::after {
    display: none !important;
  }

  .main-navigation ul ul {
    display: none !important;
    position: static !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .main-navigation li:hover>ul {
    display: none !important;
  }

  .main-navigation li.menu-item-has-children.toggled-submenu>ul {
    display: flex !important;
    flex-direction: column !important;
  }

  .main-navigation ul ul a {
    padding-left: 2.5rem !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  .main-navigation ul ul a:hover {
    padding-left: 2.75rem !important;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff !important;
    padding: 0.5rem;
  }

  .rn-search__dropdown {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* Component animations & Related Article Cards */
.review-card {
  background: var(--rn-bg-card);
  border-radius: var(--rn-border-radius);
  border: 1px solid var(--rn-border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--rn-shadow-lg) !important;
  border-color: rgba(108, 71, 255, 0.3);
}

.review-card .card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.review-card:hover img {
  transform: scale(1.05);
}

/* Sidebar & Layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 100%;
}

@media(max-width: 991px) {
  .content-sidebar-wrap {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .review-content-wrap {
    flex-direction: column-reverse;
    max-width: 100%;
    box-sizing: border-box;
  }
}

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

.widget-area .widget {
  background: var(--rn-bg-card);
  padding: 2rem;
  border-radius: var(--rn-border-radius);
  border: 1px solid var(--rn-border);
  margin-bottom: 2rem;
  box-shadow: var(--rn-shadow-sm);
}

.widget-area .widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rn-bg-main);
  color: var(--rn-text-main);
}

.widget-area .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-area .widget ul li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  transition: var(--rn-transition);
}

.widget-area .widget ul li::before {
  content: '→';
  color: var(--rn-primary);
  opacity: 0;
  margin-right: 0;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  width: 0;
  overflow: hidden;
}

.widget-area .widget ul li:hover::before {
  opacity: 1;
  width: 16px;
  margin-right: 8px;
}

.widget-area .widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget-area .widget ul li a {
  color: var(--rn-text-muted);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  transition: var(--rn-transition);
}

.widget-area .widget ul li a:hover {
  color: var(--rn-text-main);
}


/* Search Widget Style Override */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget_search .search-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-border-radius);
  outline: none;
  font-family: inherit;
  transition: var(--rn-transition);
}

.widget_search .search-field:focus {
  border-color: var(--rn-primary);
}

.widget_search .search-submit {
  display: none;
}

/* ==========================================================================
   Premium Single Article & Review Styles
   ========================================================================== */

/* Typography & Content Spacing */
.article-main {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin: 3rem 0 1.25rem;
  color: var(--rn-text-main);
  letter-spacing: -0.025em;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--rn-text-main);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

/* Ensure images don't overflow */
.article-content img {
  max-width: 100%;
  height: auto;
}

/* Prevent long unbroken URLs or text from stretching the mobile screen */
.article-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive Gutenberg Tables */
.article-content .wp-block-table,
.article-content table {
  width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

.article-content table td,
.article-content table th {
  min-width: 120px;
}

.article-content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--rn-primary);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  color: var(--rn-text-main);
  background: rgba(108, 71, 255, 0.03);
  padding: 1.5rem;
  border-radius: 0 var(--rn-border-radius) var(--rn-border-radius) 0;
}

/* Premium Article Header */
.article-header {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media(max-width: 768px) {
  .article-header {
    max-width: 100%;
    padding: 0 1rem;
  }
}

.article-category a {
  display: inline-block;
  background: rgba(108, 71, 255, 0.1);
  color: var(--rn-primary);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--rn-text-main);
  word-wrap: break-word;
  /* Ensure extremely long unbroken words wrap on mobile */
}

.article-meta-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rn-border);
}

.article-meta-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--rn-text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.meta-author {
  font-weight: 600;
  color: var(--rn-text-main);
  transition: color 0.2s ease;
}

.meta-author:hover {
  color: var(--rn-primary);
}

.meta-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--rn-border);
}

.meta-read-time svg,
.meta-updated svg {
  color: var(--rn-text-muted);
  opacity: 0.7;
}

.meta-updated {
  color: var(--rn-primary);
  font-weight: 500;
}

.meta-dot {
  color: var(--rn-text-muted);
  opacity: 0.4;
  font-size: 1rem;
  line-height: 1;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.navigation.pagination {
  margin: 2rem 0 3rem;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rn-text-main);
  background: var(--rn-bg-card);
  border: 1px solid var(--rn-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.navigation.pagination .page-numbers:hover {
  background: var(--rn-primary);
  color: #fff;
  border-color: var(--rn-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 71, 255, 0.25);
}

.navigation.pagination .page-numbers.current {
  background: var(--rn-primary);
  color: #fff;
  border-color: var(--rn-primary);
  box-shadow: 0 4px 15px rgba(108, 71, 255, 0.3);
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0;
  pointer-events: none;
  color: var(--rn-text-muted);
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  background: transparent;
  border-color: var(--rn-border);
}

.navigation.pagination .page-numbers.prev:hover,
.navigation.pagination .page-numbers.next:hover {
  background: var(--rn-primary);
  border-color: var(--rn-primary);
  color: #fff;
}

.navigation.pagination .page-numbers svg {
  display: block;
}

/* Featured Image */
.article-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--rn-border-radius);
  overflow: hidden;
  box-shadow: var(--rn-shadow-lg);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.article-featured-image:hover img {
  transform: scale(1.02);
}

/* Review Hero Section (For single-review.php) */
.review-page-hero {
  background: linear-gradient(to bottom, #FFFFFF, var(--rn-bg-main));
  padding: 0 0 4rem;
  padding-top: 4rem;
  border-bottom: 1px solid var(--rn-border);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

@media(max-width: 768px) {
  .review-page-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 1rem;
    width: 100%;
  }
}

/* Ensure content sidebar wrap has horizontal padding */
.content-sidebar-wrap {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-container {
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media(max-width: 768px) {
  .hero-container {
    gap: 2rem;
  }
}

@media(min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--rn-primary);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  color: var(--rn-text-main);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media(max-width: 768px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
}

.hero-score-stamp {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--rn-border-radius);
  box-shadow: var(--rn-shadow-md);
  border: 1px solid var(--rn-border);
}

@media(max-width: 480px) {
  .hero-score-stamp {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    text-align: center;
  }
}

.score-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--rn-success);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 800;
}

.score-text .stars {
  display: flex;
  align-items: center;
}

/* SVG Star Rating UI */
.rn-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rn-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rn-star.full svg,
.rn-star.half svg {
  color: var(--rn-warning);
  fill: var(--rn-warning);
}

.rn-star.empty svg {
  color: #CBD5E1;
  /* Muted gray for empty stars */
}

.score-text .verdict-label {
  font-size: 0.875rem;
  color: var(--rn-text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.hero-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-placeholder {
  background: #e2e8f0;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.25rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Premium Conversion & UI Components (Badges, CTAs, Review Box)
   ========================================================================== */

/* 1. Rating Badge System */
.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--rn-shadow-sm);
}

.rn-badge-icon {
  display: flex;
  align-items: center;
}

.rn-badge-editors {
  background: var(--rn-primary);
  color: #fff;
}

.rn-badge-value {
  background: var(--rn-success);
  color: #fff;
}

.rn-badge-top {
  background: var(--rn-warning);
  color: #fff;
}

/* 2. High-Conversion Review Box (Premium Redesign) */
.rn-review-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  margin: 4rem 0;
  overflow: hidden;
  position: relative;
}

/* Top accent bar */
.rn-review-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--rn-primary), var(--rn-secondary), var(--rn-primary));
  background-size: 200% auto;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.rn-review-header {
  padding: 3rem 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

@media(max-width: 768px) {
  .rn-review-header {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }
}

.rn-review-title-wrap {
  flex: 1;
}

.rn-review-product {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media(max-width: 768px) {
  .rn-review-product {
    font-size: 2rem;
  }
}

.rn-review-score-wrap {
  background: var(--rn-primary);
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: 20px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 15px 30px -10px rgba(108, 71, 255, 0.5);
  transform: translateY(-5px);
}

@media(max-width: 768px) {
  .rn-review-score-wrap {
    width: 100%;
    transform: none;
    padding: 1rem;
  }
}

.rn-review-score-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.rn-review-score-max {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rn-review-verdict {
  padding: 2rem 3rem;
  font-size: 1.125rem;
  color: var(--rn-text-main);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  line-height: 1.7;
}

.rn-review-verdict strong {
  color: var(--rn-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rn-review-best-for {
  padding: 1.5rem 3rem;
  font-size: 1rem;
  color: var(--rn-text-main);
  background: rgba(108, 71, 255, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
}

@media(max-width: 768px) {
  .rn-review-verdict {
    padding: 1.5rem;
  }

  .rn-review-best-for {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.best-for-label {
  font-weight: 800;
  color: var(--rn-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-right: 0.75rem;
  background: rgba(108, 71, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.rn-review-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  padding: 3rem;
  gap: 2rem;
  background: #ffffff;
}

@media(max-width: 768px) {
  .rn-review-pros-cons {
    padding: 1.5rem;
  }
}

@media(min-width: 768px) {
  .rn-review-pros-cons {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.rn-pro-col {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 20px;
  padding: 2.5rem;
}

@media(max-width: 768px) {

  .rn-pro-col,
  .rn-con-col {
    padding: 1.5rem;
  }
}

.rn-con-col {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 20px;
  padding: 2.5rem;
}

.rn-pc-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.rn-pro-col .rn-pc-title {
  color: #166534;
  border-bottom: 2px solid #bbf7d0;
}

.rn-con-col .rn-pc-title {
  color: #991b1b;
  border-bottom: 2px solid #fecaca;
}

.rn-pc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rn-pc-list li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
}

.rn-pc-list li:last-child {
  margin-bottom: 0;
}

.rn-pro-list li {
  color: #15803d;
}

.rn-pro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -2px;
  color: #22c55e;
  font-weight: 900;
  font-size: 1.25rem;
}

.rn-con-list li {
  color: #b91c1c;
}

.rn-con-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: #ef4444;
  font-weight: 800;
  font-size: 1rem;
}

.rn-review-cta-wrap {
  padding: 3rem;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

@media(max-width: 768px) {
  .rn-review-cta-wrap {
    padding: 1.5rem;
  }
}

.rn-review-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  padding: 1.125rem 2.5rem;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, var(--rn-primary) 0%, #3b82f6 100%);
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(108, 71, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
}

.rn-review-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.rn-review-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(108, 71, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--rn-primary) 0%, #2563eb 100%);
}

.rn-review-cta-btn:hover::before {
  left: 150%;
}

.rn-review-cta-btn .cta-arrow {
  transition: transform 0.3s ease;
}

.rn-review-cta-btn:hover .cta-arrow {
  transform: translateX(6px);
}

/* 3. CTA Conversion Blocks */

/* Primary CTA */
.rn-cta-primary {
  background: var(--rn-primary);
  color: #fff;
  padding: 3rem;
  border-radius: var(--rn-border-radius);
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--rn-shadow-lg);
  position: relative;
  overflow: hidden;
}

.rn-cta-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.rn-cta-primary .rn-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.rn-cta-primary .rn-cta-text {
  margin: 0;
  font-size: 1.125rem;
  opacity: 0.9;
}

.rn-cta-primary .btn {
  background: #fff;
  color: var(--rn-primary);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  white-space: nowrap;
}

.rn-cta-primary .btn:hover {
  background: var(--rn-bg-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Inline CTA */
.rn-cta-inline {
  background: rgba(108, 71, 255, 0.05);
  border: 1px solid rgba(108, 71, 255, 0.2);
  border-left: 4px solid var(--rn-primary);
  padding: 1.5rem 2rem;
  border-radius: var(--rn-border-radius);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.rn-cta-inline .rn-cta-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--rn-text-main);
}

/* Soft CTA */
.rn-cta-soft {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--rn-bg-card);
  border: 1px solid var(--rn-border);
  padding: 1.5rem;
  border-radius: var(--rn-border-radius);
  margin: 2rem 0;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--rn-shadow-sm);
  transition: var(--rn-transition);
}

.rn-cta-soft:hover {
  box-shadow: var(--rn-shadow-md);
  border-color: var(--rn-primary);
  transform: translateY(-2px);
}

.rn-cta-soft-icon {
  font-size: 2rem;
  background: rgba(108, 71, 255, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.rn-cta-soft .rn-cta-content {
  flex: 1;
}

.rn-cta-soft .rn-cta-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rn-text-main);
}

.rn-cta-soft .rn-cta-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rn-text-muted);
}

.rn-cta-arrow {
  color: var(--rn-primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.rn-cta-soft:hover .rn-cta-arrow {
  transform: translateX(5px);
}

/* Sidebar CTA Block */
.sticky-cta-block {
  background: var(--rn-bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--rn-border-radius);
  border: 1px solid var(--rn-border);
  box-shadow: var(--rn-shadow-md);
  text-align: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 100px;
}

.sticky-cta-block h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.cta-btn {
  width: 100%;
  font-size: 1.125rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--rn-text-muted);
  margin: 0;
}

/* Related Articles Component */
.related-articles-section {
  background: var(--rn-bg-card);
  padding: 5rem 0;
  border-top: 1px solid var(--rn-border);
  margin-top: 4rem;
}

.related-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--rn-text-main);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.related-card {
  background: var(--rn-bg-main);
  border-radius: var(--rn-border-radius);
  overflow: hidden;
  border: 1px solid var(--rn-border);
  transition: var(--rn-transition);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rn-shadow-lg);
  border-color: rgba(108, 71, 255, 0.3);
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e2e8f0;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.fallback-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 1.25rem;
}

.related-card-content {
  padding: 1.5rem;
}

.related-card-rating {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rn-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-icon {
  color: var(--rn-warning);
}

.related-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--rn-text-main);
  transition: color 0.3s ease;
}

.related-card:hover .related-card-title {
  color: var(--rn-primary);
}

.related-card-meta {
  font-size: 0.875rem;
  color: var(--rn-text-muted);
}

/* Comments Section - Modern UI */
.comments-area {
  margin-top: 4rem;
  border-top: 1px solid var(--rn-border);
  padding-top: 4rem !important;
}

.comments-title,
.comment-reply-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--rn-text-main);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4rem 0;
}

.comment-list li.comment {
  background: var(--rn-bg-card);
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--rn-shadow-sm);
}

.comment-list li.comment .comment-body {
  display: flex;
  flex-direction: column;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 700;
  font-style: normal;
  font-size: 1.125rem;
}

.comment-metadata a {
  color: var(--rn-text-muted);
  font-size: 0.875rem;
}

.comment-content p {
  margin-bottom: 1rem;
  color: #334155;
}

.reply a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rn-primary);
  background: rgba(108, 71, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.reply a:hover {
  background: var(--rn-primary);
  color: #fff;
}

/* Comment Form */
.comment-respond {
  background: var(--rn-bg-main);
  padding: 2.5rem;
  border-radius: var(--rn-border-radius);
  border: 1px solid var(--rn-border);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rn-text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--rn-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--rn-text-main);
  transition: var(--rn-transition);
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--rn-primary);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.1);
}

.form-submit {
  margin-top: 2rem;
  margin-bottom: 0;
}

.form-submit .submit {
  width: 100%;
  font-size: 1.125rem;
  padding: 1rem;
}

@media(min-width: 768px) {
  .form-submit .submit {
    width: auto;
    padding: 1rem 3rem;
  }
}

/* Base Body Resets for Rogue Gutenberg Layouts */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Product Highlight Widget — Premium Dark */
.widget-area .sidebar-product-highlight {
  position: relative;
  background: rgba(15, 15, 26, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sidebar-product-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(108, 71, 255, 0.15);
}

/* Animated gradient accent line */
.sph-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c47ff, #00c2a8, #6c47ff);
  background-size: 200% 100%;
  z-index: 1;
  animation: sph-glow-rotate 3s linear infinite;
}

@keyframes sph-glow-rotate {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.sidebar-product-highlight:hover .sph-glow {
  height: 4px;
}

/* Header */
.sph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sph-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
}

.sph-score-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
}

.sph-score-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

/* Image */
.sph-image-link {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0a14;
}

.sph-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sidebar-product-highlight:hover .sph-image {
  transform: scale(1.08);
}

.sph-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.7) 0%, transparent 50%);
  pointer-events: none;
}

.sph-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Body */
.sph-body {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.sph-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.sph-title a {
  color: #fff;
  text-decoration: none;
}

.sph-title a:hover {
  color: #a78bfa;
}

.sph-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.sph-stars-row .rn-star-rating {
  color: #f59e0b;
}

.sph-views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.sph-views svg {
  color: rgba(255, 255, 255, 0.3);
}

/* CTA Button */
.sph-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6c47ff, #8b5cf6);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sph-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.sph-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 71, 255, 0.35);
  color: #fff;
}

.sph-btn:hover::before {
  left: 100%;
}

.sph-btn svg {
  transition: transform 0.3s ease;
}

.sph-btn:hover svg {
  transform: translateX(4px);
}

/* Base WordPress Block Resets */
@media(max-width: 768px) {
  .wp-block-columns {
    display: block !important;
    width: 100% !important;
  }

  .wp-block-column {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem;
  }

  /* Force all editor blocks into viewport constraints */
  .wp-block-group,
  .wp-block-cover,
  .wp-block-table,
  .wp-block-table table,
  table,
  .comparison-table {
    display: block !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    /* Allow internal scrolling if data absolutely won't fit */
  }

  /* Fix Pricing Grids and Flex Rows */
  .pricing-grid,
  .rn-pricing-grid,
  .rn-quick-features-grid,
  .wp-block-group.is-layout-flex {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ==========================================================================
   Browse by Category – Bold Gradient Cards
   ========================================================================== */

.section-categories {
  padding: 5rem 0 6rem;
  background: #0f0f1a;
  position: relative;
  overflow: hidden;
}

/* Subtle background dots pattern */
.section-categories::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(108, 71, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.section-categories__header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a78bfa;
  background: rgba(108, 71, 255, 0.15);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(108, 71, 255, 0.25);
}

.section-categories__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-categories__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid – bento style: first card spans 2 cols */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.category-card:first-child {
  grid-column: span 2;
}

/* ── Card core ── */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  min-height: 220px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Glow orb – floats in background */
.category-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  top: -30px;
  right: -30px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.category-card:hover .category-card__glow {
  opacity: 0.75;
  transform: scale(1.3);
}

/* Content layer */
.category-card__content {
  position: relative;
  z-index: 2;
}

/* Icon */
.category-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: transform 0.35s ease, background 0.35s ease;
}

.category-card:hover .category-card__icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(255, 255, 255, 0.25);
}

/* Name */
.category-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

/* Description */
.category-card__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Explore CTA */
.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.category-card__cta svg {
  transition: transform 0.3s ease;
}

.category-card:hover .category-card__cta {
  color: #fff;
}

.category-card:hover .category-card__cta svg {
  transform: translateX(4px);
}

/* Shimmer on hover */
.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.category-card:hover::after {
  left: 150%;
}

/* ══════════════════════════════════════
   Per-card gradient themes
   ══════════════════════════════════════ */

/* Writing – Deep Violet to Indigo */
.category-card--writing {
  background: linear-gradient(135deg, #4c1d95 0%, #6C47FF 50%, #818cf8 100%);
  box-shadow: 0 8px 32px rgba(108, 71, 255, 0.3);
}

.category-card--writing:hover {
  box-shadow: 0 20px 50px rgba(108, 71, 255, 0.5);
}

.category-card--writing .category-card__glow {
  background: #a78bfa;
}

/* Video – Crimson to Rose */
.category-card--video {
  background: linear-gradient(135deg, #9f1239 0%, #e11d48 50%, #fb7185 100%);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.3);
}

.category-card--video:hover {
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.5);
}

.category-card--video .category-card__glow {
  background: #fda4af;
}

/* Automation – Ocean Blue to Cyan */
.category-card--automation {
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #38bdf8 100%);
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.3);
}

.category-card--automation:hover {
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.5);
}

.category-card--automation .category-card__glow {
  background: #7dd3fc;
}

/* Finance – Emerald to Teal */
.category-card--finance {
  background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #34d399 100%);
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.category-card--finance:hover {
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.5);
}

.category-card--finance .category-card__glow {
  background: #6ee7b7;
}

/* Digital – Warm Amber to Gold */
.category-card--digital {
  background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #fbbf24 100%);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.3);
}

.category-card--digital:hover {
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.5);
}

.category-card--digital .category-card__glow {
  background: #fcd34d;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .section-categories {
    padding: 3.5rem 0 4rem;
  }

  .section-categories__title {
    font-size: 1.75rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card:first-child {
    grid-column: span 1;
  }

  .category-card {
    min-height: 180px;
    padding: 1.5rem;
  }
}

/* =========================================================================
   Blog Page Template
   ========================================================================= */
.rn-blog-hero {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  padding: 7rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rn-blog-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rn-blog-hero .container {
  position: relative;
  z-index: 1;
}

.rn-blog-hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}

.rn-blog-hero__subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Grid */
.rn-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Blog Card */
.rn-blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.rn-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 71, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.rn-blog-card__thumb {
  display: block;
  height: 200px;
  overflow: hidden;
}

.rn-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rn-blog-card:hover .rn-blog-card__thumb img {
  transform: scale(1.05);
}

.rn-blog-card__body {
  padding: 1.5rem;
}

.rn-blog-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.08), rgba(59, 130, 246, 0.08));
  color: rgba(255, 255, 255, 0.15);
}

/* Category Badge */
.rn-blog-cat {
  display: inline-block;
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.15), rgba(59, 130, 246, 0.15));
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rn-blog-cat:hover {
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.3), rgba(59, 130, 246, 0.3));
  color: #c4b5fd;
}

/* Card Title */
.rn-blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

.rn-blog-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rn-blog-card__title a:hover {
  color: #a78bfa;
}

/* Card Excerpt */
.rn-blog-card__excerpt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* Card Meta / Footer */
.rn-blog-card__meta,
.rn-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rn-blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rn-blog-card__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.rn-blog-card__author span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.rn-blog-card__date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .rn-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rn-blog-hero {
    padding: 5.5rem 0 2.5rem;
  }

  .rn-blog-hero__title {
    font-size: 2rem;
  }

  .rn-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .rn-blog-card__thumb {
    height: 180px;
  }
}