/**
 * NestorLand Articles - Widget Stylesheet
 */

/* Widget Base */
.widget_nestorland_articles,
.nl-articles-widget {
    margin: 20px 0;
}

.widget_nestorland_articles h2,
.widget_nestorland_articles h3,
.nl-articles-widget h2,
.nl-articles-widget h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nl-primary, #0073aa);
}

/* ------------------------------------------------------------------
   Theme-friendly widget overrides
   هدف: جلوگیری از بهم‌ریختگی در سایدبارهای باریک قالب‌ها (مثل Digix/Mobix)
   ------------------------------------------------------------------ */
.widget_nestorland_articles :where(.nl-articles-grid) {
    /* در سایدبار معمولاً عرض کم است؛ ستون‌ها را تک ستونه می‌کنیم */
    --nl-columns: 1;
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0;
}

.widget_nestorland_articles :where(.nl-articles-masonry) {
    column-count: 1 !important;
    column-gap: 12px;
}

.widget_nestorland_articles :where(.nl-article-card) {
    border-radius: 12px;
}

.widget_nestorland_articles :where(.nl-article-content) {
    padding: 12px;
}

/* Title/excerpt clamp to keep widgets compact */
.widget_nestorland_articles :where(.nl-article-title) {
    font-size: 15px;
    line-height: 1.5;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget_nestorland_articles :where(.nl-article-excerpt) {
    font-size: 13px;
    line-height: 1.7;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* List style: prevent fixed image widths overflowing sidebar */
.widget_nestorland_articles :where(.nl-article-list-item) {
    flex-direction: column;
    align-items: stretch;
}

.widget_nestorland_articles :where(.nl-article-list-item .nl-article-image) {
    width: 100% !important;
}

.widget_nestorland_articles :where(.nl-article-list-item .nl-article-content) {
    width: 100%;
}

/* Widget Grid Style */
.nl-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nl-widget-grid.nl-cols-1 {
    grid-template-columns: 1fr;
}

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

/* Widget Card */
.nl-widget-card {
    display: flex;
    gap: 16px;
    background: var(--nl-white, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-widget-card:hover {
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.06);
}

.nl-widget-card-image {
    width: 110px;
    min-width: 110px;
    height: 90px;
    overflow: hidden;
    border-radius: 12px;
    margin: 8px;
}

.nl-widget-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-widget-card:hover .nl-widget-card-image img {
    transform: scale(1.08);
}

.nl-widget-card-content {
    padding: 12px 12px 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nl-widget-card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-widget-card-title a {
    color: var(--nl-text, #0f172a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nl-widget-card:hover .nl-widget-card-title a {
    color: var(--nl-primary, #0ea5e9);
}

.nl-widget-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--nl-text-light, #64748b);
}

.nl-widget-card-meta i {
    font-size: 11px;
    margin-right: 4px;
    color: var(--nl-primary, #0ea5e9);
}

/* Widget List Style */
.nl-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.nl-widget-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.3s ease;
}

.nl-widget-list-item:hover {
    background: rgba(2, 6, 23, 0.02);
}

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

.nl-widget-list-number {
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--nl-primary, #0ea5e9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nl-widget-list-item:hover .nl-widget-list-number {
    background: var(--nl-primary, #0ea5e9);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.nl-widget-list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.nl-widget-list-title a {
    color: var(--nl-text, #0f172a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nl-widget-list-item:hover .nl-widget-list-title a {
    color: var(--nl-primary, #0ea5e9);
}

.nl-widget-list-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--nl-text-light, #64748b);
    margin-top: 4px;
}

/* Widget Featured Style */
.nl-widget-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-widget-featured:hover {
    transform: translateY(-4px);
}

.nl-widget-featured-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-widget-featured:hover .nl-widget-featured-image {
    transform: scale(1.05);
}

.nl-widget-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.6) 50%, transparent 100%);
    color: #fff;
    backdrop-filter: blur(2px);
}

.nl-widget-featured-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #fff;
}

.nl-widget-featured-title a {
    color: #fff;
    text-decoration: none;
}

.nl-widget-featured-meta {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Widget Category Style */
.nl-widget-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nl-widget-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    color: var(--nl-text, #334155);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.nl-widget-category:hover {
    background: var(--nl-primary, #0ea5e9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.nl-widget-category-count {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nl-widget-category:hover .nl-widget-category-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Widget Newsletter Style */
.nl-widget-newsletter {
    background: linear-gradient(135deg, var(--nl-primary, #0073aa), var(--nl-primary-dark, #005a87));
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.nl-widget-newsletter h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #fff;
}

.nl-widget-newsletter p {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: 0.9;
}

.nl-widget-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-widget-newsletter-form input {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
}

.nl-widget-newsletter-form button {
    padding: 10px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nl-widget-newsletter-form button:hover {
    background: #fff;
    color: var(--nl-primary, #0073aa);
}

/* Widget Popular Tags */
.nl-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nl-widget-tag {
    padding: 4px 12px;
    background: var(--nl-bg, #f6f7f7);
    color: var(--nl-text-light, #64696e);
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nl-widget-tag:hover {
    background: var(--nl-primary, #0073aa);
    color: #fff;
}

/* Widget View All Button */
.nl-widget-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--nl-primary, #0073aa);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.nl-widget-view-all:hover {
    background: var(--nl-primary-dark, #005a87);
    transform: translateY(-1px);
}

.nl-widget-view-all i {
    transition: transform 0.3s ease;
}

.nl-widget-view-all:hover i {
    transform: translateX(-4px);
}

/* Widget Loading State */
.nl-widget-loading {
    text-align: center;
    padding: 20px;
}

.nl-widget-loading .nl-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--nl-border, #dcdcde);
    border-top-color: var(--nl-primary, #0073aa);
    border-radius: 50%;
    animation: nl-spin 0.6s linear infinite;
}

/* Widget Error State */
.nl-widget-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Widget Empty State */
.nl-widget-empty {
    text-align: center;
    padding: 20px;
    color: var(--nl-text-light, #64696e);
    font-style: italic;
}

/* Widget Responsive */
@media (max-width: 768px) {
    .nl-widget-grid {
        grid-template-columns: 1fr;
    }
    
    .nl-widget-grid.nl-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .nl-widget-card {
        flex-direction: row;
    }
    
    .nl-widget-card-image {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }
    
    .nl-widget-featured-image {
        height: 150px;
    }
    
    .nl-widget-newsletter {
        padding: 16px;
    }
}

/* ===== Zoomit-ish blocks (Home / Widgets) ===== */
.nl-zoomit-block {
    background: var(--nl-white, #fff);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.04);
}

.nl-zoomit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nl-zoomit-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--nl-text, #0f172a);
    position: relative;
    padding-right: 12px;
}

.nl-zoomit-title:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22px;
    border-radius: 4px;
    background: var(--nl-primary, #10b981);
}

.nl-zoomit-more {
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: var(--nl-primary, #10b981);
}

.nl-zoomit-more:hover {
    background: rgba(16, 185, 129, 0.16);
}

/* Hot */
.nl-zoomit-hot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    align-items: start;
}

.nl-zoomit-hot-featured {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #0b1220;
}

.nl-zoomit-hot-featured-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.nl-zoomit-hot-featured-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.nl-zoomit-hot-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease;
}

.nl-zoomit-hot-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
}

.nl-zoomit-hot-featured-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 16px 14px;
    color: #fff;
}

.nl-zoomit-hot-featured-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 900;
}

.nl-zoomit-hot-featured-excerpt {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.8;
    opacity: .9;
}

.nl-zoomit-hot-featured-meta {
    font-size: 12px;
    opacity: .85;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nl-zoomit-hot-featured:hover .nl-zoomit-hot-featured-img {
    transform: scale(1.06);
}

.nl-zoomit-hot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-zoomit-hot-item-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    background: #fff;
    color: var(--nl-text, #0f172a);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-zoomit-hot-item-link:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.04);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.nl-zoomit-hot-item-num {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--nl-primary, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nl-zoomit-hot-item-link:hover .nl-zoomit-hot-item-num {
    background: var(--nl-primary, #10b981);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

.nl-zoomit-hot-item-title {
    font-weight: 800;
    font-size: 13px;
    line-height: 1.6;
}

.nl-zoomit-hot-item-date {
    grid-column: 2;
    font-size: 11px;
    color: rgba(100, 116, 139, 1);
}

/* Tech */
.nl-zoomit-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nl-zoomit-tech-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-zoomit-tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.08);
}

.nl-zoomit-tech-link {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nl-zoomit-tech-media {
    height: 100%;
    background: rgba(2,6,23,0.04);
}

.nl-zoomit-tech-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nl-zoomit-tech-content {
    padding: 12px 12px 12px 0;
}

.nl-zoomit-tech-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    color: var(--nl-text, #0f172a);
}

.nl-zoomit-tech-excerpt {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(71, 85, 105, 1);
}

.nl-zoomit-tech-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(100, 116, 139, 1);
}

.nl-zoomit-tech-meta i {
    margin-left: 5px;
}

/* ===== Zoomit-ish: Hero (big + mini grid) ===== */
.nl-zoomit-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 14px;
    align-items: start;
}

.nl-zoomit-hero-featured {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #0b1220;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.nl-zoomit-hero-featured-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.nl-zoomit-hero-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.nl-zoomit-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform .55s ease;
}

.nl-zoomit-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.05));
}

.nl-zoomit-hero-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 16px 14px;
    color: #fff;
}

.nl-zoomit-hero-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 900;
}

.nl-zoomit-hero-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    opacity: .92;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.nl-zoomit-hero-featured:hover .nl-zoomit-hero-img {
    transform: scale(1.06);
}

.nl-zoomit-hero-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.nl-zoomit-mini-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-zoomit-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.08);
}

.nl-zoomit-mini-link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.nl-zoomit-mini-media {
    width: 96px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(2,6,23,0.06);
}

.nl-zoomit-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nl-zoomit-mini-title {
    font-weight: 900;
    font-size: 13px;
    line-height: 1.7;
    color: var(--nl-text, #0f172a);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.nl-zoomit-mini-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

/* ===== Zoomit-ish: Thumb List ===== */
.nl-zoomit-thumb-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-zoomit-thumb-item {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-zoomit-thumb-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.08);
}

.nl-zoomit-thumb-link {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    align-items: center;
}

.nl-zoomit-thumb-media {
    width: 130px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(2,6,23,0.06);
}

.nl-zoomit-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nl-zoomit-thumb-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.7;
    color: var(--nl-text, #0f172a);
}

.nl-zoomit-thumb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(100, 116, 139, 1);
}

.nl-zoomit-thumb-meta i {
    margin-left: 5px;
}

.nl-zoomit-thumb-item:hover {
    border-color: rgba(16, 185, 129, 0.25);
}

/* ===== Zoomit-ish: Slider ===== */
.nl-zoomit-slider-nav {
    display: flex;
    gap: 8px;
    margin-right: auto;
    margin-left: 16px;
}

.nl-zoomit-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    color: var(--nl-text, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.nl-zoomit-nav-btn:hover {
    background: var(--nl-primary, #0ea5e9);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

.nl-zoomit-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.nl-zoomit-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nl-zoomit-slider-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: min(320px, 82vw);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    background: #fff;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nl-zoomit-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.08);
}

.nl-zoomit-slider-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nl-zoomit-slider-media {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 62.5%; /* Fallback for aspect-ratio 16/10 */
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(2,6,23,0.06);
    flex-shrink: 0;
}

.nl-zoomit-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-zoomit-slider-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nl-zoomit-slider-title {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--nl-text, #0f172a);
    margin: 0 0 12px;
}

.nl-zoomit-slider-date {
    display: block;
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--nl-text-light, #64748b);
}

.nl-zoomit-slider-card:hover .nl-zoomit-slider-img {
    transform: scale(1.06);
}

/* ===== Zoomit-ish: Video/Gallery ===== */
.nl-zoomit-video {
    background: #0b1220;
    color: #fff;
    border-color: rgba(255,255,255,0.06);
}

.nl-video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nl-video-modal-overlay.nl-open {
    opacity: 1;
    visibility: visible;
}

.nl-video-modal-container {
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-video-modal-overlay.nl-open .nl-video-modal-container {
    transform: scale(1);
}

.nl-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nl-video-modal-close:hover {
    color: var(--nl-primary, #0ea5e9);
}

.nl-video-modal-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.nl-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nl-zoomit-video .nl-zoomit-title {
    color: #fff;
}

.nl-zoomit-video .nl-zoomit-more {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nl-zoomit-video .nl-zoomit-more:hover {
    background: rgba(255,255,255,0.12);
}

.nl-zoomit-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nl-zoomit-video-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.nl-zoomit-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nl-zoomit-video-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.nl-zoomit-video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease;
    opacity: .95;
}

.nl-zoomit-video-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0b1220;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.nl-zoomit-video-content {
    padding: 12px 12px 12px;
}

.nl-zoomit-video-title {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.nl-zoomit-video-date {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    opacity: .85;
}

.nl-zoomit-video-card:hover .nl-zoomit-video-img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .nl-zoomit-hot-grid {
        grid-template-columns: 1fr;
    }
    .nl-zoomit-tech-grid {
        grid-template-columns: 1fr;
    }
    .nl-zoomit-tech-link {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .nl-zoomit-hero-grid {
        grid-template-columns: 1fr;
    }
    .nl-zoomit-mini-link {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .nl-zoomit-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nl-zoomit-hot-featured-media {
        aspect-ratio: 16 / 10;
    }
    .nl-zoomit-hot-featured-content {
        padding: 14px 14px 12px;
    }
    .nl-zoomit-hot-featured-title {
        font-size: 16px;
    }
    .nl-zoomit-hot-featured-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin-bottom: 8px;
    }
    .nl-zoomit-hot-item-link {
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 10px 10px;
    }
    .nl-zoomit-hot-item-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .nl-zoomit-thumb-link {
        grid-template-columns: 110px minmax(0, 1fr);
    }
    .nl-zoomit-thumb-media {
        width: 110px;
        height: 78px;
    }

    /* Hero mini items become horizontal scroll (Zoomit-like on mobile) */
    .nl-zoomit-hero-mini {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .nl-zoomit-mini-card {
        flex: 0 0 auto;
        width: min(290px, 78vw);
        scroll-snap-align: start;
    }
}
