:root {
    --pn-blue-900: #071B4D;
    --pn-blue-800: #0D47A1;
    --pn-blue-700: #1E88E5;
    --pn-blue-600: #2E5DB9;
    --pn-blue-500: #42A5F5;
    --pn-blue-400: #64B5F6;

    --pn-yellow-500: #FFC107;
    --pn-yellow-600: #FFB300;
    --pn-yellow-300: #FFD54F;
    --pn-orange-700: #F57C00;

    --pn-red-700: #D32F2F;
    --pn-red-900: #B71C1C;
    --pn-orange-600: #FF6F00;
    --pn-orange-500: #FF8F00;

    --pn-white: #FFFFFF;
    --pn-white-soft: #F5F5F5;
    --pn-gray-200: #D6D6D6;
    --pn-gray-300: #E0E0E0;
    --pn-gray-400: #BDBDBD;

    --pn-black: #050505;
    --pn-black-blue: #0B1020;
    --pn-gray-900: #1E1E1E;

    --pn-line: rgba(66, 165, 245, 0.5);
    --pn-line-dark: rgba(66, 165, 245, 0.25);
    --pn-radius: 16px;
    --pn-radius-sm: 8px;
    --pn-radius-lg: 20px;

    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease-out;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 20% 10%, #0D47A1 0%, #071B4D 42%, #0B1020 100%);
    color: var(--pn-white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ===== HEADER ===== */
.pn-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: linear-gradient(
        180deg,
        rgba(11, 16, 32, 0.92) 0%,
        rgba(11, 16, 32, 0.88) 100%
    );
    border-bottom: 2px solid var(--pn-line);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-smooth);
}

.pn-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1rem;
}

.pn-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

.pn-logo:hover {
    transform: scale(1.05);
}

.pn-logo img {
    display: block;
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.15));
}

.pn-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.pn-nav a {
    border: 2px solid var(--pn-line-dark);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    color: var(--pn-white-soft);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pn-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(66, 165, 245, 0.15);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.pn-nav a:hover::before {
    left: 0;
}

.pn-nav a:hover,
.pn-nav a.active {
    border-color: var(--pn-yellow-500);
    color: var(--pn-yellow-300);
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 16px rgba(255, 193, 7, 0.2);
}


/* ===== HERO ===== */
.hero {
    background-image: linear-gradient(
        135deg,
        rgba(11, 16, 32, 0.5) 0%,
        rgba(7, 27, 77, 0.7) 50%,
        rgba(11, 16, 32, 0.8) 100%
    ), url('img/Nova_capa.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 3px solid var(--pn-line);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(30, 136, 229, 0.1), transparent 70%);
    pointer-events: none;
}

.hero {
    min-height: 62vh;
    display: grid;
    place-items: end start;
}

.hero__content {
    max-width: 760px;
    padding: 2.4rem 0 3rem;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__kicker {
    display: inline-flex;
    border: 2.5px solid var(--pn-yellow-500);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--pn-yellow-300);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero h1 {
    margin: 1.2rem 0 0.8rem;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero p {
    margin: 0.8rem 0 0;
    color: var(--pn-gray-200);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero--article {
    min-height: auto;
    place-items: start;
    background-image: none;
    background-position: center 24%;
}

.hero--article .hero__content {
    max-width: 900px;
    padding-top: 1.25rem;
    padding-bottom: 1.4rem;
}

.hero--article-sm .hero__content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero--article-md .hero__content {
    padding-top: 1.25rem;
    padding-bottom: 1.4rem;
}

.hero--article-lg .hero__content {
    padding-top: 1.5rem;
    padding-bottom: 1.9rem;
}

/* ===== MAIN & SECTIONS ===== */
.main {
    padding: 2.5rem 0 4rem;
}

.section {
    margin-top: 2.8rem;
}

.section:first-of-type {
    margin-top: 0;
}

.section h2 {
    margin: 0 0 1.6rem;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: var(--pn-yellow-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    padding-bottom: 0.8rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pn-yellow-500), var(--pn-orange-500), transparent);
    border-radius: 999px;
}


/* ===== FILTERS ===== */
.filters {
    padding: 1.4rem;
    border: 2px solid var(--pn-line);
    border-radius: var(--pn-radius-lg);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.25), rgba(7, 27, 77, 0.3));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.filters form {
    display: grid;
    grid-template-columns: 1.8fr 1fr auto;
    gap: 0.9rem;
}

.filters input,
.filters select,
.filters button,
.filters a {
    height: 48px;
    border-radius: var(--pn-radius-sm);
    border: 2px solid var(--pn-line-dark);
    font: inherit;
    transition: all var(--transition-smooth);
}

.filters input,
.filters select {
    background: rgba(11, 16, 32, 0.85);
    color: var(--pn-white);
    padding: 0 1rem;
    font-weight: 500;
}

.filters input::placeholder {
    color: rgba(160, 182, 233, 0.6);
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--pn-blue-500);
    background: rgba(11, 16, 32, 0.95);
    box-shadow: 0 0 12px rgba(66, 165, 245, 0.3);
}

.filters button,
.filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    font-weight: 800;
    cursor: pointer;
}

.filters button {
    background: linear-gradient(135deg, var(--pn-yellow-500) 0%, var(--pn-orange-500) 100%);
    color: var(--pn-black-blue);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25);
}

.filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.35);
}

.filters a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pn-white-soft);
    border-color: var(--pn-line-dark);
}

.filters a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--pn-blue-500);
    color: var(--pn-blue-400);
}

.filters__actions {
    display: flex;
    gap: 0.7rem;
}

.results-note {
    margin: 1rem 0 0;
    color: var(--pn-gray-200);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 1120px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .filters form {
        grid-template-columns: 1fr;
    }

    .filters__actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
}

/* ===== CARD ===== */
.card {
    border: 2px solid var(--pn-line-dark);
    border-radius: var(--pn-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 41, 95, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 136, 229, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--pn-yellow-500);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 193, 7, 0.15);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(30, 136, 229, 0.55);
    overflow: hidden;
    position: relative;
}

.card:hover .card__image {
    transform: scale(1.08);
}

.card__image {
    transition: transform var(--transition-smooth);
}

.card__body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.meta {
    margin: 0;
    color: var(--pn-yellow-300);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card h3 {
    margin: 0.6rem 0 0.7rem;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--pn-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card h3 a {
    transition: color var(--transition-fast);
}

.card:hover h3 a {
    color: var(--pn-yellow-300);
}

.card p {
    margin: 0;
    color: var(--pn-white-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .tag-list {
    margin-top: 0.8rem;
    display: none;
}

.category-block {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--pn-line-dark);
}

.category-block h2 {
    margin: 0 0 1.6rem;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 800;
    color: var(--pn-blue-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ===== PAGINATION ===== */
.pagination {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border: 2px solid var(--pn-line);
    border-radius: var(--pn-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all var(--transition-smooth);
}

.pagination a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pn-white-soft);
    cursor: pointer;
}

.pagination a:hover {
    background: rgba(66, 165, 245, 0.2);
    border-color: var(--pn-blue-500);
    color: var(--pn-blue-400);
    transform: translateY(-2px);
}

.pagination .is-active {
    color: var(--pn-black-blue);
    border-color: rgba(255, 193, 7, 0.8);
    background: linear-gradient(135deg, var(--pn-yellow-500), var(--pn-orange-500));
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
    font-weight: 900;
}

/* ===== ARTICLE ===== */
.article-main {
    margin-top: 2.2rem;
    padding: 3rem;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.article-content {
    margin-top: 0;
    color: var(--pn-white-soft);
    line-height: 2;
    font-size: 1.125rem;
    font-weight: 400;
}

/* Lead paragraph - first paragraph larger */
.article-content > p:first-of-type {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--pn-gray-200);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.article-content h1 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--pn-white);
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--pn-yellow-400);
    font-weight: 900;
    margin-top: 2.8rem;
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

.article-content h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--pn-line-dark);
}

.article-content h3 {
    font-size: 1.6rem;
}

.article-content h4 {
    font-size: 1.35rem;
}

.article-content p {
    margin: 1.8rem 0;
    max-width: 100%;
    color: var(--pn-white-soft);
}

.article-content a {
    color: var(--pn-yellow-300);
    text-decoration: none;
    border-bottom: 2px solid var(--pn-yellow-500);
    transition: all var(--transition-fast);
    font-weight: 600;
}

.article-content a:hover {
    color: var(--pn-yellow-500);
    border-bottom-color: var(--pn-yellow-300);
    background: rgba(255, 193, 7, 0.08);
    padding: 0.2rem 0.4rem;
}

.article-content strong {
    color: var(--pn-yellow-300);
    font-weight: 900;
}

.article-content em {
    font-style: italic;
    color: var(--pn-gray-200);
}

/* Images - Improved styling */
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--pn-radius-lg);
    border: 2px solid var(--pn-line-dark);
    margin: 3rem auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 1px var(--pn-line);
    transition: all var(--transition-smooth);
}

.article-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(66, 165, 245, 0.2);
}

.article-content figure {
    margin: 3rem 0;
    text-align: center;
}

.article-content figure img {
    margin: 0 auto 1rem;
}

.article-content figcaption {
    margin-top: 1rem;
    color: var(--pn-gray-200);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
}

/* Lists - Premium styling */
.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2.5rem;
    list-style-position: outside;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ul li::marker {
    color: var(--pn-yellow-500);
    font-weight: 900;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content ol li::marker {
    color: var(--pn-yellow-500);
    font-weight: 900;
}

.article-content li {
    margin: 1rem 0;
    line-height: 2;
    color: var(--pn-white-soft);
    padding-left: 0.5rem;
}

.article-content li strong {
    color: var(--pn-yellow-300);
}

/* Blockquotes - Elegant styling */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.8rem 2.2rem;
    border-left: 5px solid var(--pn-yellow-500);
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.05), transparent);
    border-radius: var(--pn-radius-sm);
    color: var(--pn-white-soft);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    font-size: 3.5rem;
    color: var(--pn-yellow-500);
    opacity: 0.2;
    font-weight: 900;
}

.article-content blockquote strong {
    color: var(--pn-yellow-400);
    font-weight: 900;
}

.article-content blockquote em {
    color: var(--pn-gray-200);
}

/* Code blocks - Premium styling */
.article-content code {
    background: rgba(30, 136, 229, 0.15);
    color: var(--pn-yellow-300);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    border: 1px solid var(--pn-blue-500);
    white-space: nowrap;
}

.article-content pre {
    background: rgba(7, 27, 77, 0.8);
    border: 1px solid var(--pn-line-dark);
    border-radius: var(--pn-radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.article-content pre code {
    background: none;
    color: var(--pn-yellow-300);
    padding: 0;
    border: none;
    white-space: pre;
}

/* Tables - Improved */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border-radius: var(--pn-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--pn-line-dark);
}

.article-content table,
.article-content th,
.article-content td {
    border-color: var(--pn-line-dark);
}

.article-content th {
    background: linear-gradient(90deg, var(--pn-blue-700), var(--pn-blue-600));
    padding: 1.2rem;
    font-weight: 900;
    text-align: left;
    color: var(--pn-yellow-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.article-content td {
    padding: 1.2rem;
    color: var(--pn-white-soft);
}

.article-content tr {
    border-bottom: 1px solid var(--pn-line-dark);
}

.article-content tr:nth-child(even) {
    background: rgba(30, 136, 229, 0.08);
}

.article-content tr:last-child {
    border-bottom: none;
}

.article-content tr:hover {
    background: rgba(30, 136, 229, 0.12);
}

/* Callout boxes */
.article-content .callout {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--pn-radius-sm);
    border-left: 4px solid var(--pn-orange-500);
}

.article-content .callout strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--pn-orange-500);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* HR - Horizontal rule */
.article-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid var(--pn-line-dark);
    position: relative;
}

.article-content hr::after {
    content: '◆';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 20% 10%, #0D47A1 0%, #071B4D 42%, #0B1020 100%);
    padding: 0 1rem;
    color: var(--pn-yellow-500);
    font-size: 1rem;
}

/* Abbreviations */
.article-content abbr {
    text-decoration: none;
    border-bottom: 1px dotted var(--pn-yellow-500);
    cursor: help;
}

/* Mark/Highlight */
.article-content mark {
    background: rgba(255, 193, 7, 0.2);
    color: var(--pn-yellow-300);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.article-actions {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--pn-line-dark);
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary-pn {
    height: 52px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--pn-yellow-500), var(--pn-orange-500));
    color: var(--pn-black-blue);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0 2rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3), 0 0 1px var(--pn-yellow-500);
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary-pn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-smooth);
    z-index: 0;
}

.btn-primary-pn:hover::before {
    left: 100%;
}

.btn-primary-pn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4), 0 0 24px rgba(255, 193, 7, 0.2);
}

.btn-primary-pn:active {
    transform: translateY(-1px);
}

/* ===== EMPTY STATE ===== */
.empty {
    margin: 0;
    padding: 2rem;
    border: 2px dashed var(--pn-line);
    border-radius: var(--pn-radius-lg);
    background: rgba(255, 255, 255, 0.04);
    color: var(--pn-gray-200);
    text-align: center;
    font-weight: 500;
}


/* ===== FOOTER ===== */
.pn-footer {
    margin-top: 3.5rem;
    border: 2px solid var(--pn-line-dark);
    border-radius: var(--pn-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 16, 32, 0.8), rgba(7, 27, 77, 0.8));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.pn-footer__grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.8rem;
}

.pn-footer__title {
    margin: 0;
    color: var(--pn-yellow-500);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pn-footer__brand p {
    margin: 0.8rem 0 0;
    color: var(--pn-white-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pn-footer__list {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.pn-footer__list a {
    color: var(--pn-gray-200);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pn-footer__list a:hover {
    color: var(--pn-yellow-300);
    padding-left: 0.3rem;
}

.pn-footer__social {
    margin: 0.8rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pn-footer__social a {
    border: 1.5px solid var(--pn-line-dark);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-weight: 800;
    color: var(--pn-white-soft);
    background: rgba(11, 16, 32, 0.6);
    font-size: 0.85rem;
    transition: all var(--transition-smooth);
}

.pn-footer__social a:hover {
    border-color: var(--pn-yellow-500);
    color: var(--pn-yellow-300);
    background: rgba(255, 193, 7, 0.12);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
}

.pn-footer__bottom {
    border-top: 1px solid var(--pn-line-dark);
    background: rgba(11, 16, 32, 0.8);
    padding: 1.4rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.pn-footer__bottom p {
    margin: 0;
    color: var(--pn-gray-200);
    font-size: 0.9rem;
    font-weight: 500;
}

.pn-footer__bottom a {
    color: var(--pn-yellow-300);
    font-weight: 800;
    transition: all var(--transition-fast);
}

.pn-footer__bottom a:hover {
    color: var(--pn-yellow-500);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pn-yellow-500), var(--pn-orange-500));
    border: 2px solid var(--pn-white);
    color: var(--pn-black-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    font-size: 1.4rem;
    z-index: 15;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pn-yellow-500), var(--pn-orange-500));
    z-index: 25;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

/* ===== ERROR PAGE ===== */
.error-wrap {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-box {
    width: min(760px, 92%);
    border: 2px solid var(--pn-line);
    border-radius: var(--pn-radius-lg);
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 41, 95, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.error-code {
    font-size: clamp(4rem, 12vw, 8rem);
    margin: 0;
    color: var(--pn-yellow-500);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    font-weight: 900;
}

.error-box h1 {
    margin: 0.6rem 0 1rem;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
}

.error-box p {
    margin: 0;
    color: var(--pn-white-soft);
    font-size: 1.05rem;
}

.error-actions {
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {
    .pn-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.4rem;
    }

    .pn-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .pn-header__inner {
        gap: 1rem;
        min-height: 64px;
    }

    .pn-logo img {
        height: 40px;
    }

    .pn-nav {
        gap: 0.4rem;
    }

    .pn-nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .hero__content {
        padding: 1.8rem 0 2rem;
    }

    .main {
        padding: 1.8rem 0 2.5rem;
    }

    .section {
        margin-top: 2rem;
    }

    .filters {
        padding: 1rem;
    }

    .filters form {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .filters__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .article-main {
        padding: 2rem 1.5rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .article-content {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .article-content > p:first-of-type {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .article-content h1 {
        font-size: 1.8rem;
        margin-top: 2.5rem;
        margin-bottom: 1.2rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
        margin-top: 2.2rem;
        margin-bottom: 1rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .article-content h4 {
        font-size: 1.15rem;
    }

    .article-content p {
        margin: 1.5rem 0;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.8rem;
        margin: 1.5rem 0;
    }

    .article-content li {
        margin: 0.8rem 0;
    }

    .article-content blockquote {
        margin: 2rem 0;
        padding: 1.2rem 1.5rem;
        font-size: 1.05rem;
    }

    .article-content img {
        margin: 2rem auto;
        border-radius: 12px;
    }

    .article-content table {
        font-size: 0.9rem;
        margin: 1.5rem 0;
    }

    .article-content th,
    .article-content td {
        padding: 0.8rem;
    }

    .article-actions {
        margin-top: 2.5rem;
        padding-top: 2rem;
        flex-direction: column;
    }

    .btn-primary-pn {
        width: 100%;
        height: 48px;
        padding: 0 1.5rem;
    }

    .pn-footer__grid {
        grid-template-columns: 1fr;
        padding: 1.4rem;
        gap: 1.2rem;
    }

    .pn-footer__brand {
        grid-column: auto;
    }

    .pn-footer__bottom {
        flex-direction: column;
        padding: 1rem 1.4rem;
        text-align: center;
    }

    .back-to-top {
        bottom: 1.4rem;
        right: 1.4rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle at 20% 10%, #0D47A1 0%, #071B4D 42%, #0B1020 100%);
    }
}
