/*
Theme Name: NewsPortal
Theme URI: https://adrianoladislau.com.br
Author: Adriano Ladislau
Author URI: https://adrianoladislau.com.br
Description: Tema WordPress profissional para portais de notícias, inspirado nos layouts do G1 e CNN Brasil. Rápido, seguro e com código DRY.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsportal
Tags: news, magazine, grid-layout, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Design System — CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --np-primary: #e63946;
    --np-primary-dark: #c1121f;
    --np-secondary: #1d3557;
    --np-accent: #f77f00;
    --np-dark: #0d1117;
    --np-dark-alt: #161b22;
    --np-gray-900: #1a1a2e;
    --np-gray-800: #2d2d44;
    --np-gray-700: #444466;
    --np-gray-600: #5c5c7a;
    --np-gray-500: #8888aa;
    --np-gray-400: #aaaacc;
    --np-gray-300: #ccccdd;
    --np-gray-200: #e2e2ee;
    --np-gray-100: #f0f0f8;
    --np-white: #ffffff;
    --np-bg: #f4f4f8;
    --np-surface: #ffffff;
    --np-border: #e0e0e8;

    /* Category Colors */
    --np-cat-politica: #1a73e8;
    --np-cat-economia: #0d9488;
    --np-cat-tecnologia: #7c3aed;
    --np-cat-esportes: #16a34a;
    --np-cat-saude: #dc2626;
    --np-cat-entretenimento: #ea580c;
    --np-cat-educacao: #2563eb;
    --np-cat-mundo: #4338ca;

    /* Typography */
    --np-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --np-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --np-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --np-text-xs: 0.75rem;
    --np-text-sm: 0.8125rem;
    --np-text-base: 0.9375rem;
    --np-text-md: 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;
    --np-text-5xl: 3rem;

    /* 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: 1240px;
    --np-sidebar-width: 320px;
    --np-header-height: 56px;
    --np-radius: 6px;
    --np-radius-lg: 10px;

    /* Shadows */
    --np-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --np-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --np-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --np-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --np-transition: 200ms ease;
    --np-transition-slow: 400ms ease;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

*,
*::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-body);
    font-size: var(--np-text-base);
    line-height: 1.6;
    color: var(--np-gray-900);
    background-color: var(--np-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

/* ==========================================================================
   Top Bar
   ========================================================================== */

.np-topbar {
    background: var(--np-dark);
    color: var(--np-gray-400);
    font-size: var(--np-text-xs);
    padding: var(--np-space-xs) 0;
    border-bottom: 3px solid var(--np-primary);
}

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

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

.np-topbar__date svg {
    width: 14px;
    height: 14px;
    fill: var(--np-primary);
}

.np-topbar__links {
    display: flex;
    gap: var(--np-space-md);
}

.np-topbar__links a {
    color: var(--np-gray-400);
    transition: color var(--np-transition);
}

.np-topbar__links a:hover {
    color: var(--np-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.np-header {
    background: var(--np-white);
    box-shadow: var(--np-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.np-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.np-header__logo img {
    max-height: 36px;
    width: auto;
}

.np-header__logo-text {
    font-family: var(--np-font-heading);
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-primary);
    letter-spacing: -0.5px;
}

.np-header__logo-text span {
    color: var(--np-secondary);
}

/* Search */
.np-search-form {
    display: flex;
    align-items: center;
    background: var(--np-gray-100);
    border-radius: 100px;
    padding: 0 var(--np-space-md);
    transition: all var(--np-transition);
    max-width: 280px;
    width: 100%;
}

.np-search-form:focus-within {
    background: var(--np-white);
    box-shadow: 0 0 0 2px var(--np-primary);
}

.np-search-form input {
    background: transparent;
    padding: var(--np-space-sm) 0;
    width: 100%;
    font-size: var(--np-text-sm);
}

.np-search-form input::placeholder {
    color: var(--np-gray-500);
}

.np-search-form button {
    background: none;
    cursor: pointer;
    padding: var(--np-space-xs);
    color: var(--np-gray-600);
    display: flex;
    transition: color var(--np-transition);
}

.np-search-form button:hover {
    color: var(--np-primary);
}

.np-search-form button svg {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.np-menu-toggle {
    display: none;
    background: none;
    cursor: pointer;
    padding: var(--np-space-sm);
    color: var(--np-gray-700);
}

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

/* ==========================================================================
   Main Navigation
   ========================================================================== */

.np-nav {
    background: var(--np-secondary);
}

.np-nav__list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.np-nav__list>li>a {
    display: block;
    padding: var(--np-space-sm) var(--np-space-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--np-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all var(--np-transition);
    position: relative;
}

.np-nav__list>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--np-primary);
    transition: all var(--np-transition);
    transform: translateX(-50%);
}

.np-nav__list>li>a:hover,
.np-nav__list>li.current-menu-item>a {
    color: var(--np-white);
    background: rgba(255, 255, 255, 0.08);
}

.np-nav__list>li>a:hover::after,
.np-nav__list>li.current-menu-item>a::after {
    width: 100%;
}

/* Sub-menu */
.np-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--np-white);
    box-shadow: var(--np-shadow-md);
    border-radius: 0 0 var(--np-radius) var(--np-radius);
    min-width: 220px;
    z-index: 100;
}

.np-nav__list li:hover>.sub-menu {
    display: block;
}

.np-nav__list .sub-menu a {
    display: block;
    padding: var(--np-space-sm) var(--np-space-md);
    color: var(--np-gray-800);
    font-size: var(--np-text-sm);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--np-gray-100);
}

.np-nav__list .sub-menu a:hover {
    background: var(--np-gray-100);
    color: var(--np-primary);
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */

.np-ticker {
    background: var(--np-primary);
    color: var(--np-white);
    overflow: hidden;
    position: relative;
    height: 36px;
}

.np-ticker__label {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--np-space-md);
    background: var(--np-primary-dark);
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    gap: var(--np-space-xs);
}

.np-ticker__label svg {
    width: 14px;
    height: 14px;
    animation: np-pulse 1.5s ease-in-out infinite;
}

.np-ticker__content {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 160px;
    animation: np-ticker-scroll 30s linear infinite;
    white-space: nowrap;
    gap: var(--np-space-2xl);
}

.np-ticker__item {
    font-size: var(--np-text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
}

.np-ticker__item::before {
    content: '●';
    font-size: 6px;
    opacity: 0.6;
}

.np-ticker__item a {
    color: var(--np-white);
}

.np-ticker__item a:hover {
    text-decoration: underline;
}

@keyframes np-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes np-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ==========================================================================
   Main Layout
   ========================================================================== */

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

.np-layout {
    display: grid;
    grid-template-columns: 1fr var(--np-sidebar-width);
    gap: var(--np-space-xl);
    align-items: start;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

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

.np-hero__main {
    position: relative;
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.np-hero__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--np-transition-slow);
}

.np-hero__main:hover .np-hero__main-img {
    transform: scale(1.03);
}

.np-hero__main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--np-space-xl);
}

.np-hero__main-overlay .np-badge {
    margin-bottom: var(--np-space-sm);
}

.np-hero__main-title {
    font-size: var(--np-text-3xl);
    color: var(--np-white);
    line-height: 1.15;
    margin-bottom: var(--np-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-hero__main-title a {
    color: var(--np-white);
}

.np-hero__main-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.np-hero__main-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--np-text-sm);
    display: flex;
    gap: var(--np-space-md);
    align-items: center;
}

.np-hero__sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--np-space-md);
}

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

.np-hero__secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--np-transition-slow);
}

.np-hero__secondary:hover img {
    transform: scale(1.03);
}

.np-hero__secondary-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--np-space-md);
}

.np-hero__secondary-title {
    font-size: var(--np-text-lg);
    color: var(--np-white);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-hero__secondary-title a {
    color: var(--np-white);
}

.np-hero__secondary-title a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Badge (Category Tag)
   ========================================================================== */

.np-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--np-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    background: var(--np-primary);
    color: var(--np-white);
    line-height: 1.6;
}

.np-badge--outline {
    background: transparent;
    color: var(--np-primary);
    border: 1.5px solid var(--np-primary);
}

/* ==========================================================================
   Card Component
   ========================================================================== */

.np-card {
    background: var(--np-surface);
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
    transition: all var(--np-transition);
    display: flex;
    flex-direction: column;
}

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

.np-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.np-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--np-transition-slow);
}

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

.np-card__image .np-badge {
    position: absolute;
    top: var(--np-space-sm);
    left: var(--np-space-sm);
    z-index: 1;
}

.np-card__body {
    padding: var(--np-space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.np-card__title {
    font-size: var(--np-text-md);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--np-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.np-card__excerpt {
    font-size: var(--np-text-sm);
    color: var(--np-gray-600);
    line-height: 1.5;
    margin-bottom: var(--np-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.np-card__meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-sm);
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    margin-top: auto;
    padding-top: var(--np-space-sm);
    border-top: 1px solid var(--np-gray-100);
}

.np-card__meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.np-card__meta-sep::before {
    content: '·';
    margin: 0 2px;
}

/* Cards Grid */
.np-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-md);
}

/* ==========================================================================
   List Item Component
   ========================================================================== */

.np-list-item {
    display: flex;
    gap: var(--np-space-md);
    padding: var(--np-space-md) 0;
    border-bottom: 1px solid var(--np-border);
}

.np-list-item:last-child {
    border-bottom: none;
}

.np-list-item__image {
    width: 120px;
    height: 80px;
    border-radius: var(--np-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.np-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--np-transition-slow);
}

.np-list-item:hover .np-list-item__image img {
    transform: scale(1.05);
}

.np-list-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.np-list-item__title {
    font-size: var(--np-text-sm);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-list-item__title a:hover {
    color: var(--np-primary);
}

.np-list-item__meta {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    margin-top: var(--np-space-xs);
}

/* ==========================================================================
   Trending / Mais Lidas
   ========================================================================== */

.np-trending {
    background: var(--np-surface);
    border-radius: var(--np-radius);
    padding: var(--np-space-lg);
    box-shadow: var(--np-shadow-sm);
}

.np-trending__item {
    display: flex;
    gap: var(--np-space-md);
    padding: var(--np-space-sm) 0;
    border-bottom: 1px solid var(--np-gray-100);
    align-items: flex-start;
}

.np-trending__item:last-child {
    border-bottom: none;
}

.np-trending__number {
    font-family: var(--np-font-heading);
    font-size: var(--np-text-2xl);
    font-weight: 800;
    color: var(--np-primary);
    line-height: 1;
    min-width: 30px;
    flex-shrink: 0;
}

.np-trending__title {
    font-size: var(--np-text-sm);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-trending__title a:hover {
    color: var(--np-primary);
}

.np-trending__meta {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    margin-top: 2px;
}

/* ==========================================================================
   Category Block
   ========================================================================== */

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

.np-category-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--np-space-md);
    padding-bottom: var(--np-space-sm);
    border-bottom: 3px solid var(--np-primary);
}

.np-category-block__title {
    font-size: var(--np-text-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--np-dark);
}

.np-category-block__more {
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-primary);
    transition: color var(--np-transition);
    display: flex;
    align-items: center;
    gap: var(--np-space-xs);
}

.np-category-block__more:hover {
    color: var(--np-primary-dark);
}

.np-category-block__more svg {
    width: 14px;
    height: 14px;
    transition: transform var(--np-transition);
}

.np-category-block__more:hover svg {
    transform: translateX(3px);
}

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

/* ==========================================================================
   Section Header
   ========================================================================== */

.np-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--np-space-lg);
    padding-bottom: var(--np-space-sm);
    border-bottom: 3px solid var(--np-primary);
}

.np-section-header__title {
    font-size: var(--np-text-xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.np-sidebar {
    position: sticky;
    top: calc(var(--np-header-height) + var(--np-space-md));
}

.np-sidebar .np-section-header {
    margin-bottom: var(--np-space-md);
}

.np-widget {
    background: var(--np-surface);
    border-radius: var(--np-radius);
    padding: var(--np-space-lg);
    box-shadow: var(--np-shadow-sm);
    margin-bottom: var(--np-space-md);
}

.np-widget__title {
    font-size: var(--np-text-md);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: var(--np-space-sm);
    margin-bottom: var(--np-space-md);
    border-bottom: 3px solid var(--np-primary);
}

.np-widget ul {
    display: flex;
    flex-direction: column;
}

.np-widget ul li {
    padding: var(--np-space-sm) 0;
    border-bottom: 1px solid var(--np-gray-100);
}

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

.np-widget ul li a {
    font-size: var(--np-text-sm);
    color: var(--np-gray-700);
    transition: color var(--np-transition);
}

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

/* Ad widget */
.np-widget--ad {
    background: var(--np-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--np-gray-500);
    font-size: var(--np-text-sm);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

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

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

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

.np-breadcrumb__sep {
    color: var(--np-gray-400);
}

.np-article {
    background: var(--np-surface);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
}

.np-article__header {
    padding: var(--np-space-xl);
    padding-bottom: 0;
}

.np-article__category {
    margin-bottom: var(--np-space-sm);
}

.np-article__title {
    font-size: var(--np-text-4xl);
    line-height: 1.15;
    margin-bottom: var(--np-space-md);
    letter-spacing: -0.5px;
}

.np-article__subtitle {
    font-size: var(--np-text-xl);
    color: var(--np-gray-600);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: var(--np-space-lg);
}

.np-article__meta {
    display: flex;
    align-items: center;
    gap: var(--np-space-md);
    padding: var(--np-space-md) 0;
    border-top: 1px solid var(--np-border);
    border-bottom: 1px solid var(--np-border);
    margin-bottom: var(--np-space-lg);
    flex-wrap: wrap;
}

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

.np-article__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.np-article__author-name {
    font-weight: 600;
    font-size: var(--np-text-sm);
    color: var(--np-dark);
}

.np-article__date,
.np-article__reading-time {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    display: flex;
    align-items: center;
    gap: var(--np-space-xs);
}

.np-article__date svg,
.np-article__reading-time svg {
    width: 14px;
    height: 14px;
}

.np-article__featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.np-article__content {
    padding: var(--np-space-xl);
    font-size: var(--np-text-lg);
    line-height: 1.8;
    color: var(--np-gray-800);
}

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

.np-article__content h2 {
    font-size: var(--np-text-2xl);
    margin: var(--np-space-2xl) 0 var(--np-space-md);
}

.np-article__content h3 {
    font-size: var(--np-text-xl);
    margin: var(--np-space-xl) 0 var(--np-space-md);
}

.np-article__content a {
    color: var(--np-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.np-article__content a:hover {
    color: var(--np-primary-dark);
}

.np-article__content blockquote {
    border-left: 4px solid var(--np-primary);
    padding: var(--np-space-md) var(--np-space-lg);
    margin: var(--np-space-lg) 0;
    background: var(--np-gray-100);
    border-radius: 0 var(--np-radius) var(--np-radius) 0;
    font-style: italic;
    color: var(--np-gray-700);
}

.np-article__content ul,
.np-article__content ol {
    margin: var(--np-space-md) 0;
    padding-left: var(--np-space-xl);
}

.np-article__content ul {
    list-style: disc;
}

.np-article__content ol {
    list-style: decimal;
}

.np-article__content li {
    margin-bottom: var(--np-space-sm);
}

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

.np-article__content figure {
    margin: var(--np-space-lg) 0;
}

.np-article__content figcaption {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    text-align: center;
    margin-top: var(--np-space-sm);
}

.np-article__content pre {
    background: var(--np-dark);
    color: var(--np-gray-300);
    padding: var(--np-space-lg);
    border-radius: var(--np-radius);
    overflow-x: auto;
    font-family: var(--np-font-mono);
    font-size: var(--np-text-sm);
    margin: var(--np-space-lg) 0;
}

.np-article__content code {
    font-family: var(--np-font-mono);
    font-size: 0.9em;
    background: var(--np-gray-100);
    padding: 2px 6px;
    border-radius: 3px;
}

.np-article__content pre code {
    background: none;
    padding: 0;
}

/* Tags */
.np-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--np-space-sm);
    padding: 0 var(--np-space-xl) var(--np-space-xl);
}

.np-article__tag {
    background: var(--np-gray-100);
    color: var(--np-gray-700);
    padding: var(--np-space-xs) var(--np-space-md);
    border-radius: 100px;
    font-size: var(--np-text-xs);
    font-weight: 600;
    transition: all var(--np-transition);
}

.np-article__tag:hover {
    background: var(--np-primary);
    color: var(--np-white);
}

/* Share */
.np-share {
    display: flex;
    gap: var(--np-space-sm);
    padding: 0 var(--np-space-xl) var(--np-space-xl);
    align-items: center;
}

.np-share__label {
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-600);
    margin-right: var(--np-space-sm);
}

.np-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--np-white);
    cursor: pointer;
    transition: transform var(--np-transition);
}

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

.np-share__btn--facebook {
    background: #1877F2;
}

.np-share__btn--twitter {
    background: #1DA1F2;
}

.np-share__btn--whatsapp {
    background: #25D366;
}

.np-share__btn--telegram {
    background: #0088cc;
}

.np-share__btn--linkedin {
    background: #0A66C2;
}

.np-share__btn svg {
    width: 16px;
    height: 16px;
}

/* Related Posts */
.np-related {
    padding: var(--np-space-xl);
    border-top: 1px solid var(--np-border);
}

.np-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--np-space-md);
}

/* ==========================================================================
   Archive Header
   ========================================================================== */

.np-archive-header {
    background: var(--np-secondary);
    color: var(--np-white);
    padding: var(--np-space-2xl) 0;
    margin-bottom: var(--np-space-xl);
}

.np-archive-header__title {
    font-size: var(--np-text-3xl);
    color: var(--np-white);
    margin-bottom: var(--np-space-sm);
}

.np-archive-header__desc {
    font-size: var(--np-text-md);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.np-pagination {
    display: flex;
    justify-content: center;
    gap: var(--np-space-xs);
    margin-top: var(--np-space-2xl);
}

.np-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--np-radius);
    font-size: var(--np-text-sm);
    font-weight: 600;
    color: var(--np-gray-700);
    background: var(--np-surface);
    box-shadow: var(--np-shadow-sm);
    transition: all var(--np-transition);
}

.np-pagination .page-numbers:hover,
.np-pagination .page-numbers.current {
    background: var(--np-primary);
    color: var(--np-white);
}

.np-pagination .page-numbers.dots {
    background: none;
    box-shadow: none;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.np-comments {
    background: var(--np-surface);
    border-radius: var(--np-radius-lg);
    padding: var(--np-space-xl);
    margin-top: var(--np-space-xl);
    box-shadow: var(--np-shadow-sm);
}

.np-comments__title {
    font-size: var(--np-text-xl);
    margin-bottom: var(--np-space-lg);
    padding-bottom: var(--np-space-sm);
    border-bottom: 3px solid var(--np-primary);
}

.np-comment {
    padding: var(--np-space-md) 0;
    border-bottom: 1px solid var(--np-gray-100);
}

.np-comment:last-child {
    border-bottom: none;
}

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

.np-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.np-comment__author {
    font-weight: 600;
    font-size: var(--np-text-sm);
}

.np-comment__date {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
}

.np-comment__body {
    font-size: var(--np-text-sm);
    line-height: 1.6;
    color: var(--np-gray-700);
}

.np-comment__reply {
    margin-top: var(--np-space-sm);
}

.np-comment__reply a {
    font-size: var(--np-text-xs);
    font-weight: 600;
    color: var(--np-primary);
}

/* Comment Form */
.np-comment-form label {
    display: block;
    font-size: var(--np-text-sm);
    font-weight: 600;
    margin-bottom: var(--np-space-xs);
    color: var(--np-gray-700);
}

.np-comment-form input[type="text"],
.np-comment-form input[type="email"],
.np-comment-form input[type="url"],
.np-comment-form textarea {
    width: 100%;
    padding: var(--np-space-sm) var(--np-space-md);
    border: 2px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: var(--np-text-sm);
    transition: border-color var(--np-transition);
    margin-bottom: var(--np-space-md);
    background: var(--np-gray-100);
}

.np-comment-form input:focus,
.np-comment-form textarea:focus {
    border-color: var(--np-primary);
    background: var(--np-white);
}

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

.np-comment-form .submit {
    background: var(--np-primary);
    color: var(--np-white);
    padding: var(--np-space-sm) var(--np-space-xl);
    border-radius: var(--np-radius);
    font-weight: 700;
    font-size: var(--np-text-sm);
    cursor: pointer;
    transition: background var(--np-transition);
}

.np-comment-form .submit:hover {
    background: var(--np-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.np-footer {
    background: var(--np-dark);
    color: var(--np-gray-400);
    padding: var(--np-space-3xl) 0 var(--np-space-xl);
    margin-top: var(--np-space-3xl);
}

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

.np-footer__brand {
    font-family: var(--np-font-heading);
    font-size: var(--np-text-xl);
    font-weight: 800;
    color: var(--np-white);
    margin-bottom: var(--np-space-md);
}

.np-footer__brand span {
    color: var(--np-primary);
}

.np-footer__desc {
    font-size: var(--np-text-sm);
    line-height: 1.6;
    margin-bottom: var(--np-space-lg);
}

/* Social Icons */
.np-social {
    display: flex;
    gap: var(--np-space-sm);
}

.np-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--np-gray-400);
    transition: all var(--np-transition);
}

.np-social__link:hover {
    background: var(--np-primary);
    color: var(--np-white);
    transform: translateY(-2px);
}

.np-social__link svg {
    width: 16px;
    height: 16px;
}

.np-footer__heading {
    font-size: var(--np-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--np-white);
    margin-bottom: var(--np-space-lg);
}

.np-footer__links li {
    margin-bottom: var(--np-space-sm);
}

.np-footer__links a {
    font-size: var(--np-text-sm);
    color: var(--np-gray-400);
    transition: color var(--np-transition);
}

.np-footer__links a:hover {
    color: var(--np-white);
}

.np-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--np-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--np-space-md);
}

.np-footer__copyright {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
}

.np-footer__legal {
    display: flex;
    gap: var(--np-space-lg);
}

.np-footer__legal a {
    font-size: var(--np-text-xs);
    color: var(--np-gray-500);
    transition: color var(--np-transition);
}

.np-footer__legal a:hover {
    color: var(--np-white);
}

/* Back to Top */
.np-back-to-top {
    position: fixed;
    bottom: var(--np-space-xl);
    right: var(--np-space-xl);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--np-primary);
    color: var(--np-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--np-shadow-md);
    transition: all var(--np-transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 999;
}

.np-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.np-back-to-top:hover {
    background: var(--np-primary-dark);
    transform: translateY(-3px);
}

.np-back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.np-404 {
    text-align: center;
    padding: var(--np-space-3xl) 0;
}

.np-404__code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--np-gray-200);
    line-height: 1;
    margin-bottom: var(--np-space-md);
}

.np-404__title {
    font-size: var(--np-text-2xl);
    margin-bottom: var(--np-space-md);
}

.np-404__text {
    font-size: var(--np-text-md);
    color: var(--np-gray-600);
    margin-bottom: var(--np-space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.np-404 .np-search-form {
    max-width: 400px;
    margin: 0 auto var(--np-space-2xl);
    background: var(--np-white);
    box-shadow: var(--np-shadow);
}

/* ==========================================================================
   WordPress Alignment Classes
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: var(--np-space-lg);
    margin-bottom: var(--np-space-md);
}

.alignright {
    float: right;
    margin-left: var(--np-space-lg);
    margin-bottom: var(--np-space-md);
}

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

.alignwide {
    max-width: calc(100% + var(--np-space-2xl));
    margin-left: calc(-1 * var(--np-space-lg));
    margin-right: calc(-1 * var(--np-space-lg));
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--np-text-sm);
    color: var(--np-gray-500);
    text-align: center;
    margin-top: var(--np-space-sm);
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

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

    .np-sidebar {
        position: static;
    }

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

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

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

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

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

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --np-header-height: 50px;
    }

    .np-topbar {
        display: none;
    }

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

    .np-search-form {
        max-width: 180px;
    }

    .np-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--np-secondary);
        z-index: 9999;
        padding: var(--np-space-3xl) var(--np-space-xl);
        overflow-y: auto;
    }

    .np-nav.is-open {
        display: block;
    }

    .np-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .np-nav__list>li>a {
        padding: var(--np-space-md);
        font-size: var(--np-text-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .np-nav__list>li>a::after {
        display: none;
    }

    .np-nav__list .sub-menu {
        position: static;
        display: block;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        border-radius: 0;
    }

    .np-nav__list .sub-menu a {
        color: rgba(255, 255, 255, 0.8);
        border-bottom-color: rgba(255, 255, 255, 0.05);
        padding-left: var(--np-space-xl);
    }

    .np-nav__close {
        position: absolute;
        top: var(--np-space-md);
        right: var(--np-space-md);
        background: none;
        color: var(--np-white);
        cursor: pointer;
        padding: var(--np-space-sm);
    }

    .np-nav__close svg {
        width: 24px;
        height: 24px;
    }

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

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

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

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

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

    .np-article__content {
        padding: var(--np-space-md);
        font-size: var(--np-text-base);
    }

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

    .np-article__tags {
        padding: 0 var(--np-space-md) var(--np-space-md);
    }

    .np-share {
        padding: 0 var(--np-space-md) var(--np-space-md);
    }

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

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

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

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

    .np-pagination .page-numbers {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .np-topbar,
    .np-header,
    .np-nav,
    .np-ticker,
    .np-sidebar,
    .np-footer,
    .np-back-to-top,
    .np-share,
    .np-related,
    .np-comments {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .np-article {
        box-shadow: none;
    }

    .np-article__content a::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }
}