/* ============================================
   NIHON PORTAL - DESIGN SYSTEM
   Japanese Minimalist + Tech Aesthetic
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Primary Colors - Green #1a9a75 scheme */
    --np-primary: #1a9a75;
    --np-primary-dark: #14795c;
    --np-primary-light: #2cb88e;
    --np-primary-alpha: rgba(26, 154, 117, 0.1);
    /* Legacy aliases */
    --np-red: #1a9a75;
    --np-red-dark: #14795c;
    --np-red-light: #2cb88e;
    --np-red-alpha: rgba(26, 154, 117, 0.1);

    /* Neutrals */
    --np-black: #1A1A2E;
    --np-charcoal: #16213E;
    --np-dark: #0F3460;
    --np-gray-900: #1D1D1D;
    --np-gray-800: #2D2D2D;
    --np-gray-700: #3D3D3D;
    --np-gray-600: #555;
    --np-gray-500: #777;
    --np-gray-400: #999;
    --np-gray-300: #BBB;
    --np-gray-200: #E0E0E0;
    --np-gray-100: #F0F0F0;
    --np-gray-50: #F8F9FA;
    --np-white: #FFFFFF;

    /* Accent Colors for Sections */
    --np-cars: #2196F3;
    --np-cars-light: #E3F2FD;
    --np-jobs: #4CAF50;
    --np-jobs-light: #E8F5E9;
    --np-realestate: #FF9800;
    --np-realestate-light: #FFF3E0;
    --np-info: #9C27B0;
    --np-info-light: #F3E5F5;

    /* Typography */
    --np-font-primary: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    --np-font-heading: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    --np-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --np-text-xs: 0.75rem;
    --np-text-sm: 0.875rem;
    --np-text-base: 1rem;
    --np-text-lg: 1.125rem;
    --np-text-xl: 1.25rem;
    --np-text-2xl: 1.5rem;
    --np-text-3xl: 1.875rem;
    --np-text-4xl: 2.25rem;

    /* Spacing */
    --np-space-xs: 0.25rem;
    --np-space-sm: 0.5rem;
    --np-space-md: 1rem;
    --np-space-lg: 1.5rem;
    --np-space-xl: 2rem;
    --np-space-2xl: 3rem;
    --np-space-3xl: 4rem;

    /* Layout */
    --np-container: 1280px;
    --np-container-wide: 1440px;
    --np-sidebar-width: 320px;
    --np-header-height: 70px;
    --np-border-radius: 8px;
    --np-border-radius-lg: 12px;
    --np-border-radius-xl: 16px;

    /* Shadows */
    --np-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --np-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --np-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --np-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --np-shadow-red: 0 4px 20px rgba(26, 154, 117, 0.3);

    /* Transitions */
    --np-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --np-transition-fast: all 0.15s ease;
    --np-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--np-font-primary);
    font-size: var(--np-text-base);
    line-height: 1.7;
    color: var(--np-gray-800);
    background-color: var(--np-gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--np-red);
    text-decoration: none;
    transition: var(--np-transition-fast);
}

a:hover {
    color: var(--np-red-dark);
}

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

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

h1 { font-size: var(--np-text-4xl); }
h2 { font-size: var(--np-text-3xl); }
h3 { font-size: var(--np-text-2xl); }
h4 { font-size: var(--np-text-xl); }
h5 { font-size: var(--np-text-lg); }

ul, ol { list-style: none; }

/* ---------- UTILITY CLASSES ---------- */
.np-container {
    width: 100%;
    max-width: var(--np-container);
    margin: 0 auto;
    padding: 0 var(--np-space-lg);
}

.np-container-wide {
    width: 100%;
    max-width: var(--np-container-wide);
    margin: 0 auto;
    padding: 0 var(--np-space-lg);
}

.np-section {
    padding: var(--np-space-3xl) 0;
}

.np-section-title {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-xl);
    font-size: var(--np-text-2xl);
    font-weight: 700;
    position: relative;
}

.np-section-title::before {
    content: '';
    width: 4px;
    height: 100%;
    min-height: 28px;
    background: var(--np-red);
    border-radius: 2px;
}

.np-section-title .np-jp {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--np-space-sm);
    padding: 10px 24px;
    font-size: var(--np-text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--np-border-radius);
    cursor: pointer;
    transition: var(--np-transition);
    font-family: var(--np-font-primary);
    text-decoration: none;
    line-height: 1.4;
}

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

.np-btn-primary:hover {
    background: var(--np-red-dark);
    color: var(--np-white);
    box-shadow: var(--np-shadow-red);
    transform: translateY(-1px);
}

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

.np-btn-outline:hover {
    background: var(--np-red);
    color: var(--np-white);
}

.np-btn-dark {
    background: var(--np-gray-900);
    color: var(--np-white);
}

.np-btn-dark:hover {
    background: var(--np-black);
    color: var(--np-white);
}

.np-btn-sm {
    padding: 6px 16px;
    font-size: var(--np-text-xs);
}

.np-btn-lg {
    padding: 14px 32px;
    font-size: var(--np-text-base);
}

.np-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--np-text-xs);
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.np-badge-red { background: var(--np-red-alpha); color: var(--np-red); }
.np-badge-blue { background: var(--np-cars-light); color: var(--np-cars); }
.np-badge-green { background: var(--np-jobs-light); color: var(--np-jobs); }
.np-badge-orange { background: var(--np-realestate-light); color: var(--np-realestate); }
.np-badge-purple { background: var(--np-info-light); color: var(--np-info); }

.np-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    transition: var(--np-transition);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-3px);
}

/* ---------- AD BANNER AREAS ---------- */
.np-ad-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: var(--np-gray-400);
    font-size: var(--np-text-sm);
    text-align: center;
    margin: var(--np-space-xl) 0;
    position: relative;
    overflow: hidden;
}

.np-ad-banner::before {
    content: '広告 / AD';
    font-size: var(--np-text-xs);
    position: absolute;
    top: 6px;
    right: 10px;
    color: var(--np-gray-400);
    letter-spacing: 1px;
  display:none;
}

.np-ad-leaderboard { min-height: 90px; }
.np-ad-sidebar { min-height: 250px; }
.np-ad-inline { min-height: 120px; margin: var(--np-space-lg) 0; }

/* ============================================
   HEADER
   ============================================ */
.np-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--np-transition);
}

.np-header.scrolled {
    box-shadow: var(--np-shadow-md);
}

.np-top-bar {
    background: var(--np-gray-900);
    color: var(--np-white);
    padding: 6px 0;
    font-size: var(--np-text-xs);
}

.np-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.np-top-bar-date {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    opacity: 0.8;
}

.np-top-bar-links {
    display: flex;
    align-items: center;
    gap: var(--np-space-lg);
}

.np-top-bar-links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--np-text-xs);
    transition: var(--np-transition-fast);
}

.np-top-bar-links a:hover {
    color: var(--np-white);
}

.np-header-main {
    padding: 0;
    height: var(--np-header-height);
}

.np-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.np-logo {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.np-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--np-red);
    border-radius: var(--np-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--np-white);
    font-weight: 900;
    font-size: 18px;
}

.np-logo-text {
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-gray-900);
    letter-spacing: -0.5px;
}

.np-logo-text span {
    color: var(--np-red);
}

.np-logo-jp {
    font-size: 9px;
    color: var(--np-gray-400);
    letter-spacing: 2px;
    display: block;
    margin-top: -4px;
}

/* Navigation */
.np-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.np-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.np-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.np-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--np-space-md);
    height: 100%;
    color: var(--np-gray-700);
    font-size: var(--np-text-sm);
    font-weight: 500;
    position: relative;
    transition: var(--np-transition-fast);
}

.np-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--np-red);
    border-radius: 3px 3px 0 0;
    transition: var(--np-transition);
}

.np-nav-link:hover,
.np-nav-link.active {
    color: var(--np-red);
}

.np-nav-link:hover::after,
.np-nav-link.active::after {
    width: 100%;
}

.np-nav-link .icon {
    font-size: 16px;
}

/* Dropdown */
.np-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--np-white);
    border-radius: 0 0 var(--np-border-radius-lg) var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--np-transition);
    border-top: 3px solid var(--np-red);
    padding: var(--np-space-sm) 0;
}

.np-nav-item:hover .np-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.np-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    padding: 10px var(--np-space-lg);
    color: var(--np-gray-700);
    font-size: var(--np-text-sm);
    transition: var(--np-transition-fast);
}

.np-dropdown-link:hover {
    background: var(--np-gray-50);
    color: var(--np-red);
    padding-left: calc(var(--np-space-lg) + 4px);
}

.np-dropdown-link .dd-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.np-dropdown-link .dd-icon.cars { background: var(--np-cars-light); color: var(--np-cars); }
.np-dropdown-link .dd-icon.jobs { background: var(--np-jobs-light); color: var(--np-jobs); }
.np-dropdown-link .dd-icon.realestate { background: var(--np-realestate-light); color: var(--np-realestate); }

/* Header Actions */
.np-header-actions {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
}

.np-search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--np-gray-50);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--np-gray-600);
    transition: var(--np-transition-fast);
    font-size: 18px;
}

.np-search-toggle:hover {
    background: var(--np-red-alpha);
    color: var(--np-red);
}

/* Mobile Menu Toggle */
.np-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.np-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--np-gray-700);
    border-radius: 2px;
    transition: var(--np-transition);
}

.np-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.np-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.np-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Overlay */
.np-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--np-transition);
}

.np-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.np-search-box {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.np-search-box input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: var(--np-text-2xl);
    border: none;
    border-bottom: 3px solid var(--np-red);
    background: transparent;
    color: var(--np-white);
    font-family: var(--np-font-primary);
    outline: none;
}

.np-search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

.np-search-close {
    position: absolute;
    top: 20px;
    right: 0;
    background: none;
    border: none;
    color: var(--np-white);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.np-hero {
    padding: var(--np-space-xl) 0;
    background: var(--np-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.np-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
    min-height: 450px;
}

/* 4 cards 2x2 quad layout */
.np-hero-grid--quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 540px;
}

.np-hero-grid--quad .np-hero-side {
    min-height: 260px;
}

.np-hero-main {
    position: relative;
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    grid-row: span 2;
}

.np-hero-main .np-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-hero-main .np-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--np-space-2xl) var(--np-space-xl);
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--np-white);
}

.np-hero-main .np-hero-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--np-red);
    color: var(--np-white);
    border-radius: 4px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--np-space-sm);
}

.np-hero-main .np-hero-title {
    font-size: var(--np-text-3xl);
    font-weight: 800;
    color: var(--np-white);
    margin-bottom: var(--np-space-sm);
    line-height: 1.2;
}

.np-hero-main .np-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    font-size: var(--np-text-sm);
    opacity: 0.8;
}

.np-hero-side {
    position: relative;
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
}

.np-hero-side .np-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 215px;
}

.np-hero-side .np-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--np-space-lg);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--np-white);
}

.np-hero-side .np-hero-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    color: var(--np-white);
    line-height: 1.3;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.np-main-layout {
    display: grid;
    grid-template-columns: 1fr var(--np-sidebar-width);
    gap: var(--np-space-2xl);
    padding: var(--np-space-2xl) 0;
}

.np-content-area {
    min-width: 0;
}

/* ============================================
   NEWS TABS & TIMELINE
   ============================================ */
.np-tabs {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-xl);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.np-tabs::-webkit-scrollbar { display: none; }

.np-tab {
    padding: 8px 20px;
    font-size: var(--np-text-sm);
    font-weight: 500;
    color: var(--np-gray-500);
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--np-transition-fast);
}

.np-tab:hover {
    color: var(--np-red);
    border-color: var(--np-red);
}

.np-tab.active {
    background: var(--np-red);
    color: var(--np-white);
    border-color: var(--np-red);
}

/* News Timeline */
.np-timeline {
    position: relative;
    padding-left: var(--np-space-2xl);
}

.np-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--np-gray-200);
}

.np-timeline-date {
    position: relative;
    margin-bottom: var(--np-space-xl);
}

.np-timeline-date-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--np-space-sm);
    padding: 4px 16px;
    background: var(--np-gray-900);
    color: var(--np-white);
    border-radius: 20px;
    font-size: var(--np-text-xs);
    font-weight: 600;
    margin-bottom: var(--np-space-md);
    margin-left: calc(var(--np-space-2xl) * -1 + 14px);
}

.np-timeline-date-label::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--np-red);
    border-radius: 50%;
    border: 3px solid var(--np-white);
    box-shadow: 0 0 0 2px var(--np-red);
}

.np-timeline-item {
    position: relative;
    margin-bottom: var(--np-space-md);
}

.np-timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--np-space-2xl) * -1 + 4px);
    top: 18px;
    width: 6px;
    height: 6px;
    background: var(--np-gray-300);
    border-radius: 50%;
}

.np-news-card {
    display: flex;
    gap: var(--np-space-md);
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
}

.np-news-card:hover {
    box-shadow: var(--np-shadow-md);
    border-color: var(--np-red-alpha);
}

.np-news-card-img {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.np-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--np-transition);
}

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

.np-news-card-content {
    padding: var(--np-space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.np-news-card-category {
    font-size: var(--np-text-xs);
    font-weight: 700;
    color: var(--np-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.np-news-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--np-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-news-card-title a {
    color: var(--np-gray-900);
}

.np-news-card-title a:hover {
    color: var(--np-red);
}

.np-news-card-excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--np-space-sm);
}

.np-news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

.np-news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.np-sidebar {
    position: relative;
}

.np-sidebar-widget {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--np-space-lg);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-widget-title {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    padding: var(--np-space-md) var(--np-space-lg);
    font-size: var(--np-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--np-gray-100);
    color: var(--np-gray-900);
}

.np-widget-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--np-red);
    border-radius: 2px;
}

.np-widget-body {
    padding: var(--np-space-lg);
}

/* Social Widget */
.np-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-sm);
}

.np-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--np-space-md);
    border-radius: var(--np-border-radius);
    text-align: center;
    transition: var(--np-transition-fast);
    cursor: pointer;
    position: relative;
}

.np-social-item:hover {
    transform: translateY(-2px);
}

.np-social-item.facebook { background: #E7F0FD; color: #1877F2; }
.np-social-item.twitter { background: #E8F5FD; color: #1DA1F2; }
.np-social-item.youtube { background: #FDECEC; color: #FF0000; }
.np-social-item.instagram { background: #FDE8F0; color: #E4405F; }
.np-social-item.line { background: #E8F5E9; color: #00C300; }
.np-social-item.tiktok { background: #F0F0F0; color: #000000; }

.np-social-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.np-social-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--np-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content:center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    z-index: 2;
}

/* Hide count if it's 0 or empty */
.np-social-count:empty,
.np-social-count[data-count="0"],
.np-social-count:contains("0") {
    display: none;
}

.np-social-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Featured Posts Widget */
.np-featured-list {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-md);
}

.np-featured-item {
    display: flex;
    gap: var(--np-space-sm);
    align-items: flex-start;
}

.np-featured-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.np-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-featured-info h4 {
    font-size: var(--np-text-sm);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-featured-info h4 a {
    color: var(--np-gray-800);
}

.np-featured-info h4 a:hover {
    color: var(--np-red);
}

.np-featured-info .date {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

/* ============================================
   SINGLE POST
   ============================================ */
.np-single {
    max-width: 800px;
}

.np-single-header {
    margin-bottom: var(--np-space-xl);
}

.np-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-lg);
    font-size: var(--np-text-sm);
    color: var(--np-gray-400);
}

.np-single-breadcrumb a {
    color: var(--np-gray-500);
}

.np-single-breadcrumb a:hover {
    color: var(--np-red);
}

.np-single-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--np-red);
    color: var(--np-white);
    border-radius: 4px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--np-space-md);
}

.np-single-title {
    font-size: var(--np-text-4xl);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--np-space-md);
}

.np-single-meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-lg);
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    padding-bottom: var(--np-space-lg);
    border-bottom: 1px solid var(--np-gray-100);
}

.np-single-meta .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

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

.np-single-featured-img {
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    margin-bottom: var(--np-space-xl);
    box-shadow: var(--np-shadow-md);
}

.np-single-featured-img img {
    width: 100%;
    height: auto;
}

/* Single Post Content */
.np-single-content {
    font-size: var(--np-text-lg);
    line-height: 1.9;
    color: var(--np-gray-700);
}

.np-single-content p {
    margin-bottom: var(--np-space-lg);
}

.np-single-content h2 {
    margin: var(--np-space-2xl) 0 var(--np-space-md);
    padding-left: var(--np-space-md);
    border-left: 4px solid var(--np-red);
}

.np-single-content h3 {
    margin: var(--np-space-xl) 0 var(--np-space-md);
}

.np-single-content img {
    border-radius: var(--np-border-radius-lg);
    margin: var(--np-space-xl) 0;
}

.np-single-content blockquote {
    margin: var(--np-space-xl) 0;
    padding: var(--np-space-lg) var(--np-space-xl);
    background: var(--np-gray-50);
    border-left: 4px solid var(--np-red);
    border-radius: 0 var(--np-border-radius) var(--np-border-radius) 0;
    font-style: italic;
    color: var(--np-gray-600);
}

/* Share & Like */
.np-single-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--np-space-lg) 0;
    border-top: 1px solid var(--np-gray-100);
    border-bottom: 1px solid var(--np-gray-100);
    margin: var(--np-space-xl) 0;
}

.np-like-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--np-space-sm);
    padding: 8px 20px;
    background: var(--np-gray-50);
    border: 1px solid var(--np-gray-200);
    border-radius: 30px;
    cursor: pointer;
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-600);
    transition: var(--np-transition-fast);
}

.np-like-btn:hover,
.np-like-btn.liked {
    background: var(--np-red-alpha);
    border-color: var(--np-red);
    color: var(--np-red);
}

.np-share-btns {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
}

.np-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--np-white);
    font-size: 16px;
    transition: var(--np-transition-fast);
    cursor: pointer;
    border: none;
}

.np-share-btn:hover {
    transform: scale(1.1);
}

.np-share-btn.facebook { background: #1877F2; }
.np-share-btn.twitter { background: #1DA1F2; }
.np-share-btn.line-share { background: #00C300; }
.np-share-btn.copy-link { background: var(--np-gray-700); }

/* ============================================
   CLASSIFIED PAGES (Cars, Jobs, Real Estate)
   ============================================ */
.np-classified-hero {
    padding: var(--np-space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.np-classified-hero.cars { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); }
.np-classified-hero.jobs { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); }
.np-classified-hero.realestate { background: linear-gradient(135deg, #e65100 0%, #ef6c00 100%); }

.np-classified-hero-content {
    text-align: center;
    color: var(--np-white);
    position: relative;
    z-index: 2;
}

.np-classified-hero h1 {
    font-size: var(--np-text-4xl);
    font-weight: 900;
    color: var(--np-white);
    margin-bottom: var(--np-space-md);
}

.np-classified-hero p {
    font-size: var(--np-text-lg);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto var(--np-space-xl);
}

/* Search/Filter Bar */
.np-filter-bar {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-lg);
    box-shadow: var(--np-shadow-lg);
    margin-bottom: var(--np-space-2xl);
}

.np-filter-grid {
    display: grid;
    gap: var(--np-space-md);
}

.np-filter-grid.cars { grid-template-columns: repeat(4, 1fr) auto; }
.np-filter-grid.jobs { grid-template-columns: repeat(3, 1fr) auto; }
.np-filter-grid.realestate { grid-template-columns: repeat(4, 1fr) auto; }

.np-filter-group label {
    display: block;
    font-size: var(--np-text-xs);
    font-weight: 600;
    color: var(--np-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.np-filter-group select,
.np-filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
    background: var(--np-gray-50);
    transition: var(--np-transition-fast);
    outline: none;
}

.np-filter-group select:focus,
.np-filter-group input:focus {
    border-color: var(--np-red);
    background: var(--np-white);
    box-shadow: 0 0 0 3px var(--np-red-alpha);
}

/* Classified Cards Grid */
.np-classified-grid {
    display: grid;
    gap: var(--np-space-lg);
}

.np-classified-grid.cars { grid-template-columns: repeat(3, 1fr); }
.np-classified-grid.jobs { grid-template-columns: repeat(2, 1fr); }
.np-classified-grid.realestate { grid-template-columns: repeat(3, 1fr); }

/* Car Card */
.np-car-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
}

.np-car-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-4px);
}

.np-car-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.np-car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--np-transition);
}

.np-car-card:hover .np-car-card-img img {
    transform: scale(1.08);
}

.np-car-card-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: var(--np-white);
    border-radius: 4px;
    font-size: var(--np-text-xs);
    font-weight: 600;
}

.np-car-card-body {
    padding: var(--np-space-md);
}

.np-car-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    margin-bottom: var(--np-space-sm);
}

.np-car-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-md);
    padding: var(--np-space-sm) 0;
    border-top: 1px solid var(--np-gray-100);
    border-bottom: 1px solid var(--np-gray-100);
}

.np-car-spec {
    text-align: center;
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
}

.np-car-spec strong {
    display: block;
    font-size: var(--np-text-sm);
    color: var(--np-gray-800);
}

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

.np-car-price {
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-cars);
}

.np-car-dealer {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

/* Job Card */
.np-job-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-lg);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 4px solid var(--np-jobs);
    transition: var(--np-transition);
}

.np-job-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-3px);
}

.np-job-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-md);
}

.np-job-company-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-job-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    margin-bottom: 4px;
}

.np-job-company-name {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
}

.np-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-md);
}

.np-job-tag {
    padding: 4px 12px;
    background: var(--np-jobs-light);
    color: var(--np-jobs);
    border-radius: 20px;
    font-size: var(--np-text-xs);
    font-weight: 500;
}

.np-job-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-md);
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
}

.np-job-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.np-job-salary {
    font-size: var(--np-text-lg);
    font-weight: 800;
    color: var(--np-jobs);
}

/* Real Estate Card */
.np-property-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
}

.np-property-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-4px);
}

.np-property-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.np-property-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--np-transition);
}

.np-property-card:hover .np-property-card-img img {
    transform: scale(1.08);
}

.np-property-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--np-realestate);
    color: var(--np-white);
    border-radius: 4px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.np-property-card-body {
    padding: var(--np-space-md);
}

.np-property-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    margin-bottom: 4px;
}

.np-property-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    margin-bottom: var(--np-space-md);
}

.np-property-specs {
    display: flex;
    gap: var(--np-space-md);
    padding: var(--np-space-sm) 0;
    border-top: 1px solid var(--np-gray-100);
    border-bottom: 1px solid var(--np-gray-100);
    margin-bottom: var(--np-space-md);
}

.np-property-spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-600);
}

.np-property-price {
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-realestate);
}

.np-property-agency {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    margin-top: 4px;
}

/* ============================================
   USER PROFILE / DASHBOARD
   ============================================ */
.np-profile-hero {
    background: linear-gradient(135deg, var(--np-charcoal) 0%, var(--np-black) 100%);
    padding: var(--np-space-2xl) 0;
    color: var(--np-white);
    position: relative;
    overflow: hidden;
}

.np-profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,...') no-repeat right center;
    opacity: 0.05;
}

.np-profile-header {
    display: flex;
    align-items: center;
    gap: var(--np-space-xl);
    position: relative;
    z-index: 2;
}

.np-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

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

.np-profile-info h1 {
    font-size: var(--np-text-3xl);
    font-weight: 800;
    color: var(--np-white);
    margin-bottom: 4px;
}

.np-profile-info .company-type {
    display: inline-flex;
    align-items: center;
    gap: var(--np-space-sm);
    padding: 4px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: var(--np-text-sm);
    margin-bottom: var(--np-space-sm);
}

.np-profile-stats {
    display: flex;
    gap: var(--np-space-xl);
    margin-top: var(--np-space-md);
}

.np-profile-stat {
    text-align: center;
}

.np-profile-stat-number {
    font-size: var(--np-text-2xl);
    font-weight: 800;
}

.np-profile-stat-label {
    font-size: var(--np-text-xs);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard Tabs */
.np-dashboard {
    padding: var(--np-space-2xl) 0;
}

.np-dashboard-tabs {
    display: flex;
    gap: 0;
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--np-gray-200);
    margin-bottom: var(--np-space-xl);
}

/* ============================================
   ACCOUNT TYPE SELECTOR (meu-perfil)
   ============================================ */
.np-account-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--np-space-md);
}

.np-account-type-card {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    padding: var(--np-space-lg);
    border: 2px solid var(--np-gray-200);
    border-radius: var(--np-border-radius-lg);
    cursor: pointer;
    transition: var(--np-transition-fast);
    background: var(--np-white);
    position: relative;
}

.np-account-type-card:hover {
    border-color: var(--np-gray-400);
    background: var(--np-gray-50);
}

.np-account-type-card.selected {
    border-color: currentColor;
    background: var(--np-gray-50);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.np-account-type-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--np-border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.np-account-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.np-account-type-info strong {
    font-size: var(--np-text-sm);
    font-weight: 700;
    color: var(--np-gray-900);
}

.np-account-type-info span {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    line-height: 1.4;
}

.np-account-type-check {
    font-size: 20px;
    opacity: 0;
    transition: var(--np-transition-fast);
}

.np-account-type-card.selected .np-account-type-check {
    opacity: 1;
}

/* ============================================
   INFO UTEIS — 3col forced grid
   ============================================ */
.np-info-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.np-info-section .np-hs-header {
    margin-bottom: var(--np-space-lg);
}

.np-info-ad-slot {
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
}

.np-dashboard-tab {
    flex: 1;
    padding: var(--np-space-md);
    text-align: center;
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-500);
    cursor: pointer;
    transition: var(--np-transition-fast);
    border-bottom: 3px solid transparent;
}

.np-dashboard-tab:hover {
    color: var(--np-gray-700);
    background: var(--np-gray-50);
}

.np-dashboard-tab.active {
    color: var(--np-red);
    border-bottom-color: var(--np-red);
    background: var(--np-red-alpha);
}

/* Dashboard Post List */
.np-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-md);
}

.np-dashboard-item {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-md);
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition-fast);
}

.np-dashboard-item:hover {
    box-shadow: var(--np-shadow-sm);
}

.np-dashboard-item-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.np-dashboard-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-dashboard-item-info {
    flex: 1;
    min-width: 0;
}

.np-dashboard-item-title {
    font-size: var(--np-text-sm);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-dashboard-item-meta {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

.np-dashboard-item-actions {
    display: flex;
    gap: var(--np-space-sm);
    flex-shrink: 0;
}

.np-dashboard-item-actions .np-btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-dashboard-item-actions .edit-btn {
    background: var(--np-cars-light);
    color: var(--np-cars);
    border: none;
    cursor: pointer;
}

.np-dashboard-item-actions .delete-btn {
    background: var(--np-red-alpha);
    color: var(--np-red);
    border: none;
    cursor: pointer;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.np-contact-section {
    padding: var(--np-space-3xl) 0;
}

.np-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-2xl);
}

.np-contact-form {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    box-shadow: var(--np-shadow-md);
}

.np-form-group {
    margin-bottom: var(--np-space-lg);
}

.np-form-group label {
    display: block;
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-700);
    margin-bottom: var(--np-space-sm);
}

.np-form-group input,
.np-form-group textarea,
.np-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-base);
    color: var(--np-gray-700);
    transition: var(--np-transition-fast);
    outline: none;
    background: var(--np-gray-50);
}

.np-form-group input:focus,
.np-form-group textarea:focus,
.np-form-group select:focus {
    border-color: var(--np-red);
    box-shadow: 0 0 0 3px var(--np-red-alpha);
    background: var(--np-white);
}

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

.np-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-lg);
}

.np-contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-md);
    padding: var(--np-space-lg);
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--np-border-radius);
    background: var(--np-red-alpha);
    color: var(--np-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.np-contact-card h4 {
    font-size: var(--np-text-base);
    font-weight: 700;
    margin-bottom: 4px;
}

.np-contact-card p {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
.np-footer {
    background: var(--np-gray-900);
    color: rgba(255,255,255,0.7);
    padding: var(--np-space-3xl) 0 0;
}

.np-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--np-space-2xl);
    padding-bottom: var(--np-space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
align-items: flex-start;
}

.np-footer-brand .np-logo-text {
    color: var(--np-white);
    font-size: var(--np-text-2xl);
}

.np-footer-brand p {
    margin-top: var(--np-space-md);
    font-size: var(--np-text-sm);
    line-height: 1.8;
}

.np-footer h4 {
    color: var(--np-white);
    font-size: var(--np-text-base);
    font-weight: 700;
    margin-bottom: var(--np-space-lg);
    position: relative;
    padding-bottom: var(--np-space-sm);
}

.np-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--np-red);
}

.np-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-sm);
}

.np-footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--np-text-sm);
    transition: var(--np-transition-fast);
}

.np-footer-links a:hover {
    color: var(--np-white);
    padding-left: 4px;
}

.np-footer-bottom {
    padding: var(--np-space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--np-text-sm);
}

.np-footer-social {
    display: flex;
    gap: var(--np-space-sm);
}

.np-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--np-transition-fast);
}

.np-footer-social a:hover {
    background: var(--np-red);
    color: var(--np-white);
}

/* ============================================
   FRONTEND FORM (Submit Post)
   ============================================ */
.np-submit-form {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    box-shadow: var(--np-shadow-md);
}

.np-submit-form h2 {
    margin-bottom: var(--np-space-xl);
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
}

.np-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
}

.np-image-upload {
    border: 2px dashed var(--np-gray-300);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-2xl);
    text-align: center;
    cursor: pointer;
    transition: var(--np-transition-fast);
    background: var(--np-gray-50);
}

.np-image-upload:hover {
    border-color: var(--np-red);
    background: var(--np-red-alpha);
}

.np-image-upload .upload-icon {
    font-size: 48px;
    color: var(--np-gray-300);
    margin-bottom: var(--np-space-sm);
}

.np-image-upload p {
    color: var(--np-gray-500);
    font-size: var(--np-text-sm);
}

/* ============================================
   PAGINATION
   ============================================ */
.np-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--np-space-sm);
    margin-top: var(--np-space-2xl);
}

.np-pagination a,
.np-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--np-border-radius);
    font-size: var(--np-text-sm);
    font-weight: 600;
    border: 1px solid var(--np-gray-200);
    color: var(--np-gray-600);
    transition: var(--np-transition-fast);
}

.np-pagination a:hover {
    border-color: var(--np-red);
    color: var(--np-red);
}

.np-pagination .current {
    background: var(--np-red);
    border-color: var(--np-red);
    color: var(--np-white);
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.np-animate {
    animation: fadeIn 0.6s ease-out;
}

/* Japanese decorative element */
.np-jp-decoration {
    position: relative;
}

.np-jp-decoration::after {
    content: '◆';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--np-red);
    font-size: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --np-sidebar-width: 280px;
    }

    .np-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .np-hero-main {
        grid-row: span 1;
        min-height: 350px;
    }

    .np-hero-grid .np-hero-side-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--np-space-md);
    }

    .np-classified-grid.cars,
    .np-classified-grid.realestate {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-classified-grid.jobs {
        grid-template-columns: 1fr;
    }

    .np-filter-grid.cars,
    .np-filter-grid.realestate {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-filter-grid.jobs {
        grid-template-columns: 1fr 1fr;
    }

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

    .np-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --np-text-4xl: 1.75rem;
        --np-text-3xl: 1.5rem;
        --np-text-2xl: 1.25rem;
    }

    .np-main-layout {
        grid-template-columns: 1fr;
    }

    .np-nav {
        display: none;
    }

    .np-mobile-toggle {
        display: flex;
    }

    /* Mobile Menu */
    .np-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--np-white);
        box-shadow: var(--np-shadow-xl);
        z-index: 10000;
        padding: var(--np-space-xl);
        overflow-y: auto;
    }

    .np-nav.mobile-open .np-nav-menu {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .np-nav.mobile-open .np-nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .np-nav.mobile-open .np-nav-link {
        width: 100%;
        padding: var(--np-space-md);
        height: auto;
    }

    .np-nav.mobile-open .np-nav-link::after {
        display: none;
    }

    .np-nav.mobile-open .np-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding-left: var(--np-space-lg);
    }

    /* v2.6.5: Bloco duplicado removido — a declaração global em
       MOBILE FIXES v2.0 já controla o overlay corretamente com
       opacity/visibility/pointer-events. Esta versão causava o
       overlay sempre visível no mobile bloqueando cliques. */

    .np-hero-grid {
        grid-template-columns: 1fr;
    }

    .np-hero-main {
        min-height: 280px;
    }

    .np-hero-main .np-hero-title {
        font-size: var(--np-text-xl);
    }

    .np-news-card {
        flex-direction: column;
    }

    .np-news-card-img {
        width: 100%;
        min-height: 180px;
    }

    .np-classified-grid.cars,
    .np-classified-grid.jobs,
    .np-classified-grid.realestate {
        grid-template-columns: 1fr;
    }

    .np-filter-grid.cars,
    .np-filter-grid.jobs,
    .np-filter-grid.realestate {
        grid-template-columns: 1fr;
    }

    .np-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .np-profile-stats {
        justify-content: center;
    }

    .np-dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .np-dashboard-tab {
        white-space: nowrap;
        min-width: auto;
    }

    .np-form-row {
        grid-template-columns: 1fr;
    }

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

    .np-footer-bottom {
        flex-direction: column;
        gap: var(--np-space-md);
        text-align: center;
    }

    .np-single-title {
        font-size: var(--np-text-2xl);
    }

    .np-single-meta {
        flex-wrap: wrap;
    }

    .np-single-actions {
        flex-direction: column;
        gap: var(--np-space-md);
    }

    .np-top-bar {
        display: none;
    }

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

/* Small Mobile */
@media (max-width: 480px) {
    .np-container {
        padding: 0 var(--np-space-md);
    }

    .np-hero-main {
        min-height: 220px;
    }

    .np-social-grid {
        grid-template-columns: 1fr 1fr;
    }

    .np-car-card-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-property-specs {
        flex-wrap: wrap;
    }
}

/* ============================================
   DARK MODE SUPPORT (via class)
   ============================================ */
body.np-dark {
    --np-gray-50: #1A1A2E;
    --np-gray-100: #16213E;
    --np-gray-200: #0F3460;
    --np-gray-700: #BBB;
    --np-gray-800: #DDD;
    --np-gray-900: #F0F0F0;
    --np-white: #1A1A2E;
    background-color: #0D0D1A;
}

body.np-dark .np-header {
    background: rgba(26, 26, 46, 0.95);
    border-bottom-color: rgba(255,255,255,0.06);
}

body.np-dark .np-card,
body.np-dark .np-sidebar-widget,
body.np-dark .np-news-card,
body.np-dark .np-car-card,
body.np-dark .np-job-card,
body.np-dark .np-property-card,
body.np-dark .np-dashboard-item,
body.np-dark .np-contact-form,
body.np-dark .np-submit-form {
    background: #16213E;
    border-color: rgba(255,255,255,0.06);
}

body.np-dark .np-logo-text {
    color: var(--np-white);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .np-header,
    .np-footer,
    .np-sidebar,
    .np-ad-banner,
    .np-single-actions,
    .np-search-overlay {
        display: none !important;
    }

    .np-main-layout {
        grid-template-columns: 1fr;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ============================================
   NIHON PORTAL v2.0 - NEW STYLES
   ============================================ */

/* ---------- COMPANY COLOR ---------- */
:root {
    --np-company: #22b88a;
    --np-company-light: #E8F8F3;
}

/* ============================================
   TRENDS TICKER
   ============================================ */
.np-trends-ticker {
    background: var(--np-gray-900);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.np-trends-inner {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
}

.np-trends-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--np-red);
    color: var(--np-white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
}

.np-trends-label i {
    font-size: 14px;
}

.np-trends-track {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.np-trends-slide {
    display: flex;
    gap: var(--np-space-2xl);
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.np-trend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: var(--np-text-sm);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.np-trend-item:hover {
    color: var(--np-white);
}

.np-trend-dot {
    width: 5px;
    height: 5px;
    background: var(--np-red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   HERO "VER POST" BUTTON STYLES
   ============================================ */
.np-hero-overlay .np-btn {
    backdrop-filter: blur(4px);
}

/* ============================================
   NEWS CARD FOOTER ROW (with Ver Post)
   ============================================ */
.np-news-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--np-space-sm);
    margin-top: auto;
}

.np-btn-ver-post {
    flex-shrink: 0;
    font-size: 11px !important;
    padding: 4px 12px !important;
    border-color: var(--np-red) !important;
    color: var(--np-red) !important;
}

.np-btn-ver-post:hover {
    background: var(--np-red) !important;
    color: var(--np-white) !important;
}

/* ============================================
   HOME SECTIONS — Category News Layout
   ============================================ */

/* Section wrapper */
.np-home-section {
    margin-bottom: var(--np-space-3xl);
}

/* Section header: title left, "ver todos" button right */
.np-hs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--np-space-lg);
    gap: var(--np-space-md);
}
.np-hs-header .np-section-title {
    margin-bottom: 0;
}

/* ── NEWS SWIPER CAROUSEL ──────────────────────────────── */
.np-news-swiper {
    position: relative;
    padding-bottom: 36px !important;
}
.np-news-swiper .swiper-wrapper {
    align-items: stretch;
}
.np-news-swiper .swiper-slide {
    width: 280px;
    height: auto;
}
.np-news-swiper__pagination {
    bottom: 0 !important;
}
.np-news-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--np-red) !important;
}
.np-news-swiper__prev,
.np-news-swiper__next {
    width: 36px !important;
    height: 36px !important;
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: 50%;
    box-shadow: var(--np-shadow-sm);
    color: var(--np-gray-700);
    top: 40% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--np-transition-fast);
}
.np-news-swiper__prev:hover,
.np-news-swiper__next:hover {
    background: var(--np-red);
    border-color: var(--np-red);
    color: var(--np-white);
}
.np-news-swiper__prev::after,
.np-news-swiper__next::after { display: none; }
.np-news-swiper__prev i,
.np-news-swiper__next i { font-size: 20px; line-height: 1; }

/* ── UNIFIED HOME CARD (np-hc) ────────────────────────── */
.np-hc {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.np-hc:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-3px);
}

/* Image wrap */
.np-hc__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}
.np-hc__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--np-transition);
}
.np-hc:hover .np-hc__img-wrap img {
    transform: scale(1.04);
}

/* Category badge on image */
.np-hc__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--np-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Body */
.np-hc__body {
    padding: var(--np-space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--np-space-sm);
}
.np-hc__title {
    font-size: var(--np-text-base);
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-hc__title a { color: var(--np-gray-900); }
.np-hc__title a:hover { color: var(--np-red); }
.np-hc__excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.np-hc__meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    margin-top: auto;
}
.np-hc__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── SIZE VARIANTS ────────────────────────────────────── */

/* carousel slide card */
.np-hc--carousel .np-hc__img-wrap { height: 160px; }
.np-hc--carousel .np-hc__title { font-size: var(--np-text-sm); }

/* large card */
.np-hc--large .np-hc__img-wrap { height: 432px; }
.np-hc--large .np-hc__title { font-size: var(--np-text-xl); -webkit-line-clamp: 3; }
.np-hc--large .np-hc__excerpt { -webkit-line-clamp: 4; }

/* medium card */
.np-hc--medium .np-hc__img-wrap { height: 180px; }
.np-hc--medium .np-hc__title { font-size: var(--np-text-base); }

/* spotlight card (full width) */
.np-hc--spotlight {
    flex-direction: row;
    height: auto;
    max-height: 320px;
}
.np-hc--spotlight .np-hc__img-wrap {
    width: 50%;
    height: auto;
    max-height: 320px;
    flex-shrink: 0;
}
.np-hc--spotlight .np-hc__body {
    justify-content: center;
    padding: var(--np-space-xl);
}
.np-hc--spotlight .np-hc__title {
    font-size: var(--np-text-2xl);
    -webkit-line-clamp: 3;
}
.np-hc--spotlight .np-hc__excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--np-text-base);
}

/* ── GRID LAYOUTS ─────────────────────────────────────── */

/* FEATURED: 1 large (left) + 2 medium stacked (right) */
.np-hs-grid--featured {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--np-space-lg);
    align-items: start;
}
.np-hs-grid__side {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-md);
    height: 100%;
}
.np-hs-grid__side .np-hc--medium .np-hc__img-wrap { height: 130px; }

/* DUO: 2 large cards side by side */
.np-hs-grid--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-lg);
    align-items: start;
}

/* TRIO: 3 medium cards */
.np-hs-grid--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
    align-items: start;
}

/* SPOTLIGHT: full-width single */
.np-hs-grid--spotlight {
    display: block;
}

/* ── DARK MODE ────────────────────────────────────────── */
body.np-dark .np-hc {
    background: var(--np-charcoal);
    border-color: rgba(255,255,255,0.07);
}
body.np-dark .np-hc__title a { color: var(--np-gray-100); }
body.np-dark .np-news-swiper__prev,
body.np-dark .np-news-swiper__next {
    background: var(--np-charcoal);
    border-color: rgba(255,255,255,0.1);
    color: var(--np-gray-300);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .np-hs-grid--featured {
        grid-template-columns: 1fr;
    }
    .np-hs-grid__side {
        flex-direction: row;
    }
    .np-hs-grid__side .np-hc--medium .np-hc__img-wrap { height: 160px; }
    .np-hc--spotlight {
        flex-direction: column;
        max-height: none;
    }
    .np-hc--spotlight .np-hc__img-wrap {
        width: 100%;
        height: 260px;
    }
}
@media (max-width: 768px) {
    .np-hs-grid--duo,
    .np-hs-grid--trio {
        grid-template-columns: 1fr;
    }
    .np-hs-grid__side {
        flex-direction: column;
    }
    .np-news-swiper .swiper-slide {
        width: 240px;
    }
    .np-hs-header {
        flex-wrap: wrap;
    }
}


/* ============================================
   AJAX PAGINATION
   ============================================ */
.np-ajax-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--np-space-2xl);
    margin-bottom: var(--np-space-xl);
}

.np-btn-load-more {
    padding: 12px 36px !important;
    font-size: var(--np-text-base) !important;
    border-radius: 30px !important;
    transition: var(--np-transition);
}

.np-btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--np-shadow-md);
}

.np-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.ri-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   COMPANY CARDS (Business Directory)
   ============================================ */
.np-classified-hero.companies {
    background: linear-gradient(135deg, #004d40 0%, #0d7377 100%);
}

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

.np-filter-grid.companies {
    grid-template-columns: repeat(3, 1fr) auto;
}

.np-company-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-lg);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 4px solid var(--np-company);
    transition: var(--np-transition);
    display: flex;
    flex-direction: column;
}

.np-company-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-4px);
}

.np-company-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-md);
}

.np-company-card-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-company-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    margin-bottom: 4px;
}

.np-company-card-title a {
    color: var(--np-gray-900);
}

.np-company-card-title a:hover {
    color: var(--np-company);
}

.np-company-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--np-text-xs);
    color: var(--np-company);
    background: var(--np-company-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.np-company-card-body {
    flex: 1;
    margin-bottom: var(--np-space-md);
}

.np-company-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-600);
    margin-bottom: 6px;
}

.np-company-detail i {
    color: var(--np-gray-400);
    font-size: 14px;
    flex-shrink: 0;
}

.np-company-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--np-space-md);
    border-top: 1px solid var(--np-gray-100);
    margin-top: auto;
}

.np-company-social {
    display: flex;
    gap: var(--np-space-sm);
}

.np-company-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--np-gray-500);
    font-size: 14px;
    transition: var(--np-transition-fast);
}

.np-company-social a:hover {
    background: var(--np-company);
    color: var(--np-white);
}

/* Single Company Page */
.np-single-company {}

.np-company-profile-header {
    display: flex;
    align-items: center;
    gap: var(--np-space-xl);
    margin-bottom: var(--np-space-xl);
    padding: var(--np-space-xl);
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-company-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.np-company-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-company-profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--np-gray-400);
}

.np-company-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-xl);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-company-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-sm);
}

.np-company-detail-item i {
    font-size: 18px;
    color: var(--np-company);
    margin-top: 2px;
}

.np-company-detail-item small {
    display: block;
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.np-company-detail-item span,
.np-company-detail-item a {
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
}

.np-company-services {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-xl);
    border: 1px solid rgba(0,0,0,0.06);
}

.np-company-services h3 {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-lg);
    font-size: var(--np-text-xl);
    color: var(--np-company);
}

/* ============================================
   FOOTER DESCRIPTION
   ============================================ */
.np-footer-description {
    font-size: var(--np-text-sm);
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-top: var(--np-space-md);
    max-width: 360px;
}

/* v2.7.1: Texto abaixo do logo no footer */
.np-footer-logo-text {
    font-size: var(--np-text-sm);
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin-top: var(--np-space-sm);
    margin-bottom: var(--np-space-sm);
    max-width: 360px;
    font-style: italic;
}

/* ============================================
   BACK TO TOP BUTTON (fixed position)
   ============================================ */
.np-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--np-red);
    color: var(--np-white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--np-shadow-lg);
    z-index: 999;
    transition: var(--np-transition);
}

.np-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--np-shadow-xl);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.np-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: var(--np-border-radius);
    font-size: var(--np-text-sm);
    font-weight: 600;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--np-shadow-lg);
}

.np-notification.show {
    transform: translateX(0);
}

.np-notification-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.np-notification-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.np-notification-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

/* ============================================
   MOBILE FIXES v2.0
   ============================================ */

/* --- Mobile Overlay with CSS transition --- */
/* v2.6.5: Adicionado pointer-events + display none/block para garantir
   que o overlay nunca bloqueie cliques quando não está ativo */
.np-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.np-mobile-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  z-index:999;
}

/* --- Mobile Toggle Fix (stays inside screen) --- */
@media (max-width: 768px) {
    .np-header-inner {
        padding: 0 var(--np-space-sm);
    }

    .np-header-actions {
        flex-shrink: 0;
        gap: 4px;
    }

    /* Hide button text on mobile, keep icons */
    .np-header-btn-profile .np-btn-text,
    .np-header-btn-login .np-btn-text,
    .np-header-btn-register .np-btn-text {
        display: none;
    }

    .np-header-btn-profile,
    .np-header-btn-login,
    .np-header-btn-register {
        padding: 6px 10px;
        font-size: 16px;
    }

    /* Mobile toggle stays in-screen */
    .np-mobile-toggle {
        display: flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin-left: 2px;
    }

    /* Smooth mobile nav transition */
    .np-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--np-white);
        box-shadow: var(--np-shadow-xl);
        z-index: 10000;
        padding: var(--np-space-xl);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    .np-nav.mobile-open {
        transform: translateX(0);
        visibility: visible;
    }

    .np-nav .np-nav-menu {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .np-nav .np-nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .np-nav .np-nav-link {
        width: 100%;
        padding: var(--np-space-md);
        height: auto;
        border-radius: var(--np-border-radius);
        transition: background 0.2s ease;
    }

    .np-nav .np-nav-link:hover,
    .np-nav .np-nav-link.active {
        background: var(--np-red-alpha);
    }

    .np-nav .np-nav-link::after {
        display: none;
    }

    .np-nav .np-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding-left: var(--np-space-lg);
    }

    /* Trends ticker responsive */
    .np-trends-label span {
        display: none;
    }

    .np-trends-label {
        padding: 4px 10px;
    }

    /* Company grid responsive */
    .np-classified-grid.companies {
        grid-template-columns: 1fr;
    }

    .np-filter-grid.companies {
        grid-template-columns: 1fr;
    }

    .np-company-details-grid {
        grid-template-columns: 1fr;
    }

    .np-company-profile-header {
        flex-direction: column;
        text-align: center;
    }

    /* News card footer row mobile */
    .np-news-card-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Small mobile additional fixes */
@media (max-width: 480px) {
    .np-header-btn-register {
        display: none !important;
    }

    .np-hero-overlay .np-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ============================================
   MOBILE TOGGLE SMOOTH ANIMATION (override)
   ============================================ */
.np-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--np-gray-700);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    transform-origin: center;
}

.np-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.np-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.np-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   v2.1 FIXES & IMPROVEMENTS
   ============================================ */

/* --- Fix: Sidebar gap too large --- */
.np-main-layout {
    gap: var(--np-space-lg);
}

/* --- Improved Single Post Styling --- */
.np-single-header {
    margin-bottom: var(--np-space-xl);
}
.np-single-title {
    font-size: var(--np-text-3xl);
    line-height: 1.3;
    font-weight: 900;
    margin: var(--np-space-sm) 0 var(--np-space-md);
}
.np-single-meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    flex-wrap: wrap;
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
}
.np-single-featured-img {
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    margin-bottom: var(--np-space-xl);
    box-shadow: var(--np-shadow-md);
}
.np-single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}
.np-single-content {
    font-size: var(--np-text-base);
    line-height: 1.85;
    color: var(--np-gray-700);
}
.np-single-content p {
    margin-bottom: var(--np-space-lg);
}
.np-single-content h2 {
    font-size: var(--np-text-2xl);
    margin: var(--np-space-2xl) 0 var(--np-space-md);
    font-weight: 800;
    padding-bottom: var(--np-space-sm);
    border-bottom: 2px solid var(--np-red-alpha);
}
.np-single-content h3 {
    font-size: var(--np-text-xl);
    margin: var(--np-space-xl) 0 var(--np-space-sm);
    font-weight: 700;
}
.np-single-content img {
    border-radius: var(--np-border-radius-lg);
    max-width: 100%;
    height: auto;
}
.np-single-content blockquote {
    border-left: 4px solid var(--np-red);
    padding: var(--np-space-md) var(--np-space-lg);
    background: var(--np-gray-50);
    border-radius: 0 var(--np-border-radius) var(--np-border-radius) 0;
    margin: var(--np-space-lg) 0;
    font-style: italic;
    color: var(--np-gray-600);
}
.np-single-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--np-space-md);
    padding: var(--np-space-lg) 0;
    border-top: 1px solid var(--np-gray-100);
    margin-top: var(--np-space-xl);
}

/* --- Related Posts Grid (improved) --- */
.np-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-md);
}
.np-related-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--np-gray-100);
}
.np-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-lg);
}
.np-related-card-img {
    height: 180px;
    overflow: hidden;
}
.np-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.np-related-card:hover .np-related-card-img img {
    transform: scale(1.05);
}
.np-related-card-body {
    padding: var(--np-space-md);
}
.np-related-card-body h4 {
    font-size: var(--np-text-base);
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-related-card-body h4 a:hover {
    color: var(--np-red) !important;
}

/* --- Contact Page Fix --- */
.np-contact-section {
    padding: var(--np-space-2xl) 0;
}
.np-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--np-space-2xl);
}
.np-contact-form {
    background: var(--np-white);
    padding: var(--np-space-2xl);
    border-radius: var(--np-border-radius-xl);
    box-shadow: var(--np-shadow-md);
}
.np-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-md);
}
.np-contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-md);
    padding: var(--np-space-lg);
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-sm);
    border: 1px solid var(--np-gray-100);
}
.np-contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--np-red-alpha);
    color: var(--np-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.np-contact-card h4 {
    font-size: var(--np-text-sm);
    font-weight: 700;
    margin-bottom: 2px;
}
.np-contact-card p {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    margin: 0;
}

/* --- Comments Styling --- */
.np-comments-area {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    padding-bottom: var(--np-space-3xl);
  margin-bottom:50px;
}
.np-comment-form .np-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-sm);
    resize: vertical;
}
.np-comment-form .np-form-group textarea:focus {
    border-color: var(--np-red);
    outline: none;
    box-shadow: 0 0 0 3px var(--np-red-alpha);
}

/* --- Improved Company Archive Page --- */
.np-classified-hero.companies {
    background: linear-gradient(135deg, #004d40 0%, #0d7377 50%, #00897b 100%);
    padding: var(--np-space-3xl) 0 calc(var(--np-space-3xl) + 30px);
}
.np-classified-grid.companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--np-space-lg);
}

/* Company Card (Archive) - Enhanced */
.np-company-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
    border: 1px solid var(--np-gray-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.np-company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-lg);
    border-color: var(--np-company-light);
}
.np-company-card-header {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    padding: var(--np-space-lg);
    border-bottom: 1px solid var(--np-gray-50);
}
.np-company-card-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--np-company-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.np-company-card-info {
    min-width: 0;
}
.np-company-card-title {
    font-size: var(--np-text-base);
    font-weight: 700;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-company-card-title a {
    color: var(--np-gray-900);
}
.np-company-card-title a:hover {
    color: var(--np-company);
}
.np-company-card-cat {
    font-size: var(--np-text-xs);
    color: var(--np-company);
    background: var(--np-company-light);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.np-company-card-body {
    padding: var(--np-space-md) var(--np-space-lg);
    flex: 1;
}
.np-company-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-600);
    margin-bottom: 8px;
}
.np-company-detail i {
    color: var(--np-company);
    font-size: 16px;
    width: 16px;
    text-align: center;
}
.np-company-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--np-space-md) var(--np-space-lg);
    border-top: 1px solid var(--np-gray-100);
    margin-top: auto;
}
.np-company-social {
    display: flex;
    gap: 8px;
}
.np-company-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--np-gray-100);
    color: var(--np-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.np-company-social a:hover {
    background: var(--np-company);
    color: #fff;
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {
    .np-main-layout {
        grid-template-columns: 1fr;
        gap: var(--np-space-lg);
    }
    .np-related-grid {
        grid-template-columns: 1fr;
    }
    .np-contact-grid {
        grid-template-columns: 1fr;
    }
    .np-classified-grid.companies {
        grid-template-columns: 1fr;
    }
    /* Fix single CPT 2-column layouts on mobile */
    [style*="grid-template-columns:1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .np-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Polished Archive Pages --- */
.np-car-card,
.np-job-card,
.np-property-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.np-car-card:hover,
.np-job-card:hover,
.np-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-lg);
}

/* Job tag styling */
.np-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--np-jobs-light, #E8F5E9);
    color: var(--np-jobs, #2E7D32);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Form Improvements --- */
.np-form-group {
    margin-bottom: var(--np-space-md);
}
.np-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
}
.np-form-group input,
.np-form-group select,
.np-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.np-form-group input:focus,
.np-form-group select:focus,
.np-form-group textarea:focus {
    border-color: var(--np-red);
    outline: none;
    box-shadow: 0 0 0 3px var(--np-red-alpha);
}
.np-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
}

/* --- Fix Load More button --- */
.np-ajax-pagination {
    text-align: center;
    padding: var(--np-space-xl) 0;
}
.np-btn-load-more {
    padding: 12px 32px;
    font-size: var(--np-text-base);
    font-weight: 600;
}
.np-btn-load-more:hover:not(:disabled) {
    background: var(--np-red);
    color: #fff;
    border-color: var(--np-red);
}
.np-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Logo sizing handled dynamically by nihon_logo_responsive_css() in admin-settings.php ---
   Hardcoded overrides removed in v2.6.2 to avoid conflicting with dashboard settings */

/* ============================================
   NIHON PORTAL v2.1 - BUG FIXES & NEW LAYOUTS
   ============================================ */

/* ---------- FIX: Contact Hero Background ---------- */
.np-classified-hero.contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #14795c 100%) !important;
}

/* ---------- FIX: Category Hero Background ---------- */
.np-classified-hero.category-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #1a9a75 100%);
}

/* ---------- Category Page Layout ---------- */
.np-category-page {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--np-space-lg);
}

.np-category-page .np-timeline {
    margin-bottom: var(--np-space-xl);
}

/* ---------- INFORMAÇÕES ÚTEIS Hero ---------- */
.np-classified-hero.info-uteis {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 40%, #01579b 100%);
}

.np-badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #fff;
    border-radius: 20px;
}

/* ---------- Info Úteis - Pills Filter ---------- */
.np-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--np-space-xl);
}

.np-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: 100px;
    font-size: var(--np-text-sm);
    font-weight: 500;
    color: var(--np-gray-600);
    text-decoration: none;
    transition: var(--np-transition-fast);
}

.np-info-pill:hover,
.np-info-pill.active {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
}

.np-info-pill-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.np-info-pill.active .np-info-pill-count,
.np-info-pill:hover .np-info-pill-count {
    background: rgba(255,255,255,0.2);
}

/* ---------- Info Úteis - Card Grid ---------- */
.np-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-xl);
}

.np-info-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
    display: flex;
    flex-direction: column;
}

.np-info-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-6px);
}

.np-info-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.np-info-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.np-info-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(13, 71, 161, 0.9);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.np-info-card-body {
    padding: var(--np-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.np-info-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.np-info-card-title a {
    color: var(--np-gray-900);
    text-decoration: none;
}

.np-info-card-title a:hover {
    color: #0d47a1;
}

.np-info-card-excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    line-height: 1.6;
    margin-bottom: var(--np-space-md);
    flex: 1;
}

.np-info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--np-space-md);
    border-top: 1px solid var(--np-gray-100);
    margin-top: auto;
}

.np-info-card-meta {
    display: flex;
    gap: var(--np-space-md);
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

.np-info-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.np-info-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #0d47a1;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--np-transition-fast);
}

.np-info-read-btn:hover {
    background: #1565c0;
    color: #fff;
    transform: translateX(2px);
}

/* Info Empty State */
.np-info-empty {
    text-align: center;
    padding: var(--np-space-3xl) var(--np-space-xl);
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    border: 2px dashed var(--np-gray-200);
}

.np-info-empty i {
    font-size: 64px;
    color: #0d47a1;
    margin-bottom: var(--np-space-md);
    display: block;
}

.np-info-empty h3 {
    font-size: var(--np-text-xl);
    margin-bottom: var(--np-space-sm);
}

.np-info-empty p {
    color: var(--np-gray-500);
    margin-bottom: var(--np-space-xl);
}

/* ---------- Responsive: Info Úteis ---------- */
@media (max-width: 1024px) {
    .np-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .np-info-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--np-space-sm);
    }

    .np-info-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ---------- Responsive: Category Page ---------- */
@media (max-width: 768px) {
    .np-category-page {
        padding: 0 var(--np-space-md);
    }

    .np-classified-hero.category-hero h1 {
        font-size: var(--np-text-2xl);
    }
}

/* Responsive: hero quad grid */
@media (max-width: 768px) {
    .np-hero-grid--quad {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        min-height: unset;
    }
    .np-hero-grid--quad .np-hero-side {
        min-height: 220px;
    }
}

/* Responsive: info uteis sections */
@media (max-width: 900px) {
    .np-info-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .np-info-grid--3col {
        grid-template-columns: 1fr;
    }
}

/* Responsive: account type grid */
@media (max-width: 640px) {
    .np-account-type-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ADMIN DASHBOARD - WORDPRESS PANEL CSS v2.2
   Complete layout system for WP admin pages
   ============================================ */

/* --- Nihon Admin Dashboard Grid --- */
.nihon-admin-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nihon-admin-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.nihon-admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nihon-admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

@media (max-width: 1200px) {
    .nihon-admin-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nihon-admin-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Frontend Dashboard (Meu Perfil) Improved --- */
.np-dashboard-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-xl);
}

.np-dashboard-stat-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    padding: var(--np-space-lg);
    border-left: 4px solid var(--np-primary);
    transition: var(--np-transition);
}

.np-dashboard-stat-card:hover {
    box-shadow: var(--np-shadow-md);
    transform: translateY(-2px);
}

.np-dashboard-stat-card .stat-number {
    font-size: var(--np-text-3xl);
    font-weight: 900;
    line-height: 1.1;
}

.np-dashboard-stat-card .stat-label {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .np-dashboard-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Translation Bar --- */
.np-translate-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9998;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.np-translate-bar.show {
    transform: translateY(0);
}

.np-translate-bar .np-translate-msg {
    flex: 1;
    text-align: center;
}

.np-translate-bar .np-translate-msg i {
    margin-right: 8px;
}

.np-translate-bar button {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.np-translate-bar .np-translate-yes {
    background: var(--np-primary);
    color: #fff;
}

.np-translate-bar .np-translate-yes:hover {
    background: var(--np-primary-dark, #14795c);
}

.np-translate-bar .np-translate-no {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.np-translate-bar .np-translate-no:hover {
    background: rgba(255,255,255,0.25);
}

/* Language Selector Floating */
.np-lang-selector {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 997;
}

.np-lang-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--np-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(26, 154, 117, 0.3);
    transition: var(--np-transition);
}

.np-lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(26, 154, 117, 0.4);
}

.np-lang-dropdown {
    position: absolute;
    bottom: 52px;
    right: 0;
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--np-transition);
    overflow: hidden;
}

.np-lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.np-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
    cursor: pointer;
    transition: var(--np-transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.np-lang-option:hover {
    background: var(--np-primary-alpha, rgba(26, 154, 117, 0.1));
    color: var(--np-primary);
}

.np-lang-option.active {
    background: var(--np-primary);
    color: #fff;
}

.np-lang-flag {
    font-size: 18px;
    line-height: 1;
}


/* ============================================
   v2.3 FIXES: Custom Select Styling (Empresas/Empregos)
   ============================================ */
.np-filter-group select,
.np-classified-grid select,
select.np-styled-select,
#companySortOrder,
#carSortOrder,
.np-filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px !important;
    cursor: pointer;
    background-color: var(--np-gray-50, #fafafa);
    border: 1px solid var(--np-gray-200, #e5e7eb);
    border-radius: var(--np-border-radius, 8px);
    padding: 10px 36px 10px 14px;
    font-family: var(--np-font-primary, 'Noto Sans JP', sans-serif);
    font-size: var(--np-text-sm, 14px);
    color: var(--np-gray-700, #374151);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    line-height: 1.5;
}

.np-filter-group select:hover,
select.np-styled-select:hover,
#companySortOrder:hover,
#carSortOrder:hover {
    border-color: var(--np-gray-300, #d1d5db);
    background-color: var(--np-white, #fff);
}

.np-filter-group select:focus,
select.np-styled-select:focus,
#companySortOrder:focus,
#carSortOrder:focus {
    border-color: var(--np-primary, #1a9a75);
    background-color: var(--np-white, #fff);
    box-shadow: 0 0 0 3px rgba(26, 154, 117, 0.12);
}

/* Sort order select inline styling */
#companySortOrder,
#carSortOrder {
    width: auto;
    min-width: 160px;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* ============================================
   v2.3 FIX: Load More Button Proper Styling
   ============================================ */
.np-ajax-pagination {
    text-align: center;
    padding: var(--np-space-xl, 24px) 0;
}

#loadMoreNews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    font-size: var(--np-text-base, 16px);
    font-weight: 600;
    border: 2px solid var(--np-gray-200, #e5e7eb);
    border-radius: 30px;
    background: var(--np-white, #fff);
    color: var(--np-gray-700, #374151);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--np-font-primary, 'Noto Sans JP', sans-serif);
}

#loadMoreNews:hover:not(:disabled) {
    border-color: var(--np-red, #dc2626);
    color: var(--np-red, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#loadMoreNews:disabled,
#loadMoreNews.np-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#loadMoreNews.np-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================
   v2.3 FIX: Form group select in dashboard
   ============================================ */
.np-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--np-gray-200, #e5e7eb);
    border-radius: var(--np-border-radius, 8px);
    font-family: inherit;
    font-size: var(--np-text-sm, 14px);
    color: var(--np-gray-700, #374151);
    background-color: var(--np-gray-50, #fafafa);
    transition: all 0.2s ease;
    outline: none;
}

.np-form-group select:focus {
    border-color: var(--np-primary, #1a9a75);
    background-color: var(--np-white, #fff);
    box-shadow: 0 0 0 3px rgba(26, 154, 117, 0.12);
}

/* ============================================
   v2.3 FIX: WebP <picture> fallback styles
   ============================================ */
picture {
    display: inline-block;
    line-height: 0;
}

picture img {
    width: 100%;
    height: auto;
}

/* ============================================
   v2.3: Swiper Lazy Loading Styles
   ============================================ */
.swiper-lazy:not(.swiper-lazy-loaded) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-lazy-loaded {
    opacity: 1;
}

.swiper-lazy-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--np-gray-200, #e5e7eb);
    border-top-color: var(--np-primary, #1a9a75);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   v2.3 FIX: Missing responsive for company filter grid
   ============================================ */
/* ============================================
   v2.4: Tabs as links styling (anchor tags)
   ============================================ */
a.np-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

a.np-tab:hover {
    color: var(--np-red);
    border-color: var(--np-red);
}

a.np-tab.active {
    background: var(--np-red);
    color: var(--np-white);
    border-color: var(--np-red);
}

/* ============================================
   v2.4: Home page pagination styling
   ============================================ */
.np-pagination-home {
    text-align: center;
    padding: var(--np-space-xl) 0;
    margin-top: var(--np-space-lg);
}

.np-pagination-home .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 3px;
    font-size: var(--np-text-sm);
    font-weight: 500;
    color: var(--np-gray-600);
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.np-pagination-home .page-numbers:hover {
    border-color: var(--np-primary);
    color: var(--np-primary);
    background: var(--np-primary-alpha);
}

.np-pagination-home .page-numbers.current {
    background: var(--np-primary);
    color: var(--np-white);
    border-color: var(--np-primary);
    font-weight: 700;
}

.np-pagination-home .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.np-pagination-home .page-numbers.prev,
.np-pagination-home .page-numbers.next {
    padding: 0 16px;
    gap: 4px;
}

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

    #companySortOrder,
    #carSortOrder {
        width: 100%;
    }

    .np-pagination-home .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ============================================
   v2.5: ELEGANT TIMELINE LAYOUT
   Date LEFT | Line CENTER | Card RIGHT
   ============================================ */

/* --- Timeline Container --- */
.np-elegant-timeline {
    position: relative;
    margin-top: var(--np-space-md);
}

/* --- Timeline Row --- */
.np-tl-row {
    display: grid;
    grid-template-columns: 100px 40px 1fr;
    gap: 0;
    min-height: 0;
    animation: npTlFadeIn 0.5s ease both;
}

@keyframes npTlFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- LEFT: Date Column --- */
.np-tl-date-col {
    display: flex;
    justify-content: flex-end;
    padding-right: 16px;
    padding-top: 18px;
}

.np-tl-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: calc(var(--np-header-height) + 20px);
}

.np-tl-date-day {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--np-primary);
    letter-spacing: -1px;
}

.np-tl-date-month {
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--np-gray-600);
    letter-spacing: 2px;
    margin-top: 2px;
}

.np-tl-date-year {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--np-gray-400);
    letter-spacing: 1px;
    margin-top: 1px;
}

/* --- CENTER: Line Column --- */
.np-tl-line-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.np-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--np-gray-300);
    border: 2px solid var(--np-white);
    box-shadow: 0 0 0 2px var(--np-gray-200);
    flex-shrink: 0;
    margin-top: 24px;
    z-index: 2;
    transition: var(--np-transition);
}

.np-tl-dot--date {
    width: 14px;
    height: 14px;
    background: var(--np-primary);
    box-shadow: 0 0 0 3px rgba(26, 154, 117, 0.2);
    margin-top: 22px;
}

.np-tl-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--np-gray-200), var(--np-gray-100));
    margin-top: 4px;
}

/* Last row hides trailing line */
.np-tl-row:last-child .np-tl-line {
    background: linear-gradient(to bottom, var(--np-gray-200), transparent);
}

/* --- RIGHT: Card Column --- */
.np-tl-card-col {
    padding: 8px 0 8px 16px;
}

.np-tl-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
    display: flex;
    flex-direction: row;
}

.np-tl-card:hover {
    box-shadow: var(--np-shadow-md);
    border-color: rgba(26, 154, 117, 0.15);
    transform: translateY(-2px);
}

/* Card Image */
.np-tl-card-img {
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.np-tl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--np-transition);
}

.np-tl-card:hover .np-tl-card-img img {
    transform: scale(1.06);
}

/* Card Body */
.np-tl-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.np-tl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.np-tl-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--np-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--np-primary-alpha);
    padding: 2px 10px;
    border-radius: 20px;
}

.np-tl-card-time {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.np-tl-card-title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-tl-card-title a {
    color: var(--np-gray-900);
    text-decoration: none;
}

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

.np-tl-card-excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Card Footer */
.np-tl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.np-tl-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
}

.np-tl-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.np-tl-card-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--np-gray-600);
}

.np-tl-card-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.np-tl-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--np-primary);
    border: 1px solid var(--np-primary);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--np-transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.np-tl-card-btn:hover {
    background: var(--np-primary);
    color: var(--np-white);
}

/* Empty state */
.np-tl-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--np-gray-400);
}

.np-tl-empty i {
    font-size: 3rem;
    margin-bottom: var(--np-space-md);
    display: block;
    opacity: 0.5;
}

/* ============================================
   v2.5: Timeline Hover Effects on Dot
   ============================================ */
.np-tl-row:hover .np-tl-dot {
    background: var(--np-primary);
    box-shadow: 0 0 0 3px rgba(26, 154, 117, 0.2);
    transform: scale(1.2);
}

/* ============================================
   v2.5: RESPONSIVE - Elegant Timeline
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .np-tl-row {
        grid-template-columns: 80px 32px 1fr;
    }

    .np-tl-card {
        flex-direction: column;
    }

    .np-tl-card-img {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .np-tl-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .np-tl-date-col {
        justify-content: flex-start;
        padding: 0 0 4px 0;
    }

    .np-tl-date-block {
        flex-direction: row;
        gap: 6px;
        align-items: baseline;
        position: static;
    }

    .np-tl-date-day {
        font-size: 1.1rem;
    }

    .np-tl-date-month {
        font-size: 0.7rem;
        margin-top: 0;
    }

    .np-tl-date-year {
        font-size: 0.65rem;
        margin-top: 0;
    }

    /* Hide the center line on mobile */
    .np-tl-line-col {
        display: none;
    }

    .np-tl-card-col {
        padding: 0 0 16px 0;
    }

    .np-tl-card {
        flex-direction: column;
    }

    .np-tl-card-img {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .np-tl-card-body {
        padding: 14px 16px;
    }

    .np-tl-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* On mobile, rows without new date hide the date column */
    .np-tl-row:not(.np-tl-row--has-date) .np-tl-date-col {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .np-tl-card-title {
        font-size: var(--np-text-base);
    }

    .np-tl-card-excerpt {
        -webkit-line-clamp: 1;
    }

    .np-tl-card-meta {
        gap: 8px;
    }
}

/* ============================================
   v2.5: Dark Mode Support for Timeline
   ============================================ */
body.np-dark .np-tl-card {
    background: var(--np-gray-800);
    border-color: rgba(255,255,255,0.06);
}

body.np-dark .np-tl-card:hover {
    border-color: rgba(26, 154, 117, 0.3);
}

body.np-dark .np-tl-card-title a {
    color: var(--np-gray-100);
}

body.np-dark .np-tl-card-excerpt {
    color: var(--np-gray-400);
}

body.np-dark .np-tl-line {
    background: linear-gradient(to bottom, var(--np-gray-700), var(--np-gray-800));
}

body.np-dark .np-tl-dot {
    background: var(--np-gray-600);
    border-color: var(--np-gray-800);
    box-shadow: 0 0 0 2px var(--np-gray-700);
}

body.np-dark .np-tl-date-day {
    color: var(--np-primary-light);
}

body.np-dark .np-tl-date-month {
    color: var(--np-gray-400);
}

body.np-dark .np-tl-card-cat {
    background: rgba(26, 154, 117, 0.15);
}

body.np-dark .np-tl-card-author {
    color: var(--np-gray-300);
}


/* ============================================
   v2.6: Infinite Load More Styles
   ============================================ */

/* Loading indicator animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.np-load-more-loading {
    text-align: center;
    padding: 40px;
    color: var(--np-primary);
}

.np-load-more-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

/* Timeline loading state */
.np-elegant-timeline.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Pagination container (hidden for infinite load) */
.np-pagination-home {
    display: none !important;
}

/* Dark mode support for load more */
body.np-dark .np-load-more-loading {
    color: var(--np-primary-light);
}

/* --- Fix Load More button v2.6.1 --- */
.np-load-more-container {
    margin-top: var(--np-space-xl);
    margin-bottom: var(--np-space-2xl);
    display: flex;
    justify-content: center;
}

#loadMoreBtn i {
    transition: transform 0.3s ease;
}

#loadMoreBtn.np-btn-loading i.ri-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   NIHON PORTAL v2.6.3 — CSS HOTFIX PATCH
   Fixes: green too dark, card spacing, mobile,
   logo Firefox, trio grid 5 cards
   ============================================ */

/* ---------- FIX 1: Lighten green inside cards ---------- */

/* Lighten primary colors for card contexts */
:root {
    --np-primary-card: #22b88a;          /* Brighter green for card elements */
    --np-primary-card-bg: #e6f9f1;       /* Very light green background */
    --np-primary-card-alpha: rgba(34, 184, 138, 0.12);
}

/* Hero category badges — brighter green */
.np-hero-main .np-hero-category {
    background: var(--np-primary-card);
}

/* Home card (np-hc) category badge — brighter */
.np-hc__cat {
    background: var(--np-primary-card);
}

/* Section title bar — slightly brighter */
.np-section-title::before {
    background: var(--np-primary-card);
}

/* Timeline category pill — lighter background */
.np-tl-card-cat {
    background: var(--np-primary-card-bg);
    color: var(--np-primary);
}

/* Card hover shadow — lighter green tint */
.np-hc:hover {
    box-shadow: 0 8px 30px rgba(34, 184, 138, 0.10);
}

/* News card hover — lighter tint */
.np-news-card:hover {
    border-color: rgba(34, 184, 138, 0.2);
}

/* Badge inside cards — lighter green */
.np-badge-red {
    background: var(--np-primary-card-bg);
    color: var(--np-primary-card);
}

/* Card body spacing improvements */
.np-hc__body {
    padding: var(--np-space-md) var(--np-space-lg);
    gap: 6px;
}

/* Card image overlay gradient — less heavy */
.np-hero-main .np-hero-overlay {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.78));
}

.np-hero-side .np-hero-overlay {
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.72));
}

/* ---------- FIX 2: Trio grid → 5 cards (3 top + 2 bottom centered) ---------- */
.np-hs-grid--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
    align-items: start;
}

/* When there are more than 3 items, the 4th/5th auto-flow into next row.
   Center the last row if fewer than 3 items */
.np-hs-grid--trio::after {
    content: '';
    grid-column: span 1;
}

/* Ensure cards fill nicely in the 5-card grid */
.np-hs-grid--trio .np-hc--medium {
    min-height: 100%;
}

/* ---------- FIX 3: Logo Firefox compatibility ---------- */

/* Force explicit sizing for logo images — Firefox needs this */
.np-logo {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    text-decoration: none;
    flex-shrink: 0;
    min-height: 40px;
}

.np-logo .np-logo-img,
.np-logo .custom-logo {
    display: block;
    max-width: 250px;
    width: auto;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    /* Firefox: prevent image from collapsing when no intrinsic size */
    min-width: 80px;
    min-height: 30px;
}

/* Firefox-specific: ensure image doesn't break if src fails to load */
.np-logo img {
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

/* Prevent broken image icon showing alt text wrongly on Firefox */
.np-logo img:-moz-broken {
    display: block;
    max-width: 250px;
    min-height: 30px;
    min-width: 80px;
}

/* ---------- FIX 4: Card spacing & breathing room ---------- */

/* More padding between sections */
.np-home-section {
    margin-bottom: var(--np-space-2xl);
    padding-bottom: var(--np-space-md);
}

/* Section header more spacious */
.np-hs-header {
    margin-bottom: var(--np-space-xl);
}

/* Card body — more vertical breathing */
.np-hc--medium .np-hc__body,
.np-hc--large .np-hc__body {
    padding: var(--np-space-md) var(--np-space-lg) var(--np-space-lg);
}

/* Card image height — slightly taller for better proportion */
.np-hc--medium .np-hc__img-wrap {
    height: 190px;
}

/* Hero section — more bottom spacing */
.np-hero {
    padding: var(--np-space-xl) 0 var(--np-space-lg);
}

/* ---------- FIX 5: Comprehensive Mobile CSS Improvements ---------- */

@media (max-width: 768px) {

    /* --- General Mobile Spacing --- */
    .np-container,
    .np-container-wide {
        padding: 0 var(--np-space-md);
    }

    /* --- Header mobile polish --- */
    .np-header-main {
        height: 60px;
    }

    .np-header-inner {
        padding: 0 var(--np-space-sm);
    }

    .np-logo .np-logo-img,
    .np-logo .custom-logo {
        max-width: 130px;
        max-height: 40px;
        min-width: 60px;
    }

    .np-header-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    /* Profile button on mobile — compact */
    .np-header-btn-profile {
        padding: 6px 10px;
        font-size: 14px;
    }

    .np-header-btn-profile .np-btn-text {
        display: none;
    }

    /* --- Hero section mobile --- */
    .np-hero {
        padding: var(--np-space-md) 0;
    }

    .np-hero-grid {
        gap: var(--np-space-sm);
    }

    .np-hero-main {
        min-height: 240px;
        border-radius: var(--np-border-radius-lg);
    }

    .np-hero-main .np-hero-title {
        font-size: var(--np-text-lg);
        line-height: 1.3;
    }

    .np-hero-main .np-hero-overlay {
        padding: var(--np-space-lg) var(--np-space-md);
    }

    .np-hero-side {
        border-radius: var(--np-border-radius);
    }

    .np-hero-side .np-hero-img {
        min-height: 160px;
    }

    .np-hero-side .np-hero-title {
        font-size: var(--np-text-base);
    }

    /* --- Trends ticker mobile --- */
    .np-trends-ticker {
        padding: 6px 0;
    }

    .np-trends-label {
        padding: 3px 8px;
        font-size: 10px;
    }

    .np-trend-item {
        font-size: var(--np-text-xs);
    }

    /* --- Home sections mobile --- */
    .np-home-section {
        margin-bottom: var(--np-space-xl);
    }

    .np-hs-header {
        flex-wrap: wrap;
        gap: var(--np-space-sm);
        margin-bottom: var(--np-space-md);
    }

    .np-section-title {
        font-size: var(--np-text-xl);
        gap: var(--np-space-sm);
    }

    /* --- Trio grid mobile — single column --- */
    .np-hs-grid--trio {
        grid-template-columns: 1fr;
        gap: var(--np-space-md);
    }

    .np-hs-grid--trio::after {
        display: none;
    }

    /* --- Cards mobile --- */
    .np-hc {
        border-radius: var(--np-border-radius);
    }

    .np-hc__body {
        padding: var(--np-space-sm) var(--np-space-md) var(--np-space-md);
    }

    .np-hc--medium .np-hc__img-wrap,
    .np-hc--large .np-hc__img-wrap {
        height: 180px;
    }

    .np-hc--carousel .np-hc__img-wrap {
        height: 140px;
    }

    .np-hc__title {
        font-size: var(--np-text-sm);
    }

    .np-hc__excerpt {
        font-size: var(--np-text-xs);
        -webkit-line-clamp: 2;
    }

    .np-hc__meta {
        font-size: 11px;
        gap: var(--np-space-sm);
    }

    /* --- Swiper carousel mobile --- */
    .np-news-swiper .swiper-slide {
        width: 220px;
    }

    .np-news-swiper__prev,
    .np-news-swiper__next {
        display: none !important;
    }

    /* --- Sidebar mobile spacing --- */
    .np-sidebar {
        margin-top: var(--np-space-md);
    }

    .np-sidebar-widget {
        border-radius: var(--np-border-radius);
    }

    /* --- Footer mobile --- */
    .np-footer {
        padding: var(--np-space-2xl) 0 0;
    }

    .np-footer-grid {
        gap: var(--np-space-xl);
    }

    .np-footer-brand .np-logo-text {
        font-size: var(--np-text-xl);
    }

    /* --- News card mobile --- */
    .np-news-card {
        border-radius: var(--np-border-radius);
    }

    .np-news-card-content {
        padding: var(--np-space-sm) var(--np-space-md) var(--np-space-md);
    }

    /* --- Timeline mobile spacing --- */
    .np-tl-card {
        border-radius: var(--np-border-radius);
    }

    .np-tl-card-body {
        padding: 12px 14px;
    }

    .np-tl-card-title {
        font-size: var(--np-text-base);
    }

    .np-tl-card-excerpt {
        -webkit-line-clamp: 2;
        font-size: var(--np-text-xs);
    }

    /* --- Info page mobile --- */
    .np-info-grid {
        grid-template-columns: 1fr;
        gap: var(--np-space-md);
    }

    .np-info-card-img {
        height: 180px;
    }

    .np-info-card-body {
        padding: var(--np-space-md);
    }

    .np-info-card-title {
        font-size: var(--np-text-base);
    }

    .np-info-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--np-space-sm);
        gap: 6px;
    }

    .np-info-pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: var(--np-text-xs);
    }

    /* --- Classified pages mobile --- */
    .np-classified-hero {
        padding: var(--np-space-xl) 0;
    }

    .np-classified-hero h1 {
        font-size: var(--np-text-2xl);
    }

    .np-classified-hero p {
        font-size: var(--np-text-sm);
    }

    /* --- Contact page mobile --- */
    .np-contact-form {
        padding: var(--np-space-lg);
    }

    /* --- Pagination mobile --- */
    .np-pagination {
        gap: 4px;
    }

    .np-pagination a,
    .np-pagination span {
        width: 36px;
        height: 36px;
        font-size: var(--np-text-xs);
    }

    /* --- Back to top button mobile --- */
    .np-back-to-top {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* --- Language selector mobile --- */
    .np-lang-selector {
        bottom: 65px;
        right: 16px;
    }

    .np-lang-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Small mobile (< 480px) additional fixes */
@media (max-width: 480px) {
    .np-hero-main {
        min-height: 200px;
    }

    .np-hero-main .np-hero-title {
        font-size: var(--np-text-base);
    }

    .np-hero-main .np-hero-meta {
        font-size: 11px;
        gap: var(--np-space-sm);
    }

    .np-hero-side .np-hero-img {
        min-height: 130px;
    }

    .np-hero-side .np-hero-title {
        font-size: var(--np-text-sm);
    }

    .np-section-title {
        font-size: var(--np-text-lg);
    }

    /* Dashboard stat cards — 1 column */
    .np-dashboard-overview {
        grid-template-columns: 1fr;
    }

    /* Form rows single column */
    .np-form-row {
        grid-template-columns: 1fr;
    }

    .np-news-swiper .swiper-slide {
        width: 200px;
    }
}

/* Tablet fixes (769-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Trio grid tablet — 3 columns, wrap 4th/5th to next row centered */
    .np-hs-grid--trio {
        grid-template-columns: repeat(3, 1fr);
    }

    .np-hc--medium .np-hc__img-wrap {
        height: 160px;
    }

    .np-logo .np-logo-img,
    .np-logo .custom-logo {
        max-width: 160px;
        max-height: 48px;
    }
}
/* ============================================
   NIHON PORTAL v2.6.4 — COMPREHENSIVE PATCH
   Fixes: Logo Firefox, Category page, Comments,
   Spacing, Trio grid, np-single width, etc.
   ============================================ */

/* ─────────────────────────────────────────────
   FIX 1: LOGO — Cross-browser (Firefox/Chrome/Safari)
   Fixed sizes for Desktop, Tablet, Mobile
   ───────────────────────────────────────────── */

/* Reset and override all previous logo rules */
.np-logo {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    text-decoration: none;
    flex-shrink: 0;
    min-height: 40px;
    height: 100%;
}

/* === DESKTOP (> 1024px) === */
.np-logo .np-logo-img,
.np-logo .custom-logo,
.np-logo img.np-logo-img,
.np-logo img.custom-logo {
    display: block;
    width: 250px;
    height: 62px;
    max-width: 250px;
    max-height: 62px;
    min-width: 100px;
    min-height: 30px;
    object-fit: contain;
    object-position: left center;
    /* Firefox: explicit intrinsic sizing to prevent collapse */
    -moz-force-broken-image-icon: 0;
    image-rendering: auto;
    /* Prevent layout shift */
    aspect-ratio: auto;
    /* Ensure visibility in all browsers */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Firefox-specific: prevent broken image display issues */
@-moz-document url-prefix() {
    .np-logo .np-logo-img,
    .np-logo .custom-logo {
        width: 250px !important;
        height: 62px !important;
        min-width: 100px;
        min-height: 30px;
        object-fit: contain;
        /* Firefox needs explicit dimensions to render correctly */
        max-width: none;
    }
}

/* Broken image fallback — prevent alt text from showing ugly */
.np-logo img:-moz-broken {
    display: block;
    width: 250px;
    height: 62px;
    min-height: 30px;
    min-width: 100px;
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

.np-logo img:not([src]),
.np-logo img[src=""] {
    display: none;
}

/* Safari fix: ensure contain works properly */
@supports (-webkit-touch-callout: none) {
    .np-logo .np-logo-img,
    .np-logo .custom-logo {
        width: 250px;
        height: 62px;
        object-fit: contain;
    }
}

/* === TABLET (769px - 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .np-logo .np-logo-img,
    .np-logo .custom-logo,
    .np-logo img.np-logo-img,
    .np-logo img.custom-logo {
        width: 160px;
        height: 45px;
        max-width: 160px;
        max-height: 45px;
        min-width: 80px;
        min-height: 25px;
    }

    @-moz-document url-prefix() {
        .np-logo .np-logo-img,
        .np-logo .custom-logo {
            width: 160px !important;
            height: 45px !important;
        }
    }
}

/* === MOBILE (≤ 768px) === */
@media (max-width: 768px) {
    .np-logo .np-logo-img,
    .np-logo .custom-logo,
    .np-logo img.np-logo-img,
    .np-logo img.custom-logo {
        width: 130px;
        height: 38px;
        max-width: 130px;
        max-height: 38px;
        min-width: 60px;
        min-height: 20px;
    }

    @-moz-document url-prefix() {
        .np-logo .np-logo-img,
        .np-logo .custom-logo {
            width: 130px !important;
            height: 38px !important;
        }
    }
}

/* === SMALL MOBILE (≤ 480px) === */
@media (max-width: 480px) {
    .np-logo .np-logo-img,
    .np-logo .custom-logo,
    .np-logo img.np-logo-img,
    .np-logo img.custom-logo {
        width: 110px;
        height: 32px;
        max-width: 110px;
        max-height: 32px;
        min-width: 50px;
        min-height: 18px;
    }

    @-moz-document url-prefix() {
        .np-logo .np-logo-img,
        .np-logo .custom-logo {
            width: 110px !important;
            height: 32px !important;
        }
    }
}


/* ─────────────────────────────────────────────
   FIX 2: np-header-main — align-content: center
   ───────────────────────────────────────────── */
.np-header-main {
    padding: 0;
    height: var(--np-header-height);
    align-content: center;
    display: flex;
    align-items: center;
}


/* ─────────────────────────────────────────────
   FIX 3: np-container-wide.np-info-uteis-page
   Padding 50px top and bottom
   ───────────────────────────────────────────── */
.np-container-wide.np-info-uteis-page,
.np-info-uteis-page {
    padding-top: 50px;
    padding-bottom: 50px;
}


/* ─────────────────────────────────────────────
   FIX 4: np-single — width: 100%
   ───────────────────────────────────────────── */
.np-single {
    max-width: 100%;
    width: 100%;
}


/* ─────────────────────────────────────────────
   FIX 5: np-related-grid — padding-bottom: 30px
   ───────────────────────────────────────────── */
.np-related-grid {
    padding-bottom: 30px;
}


/* ─────────────────────────────────────────────
   FIX 6: np-main-layout — Remove extra padding-bottom
   ───────────────────────────────────────────── */
.np-main-layout {
    padding-top: var(--np-space-2xl);
    padding-bottom: 0;
}


/* ─────────────────────────────────────────────
   FIX 7: np-comments-area — Complete CSS Overhaul
   ───────────────────────────────────────────── */

/* Container */
.np-comments-area {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    padding-bottom: var(--np-space-3xl);
    margin-top: var(--np-space-2xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--np-shadow-sm);
}

/* Section title inside comments */
.np-comments-area .np-section-title {
    margin-bottom: var(--np-space-lg);
    font-size: var(--np-text-xl);
}

/* Comment list */
.np-comments-area .np-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual comment item */
.np-comments-area .np-comment-item {
    display: flex;
    gap: var(--np-space-md);
    padding: var(--np-space-lg);
    background: var(--np-gray-50);
    border-radius: var(--np-border-radius-lg);
    margin-bottom: var(--np-space-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--np-transition-fast);
}

.np-comments-area .np-comment-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--np-shadow-sm);
}

/* Comment avatar */
.np-comments-area .np-comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--np-gray-200);
}

.np-comments-area .np-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Comment body */
.np-comments-area .np-comment-body {
    flex: 1;
    min-width: 0;
}

/* Comment meta */
.np-comments-area .np-comment-meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-xs);
    flex-wrap: wrap;
}

.np-comments-area .np-comment-meta strong {
    font-size: var(--np-text-sm);
    color: var(--np-gray-900);
}

.np-comments-area .np-comment-meta span {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Comment text */
.np-comments-area .np-comment-text {
    font-size: var(--np-text-sm);
    line-height: 1.7;
    color: var(--np-gray-700);
}

.np-comments-area .np-comment-text p {
    margin-bottom: var(--np-space-sm);
}

.np-comments-area .np-comment-text p:last-child {
    margin-bottom: 0;
}

/* Comment actions (reply) */
.np-comments-area .np-comment-actions {
    margin-top: var(--np-space-sm);
}

.np-comments-area .np-comment-reply a,
.np-comments-area .np-comment-reply {
    color: var(--np-primary);
    font-size: var(--np-text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: var(--np-transition-fast);
    text-decoration: none;
}

.np-comments-area .np-comment-reply a:hover,
.np-comments-area .np-comment-reply:hover {
    color: var(--np-primary-dark);
    text-decoration: underline;
}

/* Nested replies */
.np-comments-area .children {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: var(--np-space-xl);
    border-left: 2px solid var(--np-primary-alpha);
}

.np-comments-area .children .np-comment-item {
    background: var(--np-white);
}

/* No comments message */
.np-comments-area .np-no-comments {
    padding: var(--np-space-lg);
    background: var(--np-gray-50);
    border-radius: var(--np-border-radius-lg);
    text-align: center;
    color: var(--np-gray-500);
    font-size: var(--np-text-sm);
}

/* Comment navigation */
.np-comments-area .np-comment-navigation {
    margin-top: var(--np-space-lg);
    display: flex;
    justify-content: space-between;
    gap: var(--np-space-md);
}

.np-comments-area .np-comment-navigation a {
    color: var(--np-primary);
    font-size: var(--np-text-sm);
    font-weight: 500;
}

/* ── Comment Form Styling ── */
.np-comments-area .np-comment-reply-title {
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-gray-900);
    margin-bottom: var(--np-space-lg);
    padding-top: var(--np-space-lg);
    border-top: 1px solid var(--np-gray-100);
}

.np-comments-area .np-comment-notes {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    margin-bottom: var(--np-space-md);
    line-height: 1.5;
}

/* Form fields */
.np-comments-area .np-comment-form .np-form-group {
    margin-bottom: var(--np-space-lg);
}

.np-comments-area .np-comment-form .np-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
}

.np-comments-area .np-comment-form .np-form-group textarea,
.np-comments-area .np-comment-form .np-form-group input[type="text"],
.np-comments-area .np-comment-form .np-form-group input[type="email"],
.np-comments-area .np-comment-form .np-form-group input[type="url"],
.np-comments-area .comment-form-comment textarea,
.np-comments-area .comment-form-author input,
.np-comments-area .comment-form-email input,
.np-comments-area .comment-form-url input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--np-gray-200);
    border-radius: var(--np-border-radius-lg);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-base);
    color: var(--np-gray-700);
    background: var(--np-gray-50);
    transition: all 0.25s ease;
    outline: none;
    line-height: 1.6;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.np-comments-area .np-comment-form .np-form-group textarea:focus,
.np-comments-area .np-comment-form .np-form-group input:focus,
.np-comments-area .comment-form-comment textarea:focus,
.np-comments-area .comment-form-author input:focus,
.np-comments-area .comment-form-email input:focus,
.np-comments-area .comment-form-url input:focus {
    border-color: var(--np-primary);
    background: var(--np-white);
    box-shadow: 0 0 0 4px var(--np-primary-alpha);
}

.np-comments-area .np-comment-form .np-form-group textarea::placeholder,
.np-comments-area .np-comment-form .np-form-group input::placeholder {
    color: var(--np-gray-400);
}

.np-comments-area .np-comment-form .np-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Comment form row (name, email side by side) */
.np-comments-area .comment-form-author,
.np-comments-area .comment-form-email,
.np-comments-area .comment-form-url {
    margin-bottom: var(--np-space-md);
}

.np-comments-area .comment-form-author label,
.np-comments-area .comment-form-email label,
.np-comments-area .comment-form-url label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
}

/* Submit button */
.np-comments-area .np-form-submit {
    margin-top: var(--np-space-lg);
}

.np-comments-area .np-form-submit .np-btn {
    padding: 14px 32px;
    font-size: var(--np-text-base);
    font-weight: 700;
    border-radius: var(--np-border-radius-lg);
    gap: var(--np-space-sm);
    box-shadow: var(--np-shadow-sm);
    transition: all 0.25s ease;
}

.np-comments-area .np-form-submit .np-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--np-shadow-md);
}

/* Cookie consent checkbox */
.np-comments-area .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    margin-bottom: var(--np-space-md);
    font-size: var(--np-text-sm);
    color: var(--np-gray-600);
}

.np-comments-area .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--np-primary);
    border-radius: 4px;
    cursor: pointer;
}

/* Logged-in message */
.np-comments-area .logged-in-as {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    margin-bottom: var(--np-space-md);
}

.np-comments-area .logged-in-as a {
    color: var(--np-primary);
    font-weight: 500;
}

/* Comments mobile responsive */
@media (max-width: 768px) {
    .np-comments-area {
        padding: var(--np-space-lg);
        margin-top: var(--np-space-xl);
    }

    .np-comments-area .np-comment-item {
        padding: var(--np-space-md);
        gap: var(--np-space-sm);
    }

    .np-comments-area .np-comment-avatar {
        width: 40px;
        height: 40px;
    }

    .np-comments-area .children {
        padding-left: var(--np-space-md);
    }

    .np-comments-area .np-comment-form .np-form-group textarea,
    .np-comments-area .np-comment-form .np-form-group input[type="text"],
    .np-comments-area .np-comment-form .np-form-group input[type="email"],
    .np-comments-area .np-comment-form .np-form-group input[type="url"],
    .np-comments-area .comment-form-comment textarea,
    .np-comments-area .comment-form-author input,
    .np-comments-area .comment-form-email input,
    .np-comments-area .comment-form-url input {
        padding: 12px 14px;
        font-size: var(--np-text-sm);
    }

    .np-comments-area .np-form-submit .np-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ─────────────────────────────────────────────
   FIX 8: Category Page — Grid Cards com Paginação
   (Substitui timeline por card grid)
   ───────────────────────────────────────────── */

/* Category page grid layout */
.np-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
    margin-bottom: var(--np-space-2xl);
}

/* Category news card */
.np-cat-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--np-transition);
    display: flex;
    flex-direction: column;
}

.np-cat-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(34, 184, 138, 0.2);
}

/* Card image */
.np-cat-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.np-cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Category badge on image */
.np-cat-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--np-primary-card, var(--np-primary));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Card body */
.np-cat-card__body {
    padding: var(--np-space-md) var(--np-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Card title */
.np-cat-card__title {
    font-size: var(--np-text-lg);
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-cat-card__title a {
    color: var(--np-gray-900);
    text-decoration: none;
}

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

/* Card excerpt */
.np-cat-card__excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Card footer */
.np-cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--np-space-sm);
    padding-top: var(--np-space-sm);
    border-top: 1px solid var(--np-gray-100);
    margin-top: auto;
}

/* Card meta */
.np-cat-card__meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    flex-wrap: wrap;
}

.np-cat-card__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Read more button */
.np-cat-card__read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--np-primary);
    border: 1px solid var(--np-primary);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--np-transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.np-cat-card__read-btn:hover {
    background: var(--np-primary);
    color: var(--np-white);
}

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

@media (max-width: 768px) {
    .np-category-grid {
        grid-template-columns: 1fr;
        gap: var(--np-space-md);
    }

    .np-cat-card__img {
        height: 180px;
    }

    .np-cat-card__body {
        padding: var(--np-space-sm) var(--np-space-md) var(--np-space-md);
    }

    .np-cat-card__title {
        font-size: var(--np-text-base);
    }

    .np-cat-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ─────────────────────────────────────────────
   FIX 9: np-hs-grid--trio — Show 3 cards properly
   Remove pseudo-element that might interfere
   ───────────────────────────────────────────── */
.np-hs-grid--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
    align-items: start;
}

/* Remove the after pseudo that was causing issues */
.np-hs-grid--trio::after {
    display: none;
    content: none;
}

/* Ensure cards are visible */
.np-hs-grid--trio > .np-hc {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .np-hs-grid--trio {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   v2.6.5 — MOBILE CRITICAL FIXES
   1. Search overlay responsivo
   2. Newsletter form overflow
   3. Footer overflow containment
   ============================================ */

/* --- Search Overlay Mobile — proporções ajustadas --- */
@media (max-width: 768px) {
    .np-search-overlay {
        padding-top: 70px;
        align-items: flex-start;
    }

    .np-search-box {
        width: 92%;
        max-width: 100%;
    }

    .np-search-box input {
        font-size: var(--np-text-base);
        padding: 14px 48px 14px 16px;
        border-bottom-width: 2px;
    }

    .np-search-box input::placeholder {
        font-size: var(--np-text-sm);
    }

    .np-search-close {
        top: 14px;
        right: 4px;
        font-size: 20px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .np-search-overlay {
        padding-top: 50px;
    }

    .np-search-box {
        width: 95%;
    }

    .np-search-box input {
        font-size: var(--np-text-sm);
        padding: 12px 44px 12px 14px;
    }
}

/* --- Newsletter Form: impedir overflow no mobile --- */
.np-newsletter-form,
.np-newsletter-form * {
    box-sizing: border-box;
}

.np-newsletter-form input[type="email"] {
    min-width: 0;      /* crucial para flex items não estourarem */
}

@media (max-width: 768px) {
    /* Impede overflow horizontal em todo o footer */
    .np-footer {
        overflow-x: hidden;
    }

    .np-footer-grid > div {
        min-width: 0;       /* evita grid blowout */
        overflow: hidden;
    }

    .np-newsletter-form {
        max-width: 100% !important;
        width: 100% !important;
    }

    .np-newsletter-form input[type="email"] {
        width: 100%;
        max-width: calc(100% - 52px);   /* botão ~44px + gap 8px */
    }

    /* Footer bottom links — empilha no mobile */
    .np-footer-bottom > div {
        flex-wrap: wrap;
        gap: var(--np-space-sm) var(--np-space-md);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .np-newsletter-form input[type="email"] {
        max-width: calc(100% - 48px);
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .np-newsletter-form .np-btn {
        padding: 8px 12px;
        flex-shrink: 0;
    }
}

/* --- Global: impedir overflow horizontal na página inteira --- */
html, body {
    
    max-width: 100vw;
}

/* ============================================
   v2.7.0 FIXES — Mobile Sidebar & Dropdown
   ============================================ */

/* FIX 1: Mobile sidebar stays fixed on scroll, only background scrolls */
@media (max-width: 768px) {
    .np-nav {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Close button inside mobile nav — always visible and on top */
    .np-mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: var(--np-gray-100);
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        color: var(--np-gray-700);
        position: sticky;
        top: 0;
        z-index: 10001;
        align-self: flex-end;
        flex-shrink: 0;
        margin-bottom: var(--np-space-md);
        transition: var(--np-transition-fast);
    }

    .np-mobile-close-btn:hover {
        background: var(--np-red-alpha);
        color: var(--np-red);
    }

    /* FIX 2: Mobile dropdown collapsed by default */
    .np-nav .np-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding-left: var(--np-space-lg);
        /* Collapsed by default */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    visibility 0.25s ease;
    }

    .np-nav .np-dropdown.mobile-dropdown-open {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }

    /* Dropdown toggle arrow rotation */
    .np-nav-link .np-dropdown-arrow {
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .np-nav-item.dropdown-active .np-nav-link .np-dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Hide close button on desktop */
@media (min-width: 769px) {
    .np-mobile-close-btn {
        display: none !important;
    }
}

/* ============================================
   PROFILE SYSTEM - v2.8.0
   Complete professional profile layout
   ============================================ */

/* --- CSS Variables for Profiles --- */
:root {
    --np-company: #22b88a;
    --np-company-light: #E8F8F3;
}

/* ============================================
   PROFILE HERO (Enhanced)
   ============================================ */
.np-profile-hero--enhanced {
    background: linear-gradient(135deg, var(--np-black) 0%, var(--np-charcoal) 40%, var(--np-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--np-space-3xl) 0 var(--np-space-2xl);
    min-height: 320px;
}

.np-profile-hero--enhanced[style*="--cover-img"] {
    background: var(--cover-img) center/cover no-repeat;
}

.np-profile-hero--enhanced[style*="--cover-img"] .np-profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(22,33,62,0.88) 40%, rgba(20,121,92,0.85) 100%);
    z-index: 0;
}

.np-profile-cover-overlay {
    display: none;
}

.np-profile-hero--enhanced[style*="--cover-img"] .np-profile-cover-overlay {
    display: block;
}

.np-profile-hero--enhanced .np-container-wide {
    position: relative;
    z-index: 1;
}

.np-profile-header--enhanced {
    display: flex;
    align-items: flex-start;
    gap: var(--np-space-xl);
    color: #fff;
}

/* --- Profile Avatar (Large) --- */
.np-profile-avatar--large {
    width: 140px;
    height: 140px;
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: relative;
}

.np-profile-avatar--large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.4);
}

.np-profile-verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.np-profile-verified-badge i {
    color: #22c55e;
    font-size: 20px;
}

/* --- Profile Info --- */
.np-profile-info--enhanced {
    flex: 1;
    min-width: 0;
}

.np-profile-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    background: var(--badge-bg, rgba(255,255,255,0.1));
    color: var(--badge-color, rgba(255,255,255,0.8));
    backdrop-filter: blur(8px);
    margin-bottom: var(--np-space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.np-profile-featured-star {
    margin-left: 6px;
    font-size: 11px;
}

.np-profile-name {
    font-size: var(--np-text-3xl);
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    color: #fff;
}

.np-profile-tagline {
    opacity: 0.75;
    font-size: var(--np-text-sm);
    max-width: 600px;
    margin-bottom: var(--np-space-md);
    line-height: 1.6;
}

.np-profile-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--np-space-md);
    margin-bottom: var(--np-space-md);
    font-size: var(--np-text-sm);
    opacity: 0.7;
}

.np-profile-quick-info span,
.np-profile-quick-info a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}

/* --- Profile Social Buttons --- */
.np-profile-socials {
    display: flex;
    gap: 8px;
    margin-bottom: var(--np-space-lg);
}

.np-profile-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--np-transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.np-profile-social-btn:hover {
    background: var(--social-color, rgba(255,255,255,0.2));
    border-color: var(--social-color, rgba(255,255,255,0.3));
    color: #fff;
    transform: translateY(-2px);
}

/* --- Profile Stats (Enhanced) --- */
.np-profile-stats--enhanced {
    display: flex;
    gap: var(--np-space-sm);
    flex-wrap: wrap;
}

.np-profile-stats--enhanced .np-profile-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--np-border-radius);
    padding: 10px 18px;
    min-width: 80px;
    text-align: center;
}

.np-profile-stats--enhanced .np-profile-stat-number {
    font-size: var(--np-text-2xl);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.np-profile-stats--enhanced .np-profile-stat-label {
    font-size: 11px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.np-profile-stats--enhanced .np-profile-stat--total {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

/* ============================================
   PROFILE CONTENT LAYOUT
   ============================================ */
.np-profile-content {
    padding: var(--np-space-2xl) 0 var(--np-space-3xl);
}

.np-profile-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--np-space-xl);
    align-items: start;
}

.np-profile-main {
    min-width: 0;
}

/* --- Profile Tabs --- */
.np-profile-tabs {
    display: flex;
    gap: 4px;
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: 6px;
    margin-bottom: var(--np-space-xl);
    box-shadow: var(--np-shadow-sm);
    overflow-x: auto;
}

.np-profile-tab {
    padding: 10px 20px;
    border-radius: var(--np-border-radius-lg);
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--np-transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.np-profile-tab:hover {
    background: var(--np-gray-50);
    color: var(--np-gray-800);
}

.np-profile-tab.active {
    background: var(--np-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,154,117,0.3);
}

.np-profile-tab-count {
    background: rgba(0,0,0,0.08);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.np-profile-tab.active .np-profile-tab-count {
    background: rgba(255,255,255,0.2);
}

/* --- Posts Grid --- */
.np-profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
}

/* --- Empty State --- */
.np-profile-empty {
    text-align: center;
    padding: var(--np-space-3xl);
    color: var(--np-gray-400);
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
}

.np-profile-empty i {
    font-size: 64px;
    display: block;
    margin-bottom: var(--np-space-md);
    opacity: 0.5;
}

/* ============================================
   PROFILE SIDEBAR
   ============================================ */
.np-profile-sidebar-sticky {
    position: sticky;
    top: calc(var(--np-header-height) + 20px);
}

/* --- CTA Card --- */
.np-profile-cta-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-xl);
    margin-bottom: var(--np-space-lg);
    box-shadow: var(--np-shadow-md);
    border-top: 4px solid var(--cta-color, var(--np-primary));
}

.np-profile-cta-card h3 {
    font-size: var(--np-text-lg);
    margin-bottom: var(--np-space-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

.np-profile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--np-border-radius-lg);
    font-weight: 700;
    font-size: var(--np-text-sm);
    transition: var(--np-transition);
    margin-bottom: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.np-profile-cta-btn--primary {
    background: var(--cta-color, var(--np-primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.np-profile-cta-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #fff;
}

.np-profile-cta-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.np-profile-cta-btn--whatsapp:hover {
    background: #1da855;
    transform: translateY(-2px);
    color: #fff;
}

.np-profile-cta-btn--outline {
    background: transparent;
    border: 2px solid var(--np-gray-200);
    color: var(--np-gray-700);
}

.np-profile-cta-btn--outline:hover {
    border-color: var(--cta-color, var(--np-primary));
    color: var(--cta-color, var(--np-primary));
    background: rgba(0,0,0,0.02);
}

.np-profile-cta-btn--dark {
    background: var(--np-gray-900);
    color: #fff;
}

.np-profile-cta-btn--dark:hover {
    background: var(--np-gray-800);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Sidebar Cards --- */
.np-profile-sidebar-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-xl);
    margin-bottom: var(--np-space-lg);
    box-shadow: var(--np-shadow-sm);
}

.np-profile-sidebar-card h4 {
    font-size: var(--np-text-base);
    margin-bottom: var(--np-space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-profile-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--np-gray-100);
    font-size: var(--np-text-sm);
}

.np-profile-sidebar-item:last-child {
    border-bottom: none;
}

.np-profile-sidebar-item i {
    font-size: 18px;
    margin-top: 2px;
}

.np-profile-sidebar-item small {
    display: block;
    font-size: 11px;
    color: var(--np-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.np-profile-sidebar-item strong {
    display: block;
    font-size: var(--np-text-sm);
    font-weight: 600;
}

/* ============================================
   ABOUT TAB
   ============================================ */
.np-profile-about-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    margin-bottom: var(--np-space-lg);
    box-shadow: var(--np-shadow-sm);
}

.np-profile-about-card h3 {
    font-size: var(--np-text-xl);
    margin-bottom: var(--np-space-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: var(--np-space-md);
    border-bottom: 2px solid var(--np-gray-100);
}

.np-profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
}

.np-profile-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--np-gray-50);
    border-radius: var(--np-border-radius);
    transition: var(--np-transition-fast);
}

.np-profile-detail-item:hover {
    background: var(--np-gray-100);
}

.np-profile-detail-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.np-profile-detail-label {
    font-size: 10px;
    color: var(--np-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.np-profile-detail-value {
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-800);
    word-break: break-word;
}

a.np-profile-detail-value {
    text-decoration: none;
}

a.np-profile-detail-value:hover {
    text-decoration: underline;
}

/* ============================================
   PROFILE BADGE (on single post pages)
   ============================================ */
.np-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius-lg);
    transition: var(--np-transition-fast);
    text-decoration: none;
    color: var(--np-gray-800);
    max-width: 100%;
}

.np-profile-badge:hover {
    border-color: var(--np-primary);
    box-shadow: var(--np-shadow-sm);
    transform: translateY(-1px);
    color: var(--np-gray-800);
}

.np-profile-badge-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-profile-badge-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-profile-badge-avatar i {
    font-size: 20px;
    color: var(--np-gray-400);
}

.np-profile-badge-info {
    min-width: 0;
}

.np-profile-badge-name {
    font-weight: 700;
    font-size: var(--np-text-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.np-profile-badge-type {
    font-size: 11px;
    color: var(--np-gray-400);
}

.np-profile-badge-arrow {
    font-size: 18px;
    color: var(--np-gray-300);
    margin-left: auto;
}

/* ============================================
   PROFILE DIRECTORY (Archive)
   ============================================ */
.np-profile-filter-bar {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.np-profile-filter-bar::-webkit-scrollbar {
    display: none;
}

.np-profile-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--np-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--np-transition-fast);
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
}

.np-profile-filter-btn:hover {
    background: var(--np-gray-50);
    color: var(--filter-color, var(--np-primary));
}

.np-profile-filter-btn.active {
    background: var(--np-primary);
    color: #fff;
    border-color: var(--np-primary);
}

.np-profile-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
}

/* ============================================
   PROFILE CARD (Directory)
   ============================================ */
.np-profile-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
    border: 1px solid var(--np-gray-100);
    transition: var(--np-transition);
    position: relative;
}

.np-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-lg);
}

.np-profile-card--featured {
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245,158,11,0.15);
}

.np-profile-card-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #f59e0b;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

/* Card Header */
.np-profile-card-header {
    height: 120px;
    background: linear-gradient(135deg, var(--np-charcoal), var(--card-color, var(--np-primary)));
    position: relative;
    overflow: hidden;
}

.np-profile-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.np-profile-card-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 1;
}

.np-profile-card-avatar {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--np-white);
    overflow: hidden;
    z-index: 2;
    background: var(--np-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.np-profile-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-profile-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--np-gray-100);
    font-size: 28px;
    color: var(--np-gray-400);
}

.np-profile-card-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-profile-card-verified i {
    color: #22c55e;
    font-size: 16px;
}

/* Card Body */
.np-profile-card-body {
    padding: 40px var(--np-space-lg) var(--np-space-md);
    text-align: center;
}

.np-profile-card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--type-bg, var(--np-gray-50));
    color: var(--type-color, var(--np-gray-600));
    margin-bottom: 8px;
}

.np-profile-card-name {
    font-size: var(--np-text-lg);
    font-weight: 800;
    margin-bottom: 4px;
}

.np-profile-card-name a {
    color: var(--np-gray-900);
    text-decoration: none;
}

.np-profile-card-name a:hover {
    color: var(--np-primary);
}

.np-profile-card-location {
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.np-profile-card-excerpt {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    line-height: 1.5;
    margin-bottom: var(--np-space-sm);
}

.np-profile-card-stats {
    display: flex;
    justify-content: center;
    gap: var(--np-space-md);
    padding-top: var(--np-space-sm);
    border-top: 1px solid var(--np-gray-100);
    margin-top: var(--np-space-sm);
}

.np-profile-card-stats span {
    font-size: 12px;
    font-weight: 600;
    color: var(--np-gray-500);
    display: flex;
    align-items: center;
    gap: 3px;
}

.np-profile-card-stats i {
    font-size: 14px;
}

/* Card Footer */
.np-profile-card-footer {
    display: flex;
    gap: 8px;
    padding: 0 var(--np-space-lg) var(--np-space-lg);
}

.np-profile-card-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--np-border-radius);
    font-size: var(--np-text-sm);
    font-weight: 700;
    text-align: center;
    transition: var(--np-transition-fast);
    background: var(--np-gray-50);
    color: var(--np-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.np-profile-card-btn:hover {
    background: var(--np-primary);
    color: #fff;
}

.np-profile-card-btn--phone {
    flex: 0 0 44px;
    background: var(--np-primary-alpha);
    color: var(--np-primary);
}

.np-profile-card-btn--phone:hover {
    background: var(--np-primary);
    color: #fff;
}

/* ============================================
   RESPONSIVE - Profile System
   ============================================ */
@media (max-width: 1024px) {
    .np-profile-layout {
        grid-template-columns: 1fr;
    }

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

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

    .np-profile-sidebar-sticky {
        position: static;
    }

    .np-profile-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .np-profile-hero--enhanced {
        padding: var(--np-space-xl) 0;
    }

    .np-profile-header--enhanced {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .np-profile-avatar--large {
        width: 100px;
        height: 100px;
    }

    .np-profile-name {
        font-size: var(--np-text-2xl);
    }

    .np-profile-quick-info {
        justify-content: center;
    }

    .np-profile-socials {
        justify-content: center;
    }

    .np-profile-stats--enhanced {
        justify-content: center;
    }

    .np-profile-tabs {
        padding: 4px;
    }

    .np-profile-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .np-profile-tab .np-filter-label {
        display: none;
    }

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

    .np-profile-directory-grid {
        grid-template-columns: 1fr;
    }

    .np-profile-card-header {
        height: 90px;
    }

    .np-profile-filter-btn .np-filter-label {
        display: none;
    }

    .np-profile-about-card {
        padding: var(--np-space-lg);
    }
}

@media (max-width: 480px) {
    .np-profile-stats--enhanced .np-profile-stat {
        padding: 8px 12px;
        min-width: 60px;
    }

    .np-profile-stats--enhanced .np-profile-stat-number {
        font-size: var(--np-text-lg);
    }
}

/* ============================================
   FIX v2.9.3: GALLERY SLIDER STYLES
   ============================================ */
.np-gallery-slider {
    position: relative;
    margin-bottom: var(--np-space-md);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.np-gallery-main {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: var(--np-border-radius-xl);
}

.np-gallery-thumbs {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: var(--np-space-sm);
    margin-bottom: var(--np-space-xl);
}

.np-gallery-main .swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--np-border-radius-xl);
}

.np-gallery-main .swiper-button-next,
.np-gallery-main .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: var(--np-shadow-md);
    transition: var(--np-transition);
}

.np-gallery-main .swiper-button-next:hover,
.np-gallery-main .swiper-button-prev:hover {
    background: var(--np-white);
    box-shadow: var(--np-shadow-lg);
    transform: scale(1.05);
}

.np-gallery-main .swiper-button-next::after,
.np-gallery-main .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
    color: var(--np-gray-800);
}

.np-gallery-main .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--np-white);
    opacity: 0.6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.np-gallery-main .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--np-primary);
    width: 24px;
    border-radius: 5px;
}

.np-gallery-thumbs {
    margin-bottom: var(--np-space-xl);
}

.np-gallery-thumbs .swiper-slide {
    width: 120px !important;
    height: 80px !important;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--np-transition);
    border: 3px solid transparent;
    flex-shrink: 0;
}

.np-gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.np-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--np-primary);
}

.np-gallery-thumbs .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Gallery counter badge */
.np-gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--np-text-xs);
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Company gallery slider */
.np-company-gallery-slider .swiper-slide {
    border-radius: var(--np-border-radius);
    overflow: hidden;
    height: 220px;
}

.np-company-gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-company-gallery-slider .swiper-button-next,
.np-company-gallery-slider .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: var(--np-shadow-sm);
}

.np-company-gallery-slider .swiper-button-next::after,
.np-company-gallery-slider .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
    color: var(--np-gray-800);
}

.np-company-gallery-slider .swiper-pagination-bullet-active {
    background: var(--np-company, var(--np-primary));
}

/* Lightbox overlay */
.np-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.np-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.np-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--np-border-radius-lg);
}

.np-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--np-transition);
}

.np-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.np-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--np-transition);
}

.np-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.np-lightbox-prev { left: 20px; }
.np-lightbox-next { right: 20px; }

.np-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: var(--np-text-sm);
    font-weight: 600;
}

/* ============================================
   FIX v2.9.3: STICKY HEADER + TOP BAR HIDE ON SCROLL
   ============================================ */
.np-top-bar {
    transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.np-top-bar.np-hidden {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.np-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.np-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.99);
}

.np-header.scrolled .np-header-main {
    height: 60px;
}

.np-header.scrolled .np-logo-img {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}


/* ============================================
   FIX v2.9.3: STICKY SIDEBAR
   ============================================ */
.np-sidebar {
    position: relative;
}

.np-sidebar.np-sidebar-sticky {
    position: sticky;
    top: calc(var(--np-header-height) + 40px);
    max-height: none;
    overflow-y: visible;
    transition: top 0.3s ease;
}

/* Visual indicator for sticky state */
.np-sidebar.np-sidebar-pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--np-primary), var(--np-primary-light));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.np-sidebar.np-sidebar-pinned.is-stuck::before {
    opacity: 1;
}

/* Responsive Single Grid Fix */
@media (max-width: 1024px) {
    .np-single-grid {
        grid-template-columns: 1fr !important;
        gap: var(--np-space-lg) !important;
    }
}

@media (max-width: 768px) {
    /* Gallery Slider Mobile Fixes */
    .np-gallery-slider {
        margin-bottom: var(--np-space-md);
    }

    .np-gallery-main .swiper-slide img {
        height: 300px !important;
        object-fit: cover;
        border-radius: var(--np-border-radius-xl);
    }

    .np-gallery-main .swiper-button-next,
    .np-gallery-main .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .np-gallery-main .swiper-button-next::after,
    .np-gallery-main .swiper-button-prev::after {
        font-size: 16px !important;
    }

    .np-gallery-main .swiper-pagination {
        bottom: 12px !important;
    }

    .np-gallery-main .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }

    .np-gallery-main .swiper-pagination-bullet-active {
        width: 20px !important;
    }

    .np-gallery-counter {
        bottom: 12px !important;
        right: 12px !important;
        font-size: var(--np-text-xs) !important;
        padding: 6px 10px !important;
    }

    .np-gallery-thumbs {
        margin-bottom: var(--np-space-lg) !important;
    }

    .np-gallery-thumbs .swiper-slide {
        height: 60px !important;
        width: 80px !important;
        border-radius: var(--np-border-radius);
        overflow: hidden;
        cursor: pointer;
        opacity: 0.5;
        transition: var(--np-transition);
        border: 3px solid transparent;
    }

    .np-gallery-thumbs .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Features Grid Mobile Fix */
    .np-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Single Post Content Mobile */
    .np-single-content {
        font-size: var(--np-text-base) !important;
        line-height: 1.6 !important;
    }

    /* Specs Grid Mobile */
    .np-specs-grid {
        grid-template-columns: 1fr !important;
        gap: var(--np-space-sm) !important;
    }

    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: var(--np-space-sm) !important;
    }

    .np-company-gallery-slider .swiper-slide {
        height: 160px;
    }

    .np-sidebar.np-sidebar-sticky {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }


    /* Fix for mobile flickering and visibility */
    .swiper {
        overflow: hidden !important;
    }

    .swiper-wrapper {
        display: flex !important;
    }

    .swiper-slide {
        flex-shrink: 0 !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
}

/* ============================================
   GLOBAL MOBILE FIXES - Prevent Layout Overflow
   ============================================ */
.np-gallery-slider,
.np-gallery-main,
.np-gallery-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.swiper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.swiper-wrapper {
    width: 100% !important;
}

.np-gallery-main .swiper-slide {
    width: 100% !important;
    overflow: hidden !important;
}

.np-gallery-thumbs .swiper-slide {
    width: auto !important;
}

.swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Related Posts Grid Mobile */
.np-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-md);
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    .np-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .np-related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .np-gallery-main .swiper-slide img {
        height: 250px !important;
    }

    .np-gallery-main .swiper-button-next,
    .np-gallery-main .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
    }

    .np-gallery-thumbs .swiper-slide {
        height: 50px !important;
        width: 70px !important;
    }

    /* Features Grid on very small screens */
    .np-features-grid {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Sticky sidebar on small screens */
    div[style*="position:sticky"] {
        position: relative !important;
        top: 0 !important;
    }

    /* Ensure proper padding on small screens */
    .np-container-wide {
        padding: 0 var(--np-space-md) !important;
    }
}

/* ============================================
   v2.9.4: Footer brand — align logo to top
   ============================================ */
.np-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.np-footer-brand .np-logo {
    margin-bottom: var(--np-space-sm);
}

/* ============================================
   v2.9.4: LOGIN MODAL
   ============================================ */
.np-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--np-transition);
}

.np-login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.np-login-modal {
    background: var(--np-white);
    border-radius: var(--np-border-radius-xl);
    padding: var(--np-space-2xl);
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--np-shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: var(--np-transition);
}

.np-login-modal-overlay.active .np-login-modal {
    transform: translateY(0) scale(1);
}

.np-login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--np-gray-100);
    color: var(--np-gray-600);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--np-transition-fast);
}

.np-login-modal-close:hover {
    background: var(--np-red-alpha);
    color: var(--np-red);
}

.np-login-modal-header {
    text-align: center;
    margin-bottom: var(--np-space-xl);
}

.np-login-modal-header h3 {
    font-size: var(--np-text-2xl);
    margin-top: var(--np-space-sm);
    margin-bottom: var(--np-space-xs);
}

.np-login-modal-header p {
    color: var(--np-gray-500);
    font-size: var(--np-text-sm);
}

.np-login-modal-form .np-login-field {
    margin-bottom: var(--np-space-md);
}

.np-login-modal-form .np-login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-700);
    margin-bottom: 6px;
}

.np-login-modal-form .np-login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-family: var(--np-font-primary);
    font-size: var(--np-text-base);
    color: var(--np-gray-800);
    background: var(--np-gray-50);
    transition: var(--np-transition-fast);
    outline: none;
}

.np-login-modal-form .np-login-field input:focus {
    border-color: var(--np-primary);
    background: var(--np-white);
    box-shadow: 0 0 0 3px var(--np-primary-alpha);
}

.np-login-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 10px 14px;
    border-radius: var(--np-border-radius);
    font-size: var(--np-text-sm);
    margin-top: var(--np-space-sm);
}

/* Header login button */
.np-header-btn-login {
    gap: 6px;
}

@media (max-width: 768px) {
    .np-header-btn-login .np-btn-text {
        display: none;
    }
    .np-header-btn-login {
        padding: 6px 10px;
        font-size: 14px;
    }
    .np-login-modal {
        padding: var(--np-space-lg);
        margin: 0 var(--np-space-md);
    }
.np-trends-ticker{
  padding: 6px 0;
}
}

/* ============================================
   v2.9.4: ADMIN PORTAL DASHBOARD
   ============================================ */
.np-admin-dashboard .np-dashboard-tabs {
    flex-wrap: wrap;
}

.np-admin-dashboard .np-dashboard-overview {
    grid-template-columns: repeat(5, 1fr);
}

.np-admin-dashboard .np-dashboard-stat-card small {
    display: block;
    margin-top: var(--np-space-xs);
    font-size: 11px;
}

/* Admin Grid */
.np-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-lg);
}

.np-admin-grid-card {
    background: var(--np-white);
    border-radius: var(--np-border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--np-transition);
}

.np-admin-grid-card:hover {
    box-shadow: var(--np-shadow-lg);
    transform: translateY(-3px);
}

.np-admin-grid-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.np-admin-grid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--np-transition);
}

.np-admin-grid-card:hover .np-admin-grid-card-img img {
    transform: scale(1.05);
}

.np-admin-grid-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.np-admin-grid-card-body {
    padding: var(--np-space-md);
}

.np-admin-grid-card-title {
    font-size: var(--np-text-base);
    font-weight: 700;
    margin-bottom: var(--np-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.np-admin-grid-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--np-space-sm);
    font-size: var(--np-text-xs);
    color: var(--np-gray-400);
    margin-bottom: var(--np-space-md);
}

.np-admin-grid-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.np-admin-grid-card-actions {
    display: flex;
    gap: var(--np-space-xs);
}

.np-admin-grid-card-actions .np-btn-sm {
    font-size: var(--np-text-xs);
    padding: 6px 10px;
    border-radius: var(--np-border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--np-transition-fast);
    font-family: var(--np-font-primary);
    font-weight: 500;
}

.np-admin-grid-card-actions .edit-btn {
    background: var(--np-primary-alpha);
    color: var(--np-primary);
    border: none;
}

.np-admin-grid-card-actions .edit-btn:hover {
    background: var(--np-primary);
    color: #fff;
}

.np-admin-grid-card-actions .delete-btn {
    background: #FEF2F2;
    color: #DC2626;
    border: none;
}

.np-admin-grid-card-actions .delete-btn:hover {
    background: #DC2626;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .np-admin-dashboard .np-dashboard-overview {
        grid-template-columns: repeat(3, 1fr);
    }
    .np-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .np-admin-dashboard .np-dashboard-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .np-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .np-admin-dashboard .np-dashboard-overview {
        grid-template-columns: 1fr;
    }
  .np-hero-main .np-hero-title{
    font-size: 12px;
  }
}

/* ============================================
   v3.1.0: Dashboard Improvements
   ============================================ */

/* Form grid for dynamic fields */
.np-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--np-space-md);
}

.np-form-group-full {
    grid-column: span 2;
}

/* Better form inputs in dashboard */
.np-submit-form input[type="text"],
.np-submit-form input[type="number"],
.np-submit-form input[type="email"],
.np-submit-form input[type="url"],
.np-submit-form input[type="tel"],
.np-submit-form input[type="date"],
.np-submit-form select,
.np-submit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-border-radius);
    font-size: var(--np-text-sm);
    font-family: inherit;
    transition: var(--np-transition-fast);
    background: var(--np-white);
}

.np-submit-form input:focus,
.np-submit-form select:focus,
.np-submit-form textarea:focus {
    border-color: var(--np-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.np-submit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
}

/* Gallery preview grid in dashboard */
.nihon-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

/* Type selector highlight */
.np-type-selector.selected {
    border-color: var(--np-primary) !important;
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Featured image upload area */
.np-image-upload #featuredImagePreview,
.np-image-upload #featuredImagePreviewEdit {
    transition: var(--np-transition-fast);
    cursor: default;
}

/* Fix button alignment in admin dashboard */
.np-admin-grid-card-actions {
    display: flex;
    gap: 6px;
    padding: var(--np-space-sm) var(--np-space-md);
    border-top: 1px solid var(--np-gray-100);
}

/* Responsive form grid */
@media (max-width: 768px) {
    .np-form-grid {
        grid-template-columns: 1fr;
    }
    .np-form-group-full {
        grid-column: span 1;
    }
}

/* Animation for notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Spin animation for loader */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ri-spin {
    animation: spin 1s linear infinite;
}


/* ============================================
   v3.2.0: Direct Upload Components
   ============================================ */
.np-upload-dropzone:hover {
    border-color: var(--np-primary) !important;
    background: rgba(230,57,70,0.03) !important;
}
.np-upload-dropzone.dragover {
    border-color: var(--np-primary) !important;
    background: rgba(230,57,70,0.06) !important;
}

.np-image-upload-direct {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.np-gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.nihon-gallery-field-direct .nihon-gallery-item {
    transition: transform 0.15s ease;
}
.nihon-gallery-field-direct .nihon-gallery-item:hover {
    transform: scale(1.05);
}

/* v3.2.0: Checkbox alignment fix */
.np-checkbox-group label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    cursor: pointer;
}
.np-checkbox-group label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0 !important;
}
.np-checkbox-group label span {
    text-align: left;
}

/* Loading spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive gallery preview */
@media (max-width: 768px) {
    .np-gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .np-gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   v3.2.1: MOBILE FIXES — Single Property & Company
   Corrige layout quebrado e overflow no mobile
   ============================================ */

/* ── Grid principal das singles (inline style sem classe) ── */
@media (max-width: 1024px) {
    /* Single Property e Company usam grid inline — forçamos stack */
    .np-container-wide > div[style*="grid-template-columns:1.5fr"],
    .np-container-wide > div[style*="grid-template-columns: 1.5fr"] {
        display: block !important;
    }
}

@media (max-width: 768px) {

    /* ── Overflow global: nada sai da tela ── */
    .np-container-wide {
        overflow-x: hidden !important;
    }

    /* ── Single Property: grid principal ── */
    .np-container-wide > div[style*="grid-template-columns:1.5fr"],
    .np-container-wide > div[style*="grid-template-columns: 1.5fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--np-space-lg) !important;
    }

    /* ── Coluna sticky da sidebar nas singles — desativar sticky ── */
    div[style*="position:sticky"],
    div[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
    }

    /* ── Single Property: Specs grid 3 colunas → 2 → 1 ── */
    div[style*="grid-template-columns:1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--np-space-sm) !important;
    }

    /* ── Grids 2 colunas → 1 coluna ── */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: var(--np-space-sm) !important;
    }

    /* Exceção: horários da empresa ficam em 2 col até 480px */
    div[style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
    div[style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── Features / checklist 3 cols → 2 cols ── */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    /* ── Price quick-specs row: wrap em vez de overflow ── */
    div[style*="display:flex;gap:var(--np-space-lg);padding:var(--np-space-md) 0;border-top"] {
        flex-wrap: wrap !important;
        gap: var(--np-space-md) !important;
        justify-content: space-around;
    }

    /* ── Imagem de destaque da empresa no mobile ── */
    .np-single-company-img-wrapper,
    div[style*="min-height:320px"],
    div[style*="min-height: 320px"] {
        min-height: 200px !important;
        max-height: 260px !important;
        overflow: hidden !important;
    }

    div[style*="min-height:320px"] img,
    div[style*="min-height: 320px"] img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        object-position: center !important;
        max-height: 260px !important;
        flex-shrink: 0 !important;
    }

    /* ── Imagem única do imóvel (sem slider) ── */
    div[style*="height:450px"] {
        height: 260px !important;
    }

    div[style*="height:450px"] img,
    div[style*="height: 450px"] img {
        height: 260px !important;
    }

    /* ── Botões de contato nas singles ── */
    .np-btn.np-btn-lg {
        font-size: var(--np-text-sm) !important;
        padding: 10px 16px !important;
    }

    /* ── Título h1 nas singles ── */
    div[style*="font-size:var(--np-text-2xl)"],
    h1[style*="font-size:var(--np-text-2xl)"] {
        font-size: var(--np-text-xl) !important;
    }

    /* ── Price card: preço gigante ── */
    div[style*="font-size:var(--np-text-3xl)"] {
        font-size: var(--np-text-2xl) !important;
    }

    /* ── Tabela de informações legais ── */
    table[style*="width:100%"] td {
        font-size: var(--np-text-xs) !important;
        padding: 8px 4px !important;
    }

    /* ── Mapa iframe ── */
    div[style*="height:300px"] iframe {
        height: 220px !important;
    }

    /* ── Related companies grid ── */
    .np-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── np-single-actions: like + share ── */
    .np-single-actions {
        flex-wrap: wrap !important;
        gap: var(--np-space-sm) !important;
    }

    /* ── Company hours: manter 2 colunas até ficar pequeno ── */
    div[style*="grid-template-columns:repeat(2,minmax"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {

    /* ── Specs 3 cols → 1 col ── */
    div[style*="grid-template-columns:1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* ── Features checklist → 1 col ── */
    div[style*="display:grid;grid-template-columns:repeat(3,1fr)"],
    div[style*="display: grid; grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* ── Imagem empresa ainda menor ── */
    div[style*="min-height:320px"],
    div[style*="min-height: 320px"] {
        min-height: 160px !important;
        max-height: 200px !important;
    }

    div[style*="min-height:320px"] img,
    div[style*="min-height: 320px"] img {
        height: 180px !important;
        max-height: 200px !important;
    }

    /* ── Horários da empresa → 1 col ── */
    div[style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
    div[style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* ── Related → 1 col ── */
    .np-related-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Padding do container ── */
    .np-container-wide {
        padding-left: var(--np-space-sm) !important;
        padding-right: var(--np-space-sm) !important;
    }

    /* ── Cards de specs individuais ── */
    div[style*="display:flex;align-items:center;gap:10px;padding:14px;background:var(--np-gray-50)"] {
        padding: 10px !important;
    }

    div[style*="display:flex;align-items:center;gap:10px;padding:14px;background:var(--np-gray-50)"] i {
        font-size: 16px !important;
    }

    /* ── Preço ── */
    div[style*="font-size:var(--np-text-3xl)"] {
        font-size: var(--np-text-xl) !important;
        word-break: break-word !important;
    }
}
