/**
 * Netwiz Modern & Elegant Theme Stylesheet
 * High-performance, clean, stylish magazine layout for HamidCMS
 */

:root {
    --nw-primary: #08a4a1;
    --nw-primary-hover: #068986;
    --nw-dark: #0f4748;
    --nw-darker: #092a2b;
    --nw-bg: #f4f6f9;
    --nw-card-bg: #ffffff;
    --nw-border: #e6ebf1;
    --nw-text-heading: #1e293b;
    --nw-text-body: #475569;
    --nw-text-muted: #8b9bb4;
    --nw-radius: 12px;
    --nw-radius-sm: 8px;
    --nw-radius-lg: 16px;
    --nw-shadow-sm: 0 2px 8px rgba(15, 71, 72, 0.04);
    --nw-shadow-md: 0 4px 16px rgba(15, 71, 72, 0.08);
    --nw-shadow-lg: 0 10px 30px rgba(15, 71, 72, 0.12);
}

/* Base & Typography */
body {
    direction: rtl;
    text-align: right;
    font-family: Shabnam, 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--nw-bg);
    color: var(--nw-text-body);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: Shabnam, 'Segoe UI', Tahoma, sans-serif;
    color: var(--nw-text-heading);
    font-weight: 700;
}

a {
    color: var(--nw-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--nw-primary-hover);
}

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

/* Site Wrapper & Container Centering */
.wrapper {
    background-color: var(--nw-bg);
    min-height: 100vh;
}

.container, .container-xl, .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   0. ADMIN TOOLBAR (PAGE EDIT BAR)
   ============================================================ */
.nw-admin-toolbar {
    background: #0f172a;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--nw-primary);
    position: relative;
    z-index: 1070;
}

.nw-admin-toolbar a {
    transition: opacity 0.2s ease;
}

.nw-admin-toolbar .nw-btn-edit-builder {
    background-color: var(--nw-primary);
    border-color: var(--nw-primary);
    font-size: 0.78rem;
}

.nw-admin-toolbar .nw-btn-edit-builder:hover {
    background-color: var(--nw-primary-hover);
    border-color: var(--nw-primary-hover);
}

/* ============================================================
   1. TOP BAR
   ============================================================ */
.nw-topbar {
    position: relative;
    z-index: 1050;
    background: var(--nw-darker);
    color: #ffffff;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nw-topbar .time-pill {
    background: var(--nw-primary);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
    margin-right: 6px;
}

/* Topbar Social Icons */
.nw-topbar-social {
    gap: 6px;
}

.nw-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    margin: 0;
}

.nw-topbar-social a:hover {
    background: var(--nw-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(8, 164, 161, 0.4);
}

/* Topbar Auth Buttons */
.nw-topbar-auth {
    font-size: 12px;
}

.nw-auth-link {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding: 3px 9px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nw-auth-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.nw-auth-register {
    background: rgba(8, 164, 161, 0.35);
    border: 1px solid rgba(8, 164, 161, 0.6);
    color: #ffffff;
    font-weight: 600;
}

.nw-auth-register:hover {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #ffffff;
}

.nw-auth-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 1px;
}

.nw-topbar-sep {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.nw-user-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 11.5px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nw-user-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nw-user-dropdown {
    position: relative;
    z-index: 1055;
}

/* Base Dropdown Styling */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    z-index: 1080 !important;
}

.dropdown-item {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    transition: all 0.15s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: var(--nw-primary) !important;
}

/* User & Admin Dropdown styling */
.nw-user-drop,
.nw-admin-drop {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    min-width: 240px !important;
    z-index: 1080 !important;
}

.nw-user-drop .dropdown-item,
.nw-admin-drop .dropdown-item {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out !important;
}

.nw-user-drop .dropdown-item i,
.nw-admin-drop .dropdown-item i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
}

.nw-user-drop .dropdown-item:hover,
.nw-user-drop .dropdown-item:focus,
.nw-admin-drop .dropdown-item:hover,
.nw-admin-drop .dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: var(--nw-primary) !important;
}

.nw-user-drop .dropdown-item.text-danger {
    color: #dc2626 !important;
}

.nw-user-drop .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

.nw-user-drop .dropdown-divider,
.nw-admin-drop .dropdown-divider {
    border-top: 1px solid #e2e8f0 !important;
    margin: 6px 0 !important;
    opacity: 1 !important;
}

/* Admin Toolbar Styling */
.nw-admin-toolbar {
    background: #0b1120 !important;
    font-size: 0.82rem !important;
    border-bottom: 2px solid var(--nw-primary) !important;
    position: relative !important;
    z-index: 1070 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.nw-admin-toolbar a {
    color: #ffffff !important;
}

.nw-admin-toolbar .nw-btn-builder {
    background-color: #0d9488 !important;
    border: 1px solid #14b8a6 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    transition: all 0.2s ease !important;
}

.nw-admin-toolbar .nw-btn-builder:hover {
    background-color: #0f766e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4) !important;
}

.nw-admin-toolbar .nw-btn-normal-edit {
    background-color: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #f1f5f9 !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    transition: all 0.2s ease !important;
}

.nw-admin-toolbar .nw-btn-normal-edit:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

.nw-admin-toolbar .nw-btn-new {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

.nw-admin-toolbar .nw-btn-new:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   2. HEADER BANNER & LOGO AREA
   ============================================================ */
.nw-header-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nw-header-overlay {
    background: linear-gradient(135deg, rgba(15, 71, 72, 0.94) 0%, rgba(9, 42, 43, 0.88) 100%);
    padding: 30px 0;
}

.nw-logo-wrap img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.nw-site-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.nw-site-title a {
    color: #ffffff;
    text-decoration: none;
}

.nw-site-slogan {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    margin: 6px 0 0 0;
}

.nw-header-forum-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nw-header-forum-btn:hover {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(8, 164, 161, 0.4);
}

/* ============================================================
   3. NAVIGATION BAR
   ============================================================ */
.nw-navbar-wrap {
    background: var(--nw-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nw-navbar {
    padding: 0;
}

.nw-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.nw-nav-link:hover, .nw-nav-link.active {
    color: #ffffff !important;
    background: var(--nw-primary);
}

.nw-home-btn {
    background: var(--nw-primary);
    color: #ffffff !important;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease;
}

.nw-home-btn:hover {
    background: var(--nw-primary-hover);
}

.nw-search-dropdown .dropdown-menu {
    border: 1px solid var(--nw-border);
    box-shadow: var(--nw-shadow-lg);
    border-radius: var(--nw-radius-sm);
    padding: 12px;
    min-width: 300px;
    right: 0;
    left: auto;
}

/* ============================================================
   4. TOP TAGS STRIP
   ============================================================ */
.nw-tags-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--nw-border);
    padding: 10px 0;
    margin-bottom: 16px;
}

.nw-tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nw-tags-label {
    font-weight: 700;
    color: var(--nw-dark);
    font-size: 12.5px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nw-tag-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: inline-block;
}

.nw-tag-pill:hover {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #ffffff;
}

/* ============================================================
   5. BREAKING NEWS / TICKER
   ============================================================ */
.nw-breaking-news {
    background: #ffffff;
    border-radius: var(--nw-radius-sm);
    border: 1px solid var(--nw-border);
    box-shadow: var(--nw-shadow-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 24px;
    height: 44px;
}

.nw-breaking-badge {
    background: var(--nw-primary); /* Flat, NO gradient */
    color: #ffffff;
    padding: 0 20px;
    height: 100%;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.nw-breaking-badge::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--nw-primary); /* Flat, NO gradient */
}

.nw-ticker-slider {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nw-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: nwTickerScroll 36s linear infinite;
    will-change: transform;
}

.nw-ticker-slider:hover .nw-ticker-track {
    animation-play-state: paused !important;
}

.nw-ticker-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

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

.nw-ticker-item {
    display: inline-flex;
    align-items: center;
    color: var(--nw-text-heading);
    font-size: 13px;
    font-weight: 500;
    margin-right: 32px;
    text-decoration: none;
    direction: rtl;
    transition: color 0.2s ease;
}

.nw-ticker-item:hover {
    color: var(--nw-primary);
}

.nw-ticker-item::before {
    content: "•";
    color: var(--nw-primary);
    margin-left: 10px;
    font-size: 16px;
}

/* ============================================================
   6. HERO FEATURED SECTION (SLIDER + TABBED BOX)
   ============================================================ */
.nw-hero-section {
    margin-bottom: 30px;
}

/* Hero Big Post Card */
.nw-hero-card {
    position: relative;
    height: 430px;
    border-radius: var(--nw-radius);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--nw-shadow-md);
}

.nw-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nw-hero-card:hover img {
    transform: scale(1.03);
}

.nw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 42, 43, 0.95) 0%, rgba(9, 42, 43, 0.5) 45%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 2;
}

.nw-category-badge {
    background: var(--nw-primary);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(8, 164, 161, 0.3);
}

.nw-hero-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.nw-hero-title a {
    color: #ffffff;
}

.nw-hero-title a:hover {
    color: #5eead4;
}

.nw-hero-meta {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 16px;
}

/* Right Tabbed Box */
.nw-tabbed-box {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 18px;
    box-shadow: var(--nw-shadow-sm);
    height: 430px;
    display: flex;
    flex-direction: column;
}

.nw-nav-pills {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--nw-radius-sm);
    margin-bottom: 16px;
}

.nw-nav-pills .nav-link {
    flex: 1;
    text-align: center;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nw-nav-pills .nav-link.active {
    background: var(--nw-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(8, 164, 161, 0.35);
}

.nw-mini-posts-list {
    overflow-y: auto;
    flex-grow: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nw-mini-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.nw-mini-post:last-child {
    border-bottom: none;
}

.nw-mini-post-img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: var(--nw-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.nw-mini-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-mini-post-content {
    flex-grow: 1;
    min-width: 0;
}

.nw-mini-post-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-mini-post-title a {
    color: var(--nw-text-heading);
}

.nw-mini-post-title a:hover {
    color: var(--nw-primary);
}

.nw-mini-post-meta {
    font-size: 11.5px;
    color: var(--nw-text-muted);
}

/* ============================================================
   7. SECTION HEADERS & CONTENT MODULES
   ============================================================ */
.nw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    padding-bottom: 2px;
}

.nw-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--nw-dark);
    margin: 0;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: -2px;
    border-bottom: 2px solid var(--nw-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nw-section-title i {
    color: var(--nw-primary);
}

.nw-section-more {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nw-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nw-section-more:hover {
    color: var(--nw-dark);
}

/* Clean Card Wrapper */
.nw-card {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 22px;
    margin-bottom: 26px;
    box-shadow: var(--nw-shadow-sm);
    transition: all 0.25s ease;
}

/* Module 1: Featured + Side List */
.nw-modul1-lead {
    position: relative;
    height: 330px;
    border-radius: var(--nw-radius-sm);
    overflow: hidden;
    background: #000;
}

.nw-modul1-lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-modul1-lead-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 42, 43, 0.92) 0%, rgba(9, 42, 43, 0.3) 60%, transparent 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nw-modul1-lead-title {
    font-size: 17px;
    font-weight: 800;
    margin: 8px 0 0 0;
}

.nw-modul1-lead-title a {
    color: #ffffff;
}

.nw-modul1-lead-title a:hover {
    color: #5eead4;
}

/* Module 3: Premium Grid Cards */
.nw-grid-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nw-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px -6px rgba(8, 164, 161, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(8, 164, 161, 0.35);
}

.nw-grid-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0f172a;
}

.nw-grid-card-img-wrap {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nw-grid-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.nw-grid-card:hover .nw-grid-card-thumb img {
    transform: scale(1.07);
    filter: brightness(1.02);
}

.nw-card-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.25s ease;
}

.nw-card-cat-badge:hover {
    background: var(--nw-primary) !important;
    border-color: var(--nw-primary);
    color: #ffffff !important;
}

.nw-grid-card-body {
    padding: 16px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nw-grid-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.nw-grid-card-title a {
    color: var(--nw-text-heading);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
    transition: color 0.2s ease;
}

.nw-grid-card-title a:hover {
    color: var(--nw-primary);
}

.nw-grid-card-excerpt {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-grid-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
}

.nw-grid-card-date {
    display: inline-flex;
    align-items: center;
}

.nw-card-read-link {
    color: var(--nw-primary);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(8, 164, 161, 0.08);
    transition: all 0.2s ease;
}

.nw-grid-card:hover .nw-card-read-link {
    background: var(--nw-primary);
    color: #ffffff;
    transform: translateX(-3px);
}

/* Module 6: Row Article */
.nw-row-article {
    display: flex;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--nw-border);
    transition: transform 0.2s ease;
}

.nw-row-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nw-row-article-thumb {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--nw-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.nw-row-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nw-row-article:hover .nw-row-article-thumb img {
    transform: scale(1.04);
}

.nw-row-article-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nw-row-article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 6px 0 8px 0;
}

.nw-row-article-title a {
    color: var(--nw-text-heading);
}

.nw-row-article-title a:hover {
    color: var(--nw-primary);
}

.nw-row-article-excerpt {
    font-size: 13px;
    color: var(--nw-text-body);
    margin-bottom: 8px;
    line-height: 1.6;
}

.nw-row-article-meta {
    font-size: 12px;
    color: var(--nw-text-muted);
    display: flex;
    gap: 14px;
}

/* ============================================================
   8. SIDEBAR & WIDGETS
   ============================================================ */
.nw-widget {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--nw-shadow-sm);
}

.nw-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--nw-dark);
    border-bottom: 2px solid var(--nw-primary);
    padding-bottom: 8px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nw-widget-title i {
    color: var(--nw-primary);
}

/* Category list in sidebar */
.nw-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nw-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed #e9edf3;
    font-size: 13px;
}

.nw-cat-item:last-child {
    border-bottom: none;
}

.nw-cat-item a {
    color: var(--nw-text-heading);
    font-weight: 600;
}

.nw-cat-item a:hover {
    color: var(--nw-primary);
}

.nw-cat-count {
    background: #eef2f6;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Tag cloud */
.nw-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nw-tag-cloud a {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.nw-tag-cloud a:hover {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #ffffff;
}

/* ============================================================
   9. MISSED / YOU MAY HAVE MISSED SECTION
   ============================================================ */
.nw-missed-section {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 24px;
    margin: 30px 0;
    box-shadow: var(--nw-shadow-sm);
}

.nw-missed-card {
    position: relative;
    height: 220px;
    border-radius: var(--nw-radius-sm);
    overflow: hidden;
    background: #000;
}

.nw-missed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nw-missed-card:hover img {
    transform: scale(1.05);
}

.nw-missed-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 42, 43, 0.95) 0%, rgba(9, 42, 43, 0.3) 60%, transparent 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nw-missed-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    margin: 6px 0 0 0;
}

.nw-missed-title a {
    color: #ffffff;
}

.nw-missed-title a:hover {
    color: #5eead4;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.nw-footer {
    background: var(--nw-darker);
    color: #ffffff;
    margin-top: 40px;
    padding-top: 45px;
    border-top: 3px solid var(--nw-primary);
}

.nw-footer-widget h6 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border-bottom: 2px solid var(--nw-primary);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.nw-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nw-footer-links li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.nw-footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.nw-footer-links a:hover {
    color: #5eead4;
    padding-right: 4px;
}

.nw-footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nw-footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   11. SINGLE POST & PAGE
   ============================================================ */
.nw-breadcrumb {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nw-single-box {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: var(--nw-shadow-sm);
}

.nw-single-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
    margin: 12px 0 16px 0;
}

.nw-single-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--nw-border);
    font-size: 13px;
    color: var(--nw-text-muted);
}

.nw-single-meta span, .nw-single-meta a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nw-text-body);
}

.nw-single-featured-img {
    border-radius: var(--nw-radius);
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: var(--nw-shadow-sm);
}

.nw-entry-content {
    font-size: 15px;
    line-height: 2;
    color: #27303f;
}

.nw-entry-content p {
    margin-bottom: 1.5rem;
}

.nw-entry-content img {
    border-radius: var(--nw-radius-sm);
    margin: 20px auto;
    display: block;
}

/* Back to Top */
.nw-back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--nw-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(8, 164, 161, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

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

.nw-back-to-top:hover {
    background: var(--nw-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .nw-hero-card, .nw-tabbed-box {
        height: auto;
    }
    .nw-hero-card {
        height: 320px;
        margin-bottom: 20px;
    }
    .nw-row-article {
        flex-direction: column;
    }
    .nw-row-article-thumb {
        width: 100%;
        height: 180px;
    }
}

/* ==========================================================================
   Hero Slider (Bootstrap 5 Carousel)
   ========================================================================== */
.nw-hero-slider {
    position: relative;
    border-radius: var(--nw-radius);
    overflow: hidden;
    box-shadow: var(--nw-shadow-md);
}
.nw-hero-slider .carousel-inner {
    border-radius: var(--nw-radius);
}
.nw-hero-slider .carousel-indicators {
    margin-bottom: 14px;
    gap: 6px;
    z-index: 4;
}
.nw-hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.65);
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}
.nw-hero-slider .carousel-indicators .active {
    width: 26px;
    border-radius: 6px;
    background-color: var(--nw-primary);
}
.nw-hero-slider .carousel-control-prev,
.nw-hero-slider .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 50%;
    margin: 0 16px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 4;
    border: none;
}
.nw-hero-slider:hover .carousel-control-prev,
.nw-hero-slider:hover .carousel-control-next {
    opacity: 0.95;
}
.nw-hero-slider .carousel-control-prev:hover,
.nw-hero-slider .carousel-control-next:hover {
    opacity: 1;
    background: var(--nw-primary);
    transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   Owl Carousel RTL Support & Fix
   ========================================================================== */
.owl-carousel {
    display: block !important;
    direction: ltr !important;
    position: relative;
    width: 100%;
}
.owl-carousel .owl-wrapper-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr !important;
}
.owl-carousel .owl-wrapper {
    display: block !important;
    position: relative;
}
.owl-carousel .owl-item {
    direction: rtl !important;
    float: left;
}
.featuredcat .item {
    padding: 0 8px;
}
.featuredcat .owl-controls {
    direction: rtl;
    text-align: center;
    margin-top: 16px;
}
.featuredcat .owl-buttons div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--nw-dark);
    box-shadow: var(--nw-shadow-sm);
    margin: 0 4px;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid var(--nw-border);
    transition: all 0.2s ease;
}
.featuredcat .owl-buttons div:hover {
    background: var(--nw-primary);
    color: #ffffff;
    border-color: var(--nw-primary);
}

