/* ==========================================================
   Novosti Elementor Layouts — nel-styles.css
   ========================================================== */

/* ---------- Reset & Base ---------- */
.nel-hero,
.nel-grid,
.nel-list,
.nel-most-viewed,
.nel-filter-bar,
.nel-filter-results {
    box-sizing: border-box;
}

/* ---------- Badge ---------- */
.nel-badge {
    display: block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #BB73FA;
    color: #fff;
    font-size: 12px;
    font-weight: 500 !important;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: max-content;
    transition: opacity 0.2s;
}


.nel-badge--sm {
    font-size: 11px;
    padding: 3px 8px;
}

/* Badge anchored to bottom-left of image */
.nel-badge--bl {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    pointer-events: auto;
}

/* ---------- Shared card image wrapper ---------- */
.nel-card__img-wrap,
.nel-hcard__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    background: #e5e7eb;
    text-decoration: none;
}

/* Inner link fills the wrapper */
.nel-card__img-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    overflow: hidden;
}

.nel-card__img-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 0px !important;
}

.nel-card__img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
/* ---------- Card title ---------- */
.nel-card__title,
.nel-hcard__title {
    margin: 0px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.nel-card__title a,
.nel-hcard__title a,
.nel-hero__title a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-family: inherit;
    transition: color 0.2s;
}

.nel-card__title a:hover,
.nel-hcard__title a:hover {
    color: #BB73FA;
}

/* ---------- 1. HERO ---------- */
.nel-hero-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nel-hero {
    position: relative;
    min-height: 500px;
    border-radius: 32px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1e1b4b;
    display: flex;
    align-items: flex-end;
}

.nel-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}

.nel-hero__content {
    position: relative;
    z-index: 2;
    padding: 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.nel-hero__title {
    margin: 0px;
    font-size: 32px;   /* static default, now overridable by Elementor */
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.nel-hero__title a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: none;
}


/* ---------- 2. 2-COLUMN GRID ---------- */
.nel-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ---------- 4. 4-COLUMN GRID ---------- */
.nel-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---------- Shared card ---------- */
.nel-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---------- 3. SINGLE COLUMN HORIZONTAL ---------- */
.cta-novosti p a{
    font-size: 21px !important;
}
.nel-list.nel-1col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nel-hcard {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.nel-hcard__img-wrap {
    flex-shrink: 0;
    padding-bottom: 0;
    height: auto !important;
    aspect-ratio: 3 / 2;
}

.nel-hcard__img-wrap img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.nel-hcard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0; 
    padding-top: 0px;
}
.nel-hcard__excerpt {
    margin: 0px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* ---------- 5. MOST VIEWED ---------- */
.nel-most-viewed {
    padding: 0;
}
.nel-most-viewed .nel-badge--sm {
    padding: 0px;
    font-weight: 600;
}
.nel-most-viewed--box {
    background: #f5f3ff;
    border-radius: 12px;
    padding: 20px 22px 24px;
}

.nel-most-viewed__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #1e1b4b;
    letter-spacing: 0em;
}
#hiding-archive{
    gap: 64 !important;
}
.nel-most-viewed__list {
    list-style: none;
    margin: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nel-most-viewed__item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 32px 0 0 !important;
}

.nel-most-viewed__item:last-child {
    border-bottom: none;
}

.nel-most-viewed__title {
    font-size: 14px;
    font-weight: 400 !important;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.nel-most-viewed__title:hover {
    color: #BB73FA;
}


/* ---------- Filter Label ---------- */
.nel-filter__label {
    font-size: 14px;
    font-weight: 500 !important;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- FILTER BAR ---------- */
.nel-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nel-filter__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.nel-filter__cat {
    display: inline-block;
    padding: 8px 16px !important;
    border-radius: 20px;
    background: #ede9fe;
    color: #BB73FA;
    font-size: 13px;
    font-weight: 500 !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.4;
    text-transform: uppercase;
}

.nel-filter__cat:hover,
.nel-filter__cat.active {
    background: #BB73FA;
    color: #fff;
}

.nel-filter__cat:active {
    transform: scale(0.96);
}


/* ---------- Search (custom szd styles) ---------- */
.szd-upcoming-search-wrapper {
    position: relative;
    min-width: 280px;
}
.nel-filter__search-wrap{
    margin-top: 8px;
}

.szd-upcoming-search {
    width: 100%;
    padding: 8px 8px 8px 16px;
    border-radius: 16px;
    font-size: 16px;
    border: none;
    background: #f4f4f4;
    height: 48px;
    font-family: inherit;
}
.szd-upcoming-search:active {
    border: none;
}

.szd-upcoming-search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background-color: #BB73FA;
    cursor: pointer;
}

/* ---------- Filter Results Container ---------- */
.nel-filter-results {
    margin-top: 24px;
}

.nel-filter-results .nel-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ---------- Load More (4-column) ---------- */
.nel-load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    width: 100%;
}

.nel-load-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 24px;
    background: #BB73FA;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nel-load-more__btn:hover {
    opacity: 0.9;
}

.nel-load-more__btn:active {
    transform: scale(0.97);
}

/* ---------- Pagination ---------- */
.nel-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.nel-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
    border-radius: 8px !important;
    background: #ede9fe;
    color: #BB73FA;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nel-page-btn.active,
.nel-page-btn:hover {
    background: #BB73FA;
    color: #fff;
}

/* ---------- Loading / Spinner ---------- */
.nel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
    width: 100%;
}

.nel-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ede9fe;
    border-top-color: #BB73FA;
    border-radius: 50%;
    animation: nel-spin 0.7s linear infinite;
}

@keyframes nel-spin {
    to { transform: rotate(360deg); }
}

/* ---------- No posts ---------- */
.nel-no-posts {
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    padding: 32px 0;
    width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nel-4col,
    .nel-filter-results .nel-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nel-2col,
    .nel-4col,
    .nel-filter-results .nel-4col {
        grid-template-columns: 1fr;
    }

    .nel-hcard {
        flex-direction: column;
    }

    .nel-hcard__img-wrap {
        width: 100%;
        height: 200px;
    }

    .nel-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    }

/* ==========================================================
   HERO SLIDER
   ========================================================== */
.nel-hslider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #1e1b4b;
    user-select: none;
}

/* Track holds all slides stacked */
.nel-hslider__track {
    position: relative;
    width: 100%;
}

.nel-hslider__slide {
    position: absolute;
    inset: 0;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--nel-hs-speed, 0.6s) ease;
    pointer-events: none;
    z-index: 0;
}

/* First slide sets the height of the track */
.nel-hslider__slide:first-child {
    position: relative;
}

.nel-hslider__slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.nel-hslider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}

.nel-hslider__content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.nel-hslider__title {
    margin: 0px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    max-width: 80%;
}

.nel-hslider__title a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    letter-spacing: inherit;
}

/* ---------- Dots ---------- */
.nel-hslider__dots {
    position: absolute;
    bottom: 32px;
    right: 32px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nel-hslider__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.45);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    line-height: 1;
}

.nel-hslider__dot.active {
    background: #BB73FA;
    color: #fff !important;
    transform: scale(1.15);
}

.nel-hslider__dot:hover:not(.active) {
    background: rgba(255,255,255,0.7);
    color: #111;
}

/* ---------- Arrow buttons ---------- */
.nel-hslider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #111;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nel-hslider__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.nel-hslider__arrow--prev { left: 16px; }
.nel-hslider__arrow--next { right: 16px; }

/* Responsive */
@media (max-width: 780px) {
    .nel-hslider__title {
        font-size: 22px;
        max-width: 100%;
    }
    .nel-hslider__content {
        padding: 20px;
        width: 100%;
    }
    .nel-hslider__dots {
        bottom: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }
.nel-hslider__dot {
    padding: 0 !important;
}
    .nel-hcard__excerpt{
        display: none;
    }
}
