/*
Theme Name: SEO Tools Hub
Theme URI: https://seotoolshub.xyz
Author: SEO Tools Hub
Author URI: https://seotoolshub.xyz
Description: A professional, modern WordPress theme designed specifically for SEO Tools Hub. Features a clean layout optimized for AI Tools, Email Marketing, Reviews, and SEO content categories. Includes custom page templates for About, Contact, Privacy, and RSS Feed pages. Fully responsive and SEO-optimized with Schema markup, fast loading, and accessibility best practices.
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seotoolshub
Tags: blog, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, custom-background, custom-logo, custom-header, full-width-template, theme-options, seo-friendly, responsive-layout
*/

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-light: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-gray: #F1F5F9;
  --border-color: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1280px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.2rem;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo .site-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.site-logo .site-name span {
  color: var(--accent);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--primary);
  background: #EFF6FF;
}

/* Dropdown */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 100;
}

.main-navigation li:hover > .sub-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

.main-navigation .sub-menu a {
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  background: var(--bg-gray);
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-body);
  transition: var(--transition);
}

.header-search-btn:hover {
  background: #E2E8F0;
  color: var(--text-dark);
}

.header-search-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Hero / Featured Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-section h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-search {
  display: flex;
  max-width: 520px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 1rem;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-search button {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.hero-search button:hover {
  background: #F0F9FF;
  transform: translateY(-1px);
}

/* ============================================
   Category Navigation Bar
   ============================================ */
.category-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
}

.category-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #EFF6FF;
}

.category-nav a svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Post Cards
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .post-card-featured {
    grid-template-columns: 1fr;
  }
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-gray);
}

.post-card-featured .post-card-thumb {
  aspect-ratio: auto;
  min-height: 320px;
}

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

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

.post-card-thumb .category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-thumb .category-badge.cat-ai-tools { background: #7C3AED; }
.post-card-thumb .category-badge.cat-email-marketing { background: #059669; }
.post-card-thumb .category-badge.cat-review { background: #D97706; }
.post-card-thumb .category-badge.cat-seo { background: #1E40AF; }

.post-card-body {
  padding: 22px;
}

.post-card-featured .post-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.post-card-meta a {
  color: var(--text-light);
}

.post-card-meta a:hover {
  color: var(--primary);
}

.post-card-meta .meta-sep {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-card-featured .post-card-title {
  font-size: 1.6rem;
}

.post-card-title a {
  color: var(--text-dark);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  gap: 10px;
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

/* Post Rating (for review posts) */
.post-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-rating .star {
  color: #F59E0B;
  font-size: 0.85rem;
}

.post-rating .star.empty {
  color: #D1D5DB;
}

.post-rating .rating-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-left: 4px;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.widget_search .search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.widget_search input[type="search"] {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}

.widget_search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.widget_search button:hover {
  background: var(--primary-dark);
}

.widget_search button svg {
  width: 18px;
  height: 18px;
}

/* Categories Widget */
.widget_categories ul li {
  border-bottom: 1px solid var(--border-color);
}

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

.widget_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--text-body);
  font-size: 0.92rem;
}

.widget_categories ul li a:hover {
  color: var(--primary);
}

.widget_categories .count {
  background: var(--bg-gray);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.widget_recent_entries ul li a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.widget_recent_entries ul li a:hover {
  color: var(--primary);
}

.widget_recent_entries .post-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #1E3A8A, #7C3AED);
  color: #fff;
  border: none;
}

.newsletter-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--font-body);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-form button:hover {
  background: #F0F9FF;
  transform: translateY(-1px);
}

/* Tags Widget */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagcloud a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-gray);
  color: var(--text-body);
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

/* ============================================
   Single Post
   ============================================ */
.single-post-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #4F46E5 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.single-post-header .category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.single-post-header h1 {
  color: #fff;
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.3;
}

.single-post-header .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.single-post-header .post-meta a {
  color: rgba(255,255,255,0.75);
}

.single-post-header .post-meta a:hover {
  color: #fff;
}

.single-post-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: -30px auto 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
}

.single-post-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-gray);
}

.single-post-content h3 {
  margin: 1.8rem 0 0.8rem;
  font-size: 1.3rem;
}

.single-post-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.single-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }

.single-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 2rem 0;
  background: #EFF6FF;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

.single-post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.single-post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.single-post-content code {
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.single-post-content pre code {
  background: none;
  padding: 0;
}

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 32px;
}

.post-tags .tags-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-gray);
  color: var(--text-body);
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.post-navigation a {
  display: block;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.post-navigation a:hover {
  background: #EFF6FF;
  transform: translateY(-2px);
}

.post-navigation .nav-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Comments */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.comment-list {
  margin-bottom: 30px;
}

.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.comment .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-gray);
  flex-shrink: 0;
}

.comment .comment-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.comment .comment-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-left: 8px;
}

.comment .comment-content {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Comment Form */
.comment-respond {
  background: var(--bg-gray);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.comment-respond h3 {
  margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  width: auto;
}

.comment-form .submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ============================================
   Page Templates
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-header .breadcrumb {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a:hover {
  color: #fff;
}

.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content-wrap h2 {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}

.page-content-wrap h3 {
  margin: 1.5rem 0 0.8rem;
}

.page-content-wrap p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.page-content-wrap li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.page-content-wrap ul { list-style: disc; }
.page-content-wrap ol { list-style: decimal; }

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.contact-form .submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Contact Info Cards */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .contact-info-cards {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-info-card .icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 30px 0;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-body);
  transition: var(--transition);
}

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

.pagination .page-numbers.dots {
  border: none;
  color: var(--text-light);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.error-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--text-body);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.error-404 .btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.error-404 .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* ============================================
   Search Page
   ============================================ */
.search-results-header {
  text-align: center;
  padding: 40px 0 20px;
}

.search-results-header h1 {
  margin-bottom: 8px;
}

.search-results-header p {
  color: var(--text-light);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

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

  .main-navigation a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }

  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .single-post-content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .hero-search button {
    border-radius: var(--radius-md);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   V2 POWER UI POLISH
   ============================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #0f172a;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --text-dark: #0f172a;
  --text-body: #475569;
  --bg-light: #f7f9fc;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
}
body { background: #f8fafc; }
.site-header { box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 8px 30px rgba(15,23,42,.04); }
.site-logo img { height: 46px; width: auto; }
.site-logo a { min-width: 180px; }
.main-navigation a { font-weight: 600; }
.hero-section { background: radial-gradient(circle at 85% 20%, rgba(6,182,212,.25), transparent 32%), linear-gradient(135deg,#0f172a 0%,#172554 55%,#1d4ed8 100%); }
.post-card { box-shadow: 0 6px 24px rgba(15,23,42,.05); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(15,23,42,.12); }
.btn-primary, .hero-search button { box-shadow: 0 8px 18px rgba(37,99,235,.22); }
@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .header-inner { height: 64px; }
  .site-logo img { height: 40px; }
}


/* =========================================================
 * V4 POWER MOBILE + RESPONSIVE SYSTEM
 * ========================================================= */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }

.header-inner { min-width: 0; gap: 18px; }
.site-logo { min-width: 0; flex: 0 1 auto; }
.site-logo a { min-width: 0; display: inline-flex; max-width: 100%; }
.site-logo img { max-width: 100%; height: auto; }
.header-cta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.main-navigation { min-width: 0; }

.header-search-overlay { position: absolute; left: 0; right: 0; top: 100%; z-index: 1001; }
.header-search-overlay[hidden] { display: none !important; }

@media (max-width: 1024px) {
  .site-header { position: sticky; top: 0; z-index: 1000; }
  .header-inner { min-height: 64px; height: auto; padding: 10px 0; }
  .site-logo img { height: 42px; width: auto; }
  .main-navigation {
    top: 100%;
    bottom: auto;
    max-height: calc(100dvh - 64px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
    padding: 12px 16px 24px;
    overscroll-behavior: contain;
  }
  .main-navigation ul { width: 100%; }
  .main-navigation a { min-height: 48px; display: flex; align-items: center; }
  .menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
  .header-search-btn { width: 44px; height: 44px; flex: 0 0 44px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1200px); }
  .header-inner { gap: 8px; }
  .site-logo img { height: 36px; }
  .header-cta { gap: 4px; }
  .header-search-btn, .menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .header-search-overlay { padding: 12px; }
  .header-search-overlay .container { width: 100%; padding: 0; }
  .header-search-overlay form { width: 100%; }
  .header-search-overlay input[type="search"] { min-width: 0; width: 100%; }
  .page-header { padding: 38px 0; }
  .page-header h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.15; }
  .page-content-wrap { padding: 32px 12px; }
  .contact-form { padding: 22px 16px; }
  .error-404 { padding: 60px 12px; }
  .error-404 h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .footer-grid { gap: 24px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .back-to-top { right: 14px !important; bottom: 14px !important; }
}

@media (max-width: 380px) {
  .site-logo img { height: 32px; }
  .header-search-btn, .menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
}

/* Prevent long content and embeds from breaking mobile layouts */
img, video, iframe, embed, object { max-width: 100%; }
.entry-content, .single-post-content, .page-content-wrap { overflow-wrap: anywhere; }
pre, code { max-width: 100%; overflow-x: auto; }
table { max-width: 100%; display: block; overflow-x: auto; }

/* WordPress admin: responsive Gemini control */
@media screen and (max-width: 782px) {
  .sth-gemini-admin .form-table,
  .sth-gemini-admin .form-table tbody,
  .sth-gemini-admin .form-table tr,
  .sth-gemini-admin .form-table th,
  .sth-gemini-admin .form-table td { display: block; width: 100%; }
  .sth-gemini-admin .form-table th { padding-bottom: 4px; }
  .sth-gemini-admin .form-table td { padding: 4px 0 16px; }
  .sth-gemini-admin select,
  .sth-gemini-admin input[type="number"],
  .sth-gemini-admin input[type="password"] { width: 100%; max-width: none; min-height: 44px; }
  .sth-gemini-admin .button { min-height: 44px; padding: 8px 16px; }
}

/* =========================================================
 * V5 TRUE MOBILE-FIRST RESPONSIVE OVERRIDES
 * ========================================================= */
html, body { max-width: 100%; overflow-x: hidden !important; }
body { min-width: 0 !important; }

@media (max-width: 1024px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 0; }
  .site-logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .site-logo img { display: block; max-width: min(220px, 60vw); height: auto; max-height: 42px; }
  .header-cta { flex: 0 0 auto; margin-left: auto; }

  .main-navigation {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 64px) !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    padding: 12px 16px 32px !important;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
    z-index: 10000 !important;
  }
  .main-navigation.active { display: block !important; }
  .main-navigation > div,
  .main-navigation > ul,
  .main-navigation ul { width: 100% !important; max-width: none !important; }
  .main-navigation ul { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; }
  .main-navigation li { width: 100% !important; display: block !important; }
  .main-navigation a { width: 100% !important; min-height: 52px; padding: 15px 12px !important; display: flex !important; align-items: center; font-size: 1rem; border-bottom: 1px solid #eef2f7; }
  .main-navigation .sub-menu { display: block !important; position: static !important; width: 100% !important; padding: 0 0 0 14px !important; border: 0 !important; box-shadow: none !important; }
  .main-navigation .sub-menu a { min-height: 46px; font-size: .95rem; }

  .menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  body.sth-menu-open { overflow: hidden !important; }
  .header-search-overlay { z-index: 10001 !important; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  .container { width: 100%; max-width: none; padding-left: 16px; padding-right: 16px; }
  .site-header { width: 100%; }
  .header-inner { min-height: 60px; padding: 7px 0; }
  .site-logo img { max-width: 170px; max-height: 38px; }
  .header-cta { gap: 6px; }
  .header-search-btn, .menu-toggle { width: 42px; height: 42px; min-width: 42px; padding: 8px; }
  .header-search-btn svg, .menu-toggle svg { width: 22px; height: 22px; }
  .main-navigation { top: 60px !important; height: calc(100dvh - 60px) !important; padding-left: 12px !important; padding-right: 12px !important; }

  .hero-section { padding: 36px 0 !important; }
  .hero-section h1 { font-size: clamp(1.75rem, 8vw, 2.4rem) !important; line-height: 1.15; }
  .hero-section p { font-size: 1rem; }
  .hero-search { width: 100%; max-width: none; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; }
  .hero-search input { width: 100%; min-width: 0; padding: 13px 14px; }
  .hero-search button { width: 100%; min-height: 46px; }

  .site-content { display: block !important; padding: 28px 0 !important; }
  .content-area, .widget-area, .sidebar, .main-content { width: 100% !important; max-width: none !important; min-width: 0 !important; }
  .posts-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .post-card, .widget, .single-post-content, .page-content-wrap, .contact-form { max-width: 100%; min-width: 0; }
  .single-post-content, .page-content-wrap { padding: 20px 16px !important; }
  .entry-content { font-size: 1rem; line-height: 1.75; }
  .entry-content h2 { font-size: 1.45rem; }
  .entry-content h3 { font-size: 1.2rem; }
  .entry-content ul, .entry-content ol { padding-left: 1.35rem; }

  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }

  input, select, textarea, button { max-width: 100%; font-size: 16px; }
  table { width: 100% !important; }
  .wp-block-table { overflow-x: auto; max-width: 100%; }
  pre { white-space: pre; overflow-x: auto; }
}

@media (max-width: 420px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .site-logo img { max-width: 145px; max-height: 34px; }
  .header-search-btn, .menu-toggle { width: 40px; height: 40px; min-width: 40px; }
  .header-cta { gap: 4px; }
  .page-header h1, .hero-section h1 { word-break: normal; overflow-wrap: normal; }
}

@media (max-width: 360px) {
  .site-logo img { max-width: 128px; }
  .header-search-btn, .menu-toggle { width: 38px; height: 38px; min-width: 38px; }
}

/* ============================================
   V6 PROFESSIONAL ARTICLE EXPERIENCE
   ============================================ */
.professional-article { background: #f6f8fc; }
.article-hero { background: linear-gradient(135deg,#0f172a 0%,#1d4ed8 55%,#4f46e5 100%); color:#fff; padding: clamp(42px,7vw,86px) 0 clamp(56px,8vw,100px); }
.article-hero-inner { max-width: 980px; text-align:center; }
.article-category { display:inline-flex; padding:8px 16px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.article-hero h1 { max-width: 980px; margin:20px auto 18px; color:#fff; font-size:clamp(2rem,5vw,4rem); line-height:1.08; letter-spacing:-.03em; }
.article-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; color:rgba(255,255,255,.82); font-size:.95rem; }
.article-shell { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:32px; align-items:start; padding-top:0; padding-bottom:70px; }
.article-main { min-width:0; margin-top:-48px; position:relative; z-index:2; }
.article-content, .article-featured-image, .review-summary, .article-tags, .article-navigation, .article-comments { background:#fff; }
.article-featured-image { margin:0 0 24px; overflow:hidden; border-radius:20px; box-shadow:0 20px 50px rgba(15,23,42,.12); }
.article-featured-image img { display:block; width:100%; height:auto; max-height:620px; object-fit:cover; }
.article-content { padding:clamp(24px,5vw,58px); border-radius:20px; box-shadow:0 12px 40px rgba(15,23,42,.08); font-size:1.08rem; line-height:1.85; color:#334155; }
.article-content > *:first-child { margin-top:0; }
.article-content > *:last-child { margin-bottom:0; }
.article-content h2 { font-size:clamp(1.5rem,3vw,2rem); line-height:1.25; margin:2.2em 0 .7em; color:#0f172a; }
.article-content h3 { font-size:clamp(1.25rem,2.5vw,1.55rem); line-height:1.3; margin:1.8em 0 .6em; color:#0f172a; }
.article-content p { margin:0 0 1.25em; }
.article-content ul, .article-content ol { margin:0 0 1.35em; padding-left:1.5em; }
.article-content li { margin:.45em 0; }
.article-content img, .article-content video, .article-content iframe { max-width:100%; height:auto; }
.article-content iframe { width:100%; min-height:360px; border:0; }
.article-content table { display:block; width:100%; overflow-x:auto; border-collapse:collapse; }
.article-content blockquote { margin:2em 0; padding:20px 24px; border-left:4px solid #2563eb; background:#eff6ff; border-radius:0 12px 12px 0; }
.article-content pre { max-width:100%; overflow:auto; }
.review-summary { display:flex; gap:24px; align-items:flex-start; padding:24px; margin-bottom:24px; border-radius:18px; border:1px solid #e2e8f0; }
.review-score { flex:0 0 110px; text-align:center; padding:14px; border-radius:14px; background:#2563eb; color:#fff; }
.review-score strong { display:block; font-size:2rem; line-height:1; }.review-score small { display:block; margin-top:8px; opacity:.85; }
.review-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; flex:1; }.review-columns h3 { margin:0 0 8px; font-size:1rem; }.review-columns p { margin:4px 0; font-size:.95rem; }
.article-sidebar { min-width:0; padding-top:24px; }.article-sidebar .widget { margin-bottom:24px; }
.article-tags { margin-top:24px; padding:20px 24px; border-radius:16px; }.article-tags a { display:inline-block; margin:4px 6px 4px 0; padding:6px 10px; border-radius:999px; background:#eef2ff; color:#3730a3; }
.article-navigation { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; padding:20px 24px; border-radius:16px; }.article-navigation > div:last-child { text-align:right; }.article-navigation span { display:block; font-size:.78rem; color:#64748b; margin-bottom:6px; }.article-navigation strong { font-size:.95rem; }.article-navigation a { color:#1d4ed8; }
.article-comments { margin-top:24px; padding:24px; border-radius:16px; }
@media (max-width: 1024px) { .article-shell { grid-template-columns:1fr; }.article-sidebar { padding-top:0; } }
@media (max-width: 767px) {
  .article-hero { padding:36px 0 72px; }
  .article-hero h1 { font-size:clamp(1.8rem,8vw,2.7rem); }
  .article-meta { font-size:.86rem; }
  .article-shell { padding-left:12px; padding-right:12px; padding-bottom:40px; }
  .article-main { margin-top:-34px; }
  .article-featured-image { border-radius:14px; margin-bottom:16px; }
  .article-content { padding:24px 18px; border-radius:14px; font-size:1rem; line-height:1.8; }
  .review-summary { flex-direction:column; padding:18px; }.review-score { width:100%; flex-basis:auto; }.review-columns { grid-template-columns:1fr; gap:16px; }
  .article-navigation { grid-template-columns:1fr; padding:16px; }.article-navigation > div:last-child { text-align:left; }
  .article-content iframe { min-height:220px; }
}


/* V7 professional logo fallback */
.site-logo a { display:inline-flex; align-items:center; position:relative; min-height:60px; }
.site-logo img.custom-logo, .site-logo img { display:block; max-width:220px; width:auto; height:auto; max-height:60px; }
.site-logo-fallback { display:none; font-weight:800; font-size:1.35rem; letter-spacing:-.03em; color:#0f172a; white-space:nowrap; }
.site-logo-fallback strong { color:#4f46e5; }
@media (max-width:480px) {
  .site-logo img.custom-logo, .site-logo img { max-width:155px; max-height:42px; }
  .site-logo a { min-height:42px; }
}
