/*!
Theme Name: Passion Varadero
Theme URI: https://passionvaradero.com
Author: Renaud Canuel
Author URI: https://passionvaradero.com
Description: Thème MSN-style pour Passion Varadero — Guide voyage Cuba et Varadero en français canadien. Sections rotatives, carrousels, widgets météo/électricité/devises, mode sombre, mega menu et plus.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passion-varadero
Tags: blog, news, travel, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
*/


/* ============================================================================
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ============================================================================ */

:root {
  /* Primary Colors */
  --pv-primary: #0066bf;
  --pv-primary-light: #1a7be8;
  --pv-primary-dark: #004a8f;
  --pv-secondary: #fbbf24;
  --pv-secondary-light: #fcd34d;
  --pv-secondary-dark: #f59e0b;

  /* Header Styling */
  --pv-header-bg: #0d1b2a;
  --pv-header-nav: #142436;
  --pv-header-text: #ffffff;
  --pv-header-border: rgba(255, 255, 255, 0.1);

  /* Background & Surface */
  --pv-bg-primary: #f2f2f3;
  --pv-bg-secondary: #e8e8ea;
  --pv-surface: #ffffff;
  --pv-surface-hover: #f9f9f9;

  /* Borders */
  --pv-border: #e5e7eb;
  --pv-border-dark: #d1d5db;
  --pv-border-light: #f3f4f6;

  /* Text Colors */
  --pv-text: #1a1a1a;
  --pv-text-dim: #4b5563;
  --pv-text-muted: #6b7280;
  --pv-text-light: #9ca3af;
  --pv-text-lighter: #d1d5db;

  /* Status Colors */
  --pv-success: #10b981;
  --pv-warning: #f59e0b;
  --pv-danger: #ef4444;
  --pv-info: #3b82f6;

  /* Tag Colors */
  --pv-tag-red: #dc2626;
  --pv-tag-orange: #ea580c;
  --pv-tag-cyan: #0891b2;
  --pv-tag-green: #059669;
  --pv-tag-blue: #2563eb;
  --pv-tag-yellow: #ca8a04;
  --pv-tag-purple: #9333ea;
  --pv-tag-teal: #0d9488;

  /* Radius & Shadows */
  --pv-radius: 8px;
  --pv-radius-lg: 12px;
  --pv-radius-sm: 4px;
  --pv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --pv-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Layout */
  --pv-max-width: 1190px;
  --pv-sidebar-width: 330px;
  --pv-header-height: 76px;

  /* Typography */
  --pv-font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --pv-font-mono: "Courier New", monospace;
  --pv-font-base: 15px;
  --pv-line-height: 1.6;

  /* Font Sizes */
  --pv-text-xs: 11px;
  --pv-text-sm: 13px;
  --pv-text-base: 15px;
  --pv-text-lg: 17px;
  --pv-text-xl: 19px;
  --pv-text-2xl: 24px;
  --pv-text-3xl: 28px;
  --pv-text-4xl: 32px;

  /* Spacing Scale */
  --pv-space-1: 4px;
  --pv-space-2: 8px;
  --pv-space-3: 12px;
  --pv-space-4: 16px;
  --pv-space-5: 20px;
  --pv-space-6: 24px;
  --pv-space-8: 32px;
  --pv-space-10: 40px;
  --pv-space-12: 48px;

  /* Transitions */
  --pv-transition: all 200ms ease-out;
  --pv-transition-fast: all 150ms ease-out;

  /* Z-Index Stack */
  --pv-z-hide: -1;
  --pv-z-base: 0;
  --pv-z-elevated: 10;
  --pv-z-sticky: 50;
  --pv-z-nav: 100;

  /* Dark Mode Colors */
  --pv-dark-bg: #0f172a;
  --pv-dark-bg-secondary: #1e293b;
  --pv-dark-surface: #1a1f2e;
  --pv-dark-text: #e2e8f0;
  --pv-dark-text-muted: #94a3b8;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pv-font-family);
  font-size: var(--pv-font-base);
  line-height: var(--pv-line-height);
  color: var(--pv-text);
  background-color: var(--pv-bg-primary);
  transition: background-color 300ms ease-out, color 300ms ease-out;
}

body.pv-dark {
  background-color: var(--pv-dark-bg);
  color: var(--pv-dark-text);
}

/* ============================================================================
   3. ACCESSIBILITY & SKIP LINKS
   ============================================================================ */

.skip-link,
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus,
.screen-reader-text:focus {
  background-color: var(--pv-primary);
  clip: auto !important;
  clip-path: none;
  color: white;
  display: block;
  font-size: var(--pv-text-base);
  font-weight: 600;
  height: auto;
  left: 0;
  line-height: normal;
  padding: var(--pv-space-3) var(--pv-space-4);
  position: fixed;
  text-decoration: none;
  top: 0;
  width: auto;
  z-index: calc(var(--pv-z-nav) + 10);
}

/* ============================================================================
   4. TOP BAR (Date, Social Links, Dark Mode Toggle)
   ============================================================================ */

.pv-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: var(--pv-space-3) 0;
  background-color: var(--pv-header-bg);
  border-bottom: 1px solid var(--pv-header-border);
  font-size: var(--pv-text-xs);
  color: var(--pv-header-text);
}

body.pv-dark .pv-top-bar {
  background-color: var(--pv-dark-bg-secondary);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.pv-top-bar__left {
  padding: 0 var(--pv-space-4);
  font-weight: 500;
}

.pv-top-bar__date {
  display: inline-block;
}

.pv-top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--pv-space-4);
  padding: 0 var(--pv-space-4);
}

/* Social Navigation */
.pv-social-top {
  display: flex;
  gap: var(--pv-space-3);
}

.pv-social-top a {
  color: var(--pv-header-text);
  text-decoration: none;
  transition: color var(--pv-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pv-social-top a:hover {
  color: var(--pv-secondary);
}

body.pv-dark .pv-social-top a {
  color: var(--pv-dark-text);
}

body.pv-dark .pv-social-top a:hover {
  color: var(--pv-secondary-light);
}

/* ============================================================================
   5. DARK MODE TOGGLE
   ============================================================================ */

.pv-dark-mode-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--pv-transition);
  padding: var(--pv-space-2);
}

.pv-dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--pv-radius-sm);
}

body.pv-dark .pv-dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.pv-icon-sun,
.pv-icon-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.pv-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.pv-icon-sun::before {
  content: "☀";
  font-size: 18px;
  color: var(--pv-secondary);
}

.pv-icon-moon {
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
}

.pv-icon-moon::before {
  content: "🌙";
  font-size: 18px;
  color: #60a5fa;
}

body.pv-dark .pv-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(45deg);
}

body.pv-dark .pv-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ============================================================================
   6. BREAKING NEWS BANNER
   ============================================================================ */

.pv-breaking-news {
  display: flex;
  align-items: center;
  gap: var(--pv-space-3);
  padding: var(--pv-space-3) var(--pv-space-4);
  background: linear-gradient(90deg, #dc2626, #ea580c);
  color: white;
  font-weight: 600;
  font-size: var(--pv-text-sm);
  animation: slideDown 400ms ease-out;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pv-breaking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--pv-radius-sm);
  padding: 0 var(--pv-space-2);
  font-size: var(--pv-text-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pv-breaking-text {
  flex: 1;
  display: block;
  line-height: 1.4;
}

/* ============================================================================
   7. HEADER MAIN
   ============================================================================ */

.pv-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--pv-header-bg);
  color: var(--pv-header-text);
  z-index: var(--pv-z-nav);
  transition: box-shadow var(--pv-transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.pv-dark .pv-header {
  background-color: var(--pv-dark-bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Inner Header Container */
.pv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pv-space-6);
  max-width: var(--pv-max-width);
  margin: 0 auto;
  padding: var(--pv-space-3) var(--pv-space-4);
  height: var(--pv-header-height);
}

/* ============================================================================
   8. LOGO & SITE NAME
   ============================================================================ */

.pv-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: auto;
}

.pv-header__logo img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.pv-header__logo a {
  text-decoration: none;
  transition: opacity var(--pv-transition);
}

.pv-header__logo a:hover {
  opacity: 0.8;
}

.pv-site-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--pv-header-text);
  font-size: var(--pv-text-2xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.pv-accent {
  display: block;
  color: var(--pv-secondary);
  font-size: var(--pv-text-sm);
  font-weight: 500;
  margin-top: var(--pv-space-1);
  letter-spacing: 0.5px;
}

/* ============================================================================
   9. MAIN NAVIGATION
   ============================================================================ */

.pv-main-nav {
  display: none;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

/* Show nav on desktop */
@media (min-width: 768px) {
  .pv-main-nav {
    display: flex;
  }
}

.pv-main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
}

.pv-main-nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

.pv-main-nav a {
  display: flex;
  align-items: center;
  height: var(--pv-header-height);
  padding: 0 var(--pv-space-5);
  color: var(--pv-header-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--pv-text-base);
  transition: background-color var(--pv-transition), color var(--pv-transition);
  border-bottom: 3px solid transparent;
  position: relative;
}

.pv-main-nav a:hover {
  background-color: var(--pv-header-nav);
  border-bottom-color: var(--pv-secondary);
}

.pv-main-nav .current-menu-item > a {
  border-bottom-color: var(--pv-secondary);
}

/* Mega Menu Dropdowns */
.pv-main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--pv-header-nav);
  border-top: 3px solid var(--pv-secondary);
  flex-direction: column;
  gap: 0;
  padding: var(--pv-space-2) 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 200ms ease-out, visibility 200ms ease-out, transform 200ms ease-out;
  box-shadow: var(--pv-shadow-xl);
}

.pv-main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pv-main-nav .sub-menu a {
  height: auto;
  padding: var(--pv-space-3) var(--pv-space-5);
  border: none;
  font-weight: 400;
  font-size: var(--pv-text-sm);
}

.pv-main-nav .sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
}

.pv-main-nav .sub-menu .sub-menu {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: -3px;
}

/* ============================================================================
   10. HEADER ACTIONS (Search & Mobile Toggle)
   ============================================================================ */

.pv-header__actions {
  display: flex;
  align-items: center;
  gap: var(--pv-space-2);
  flex-shrink: 0;
}

/* Search Toggle Button */
.pv-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--pv-header-text);
  transition: background-color var(--pv-transition);
  border-radius: var(--pv-radius-sm);
}

.pv-search-toggle:hover {
  background-color: var(--pv-header-nav);
}

.pv-icon-search {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pv-icon-search::before {
  content: "🔍";
}

/* Mobile Toggle (Hamburger) */
.pv-mobile-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: var(--pv-space-2);
}

@media (min-width: 768px) {
  .pv-mobile-toggle {
    display: none;
  }
}

.pv-mobile-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--pv-header-text);
  border-radius: 2px;
  transition: background-color var(--pv-transition), transform var(--pv-transition), opacity var(--pv-transition);
}

.pv-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.pv-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.pv-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================================
   11. SEARCH BAR
   ============================================================================ */

.pv-search-bar {
  display: none;
  padding: var(--pv-space-4);
  background-color: var(--pv-header-nav);
  border-top: 1px solid var(--pv-header-border);
  animation: slideDown 300ms ease-out;
}

.pv-search-bar.active {
  display: block;
}

body.pv-dark .pv-search-bar {
  background-color: rgba(0, 0, 0, 0.2);
  border-top-color: rgba(255, 255, 255, 0.05);
}

.pv-search-bar form {
  max-width: var(--pv-max-width);
  margin: 0 auto;
  display: flex;
  gap: var(--pv-space-3);
}

.pv-search-bar input[type="search"],
.pv-search-bar input[type="text"] {
  flex: 1;
  padding: var(--pv-space-3) var(--pv-space-4);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-sm);
  font-size: var(--pv-text-base);
  background-color: var(--pv-surface);
  color: var(--pv-text);
  transition: border-color var(--pv-transition), box-shadow var(--pv-transition);
}

body.pv-dark .pv-search-bar input[type="search"],
body.pv-dark .pv-search-bar input[type="text"] {
  background-color: var(--pv-dark-surface);
  color: var(--pv-dark-text);
  border-color: rgba(255, 255, 255, 0.1);
}

.pv-search-bar input[type="search"]:focus,
.pv-search-bar input[type="text"]:focus {
  outline: none;
  border-color: var(--pv-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 191, 0.1);
}

body.pv-dark .pv-search-bar input[type="search"]:focus,
body.pv-dark .pv-search-bar input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(26, 123, 232, 0.2);
}

.pv-search-bar button[type="submit"] {
  padding: var(--pv-space-3) var(--pv-space-6);
  background-color: var(--pv-primary);
  color: white;
  border: none;
  border-radius: var(--pv-radius-sm);
  font-weight: 600;
  font-size: var(--pv-text-base);
  cursor: pointer;
  transition: background-color var(--pv-transition);
}

.pv-search-bar button[type="submit"]:hover {
  background-color: var(--pv-primary-dark);
}

/* ============================================================================
   12. TICKER (Popular Posts)
   ============================================================================ */

.pv-ticker {
  display: none;
  align-items: center;
  gap: var(--pv-space-4);
  width: 100%;
  background-color: var(--pv-surface);
  border-bottom: 1px solid var(--pv-border);
  padding: var(--pv-space-2) var(--pv-space-4);
  overflow: hidden;
}

@media (min-width: 768px) {
  .pv-ticker {
    display: flex;
  }
}

body.pv-dark .pv-ticker {
  background-color: var(--pv-dark-surface);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.pv-ticker__label {
  display: flex;
  align-items: center;
  gap: var(--pv-space-2);
  padding: var(--pv-space-2) var(--pv-space-3);
  background-color: var(--pv-tag-red);
  color: white;
  font-size: var(--pv-text-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--pv-radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.pv-ticker__label::before {
  content: "⚡";
  font-size: 14px;
}

.pv-ticker__items {
  display: flex;
  gap: var(--pv-space-6);
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--pv-space-1) 0;
}

.pv-ticker__items::-webkit-scrollbar {
  height: 4px;
}

.pv-ticker__items::-webkit-scrollbar-track {
  background: transparent;
}

.pv-ticker__items::-webkit-scrollbar-thumb {
  background: var(--pv-border);
  border-radius: 2px;
}

.pv-ticker__items::-webkit-scrollbar-thumb:hover {
  background: var(--pv-border-dark);
}

.pv-ticker__item {
  display: inline-block;
  padding: var(--pv-space-2) var(--pv-space-3);
  color: var(--pv-text-dim);
  text-decoration: none;
  font-size: var(--pv-text-sm);
  font-weight: 500;
  white-space: nowrap;
  border-left: 2px solid transparent;
  padding-left: var(--pv-space-4);
  transition: color var(--pv-transition), border-color var(--pv-transition);
  animation: tickerPulse 2s ease-in-out infinite;
}

body.pv-dark .pv-ticker__item {
  color: var(--pv-dark-text-muted);
}

.pv-ticker__item:hover {
  color: var(--pv-primary);
  border-left-color: var(--pv-primary);
}

body.pv-dark .pv-ticker__item:hover {
  color: var(--pv-primary-light);
}

@keyframes tickerPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================================================
   13. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 767px) {
  .pv-header__inner {
    padding: var(--pv-space-2) var(--pv-space-3);
    height: auto;
    min-height: var(--pv-header-height);
    gap: var(--pv-space-3);
  }

  .pv-site-name {
    font-size: var(--pv-text-xl);
  }

  .pv-main-nav {
    position: fixed;
    top: var(--pv-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background-color: var(--pv-header-nav);
    border-top: 1px solid var(--pv-header-border);
    transform: translateX(-100%);
    transition: transform var(--pv-transition);
    gap: 0;
    padding: var(--pv-space-4) 0;
    z-index: calc(var(--pv-z-nav) - 1);
  }

  .pv-main-nav.active {
    transform: translateX(0);
  }

  .pv-main-nav a {
    padding: var(--pv-space-3) var(--pv-space-4);
    height: auto;
    border-bottom: 1px solid var(--pv-header-border);
  }

  .pv-main-nav .sub-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    border: none;
    border-left: 3px solid var(--pv-secondary);
    background-color: rgba(0, 0, 0, 0.2);
    transform: none;
    transition: max-height 200ms ease-out, opacity 200ms ease-out;
    box-shadow: none;
    padding: 0;
  }

  .pv-main-nav li:hover > .sub-menu,
  .pv-main-nav li.menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: var(--pv-space-2) 0;
  }

  .pv-main-nav .sub-menu a {
    padding-left: var(--pv-space-8);
  }

  .pv-top-bar {
    flex-direction: column;
    gap: var(--pv-space-2);
    padding: var(--pv-space-2) var(--pv-space-3);
    text-align: center;
  }

  .pv-top-bar__left,
  .pv-top-bar__right {
    padding: 0;
  }

  .pv-ticker {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--pv-space-2);
    padding: var(--pv-space-3);
  }

  .pv-ticker__items {
    gap: var(--pv-space-4);
    width: 100%;
  }
}

/* ============================================================================
   14. PRINT STYLES
   ============================================================================ */

@media print {
  .pv-header,
  .pv-breaking-news,
  .pv-ticker,
  .pv-search-bar,
  .pv-mobile-toggle,
  .pv-search-toggle {
    display: none !important;
  }
}

   1. LAYOUT & WRAPPER STRUCTURE
   ======================================== */

.pv-wrap {
  width: 100%;
  max-width: var(--pv-max-width, 1400px);
  margin: 0 auto;
  padding: 0;
}

.pv-layout {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-xl, 2rem);
  width: 100%;
}

.pv-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--pv-spacing-xl, 2rem);
  align-items: start;
}

.pv-layout--full-width {
  grid-template-columns: 1fr;
}

.pv-main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-xl, 2rem);
}

.pv-main {
  flex: 1;
  width: 100%;
}

.pv-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
}

/* ========================================
   2. HOMEPAGE SECTIONS (MSN-STYLE)
   ======================================== */

.pv-hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: var(--pv-spacing-xl, 2rem);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pv-color-bg), var(--pv-color-border));
}

.pv-swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.pv-swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.pv-swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pv-swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--pv-color-primary);
  width: 30px;
  border-radius: 6px;
}

/* Category Sections */
.pv-category-section {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
  padding: var(--pv-spacing-lg, 1.5rem) 0;
}

.pv-category-section__title {
  font-family: var(--pv-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: 0;
  padding-bottom: var(--pv-spacing-md, 1rem);
  border-bottom: 4px solid var(--pv-color-primary);
  transition: color 0.3s ease;
}

.pv-category-section__title a {
  color: inherit;
  text-decoration: none;
}

.pv-category-section__title a:hover {
  color: var(--pv-color-primary);
}

/* Grid Layouts */
.pv-grid {
  display: grid;
  gap: var(--pv-spacing-lg, 1.5rem);
  width: 100%;
}

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

.pv-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pv-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pv-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 640px) {
  .pv-grid-2,
  .pv-grid-3,
  .pv-grid-4 {
    grid-template-columns: 1fr;
  }

  .pv-layout--sidebar {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   3. CARD COMPONENTS
   ======================================== */

/* Standard Grid Card */
.pv-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pv-color-surface);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.pv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pv-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pv-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pv-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-card:hover .pv-card__thumbnail {
  transform: scale(1.08);
}

.pv-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--pv-color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-card__badge:hover {
  background-color: var(--pv-color-primary);
  transform: scale(1.05);
}

.pv-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--pv-spacing-md, 1rem);
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-card__title {
  font-family: var(--pv-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-card__title a:hover {
  color: var(--pv-color-primary);
}

.pv-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pv-color-text-dim);
  margin: var(--pv-spacing-xs, 0.5rem) 0 0 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-card__meta {
  display: flex;
  align-items: center;
  gap: var(--pv-spacing-sm, 0.75rem);
  font-size: 0.85rem;
  color: var(--pv-color-text-dim);
  margin-top: auto;
  padding-top: var(--pv-spacing-sm, 0.75rem);
  border-top: 1px solid var(--pv-color-border);
}

.pv-card__date,
.pv-card__reading-time {
  font-weight: 500;
}

.pv-card__separator {
  color: var(--pv-color-border);
}

/* Hero Card (Featured) */
.pv-hero-card {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pv-color-bg), var(--pv-color-border));
}

.pv-hero-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pv-hero-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-hero-card:hover .pv-hero-card__thumbnail {
  transform: scale(1.05);
}

.pv-hero-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--pv-spacing-lg, 1.5rem);
  z-index: 2;
  transition: all 0.3s ease;
}

.pv-hero-card:hover .pv-hero-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.pv-hero-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-md, 1rem);
}

.pv-hero-card__badge {
  align-self: flex-start;
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--pv-color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-hero-card__badge:hover {
  background-color: var(--pv-color-primary);
  transform: scale(1.05);
}

.pv-hero-card__title {
  font-family: var(--pv-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.pv-hero-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-hero-card__title a:hover {
  color: var(--pv-color-primary);
}

.pv-hero-card__excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-hero-card__meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Carousel Card */
.pv-carousel-slide {
  scroll-snap-align: start;
}

.pv-carousel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pv-color-surface);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pv-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pv-carousel-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pv-carousel-card__image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-carousel-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pv-carousel-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-carousel-card:hover .pv-carousel-card__thumbnail {
  transform: scale(1.08);
}

.pv-carousel-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--pv-color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  z-index: 5;
}

.pv-carousel-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--pv-spacing-md, 1rem);
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-carousel-card__title {
  font-family: var(--pv-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pv-color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-carousel-card__title a {
  color: inherit;
  text-decoration: none;
}

.pv-carousel-card__title a:hover {
  color: var(--pv-color-primary);
}

.pv-carousel-card__date {
  font-size: 0.8rem;
  color: var(--pv-color-text-dim);
  margin-top: auto;
  padding-top: var(--pv-spacing-xs, 0.5rem);
  border-top: 1px solid var(--pv-color-border);
}

/* List Card (Horizontal Layout) */
.pv-list-card {
  display: flex;
  background: var(--pv-color-surface);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--pv-color-border);
}

.pv-list-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.pv-list-card__inner {
  display: flex;
  width: 100%;
}

.pv-list-card__thumbnail {
  position: relative;
  width: 200px;
  min-width: 200px;
  height: 150px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-list-card__thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pv-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-list-card:hover .pv-list-card__image {
  transform: scale(1.08);
}

.pv-list-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--pv-spacing-md, 1rem);
  gap: var(--pv-spacing-xs, 0.5rem);
}

.pv-list-card__category {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  background-color: var(--pv-color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-list-card__category:hover {
  background-color: var(--pv-color-primary);
}

.pv-list-card__title {
  font-family: var(--pv-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-list-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-list-card__title a:hover {
  color: var(--pv-color-primary);
}

.pv-list-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--pv-color-text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-list-card__meta {
  display: flex;
  align-items: center;
  gap: var(--pv-spacing-sm, 0.75rem);
  font-size: 0.8rem;
  color: var(--pv-color-text-dim);
  margin-top: auto;
  padding-top: var(--pv-spacing-xs, 0.5rem);
}

.pv-list-card__date,
.pv-list-card__reading-time {
  font-weight: 500;
}

/* Responsive List Card */
@media (max-width: 768px) {
  .pv-list-card__thumbnail {
    width: 150px;
    min-width: 150px;
    height: 120px;
  }

  .pv-list-card__content {
    padding: var(--pv-spacing-sm, 0.75rem);
  }

  .pv-list-card__title {
    font-size: 1rem;
  }
}

/* ========================================
   4. CAROUSEL COMPONENT
   ======================================== */

.pv-carousel {
  position: relative;
  width: 100%;
  margin-bottom: var(--pv-spacing-xl, 2rem);
}

.pv-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pv-carousel-track {
  display: flex;
  gap: var(--pv-spacing-lg, 1.5rem);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
}

.pv-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.pv-carousel-track::-webkit-scrollbar-track {
  background: var(--pv-color-bg);
  border-radius: 10px;
}

.pv-carousel-track::-webkit-scrollbar-thumb {
  background: var(--pv-color-border);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.pv-carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--pv-color-text-dim);
}

.pv-carousel-item {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 280px;
  scroll-snap-align: start;
}

.pv-carousel-item:last-child {
  margin-right: 0;
}

.pv-carousel-controls {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  gap: var(--pv-spacing-sm, 0.75rem);
  z-index: 10;
}

.pv-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: var(--pv-color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.pv-carousel-btn:hover {
  background-color: var(--pv-color-secondary);
  transform: scale(1.1);
}

.pv-carousel-btn:active {
  transform: scale(0.95);
}

.pv-carousel-btn:disabled {
  background-color: var(--pv-color-border);
  cursor: not-allowed;
  opacity: 0.5;
}

.pv-carousel-btn--prev::before {
  content: '←';
}

.pv-carousel-btn--next::before {
  content: '→';
}

/* Responsive Carousel Item Width */
@media (max-width: 1024px) {
  .pv-carousel-item {
    flex: 0 0 calc(33.333% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .pv-carousel-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .pv-carousel-controls {
    top: -45px;
  }

  .pv-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .pv-carousel-item {
    flex: 0 0 calc(100% - 0.75rem);
    min-width: 100%;
  }

  .pv-carousel-controls {
    display: none;
  }
}

/* ========================================
   5. SINGLE POST / ARTICLE LAYOUT
   ======================================== */

.pv-single-wrap {
  width: 100%;
}

.pv-reading-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background-color: var(--pv-color-border);
}

.pv-reading-progress__bar {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--pv-color-primary),
    var(--pv-color-accent)
  );
  width: 0%;
  transition: width 0.1s ease;
}

.pv-single-article {
  background: transparent;
  margin: 0;
}

.pv-article-header {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-md, 1rem);
  margin-bottom: var(--pv-spacing-xl, 2rem);
}

.pv-entry-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-category-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--pv-color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-category-link:hover {
  background-color: var(--pv-color-primary);
  transform: scale(1.05);
}

.pv-article-title {
  font-family: var(--pv-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
  font-size: 0.95rem;
  color: var(--pv-color-text-dim);
}

.pv-article-meta__separator {
  color: var(--pv-color-border);
}

.pv-article-featured {
  width: 100%;
  margin: var(--pv-spacing-lg, 1.5rem) 0;
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  background: var(--pv-color-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pv-featured-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pv-radius, 8px);
}

.pv-article-content {
  font-family: var(--pv-font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--pv-color-text);
  margin-bottom: var(--pv-spacing-xl, 2rem);
}

.pv-article-content p {
  margin: 0 0 var(--pv-spacing-lg, 1.5rem) 0;
}

.pv-article-content h2,
.pv-article-content h3,
.pv-article-content h4 {
  font-family: var(--pv-font-heading);
  margin: var(--pv-spacing-xl, 2rem) 0 var(--pv-spacing-md, 1rem) 0;
  color: var(--pv-color-text);
}

.pv-article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.pv-article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.pv-article-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.pv-article-content ul,
.pv-article-content ol {
  margin: var(--pv-spacing-lg, 1.5rem) 0;
  padding-left: 2rem;
}

.pv-article-content li {
  margin-bottom: var(--pv-spacing-sm, 0.75rem);
}

.pv-article-content blockquote {
  margin: var(--pv-spacing-lg, 1.5rem) 0;
  padding: var(--pv-spacing-md, 1rem) var(--pv-spacing-lg, 1.5rem);
  border-left: 4px solid var(--pv-color-primary);
  background-color: var(--pv-color-bg);
  font-style: italic;
  color: var(--pv-color-text-dim);
}

.pv-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pv-radius, 8px);
  margin: var(--pv-spacing-lg, 1.5rem) 0;
}

.pv-pagination-links {
  display: flex;
  gap: var(--pv-spacing-md, 1rem);
  justify-content: center;
  margin: var(--pv-spacing-xl, 2rem) 0;
  font-weight: 500;
}

.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--pv-color-bg);
  color: var(--pv-color-text);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover {
  background-color: var(--pv-color-primary);
  color: white;
}

.pv-ad-before-content,
.pv-ad-after-content {
  margin: var(--pv-spacing-xl, 2rem) 0;
  padding: var(--pv-spacing-lg, 1.5rem);
  background-color: var(--pv-color-bg);
  border-radius: var(--pv-radius, 8px);
  border: 2px dashed var(--pv-color-border);
  text-align: center;
  color: var(--pv-color-text-dim);
  font-size: 0.9rem;
}

.pv-article-footer {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
  padding-top: var(--pv-spacing-lg, 1.5rem);
  border-top: 2px solid var(--pv-color-border);
  margin-top: var(--pv-spacing-xl, 2rem);
}

.pv-article-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--pv-spacing-md, 1rem);
}

.pv-article-tags__label {
  font-weight: 600;
  color: var(--pv-color-text);
  margin-bottom: var(--pv-spacing-sm, 0.75rem);
  width: 100%;
}

.pv-article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border: 1px solid var(--pv-color-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-tag:hover {
  background-color: var(--pv-color-primary);
  color: white;
}

/* ========================================
   6. SOCIAL SHARE & SOCIAL LINKS
   ======================================== */

.pv-social-share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-md, 1rem);
  align-items: center;
}

.pv-social-share__label {
  font-weight: 600;
  color: var(--pv-color-text);
  margin-right: var(--pv-spacing-md, 1rem);
}

.pv-social-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-social-share__item {
  display: inline-block;
}

.pv-social-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: var(--pv-color-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.pv-social-share__link:hover {
  background-color: var(--pv-color-secondary);
  transform: translateY(-4px);
}

.pv-social-share__link--facebook {
  background-color: #3b5998;
}

.pv-social-share__link--facebook:hover {
  background-color: #2d4373;
}

.pv-social-share__link--twitter {
  background-color: #1da1f2;
}

.pv-social-share__link--twitter:hover {
  background-color: #1a91da;
}

.pv-social-share__link--pinterest {
  background-color: #e60023;
}

.pv-social-share__link--pinterest:hover {
  background-color: #ad081b;
}

.pv-social-share__link--linkedin {
  background-color: #0077b5;
}

.pv-social-share__link--linkedin:hover {
  background-color: #005885;
}

.pv-social-share__link--email {
  background-color: var(--pv-color-accent);
}

.pv-social-share__link--email:hover {
  background-color: #c32e2e;
}

/* ========================================
   7. AUTHOR BOX
   ======================================== */

.pv-author-box {
  display: flex;
  gap: var(--pv-spacing-lg, 1.5rem);
  padding: var(--pv-spacing-lg, 1.5rem);
  background-color: var(--pv-color-bg);
  border-radius: var(--pv-radius, 8px);
  border: 1px solid var(--pv-color-border);
  margin: var(--pv-spacing-xl, 2rem) 0;
}

.pv-author-box__avatar {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--pv-color-border);
}

.pv-author-box__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-author-box__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-author-box__title {
  font-family: var(--pv-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-author-box__bio {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pv-color-text-dim);
  margin: 0;
}

.pv-author-box__meta {
  display: flex;
  gap: var(--pv-spacing-md, 1rem);
  font-size: 0.85rem;
  color: var(--pv-color-text-dim);
}

.pv-author-box__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pv-author-box__social {
  display: flex;
  gap: var(--pv-spacing-sm, 0.75rem);
  margin-top: var(--pv-spacing-sm, 0.75rem);
}

.pv-author-box__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--pv-color-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.pv-author-box__social-link:hover {
  background-color: var(--pv-color-secondary);
  transform: scale(1.1);
}

/* ========================================
   8. BREADCRUMBS
   ======================================== */

.pv-breadcrumb,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
  margin-bottom: var(--pv-spacing-lg, 1.5rem);
  font-size: 0.9rem;
}

.pv-breadcrumb ol,
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-spacing-sm, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-breadcrumb li,
.breadcrumb li {
  display: flex;
  align-items: center;
}

.pv-breadcrumb li::after,
.breadcrumb li::after {
  content: '/';
  margin-left: var(--pv-spacing-sm, 0.75rem);
  color: var(--pv-color-text-dim);
}

.pv-breadcrumb li:last-child::after,
.breadcrumb li:last-child::after {
  content: '';
  margin-left: 0;
}

.pv-breadcrumb a,
.breadcrumb a {
  color: var(--pv-color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--pv-color-secondary);
  text-decoration: underline;
}

.pv-breadcrumb .current,
.breadcrumb .current {
  color: var(--pv-color-text);
  font-weight: 500;
}

/* ========================================
   9. RELATED POSTS
   ======================================== */

.pv-related-posts {
  margin: var(--pv-spacing-xl, 2rem) 0;
  padding-top: var(--pv-spacing-xl, 2rem);
  border-top: 2px solid var(--pv-color-border);
}

.pv-related-posts__title {
  font-family: var(--pv-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: 0 0 var(--pv-spacing-lg, 1.5rem) 0;
  padding-bottom: var(--pv-spacing-md, 1rem);
  border-bottom: 3px solid var(--pv-color-primary);
}

.pv-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pv-spacing-lg, 1.5rem);
}

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

@media (max-width: 640px) {
  .pv-related-posts__grid {
    grid-template-columns: 1fr;
  }
}

.pv-related-posts__item {
  display: flex;
  flex-direction: column;
  background: var(--pv-color-surface);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pv-related-posts__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.pv-related-posts__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pv-related-posts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-related-posts__item:hover .pv-related-posts__image img {
  transform: scale(1.08);
}

.pv-related-posts__content {
  padding: var(--pv-spacing-md, 1rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--pv-spacing-xs, 0.5rem);
}

.pv-related-posts__title {
  font-family: var(--pv-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-related-posts__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-related-posts__title a:hover {
  color: var(--pv-color-primary);
}

.pv-related-posts__date {
  font-size: 0.8rem;
  color: var(--pv-color-text-dim);
  margin-top: auto;
  padding-top: var(--pv-spacing-xs, 0.5rem);
  border-top: 1px solid var(--pv-color-border);
}

/* ========================================
   10. POST NAVIGATION
   ======================================== */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pv-spacing-lg, 1.5rem);
  margin: var(--pv-spacing-xl, 2rem) 0;
  padding: var(--pv-spacing-lg, 1.5rem);
  border: 1px solid var(--pv-color-border);
  border-radius: var(--pv-radius, 8px);
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-sm, 0.75rem);
  padding: var(--pv-spacing-md, 1rem);
  color: var(--pv-color-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  background-color: var(--pv-color-bg);
}

.nav-subtitle {
  font-size: 0.85rem;
  color: var(--pv-color-text-dim);
  font-weight: 400;
}

.nav-title {
  font-family: var(--pv-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pv-color-text);
  line-height: 1.3;
}

.post-navigation a:hover .nav-title {
  color: var(--pv-color-primary);
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   11. ARCHIVE & CATEGORY PAGES
   ======================================== */

.pv-archive-header {
  padding: var(--pv-spacing-xl, 2rem) 0;
  margin-bottom: var(--pv-spacing-xl, 2rem);
  border-bottom: 2px solid var(--pv-color-border);
}

.pv-archive-title,
.pv-search-title {
  font-family: var(--pv-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: 0 0 var(--pv-spacing-md, 1rem) 0;
}

.pv-archive-description,
.pv-search-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pv-color-text-dim);
  margin: 0;
}

/* ========================================
   12. SEARCH RESULTS
   ======================================== */

.pv-search-header {
  padding: var(--pv-spacing-xl, 2rem) 0;
  margin-bottom: var(--pv-spacing-xl, 2rem);
  border-bottom: 2px solid var(--pv-color-border);
}

.pv-search-query {
  color: var(--pv-color-primary);
  font-weight: 600;
}

.pv-search-results {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
}

.pv-search-result {
  display: flex;
  background: var(--pv-color-surface);
  border-radius: var(--pv-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--pv-color-border);
  transition: all 0.3s ease;
}

.pv-search-result:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.pv-search-result__inner {
  display: flex;
  width: 100%;
}

.pv-search-result__thumbnail {
  flex: 0 0 220px;
  height: 160px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-search-result__thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pv-search-result__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pv-search-result:hover .pv-search-result__image {
  transform: scale(1.08);
}

.pv-search-result__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--pv-spacing-md, 1rem);
  gap: var(--pv-spacing-xs, 0.5rem);
}

.pv-search-result__title {
  font-family: var(--pv-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-search-result__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-search-result__title a:hover {
  color: var(--pv-color-primary);
}

.pv-search-result__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pv-color-text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-search-result__excerpt mark {
  background-color: #fff9c4;
  color: var(--pv-color-text);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 2px;
}

.pv-search-result__meta {
  display: flex;
  align-items: center;
  gap: var(--pv-spacing-sm, 0.75rem);
  font-size: 0.85rem;
  color: var(--pv-color-text-dim);
  margin-top: auto;
  padding-top: var(--pv-spacing-xs, 0.5rem);
}

.pv-search-result__date,
.pv-search-result__type {
  font-weight: 500;
}

.pv-no-search-results {
  text-align: center;
  padding: var(--pv-spacing-xl, 2rem);
  background-color: var(--pv-color-bg);
  border-radius: var(--pv-radius, 8px);
}

.pv-no-search-results h2 {
  font-family: var(--pv-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: 0 0 var(--pv-spacing-md, 1rem) 0;
}

.pv-no-search-results p {
  font-size: 1rem;
  color: var(--pv-color-text-dim);
  margin: 0 0 var(--pv-spacing-lg, 1.5rem) 0;
}

.pv-search-suggestions {
  text-align: left;
  margin-top: var(--pv-spacing-lg, 1.5rem);
  padding-top: var(--pv-spacing-lg, 1.5rem);
  border-top: 1px solid var(--pv-color-border);
}

.pv-search-suggestions h3 {
  font-family: var(--pv-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pv-color-text);
  margin: 0 0 var(--pv-spacing-md, 1rem) 0;
}

.pv-search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-search-suggestions li {
  margin-bottom: var(--pv-spacing-sm, 0.75rem);
}

.pv-search-suggestions a {
  color: var(--pv-color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-search-suggestions a:hover {
  color: var(--pv-color-secondary);
  text-decoration: underline;
}

/* Responsive Search Result */
@media (max-width: 768px) {
  .pv-search-result__thumbnail {
    flex: 0 0 160px;
    height: 120px;
  }

  .pv-search-result__content {
    padding: var(--pv-spacing-sm, 0.75rem);
  }

  .pv-search-result__title {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .pv-search-result {
    flex-direction: column;
  }

  .pv-search-result__thumbnail {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
}

/* ========================================
   13. 404 PAGE
   ======================================== */

.pv-404-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--pv-spacing-xl, 2rem);
}

.pv-404 {
  text-align: center;
  max-width: 600px;
}

.pv-404__number {
  font-family: var(--pv-font-heading);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  color: var(--pv-color-primary);
  opacity: 0.1;
  margin: 0;
}

.pv-404__title {
  font-family: var(--pv-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: -3rem 0 var(--pv-spacing-md, 1rem) 0;
}

.pv-404__message {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--pv-color-text-dim);
  margin: 0 0 var(--pv-spacing-xl, 2rem) 0;
}

.pv-404__actions {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
  margin-bottom: var(--pv-spacing-xl, 2rem);
}

.pv-404__actions .pv-btn {
  display: inline-block;
}

.pv-404__actions .search-form {
  width: 100%;
}

.pv-404__list {
  list-style: none;
  margin: var(--pv-spacing-lg, 1.5rem) 0 0 0;
  padding: 0;
  text-align: left;
}

.pv-404__list li {
  padding: var(--pv-spacing-sm, 0.75rem) 0;
  border-bottom: 1px solid var(--pv-color-border);
}

.pv-404__list li:last-child {
  border-bottom: none;
}

.pv-404__list a {
  color: var(--pv-color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.pv-404__list a:hover {
  color: var(--pv-color-secondary);
  text-decoration: underline;
}

/* ========================================
   14. COMMENTS SECTION
   ======================================== */

.pv-comments-wrapper {
  margin: var(--pv-spacing-xl, 2rem) 0 0 0;
  padding-top: var(--pv-spacing-xl, 2rem);
  border-top: 2px solid var(--pv-color-border);
}

.pv-comments-header {
  margin-bottom: var(--pv-spacing-lg, 1.5rem);
}

.pv-comments-title {
  font-family: var(--pv-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-lg, 1.5rem);
  margin-bottom: var(--pv-spacing-xl, 2rem);
}

.pv-comment {
  display: flex;
  gap: var(--pv-spacing-md, 1rem);
  padding: var(--pv-spacing-md, 1rem);
  background-color: var(--pv-color-bg);
  border-radius: var(--pv-radius, 8px);
  border-left: 4px solid var(--pv-color-primary);
}

.pv-comment__avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pv-color-border);
}

.pv-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-comment__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-sm, 0.75rem);
}

.pv-comment__header {
  display: flex;
  align-items: baseline;
  gap: var(--pv-spacing-sm, 0.75rem);
  flex-wrap: wrap;
}

.pv-comment__author {
  font-weight: 600;
  color: var(--pv-color-text);
}

.pv-comment__date {
  font-size: 0.85rem;
  color: var(--pv-color-text-dim);
}

.pv-comment__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pv-color-text);
  margin: 0;
}

.pv-comment__text p {
  margin: 0;
}

.pv-comment__reply {
  align-self: flex-start;
  padding: 6px 12px;
  background-color: var(--pv-color-primary);
  color: white;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: var(--pv-spacing-sm, 0.75rem);
}

.pv-comment__reply:hover {
  background-color: var(--pv-color-secondary);
}

.pv-comment.children {
  display: flex;
  flex-direction: column;
  gap: var(--pv-spacing-md, 1rem);
  margin-left: var(--pv-spacing-lg, 1.5rem);
  border-left: 2px solid var(--pv-color-border);
  padding-left: var(--pv-spacing-md, 1rem);
  margin-top: var(--pv-spacing-md, 1rem);
}

.pv-comment-form {
  margin-top: var(--pv-spacing-xl, 2rem);
  padding: var(--pv-spacing-lg, 1.5rem);
  background-color: var(--pv-color-bg);
  border-radius: var(--pv-radius, 8px);
}

.pv-comment-form h3 {
  font-family: var(--pv-font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pv-color-text);
  margin: 0 0 var(--pv-spacing-md, 1rem) 0;
}

.pv-comment-form p {
  margin: var(--pv-spacing-md, 1rem) 0;
}

.pv-comment-form label {
  display: block;
  margin-bottom: var(--pv-spacing-xs, 0.5rem);
  font-weight: 500;
  color: var(--pv-color-text);
}

.pv-comment-form input[type='text'],
.pv-comment-form input[type='email'],
.pv-comment-form input[type='url'],
.pv-comment-form textarea {
  width: 100%;
  padding: var(--pv-spacing-sm, 0.75rem);
  margin-bottom: var(--pv-spacing-md, 1rem);
  border: 1px solid var(--pv-color-border);
  border-radius: 4px;
  font-family: var(--pv-font-body);
  font-size: 0.95rem;
  color: var(--pv-color-text);
  background-color: var(--pv-color-surface);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.pv-comment-form input[type='text']:focus,
.pv-comment-form input[type='email']:focus,
.pv-comment-form input[type='url']:focus,
.pv-comment-form textarea:focus {
  outline: none;
  border-color: var(--pv-color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.pv-comment-form .pv-btn--primary {
  background-color: var(--pv-color-primary);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pv-comment-form .pv-btn--primary:hover {
  background-color: var(--pv-color-secondary);
  transform: translateY(-2px);
}

.pv-comments-pagination {
  display: flex;
  justify-content: center;
  gap: var(--pv-spacing-md, 1rem);
  margin: var(--pv-spacing-lg, 1.5rem) 0;
}

.pv-comments-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--pv-color-bg);
  color: var(--pv-color-text);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-comments-pagination .page-numbers:hover {
  background-color: var(--pv-color-primary);
  color: white;
}

.pv-comments-pagination .page-numbers.current {
  background-color: var(--pv-color-primary);
  color: white;
}

/* ========================================
   15. PAGINATION
   ======================================== */

.pv-pagination,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--pv-spacing-sm, 0.75rem);
  margin: var(--pv-spacing-xl, 2rem) 0;
  flex-wrap: wrap;
}

.pv-pagination .page-numbers,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--pv-spacing-sm, 0.75rem);
  background-color: var(--pv-color-surface);
  color: var(--pv-color-primary);
  border: 1px solid var(--pv-color-border);
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pv-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
  background-color: var(--pv-color-primary);
  color: white;
  border-color: var(--pv-color-primary);
  transform: translateY(-2px);
}

.pv-pagination .page-numbers.current,
.pagination .page-numbers.current {
  background-color: var(--pv-color-primary);
  color: white;
  border-color: var(--pv-color-primary);
  cursor: default;
}

.pv-pagination .prev,
.pv-pagination .next,
.pagination .prev,
.pagination .next {
  padding: 0 var(--pv-spacing-md, 1rem);
}

.pv-pagination a.prev:hover,
.pv-pagination a.next:hover,
.pagination a.prev:hover,
.pagination a.next:hover {
  background-color: var(--pv-color-primary);
  color: white;
  border-color: var(--pv-color-primary);
}

/* ========================================
   16. AD ZONES
   ======================================== */

.pv-ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin: var(--pv-spacing-lg, 1.5rem) 0;
  padding: var(--pv-spacing-lg, 1.5rem);
  background: linear-gradient(
    135deg,
    var(--pv-color-bg),
    var(--pv-color-border)
  );
  border: 2px dashed var(--pv-color-border);
  border-radius: var(--pv-radius, 8px);
  color: var(--pv-color-text-dim);
  font-size: 0.9rem;
  text-align: center;
  gap: var(--pv-spacing-md, 1rem);
}

.pv-ad-zone__label {
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--pv-color-border);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
}

/* ========================================
   17. BUTTONS
   ======================================== */

.pv-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--pv-color-primary);
  color: white;
  border: 2px solid var(--pv-color-primary);
  border-radius: 4px;
  font-family: var(--pv-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.pv-btn:active {
  transform: translateY(0);
}

.pv-btn--primary {
  background-color: var(--pv-color-primary);
  border-color: var(--pv-color-primary);
  color: white;
}

.pv-btn--primary:hover {
  background-color: var(--pv-color-secondary);
  border-color: var(--pv-color-secondary);
}

.pv-btn--secondary {
  background-color: transparent;
  border-color: var(--pv-color-primary);
  color: var(--pv-color-primary);
}

.pv-btn--secondary:hover {
  background-color: var(--pv-color-primary);
  color: white;
}

.pv-btn--large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.pv-btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.pv-btn--block {
  display: block;
  width: 100%;
}

.pv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   18. UTILITY CLASSES
   ======================================== */

.pv-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pv-spacing-lg, 1.5rem);
}

.pv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.pv-clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ========================================
   19. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
  .pv-layout--sidebar {
    grid-template-columns: 1fr;
  }

  .pv-article-title {
    font-size: 2rem;
  }

  .pv-hero-slider {
    height: 400px;
  }

  .pv-search-result__thumbnail {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .pv-wrap {
    padding: 0;
  }

  .pv-layout {
    gap: var(--pv-spacing-lg, 1.5rem);
  }

  .pv-article-title {
    font-size: 1.75rem;
  }

  .pv-hero-slider {
    height: 300px;
  }

  .pv-card__image {
    height: 150px;
  }

  .pv-hero-card {
    height: 300px;
  }

  .pv-carousel-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

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

  .pv-related-posts__grid {
    grid-template-columns: 1fr;
  }

  .pv-search-result__thumbnail {
    flex: 0 0 150px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .pv-category-section__title {
    font-size: 1.4rem;
  }

  .pv-article-title {
    font-size: 1.5rem;
  }

  .pv-card {
    border-radius: 8px;
  }

  .pv-carousel-item {
    flex: 0 0 calc(100% - 0.75rem);
  }

  .pv-carousel-controls {
    display: none;
  }

  .pv-search-result {
    flex-direction: column;
  }

  .pv-search-result__thumbnail {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }

  .pv-404__number {
    font-size: 6rem;
  }

  .pv-404__title {
    font-size: 1.75rem;
  }

  .pv-sidebar {
    width: 100%;
    margin-top: var(--pv-spacing-xl, 2rem);
  }

  .pv-comment {
    flex-direction: column;
  }

  .pv-comment.children {
    margin-left: 0;
    padding-left: var(--pv-spacing-md, 1rem);
    border-left: 2px solid var(--pv-color-border);
  }

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

  .pv-author-box {
    flex-direction: column;
    text-align: center;
  }

  .pv-author-box__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .pv-author-box__social {
    justify-content: center;
  }
}

/* ========================================
   END OF PART 2
   ======================================== */

   - All 12 widgets (weather, currency, electricity, recent posts, trending,
     categories, newsletter, social, community, author, ad-banner, carousel)
   - Footer (.pv-footer)
   - Dark mode (body.pv-dark)
   - Responsive breakpoints (desktop, tablet, mobile)
   - Print styles
   - Animations & utilities
   - WordPress core compatibility
   ============================================================================ */

:root {
  --pv-color-primary: #0066cc;
  --pv-color-secondary: #1a365d;
  --pv-color-accent: #e53e3e;
  --pv-color-bg: #f0f2f5;
  --pv-color-surface: #ffffff;
  --pv-color-text: #1a202c;
  --pv-color-text-dim: #718096;
  --pv-color-border: #e2e8f0;
  --pv-font-heading: 'Playfair Display', serif;
  --pv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadow scales */
  --pv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --pv-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --pv-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --pv-transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pv-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   SIDEBAR BASE STYLES
   ============================================================================ */

.pv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

/* Sidebar on right layout */
.pv-layout-sidebar-right .pv-sidebar {
  margin-left: 2rem;
  flex-basis: 300px;
  flex-shrink: 0;
}

/* Sidebar on left layout */
.pv-layout-sidebar-left .pv-sidebar {
  margin-right: 2rem;
  order: -1;
  flex-basis: 300px;
  flex-shrink: 0;
}

/* ============================================================================
   WIDGET BASE STYLES
   ============================================================================ */

/* WordPress widget wrapper styles */
.widget {
  background: var(--pv-color-surface);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--pv-shadow-md);
  border: 1px solid var(--pv-color-border);
  animation: pv-fade-in 0.4s ease-out;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-left: 4px solid var(--pv-color-primary);
  padding-left: 0.75rem;
  color: var(--pv-color-text);
  font-family: var(--pv-font-heading);
  letter-spacing: -0.5px;
}

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

.widget a {
  color: var(--pv-color-primary);
  text-decoration: none;
  transition: var(--pv-transition-fast);
}

.widget a:hover {
  color: var(--pv-color-accent);
  text-decoration: underline;
}

.widget p {
  margin: 0 0 1rem 0;
  color: var(--pv-color-text-dim);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.widget p:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   WIDGET 1: WEATHER
   ============================================================================ */

.pv-widget-weather {
  background: linear-gradient(135deg, #0080ff 0%, #0052a3 100%);
  color: white;
  padding: 1.5rem;
  border: none;
  box-shadow: var(--pv-shadow-lg);
}

.pv-widget-weather .widget-title {
  border-left-color: rgba(255, 255, 255, 0.5);
  color: white;
  margin-bottom: 1.25rem;
}

.pv-widget-weather__content {
  color: white;
}

.pv-weather-current {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pv-weather-temp {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.temp-value {
  font-size: 2.5rem;
}

.temp-unit {
  font-size: 1.25rem;
  opacity: 0.95;
}

.pv-weather-condition {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

.pv-weather-humidity {
  font-size: 0.875rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pv-weather-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.forecast-day {
  text-align: center;
  font-size: 0.875rem;
}

.day-label {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.day-temp {
  font-size: 1.125rem;
  font-weight: 600;
}

.pv-weather-link {
  margin-top: 1rem;
}

.pv-weather-link a {
  color: white;
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--pv-transition-fast);
}

.pv-weather-link a:hover {
  opacity: 0.8;
}

.pv-weather-fallback {
  padding: 2rem 1rem;
  text-align: center;
  opacity: 0.9;
}

/* ============================================================================
   WIDGET 2: CURRENCY EXCHANGE
   ============================================================================ */

.pv-widget-currency {
  background: var(--pv-color-surface);
}

.pv-widget-currency__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-rates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pv-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
  background: var(--pv-color-bg);
  border-radius: 6px;
  border-left: 3px solid var(--pv-color-primary);
  transition: var(--pv-transition-fast);
}

.pv-rate-item:hover {
  background: rgba(0, 102, 204, 0.05);
  transform: translateX(2px);
}

.rate-currency {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.currency-code {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pv-color-text);
}

.currency-name {
  font-size: 0.75rem;
  color: var(--pv-color-text-dim);
}

.rate-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.rate-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pv-color-text);
}

.rate-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.rate-change.change-up {
  color: #22863a;
  background: #f0fdf4;
}

.rate-change.change-down {
  color: #cb2431;
  background: #fdf0f1;
}

.pv-currency-link {
  margin-top: 0.5rem;
  text-align: center;
}

.pv-currency-link a {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pv-currency-fallback {
  padding: 2rem 1rem;
  text-align: center;
}

/* ============================================================================
   WIDGET 3: ELECTRICITY STATUS
   ============================================================================ */

.pv-widget-electricity {
  background: var(--pv-color-surface);
}

.pv-widget-electricity__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-electricity-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-electricity-coverage {
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--pv-transition-base);
}

.pv-electricity-coverage.status-green {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #b1dfbb;
}

.pv-electricity-coverage.status-orange {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
}

.pv-electricity-coverage.status-red {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
}

.coverage-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.coverage-value .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pv-color-secondary);
}

.coverage-value .unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pv-color-secondary);
}

.coverage-label {
  font-size: 0.875rem;
  color: var(--pv-color-secondary);
  font-weight: 500;
}

.pv-electricity-deficit {
  font-size: 0.875rem;
  color: var(--pv-color-text-dim);
  padding: 0.5rem 0;
}

.pv-electricity-label {
  display: flex;
  justify-content: center;
}

.label-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--pv-color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pv-electricity-schedule {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pv-color-border);
}

.pv-electricity-schedule h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pv-color-text);
}

.schedule-info {
  font-size: 0.875rem;
  color: var(--pv-color-text-dim);
  line-height: 1.6;
}

.pv-electricity-link {
  margin-top: 0.75rem;
  text-align: center;
}

.pv-electricity-link a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================================
   WIDGET 4: RECENT POSTS
   ============================================================================ */

.pv-widget-recent-posts {
  background: var(--pv-color-surface);
}

.pv-recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pv-recent-post-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pv-color-border);
  transition: var(--pv-transition-fast);
}

.pv-recent-post-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pv-recent-post-item:hover {
  background: var(--pv-color-bg);
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  border-bottom: 1px solid transparent;
}

.pv-recent-post-item .post-thumbnail {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-recent-post-item .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pv-transition-fast);
}

.pv-recent-post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.pv-recent-post-item .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-recent-post-item .post-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.pv-recent-post-item .post-title a {
  color: var(--pv-color-text);
}

.pv-recent-post-item .post-title a:hover {
  color: var(--pv-color-primary);
  text-decoration: none;
}

.pv-recent-post-item .post-meta {
  font-size: 0.8125rem;
  color: var(--pv-color-text-dim);
}

.pv-recent-post-item .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  transition: var(--pv-transition-fast);
  text-decoration: none;
}

.category-badge:hover {
  background: var(--pv-color-primary);
  color: white;
}

/* ============================================================================
   WIDGET 5: TRENDING POSTS
   ============================================================================ */

.pv-widget-trending {
  background: var(--pv-color-surface);
}

.pv-trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: trending-counter;
}

.pv-trending-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pv-color-border);
  transition: var(--pv-transition-fast);
  counter-increment: trending-counter;
}

.pv-trending-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pv-trending-item:hover {
  background: var(--pv-color-bg);
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pv-color-primary), #0052a3);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.125rem;
}

.pv-trending-item .post-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.pv-trending-item .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pv-transition-fast);
}

.pv-trending-item:hover .post-thumbnail img {
  transform: scale(1.1);
}

.pv-trending-item .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-trending-item .post-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.pv-trending-item .post-title a {
  color: var(--pv-color-text);
}

.pv-trending-item .post-title a:hover {
  color: var(--pv-color-primary);
}

.pv-trending-item .post-views {
  font-size: 0.8125rem;
  color: var(--pv-color-text-dim);
}

/* ============================================================================
   WIDGET 6: CATEGORIES
   ============================================================================ */

.pv-widget-categories {
  background: var(--pv-color-surface);
}

.pv-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pv-cat-list.pv-cat-style-pills {
  gap: 0.625rem;
}

.pv-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--pv-color-bg);
  color: var(--pv-color-text);
  border: 1px solid var(--pv-color-border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--pv-transition-fast);
  white-space: nowrap;
}

.pv-cat-pill:hover {
  background: var(--pv-color-primary);
  color: white;
  border-color: var(--pv-color-primary);
  transform: translateY(-2px);
  box-shadow: var(--pv-shadow-md);
}

.cat-name {
  display: inline;
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.pv-cat-pill:hover .cat-count {
  background: rgba(255, 255, 255, 0.25);
}

.pv-cat-list.pv-cat-style-list {
  flex-direction: column;
}

.pv-cat-list.pv-cat-style-list .pv-cat-pill {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
}

/* ============================================================================
   WIDGET 7: NEWSLETTER SUBSCRIPTION
   ============================================================================ */

.pv-widget-newsletter {
  background: var(--pv-color-surface);
  padding: 0;
  border: none;
  overflow: hidden;
}

.pv-widget-newsletter .widget-title {
  margin: 0;
  border: none;
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1.5rem 0.75rem;
}

.pv-widget-newsletter__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
}

.newsletter-description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.pv-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pv-newsletter-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-newsletter-form input[type="email"] {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: var(--pv-transition-fast);
}

.pv-newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

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

.pv-newsletter-submit {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pv-transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pv-newsletter-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ============================================================================
   WIDGET 8: SOCIAL MEDIA LINKS
   ============================================================================ */

.pv-widget-social {
  background: var(--pv-color-surface);
}

.pv-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pv-social-links.pv-social-style-round .pv-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.pv-social-links.pv-social-style-square .pv-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.pv-social-links.pv-social-style-minimal .pv-social-icon {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
}

.pv-social-links.pv-social-size-small .pv-social-icon {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.pv-social-links.pv-social-size-large .pv-social-icon {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.pv-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--pv-transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.pv-social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--pv-color-primary);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: 0;
}

.pv-social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.pv-social-icon svg {
  width: 50%;
  height: 50%;
  position: relative;
  z-index: 1;
}

.pv-social-icon:hover {
  background: var(--pv-color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--pv-shadow-md);
}

.pv-social-icon .social-label {
  display: none;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pv-social-links:has(.social-label) {
  gap: 1rem;
}

.pv-social-icon:has(.social-label) {
  width: auto;
  height: auto;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
}

.pv-social-icon .social-label {
  display: inline;
}

/* ============================================================================
   WIDGET 9: COMMUNITY PROMOTION
   ============================================================================ */

.pv-widget-community {
  background: var(--pv-color-surface);
  padding: 0;
  overflow: hidden;
}

.pv-widget-community .widget-title {
  margin: 0;
  border: none;
  padding: 1.5rem 1.5rem 0.75rem;
}

.pv-widget-community__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: white;
  border-radius: 8px;
  margin: 1.5rem 1.5rem 0;
}

.community-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.community-description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.community-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
  font-size: 1.25rem;
}

.pv-community-btn {
  display: inline-block;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--pv-transition-fast);
}

.pv-community-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================================================
   WIDGET 10: AUTHOR INFORMATION
   ============================================================================ */

.pv-widget-author {
  background: var(--pv-color-surface);
  text-align: center;
}

.pv-widget-author__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--pv-color-primary);
  box-shadow: var(--pv-shadow-lg);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--pv-font-heading);
}

.author-name a {
  color: var(--pv-color-text);
}

.author-name a:hover {
  color: var(--pv-color-primary);
  text-decoration: none;
}

.author-bio {
  font-size: 0.9375rem;
  color: var(--pv-color-text-dim);
  line-height: 1.6;
}

.author-bio p {
  margin: 0;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--pv-color-border);
  border-bottom: 1px solid var(--pv-color-border);
  width: 100%;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border-radius: 50%;
  transition: var(--pv-transition-fast);
  font-weight: 600;
  font-size: 0.9375rem;
}

.author-social a:hover {
  background: var(--pv-color-primary);
  color: white;
  transform: translateY(-2px);
}

.author-posts {
  width: 100%;
}

.author-posts-link {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--pv-transition-fast);
}

.author-posts-link:hover {
  background: var(--pv-color-primary);
  color: white;
}

/* ============================================================================
   WIDGET 11: AD BANNER
   ============================================================================ */

.pv-widget-ad-banner {
  background: var(--pv-color-bg);
  padding: 0.75rem;
  border: 2px dashed var(--pv-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.pv-ad-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-ad-zone img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.pv-ad-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--pv-color-text-dim);
}

.pv-ad-placeholder p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ============================================================================
   WIDGET 12: CAROUSEL
   ============================================================================ */

.pv-widget-carousel {
  background: var(--pv-color-surface);
  padding: 0;
  overflow: hidden;
}

.pv-widget-carousel .widget-title {
  margin: 0;
  border: none;
  padding: 1.5rem 1.5rem 0.75rem;
}

.pv-carousel {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--pv-color-bg);
  aspect-ratio: 16 / 9;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
}

.slide-thumbnail {
  width: 100%;
  height: 60%;
  overflow: hidden;
  background: var(--pv-color-bg);
}

.slide-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pv-transition-base);
}

.carousel-slide.active .slide-thumbnail img {
  transform: scale(1.02);
}

.slide-content {
  flex: 1;
  padding: 1rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.slide-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pv-color-text);
}

.slide-title a {
  color: var(--pv-color-text);
}

.slide-title a:hover {
  color: var(--pv-color-primary);
  text-decoration: none;
}

.slide-category {
  display: inline-block;
}

.slide-category .category-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  pointer-events: all;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: var(--pv-color-text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--pv-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--pv-shadow-md);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  background: var(--pv-color-bg);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: var(--pv-color-border);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--pv-transition-fast);
  padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--pv-color-primary);
  transform: scale(1.2);
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

.pv-footer {
  background: var(--pv-color-secondary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.pv-footer__column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pv-footer__column .widget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  box-shadow: none;
}

.pv-footer__column .widget-title {
  color: white;
  border-left-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.pv-footer__column .widget a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--pv-transition-fast);
}

.pv-footer__column .widget a:hover {
  color: white;
  text-decoration: underline;
}

.pv-footer__column .widget p,
.pv-footer__column .widget li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.pv-footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-footer__column li {
  display: flex;
  align-items: center;
}

.pv-footer__column li::before {
  content: '›';
  margin-right: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.pv-footer__bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-footer__nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pv-footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--pv-transition-fast);
}

.pv-footer__nav a:hover {
  color: white;
  text-decoration: underline;
}

.pv-footer__nav li {
  display: inline;
}

.pv-footer__credits {
  flex: 1;
  min-width: 250px;
}

.pv-footer__credits p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.pv-footer__credits a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--pv-transition-fast);
}

.pv-footer__credits a:hover {
  color: white;
  text-decoration: underline;
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

.pv-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--pv-color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pv-shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--pv-transition-base);
  font-size: 1.25rem;
}

.pv-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.pv-back-to-top:hover {
  background: var(--pv-color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   DARK MODE STYLES
   ============================================================================ */

body.pv-dark {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.pv-dark .widget {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.pv-dark .widget-title {
  color: #f1f5f9;
  border-left-color: var(--pv-color-primary);
}

body.pv-dark .widget a {
  color: #60a5fa;
}

body.pv-dark .widget a:hover {
  color: #93c5fd;
}

body.pv-dark .widget p {
  color: #cbd5e1;
}

body.pv-dark .pv-widget-weather {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

body.pv-dark .pv-rate-item {
  background: #334155;
  border-left-color: #60a5fa;
}

body.pv-dark .rate-amount {
  color: #f1f5f9;
}

body.pv-dark .pv-cat-pill {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.pv-dark .pv-cat-pill:hover {
  background: var(--pv-color-primary);
  color: white;
  border-color: var(--pv-color-primary);
}

body.pv-dark .pv-recent-post-item:hover {
  background: #334155;
}

body.pv-dark .pv-recent-post-item .post-title a {
  color: #e2e8f0;
}

body.pv-dark .pv-recent-post-item .post-meta {
  color: #94a3b8;
}

body.pv-dark .pv-social-icon {
  background: #334155;
  color: #60a5fa;
}

body.pv-dark .pv-social-icon:hover {
  background: var(--pv-color-primary);
  color: white;
}

body.pv-dark .pv-footer {
  background: #0f172a;
  border-top-color: #334155;
}

body.pv-dark .pv-footer__bottom {
  background: rgba(0, 0, 0, 0.5);
  border-top-color: #334155;
}

body.pv-dark .pv-footer__column .widget {
  background: #1e293b;
  border-color: #334155;
}

body.pv-dark .pv-footer__column .widget a {
  color: #93c5fd;
}

body.pv-dark .pv-back-to-top {
  background: var(--pv-color-primary);
}

body.pv-dark .pv-back-to-top:hover {
  background: #3b82f6;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet Landscape: 992px - 1199px */
@media (max-width: 1199px) {
  .pv-layout-sidebar-right .pv-sidebar,
  .pv-layout-sidebar-left .pv-sidebar {
    flex-basis: 280px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .pv-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .widget {
    padding: 1.25rem;
  }
}

/* Tablet Portrait: 768px - 991px */
@media (max-width: 991px) {
  .pv-layout-sidebar-right,
  .pv-layout-sidebar-left {
    display: flex;
    flex-direction: column;
  }

  .pv-layout-sidebar-right .pv-sidebar,
  .pv-layout-sidebar-left .pv-sidebar {
    margin-left: 0;
    margin-right: 0;
    flex-basis: 100%;
    order: 2;
  }

  .pv-layout-sidebar-right main,
  .pv-layout-sidebar-left main {
    order: 1;
  }

  .pv-layout-sidebar-left .pv-sidebar {
    order: 2;
  }

  .pv-sidebar {
    gap: 1.5rem;
  }

  .pv-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pv-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .pv-footer__nav {
    justify-content: center;
  }

  .pv-back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .pv-sidebar {
    gap: 1.25rem;
  }

  .widget {
    padding: 1rem;
  }

  .widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
  }

  .pv-recent-post-item {
    gap: 0.75rem;
  }

  .pv-recent-post-item .post-thumbnail {
    width: 60px;
    height: 60px;
  }

  .pv-footer {
    padding: 2rem 0 1rem;
    margin-top: 3rem;
  }

  .pv-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .pv-footer__bottom {
    padding: 1rem;
    gap: 1rem;
  }

  .pv-footer__nav {
    gap: 1rem;
    flex-direction: column;
  }

  .pv-footer__credits {
    min-width: auto;
  }

  .pv-back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }

  .carousel-nav {
    padding: 0 0.5rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* Small Mobile: < 480px */
@media (max-width: 479px) {
  .pv-sidebar {
    gap: 1rem;
  }

  .widget {
    padding: 0.875rem;
    border-radius: 6px;
  }

  .widget-title {
    font-size: 0.95rem;
    margin-bottom: 0.875rem;
  }

  .pv-weather-temp {
    font-size: 2rem;
  }

  .temp-value {
    font-size: 2rem;
  }

  .pv-cat-list {
    gap: 0.5rem;
  }

  .pv-cat-pill {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .pv-social-links {
    gap: 0.5rem;
  }

  .pv-social-icon {
    width: 36px;
    height: 36px;
  }

  .pv-footer {
    padding: 1.5rem 0 0.75rem;
    margin-top: 2rem;
  }

  .pv-footer__grid {
    gap: 1.25rem;
    padding: 0 0.875rem;
  }

  .pv-footer__column {
    gap: 1rem;
  }

  .pv-footer__bottom {
    padding: 0.875rem;
    font-size: 0.8125rem;
  }

  .pv-back-to-top {
    width: 36px;
    height: 36px;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .rank-badge {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .pv-trending-item .post-thumbnail {
    width: 50px;
    height: 50px;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  .pv-sidebar,
  .pv-back-to-top,
  .pv-footer__bottom .pv-back-to-top {
    display: none;
  }

  .widget {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pv-footer {
    page-break-before: always;
    margin-top: 2rem;
    padding: 1rem 0;
  }

  .widget a {
    color: #000;
  }

  .widget a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    word-break: break-all;
  }
}

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes pv-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pv-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pv-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.pv-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pv-transition-fast);
  text-align: center;
  white-space: nowrap;
}

.pv-btn--primary {
  background: var(--pv-color-primary);
  color: white;
}

.pv-btn--primary:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: var(--pv-shadow-md);
}

.pv-btn--secondary {
  background: var(--pv-color-bg);
  color: var(--pv-color-primary);
  border: 2px solid var(--pv-color-primary);
}

.pv-btn--secondary:hover {
  background: var(--pv-color-primary);
  color: white;
  transform: translateY(-2px);
}

.pv-grid {
  display: grid;
  gap: 1.5rem;
}

.pv-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pv-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pv-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ============================================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================================ */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.wp-caption {
  background: var(--pv-color-bg);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0;
  border-radius: 4px;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--pv-color-text-dim);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--pv-shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pv-transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================================
   END OF CSS PART 3
   ============================================================================ */
