/*
Theme Name: NewsNet
Theme URI: https://presshub24.ro
Description: Professional news theme inspired by ABCNews
Author: PressHub24
Author URI: https://presshub24.ro
Version: 1.0
Text Domain: newsnet
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --nn-primary: #1B365D;
    --nn-secondary: #F5A623;
    --nn-accent: #2A5A8C;
    --nn-bg: #ffffff;
    --nn-bg-alt: #f5f5f5;
    --nn-text: #1a1a1a;
    --nn-text-light: #666666;
    --nn-border: #e0e0e0;
    --nn-header-bg: #ffffff;
    --nn-header-text: #1B365D;
    --nn-nav-bg: #1B365D;
    --nn-nav-text: #ffffff;
    --nn-footer-bg: #0D1A30;
    --nn-footer-text: #B0C4DE;
    --nn-font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nn-font-heading: "Inter", sans-serif;
    --nn-container: 1280px;
    --nn-gap: 24px;
    --nn-radius: 6px;
}

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

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

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

body {
    font-family: var(--nn-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nn-text);
    background-color: var(--nn-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--nn-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--nn-secondary);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Typography - Romanian diacritics support via Inter font
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nn-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--nn-text);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1em;
}

blockquote {
    border-left: 4px solid var(--nn-secondary);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--nn-bg-alt);
    font-style: italic;
    color: var(--nn-text-light);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.nn-container {
    max-width: var(--nn-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--nn-gap);
    padding-right: var(--nn-gap);
}

.nn-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--nn-gap);
    padding-top: var(--nn-gap);
    padding-bottom: var(--nn-gap);
}

.nn-content-wrapper.nn-no-sidebar {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.nn-grid {
    display: grid;
    gap: var(--nn-gap);
}

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

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

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

/* Hero grid: large left + list right */
.nn-hero-grid {
    display: grid;
    grid-template-columns: 65% 1fr;
    gap: var(--nn-gap);
    margin-bottom: var(--nn-gap);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.nn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--nn-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.nn-btn-primary {
    background: var(--nn-primary);
    color: #fff;
}

.nn-btn-primary:hover {
    background: var(--nn-accent);
    color: #fff;
}

.nn-btn-secondary {
    background: var(--nn-secondary);
    color: var(--nn-primary);
}

.nn-btn-secondary:hover {
    background: #e6951a;
    color: var(--nn-primary);
}

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

.nn-btn-outline:hover {
    background: var(--nn-primary);
    color: #fff;
}

.nn-btn-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
}

.nn-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.nn-form-group {
    margin-bottom: 1rem;
}

.nn-form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--nn-text);
}

.nn-form-input,
.nn-form-select,
.nn-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nn-border);
    border-radius: var(--nn-radius);
    font-size: 0.9375rem;
    color: var(--nn-text);
    background: var(--nn-bg);
    transition: border-color 0.2s ease;
}

.nn-form-input:focus,
.nn-form-select:focus,
.nn-form-textarea:focus {
    outline: none;
    border-color: var(--nn-accent);
    box-shadow: 0 0 0 3px rgba(42, 90, 140, 0.15);
}

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

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

.nn-site-header {
    background: var(--nn-header-bg);
    border-bottom: 1px solid var(--nn-border);
}

.nn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nn-site-branding {
    display: flex;
    align-items: center;
}

.nn-site-branding .custom-logo {
    max-height: 40px;
    width: auto;
}

.nn-site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nn-header-text);
    margin: 0;
    line-height: 1;
}

.nn-site-title a {
    color: inherit;
}

.nn-site-title a:hover {
    color: var(--nn-secondary);
}

/* Navigation */
.nn-main-nav {
    background: var(--nn-nav-bg);
}

.nn-main-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.nn-main-nav li {
    position: relative;
}

.nn-main-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--nn-nav-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: background 0.2s ease, color 0.2s ease;
}

.nn-main-nav a:hover,
.nn-main-nav .current-menu-item > a,
.nn-main-nav .current_page_item > a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--nn-secondary);
}

/* Nav underline style */
.nav-style-underline .nn-main-nav a {
    position: relative;
}

.nav-style-underline .nn-main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--nn-secondary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-style-underline .nn-main-nav a:hover::after,
.nav-style-underline .nn-main-nav .current-menu-item > a::after {
    transform: scaleX(1);
}

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

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

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

.nn-breaking-news {
    background: var(--nn-primary);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.nn-breaking-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nn-secondary);
    color: var(--nn-primary);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.nn-breaking-inner {
    display: flex;
    align-items: center;
}

.nn-ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.nn-ticker-items {
    display: inline-flex;
    gap: 60px;
    animation: nn-ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.nn-ticker-items a {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.nn-ticker-items a:hover {
    color: var(--nn-secondary);
}

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

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

.nn-hero {
    margin-bottom: var(--nn-gap);
}

.nn-hero-main {
    position: relative;
    border-radius: var(--nn-radius);
    overflow: hidden;
}

.nn-hero-main .nn-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.nn-hero-main .nn-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.nn-hero-main .nn-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.15;
}

.nn-hero-main .nn-hero-title a {
    color: inherit;
}

.nn-hero-main .nn-hero-excerpt {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.nn-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nn-hero-side-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--nn-border);
    align-items: flex-start;
}

.nn-hero-side-item:first-child {
    padding-top: 0;
}

.nn-hero-side-item:last-child {
    border-bottom: none;
}

.nn-hero-side-thumb {
    width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nn-hero-side-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.nn-hero-side-content h4 a {
    color: var(--nn-text);
}

.nn-hero-side-content h4 a:hover {
    color: var(--nn-accent);
}

.nn-hero-side-meta {
    font-size: 0.75rem;
    color: var(--nn-text-light);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.nn-card {
    background: var(--nn-bg);
    border-radius: var(--nn-radius);
    overflow: hidden;
    border: 1px solid var(--nn-border);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.nn-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nn-card-image {
    position: relative;
    overflow: hidden;
}

.nn-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nn-card:hover .nn-card-image img {
    transform: scale(1.03);
}

.nn-card-body {
    padding: 16px;
}

.nn-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

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

.nn-card-title a:hover {
    color: var(--nn-accent);
}

.nn-card-excerpt {
    font-size: 0.875rem;
    color: var(--nn-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nn-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--nn-text-light);
}

.nn-card-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

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

/* Category badge */
.nn-category-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    background: var(--nn-secondary);
    color: var(--nn-primary);
    line-height: 1.4;
}

.nn-category-badge:hover {
    color: var(--nn-primary);
    opacity: 0.9;
}

.nn-card-image .nn-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.nn-section {
    margin-bottom: calc(var(--nn-gap) * 1.5);
}

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

.nn-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--nn-primary);
    text-transform: uppercase;
    margin-bottom: 0;
}

.nn-section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nn-accent);
}

.nn-section-link:hover {
    color: var(--nn-secondary);
}

/* ==========================================================================
   Single Article
   ========================================================================== */

.nn-article {
    max-width: 100%;
}

.nn-article-header {
    margin-bottom: var(--nn-gap);
}

.nn-article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.nn-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--nn-text-light);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nn-border);
}

.nn-article-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
}

.nn-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nn-article-featured {
    margin-bottom: var(--nn-gap);
    border-radius: var(--nn-radius);
    overflow: hidden;
}

.nn-article-featured img {
    width: 100%;
    height: auto;
}

.nn-article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.nn-article-content p {
    margin-bottom: 1.25em;
}

.nn-article-content h2 {
    margin-top: 1.5em;
}

.nn-article-content img {
    border-radius: var(--nn-radius);
    margin: 1em 0;
}

.nn-article-content a {
    color: var(--nn-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.nn-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--nn-border);
    border-bottom: 1px solid var(--nn-border);
    margin: var(--nn-gap) 0;
}

.nn-share-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--nn-text);
    text-transform: uppercase;
}

.nn-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nn-bg-alt);
    color: var(--nn-text);
    transition: all 0.2s ease;
}

.nn-share a:hover {
    color: #fff;
}

.nn-share a svg {
    width: 16px;
    height: 16px;
}

.nn-share-facebook:hover { background: #1877f2; }
.nn-share-twitter:hover { background: #1da1f2; }
.nn-share-whatsapp:hover { background: #25d366; }
.nn-share-telegram:hover { background: #0088cc; }
.nn-share-email:hover { background: var(--nn-primary); }

/* ==========================================================================
   Related Posts
   ========================================================================== */

.nn-related {
    margin-top: calc(var(--nn-gap) * 2);
}

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

.nn-sidebar .widget {
    background: var(--nn-bg);
    border: 1px solid var(--nn-border);
    border-radius: var(--nn-radius);
    padding: 20px;
    margin-bottom: var(--nn-gap);
}

.nn-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nn-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--nn-secondary);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.nn-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--nn-text-light);
    padding: 12px 0;
}

.nn-breadcrumbs a {
    color: var(--nn-accent);
}

.nn-breadcrumbs .nn-breadcrumb-sep {
    margin: 0 8px;
    color: var(--nn-border);
}

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

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

.nn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: var(--nn-gap) 0;
}

.nn-pagination a,
.nn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--nn-border);
    border-radius: var(--nn-radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nn-text);
    transition: all 0.2s ease;
}

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

.nn-pagination .current {
    background: var(--nn-primary);
    border-color: var(--nn-primary);
    color: #fff;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.nn-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--nn-gap);
    padding: var(--nn-gap) 0;
    border-top: 1px solid var(--nn-border);
    margin-top: var(--nn-gap);
}

.nn-post-nav-item {
    padding: 16px;
    border: 1px solid var(--nn-border);
    border-radius: var(--nn-radius);
    transition: border-color 0.2s ease;
}

.nn-post-nav-item:hover {
    border-color: var(--nn-accent);
}

.nn-post-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nn-text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nn-post-nav-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--nn-text);
    line-height: 1.3;
}

.nn-post-nav-next {
    text-align: right;
}

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

.nn-site-footer {
    background: var(--nn-footer-bg);
    color: var(--nn-footer-text);
    padding-top: 48px;
}

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

.nn-footer-widgets .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nn-secondary);
}

.nn-footer-widgets a {
    color: var(--nn-footer-text);
}

.nn-footer-widgets a:hover {
    color: var(--nn-secondary);
}

.nn-footer-widgets li {
    padding: 4px 0;
}

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

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

.nn-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nn-footer-text);
    transition: all 0.2s ease;
}

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

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

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

.nn-404 {
    text-align: center;
    padding: 80px var(--nn-gap);
}

.nn-404-title {
    font-size: 6rem;
    font-weight: 900;
    color: var(--nn-primary);
    line-height: 1;
    margin-bottom: 16px;
}

.nn-404-subtitle {
    font-size: 1.5rem;
    color: var(--nn-text-light);
    margin-bottom: 30px;
}

.nn-404 .search-form {
    max-width: 480px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.nn-404 .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--nn-border);
    border-radius: var(--nn-radius);
    font-size: 1rem;
}

.nn-404 .search-form input[type="submit"] {
    padding: 12px 24px;
    background: var(--nn-primary);
    color: #fff;
    border: none;
    border-radius: var(--nn-radius);
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.nn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--nn-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

.nn-back-to-top:hover {
    background: var(--nn-secondary);
    color: var(--nn-primary);
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.nn-text-center { text-align: center; }
.nn-text-left { text-align: left; }
.nn-text-right { text-align: right; }

.nn-mb-0 { margin-bottom: 0; }
.nn-mb-1 { margin-bottom: 8px; }
.nn-mb-2 { margin-bottom: 16px; }
.nn-mb-3 { margin-bottom: 24px; }
.nn-mb-4 { margin-bottom: 32px; }

.nn-mt-0 { margin-top: 0; }
.nn-mt-1 { margin-top: 8px; }
.nn-mt-2 { margin-top: 16px; }
.nn-mt-3 { margin-top: 24px; }
.nn-mt-4 { margin-top: 32px; }

.nn-p-0 { padding: 0; }
.nn-p-1 { padding: 8px; }
.nn-p-2 { padding: 16px; }
.nn-p-3 { padding: 24px; }

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

.nn-hidden { display: none; }

.nn-bg-alt { background: var(--nn-bg-alt); }

.nn-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nn-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nn-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */

.nn-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--nn-bg);
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.nn-mobile-menu.nn-active {
    left: 0;
}

.nn-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nn-border);
}

.nn-mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--nn-text);
}

.nn-mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

.nn-mobile-menu ul {
    padding: 0;
}

.nn-mobile-menu li {
    border-bottom: 1px solid var(--nn-border);
}

.nn-mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--nn-text);
    font-weight: 600;
    font-size: 0.9375rem;
}

.nn-mobile-menu a:hover {
    background: var(--nn-bg-alt);
    color: var(--nn-accent);
}

.nn-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nn-mobile-overlay.nn-active {
    opacity: 1;
    visibility: visible;
}

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

.nn-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nn-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nn-header-sticky.nn-visible {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive - Tablet (1024px)
   ========================================================================== */

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

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

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

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

    .nn-hero-main .nn-hero-image {
        height: 350px;
    }
}

/* ==========================================================================
   Responsive - Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --nn-gap: 16px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .nn-menu-toggle {
        display: block;
    }

    .nn-main-nav .nn-nav-menu {
        display: none;
    }

    .nn-header-inner {
        height: 50px;
    }

    .nn-grid-2,
    .nn-grid-3,
    .nn-grid-4 {
        grid-template-columns: 1fr;
    }

    .nn-hero-main .nn-hero-image {
        height: 250px;
    }

    .nn-hero-main .nn-hero-title {
        font-size: 1.25rem;
    }

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

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

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

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

    .nn-share {
        flex-wrap: wrap;
    }

    .nn-404-title {
        font-size: 4rem;
    }

    .nn-breaking-label {
        padding: 6px 10px;
        font-size: 0.6875rem;
    }
}
