:root { 
        --brand-orange: #f45d22; 
        --brand-violet: #4b1d3f; 
        --brand-yellow: #f9b200; 
        --brand-red: #ef4444; 
    }

    /* ANTRAŠTĖS IR SEO BLOKAI */
    .title-accent-news { 
        border-left: 15px solid var(--brand-yellow); 
        padding-left: 1.5rem; 
        line-height: 1; 
        display: flex; 
        align-items: center; 
        gap: 1.5rem; 
    }
    
    .info-block-styled {
        background: #fff; border: 2px solid var(--brand-yellow); border-radius: 1.2rem;
        padding: 1rem 1.5rem; margin-bottom: 0.75rem; 
        display: flex; align-items: center; gap: 1rem;
        box-shadow: 0 4px 12px rgba(249, 178, 0, 0.08);
    }

    /* ŽENKLIUKAI IR LIPDUKAI (GELTONA TEMA) */
    .badge-news-style {
        display: inline-flex; align-items: center; gap: 6px; background: var(--brand-yellow); color: #000;
        padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 950;
        text-transform: uppercase; border: 1.5px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease; cursor: pointer;
    }
    .badge-news-style:hover { background-color: var(--brand-violet); color: #fff; }

    .badge-news-time-style-no-hover {
        display: inline-flex; align-items: center; gap: 6px; background: var(--brand-yellow); color: #000;
        padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 950;
        text-transform: uppercase; border: 1.5px solid white;
    }

    .card-vip-pulsing {
        display: inline-flex; align-items: center; gap: 6px; background: var(--brand-violet); color: #ffd700;
        padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 950;
        text-transform: uppercase; border: 1.5px solid #ffd700; box-shadow: 0 4px 12px rgba(75, 29, 63, 0.3);
        animation: card-vip-glow 2s infinite;
    }
    @keyframes card-vip-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

    .pinned-icon {
        position: absolute; top: -18px; right: -10px; background: #4b1d3f; color: #ffd700;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 2px solid #ffd700; z-index: 30;
        width: 40px; height: 40px; font-size: 18px; transform: rotate(15deg); transition: 0.3s;
    }

    /* BRAUKIMO KELRODIS LIPDUKAS */
    @keyframes pulse-indicator-slide {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(12px); }
    }
    .swipe-indicator-badge {
        display: none; align-items: center; gap: 8px; background: var(--brand-violet);
        color: #ffffff; padding: 10px 24px !important; border-radius: 99px;
        font-size: 13px !important; font-weight: 950; text-transform: uppercase;
        border: 1.5px solid #ffffff; box-shadow: 0 4px 10px rgba(75, 29, 63, 0.2);
        animation: pulse-indicator-slide 2s infinite ease-in-out !important;
        z-index: 10 !important;
    }

    /* SMART CARD PAGRINDINIS STILIUS */
    .news-card-style, .vip-card-3d { 
        height: 100%; transition: 0.4s; border: 4px solid var(--brand-yellow); background: white; 
        border-radius: 2.5rem; overflow: visible; display: flex; flex-direction: column; 
        position: relative; text-decoration: none !important; margin-top: 15px; cursor: pointer; 
    }
    .news-card-style:hover, .news-card-style:active, .vip-card-3d:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px -15px rgba(249, 178, 0, 0.25);
        z-index: 40 !important;
    }

    /* NUOTRAUKŲ KONTEINERIAI (FIKSUOTAS AUKŠTIS 260px VISUR) */
    .news-card-style .img-wrapper, .vip-card-3d .img-wrapper { 
        width: 100%; height: 260px !important; overflow: hidden; border-radius: 2.1rem 2.1rem 0 0; 
        background-color: #111827; display: flex; align-items: center; justify-content: center; position: relative;
    }
    .news-card-style img.main-img, .vip-card-3d img.main-img { 
        width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; position: relative; z-index: 10; 
    }
    .news-card-style img.bg-blur, .vip-card-3d img.bg-blur { 
        position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px); opacity: 0.45; 
    }

    .corner-icon-news { position: absolute; bottom: 1.2rem; right: 1.2rem; font-size: 2.2rem; opacity: 0.1; transition: 0.4s; color: var(--brand-yellow); }
    .news-card-style:hover .corner-icon-news { opacity: 1; transform: rotate(-10deg) scale(1.1); }
    
    /* PUSLAPIAVIMO MYGTUKAI (GELTONAS HOVER) */
    .pg-btn { 
        width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; 
        border-radius: 50%; font-weight: 900; font-style: italic; border: 2px solid #f1f5f9; 
        background: white; color: var(--brand-violet); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }
    .pg-btn:hover { 
        transform: scale(1.15); border-color: var(--brand-yellow); 
        color: var(--brand-yellow); box-shadow: 0 5px 15px rgba(249, 178, 0, 0.15); 
    }
    .pg-btn.active { background: var(--brand-yellow); color: #000; border-color: var(--brand-yellow); transform: scale(1.1); }

    /* ADMIN ELEMENTAI */
    .admin-fast-edit {
        position: absolute; top: 15px; right: 15px; z-index: 50;
        background: #ef4444; color: white !important; border: 2px solid white;
        padding: 0.4rem 0.9rem; border-radius: 99px; font-weight: 900;
        font-size: 0.75rem; text-transform: uppercase; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4);
    }

    /* MANDRUS PRENUMERATOS MYGTUKAS (ATSTATYTAS HOVER) */
    .btn-subscribe {
        background-color: #c2410c; 
        border: 2.5px solid #f45d22;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .btn-subscribe:hover {
        background-color: #f45d22;
        border-color: #ffd700;
        transform: scale(1.04) translateY(-2px);
        box-shadow: 0 10px 22px rgba(244, 93, 34, 0.45);
    }

    /* 3D COVERFLOW (VIP DRAUGAI) */
    .vip-carousel-container { perspective: 1200px; overflow: visible; width: 100%; position: relative; display: flex; justify-content: center; align-items: center; margin-top: 1rem; margin-bottom: 2rem; }
    .vip-grid-3d { position: relative; width: 100%; height: 520px; transform-style: preserve-3d; display: flex; justify-content: center; align-items: center; }
    .vip-card-3d { 
        position: absolute; width: 350px; height: 500px; margin-top: 0 !important; 
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease; 
        opacity: 0; transform: scale(0.5) translateZ(-500px); z-index: 1; pointer-events: none;
    }
    .vip-card-3d.active { opacity: 1; transform: scale(1) translateZ(0); z-index: 30; pointer-events: auto; box-shadow: 0 25px 50px -12px rgba(249, 178, 0, 0.3); }
    .vip-card-3d.prev { opacity: 0.65; z-index: 20; pointer-events: auto; transform: translateX(-260px) scale(0.8) rotateY(25deg); }
    .vip-card-3d.next { opacity: 0.65; z-index: 20; pointer-events: auto; transform: translateX(260px) scale(0.8) rotateY(-25deg); }

    .vip-top-badge {
        position: absolute; top: -15px; left: 25px; background: var(--brand-violet); color: #ffffff; 
        padding: 0.5rem 1.2rem; border-radius: 12px; font-weight: 900; font-style: italic; font-size: 0.75rem; 
        text-transform: uppercase; z-index: 20; border: 2px solid #ffffff; display: flex; align-items: center; gap: 0.5rem;
    }

    /* ============================================================
       RESPONSIVE: TIK MOBILIEMS IR PLANŠETĖMS (SUTVARKYTA)
       ============================================================ */
    @media (max-width: 1024px) {
        .swipe-indicator-badge { display: inline-flex !important; }
        .controls-wrapper { margin-bottom: 0.75rem !important; }

        .news-grid { 
            display: flex !important; 
            flex-wrap: nowrap !important;
            overflow-x: auto !important; 
            scroll-snap-type: x mandatory !important; 
            gap: 1.25rem !important; 
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            
            margin-left: -1rem !important; 
            margin-right: -1rem !important;
            padding-left: 1rem !important; 
            padding-right: 3rem !important; 
            
            padding-top: 25px !important;
            padding-bottom: 15px !important; 
            margin-bottom: 0 !important;
            min-height: auto !important;
        } 
        .news-grid::-webkit-scrollbar { display: none; }

        .news-card-style {
            flex: 0 0 88% !important; 
            min-width: 88% !important;
            max-width: 88% !important;
            scroll-snap-align: center !important;
            scroll-snap-stop: always !important;
            margin-top: 0 !important;
        }

        /* GRIEŽTAS AUKŠTIS PAVADINIMAMS - KAD NEŠOKINĖTŲ APAČIA */
        .news-card-style h2, .vip-card-3d h3 {
            display: -webkit-box !important;
            -webkit-line-clamp: 3 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            height: 4.2rem !important; 
            line-height: 1.4rem !important;
            margin-bottom: 0.75rem !important;
        }

        /* PLANŠETĖMS: Rodyti po 2 naujienas šalia */
        @media (min-width: 601px) {
            .news-card-style {
                flex: 0 0 calc(50% - 1.5rem) !important;
                min-width: calc(50% - 1.5rem) !important;
                scroll-snap-align: start !important;
            }
        }

        .vip-card-3d.prev { transform: translateX(-180px) scale(0.75) rotateY(20deg); }
        .vip-card-3d.next { transform: translateX(180px) scale(0.75) rotateY(-20deg); }

        /* PUSLAPIAVIMO PRITRAUKIMAS PRIE KORTELIŲ */
        #paginationBlockBottom { 
            display: flex !important; 
            justify-content: center !important; 
            margin-top: 0.5rem !important; 
        }
        .pg-btn { width: 44px !important; height: 44px !important; font-size: 13px !important; }
        
        .news-slider-wrapper-block { margin-bottom: 0.5rem !important; }
    }

    /* TIK TELEFONAMS (< 600px) */
    @media (max-width: 600px) {
        .news-card-style { flex: 0 0 88% !important; min-width: 88% !important; }
        
        .vip-carousel-container { perspective: none; display: block; margin-top: 25px !important; }
        .vip-grid-3d { height: auto !important; display: block !important; }
        .vip-card-3d { position: relative !important; width: 100% !important; height: auto !important; display: none !important; opacity: 1 !important; transform: none !important; }
        .vip-card-3d.active { display: flex !important; }
        
        .vip-top-badge { left: 15px !important; top: -10px !important; padding: 0.4rem 1rem !important; font-size: 0.7rem !important; }
    }

    /* KOMPIUTERIAMS GRĄŽINAM TINKLELĮ */
    @media (min-width: 1025px) {
        .news-grid {
            display: grid !important;
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 3rem 2.5rem !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-right: 0 !important;
            overflow: visible !important;
        }
        .news-card-style { flex: none !important; width: 100% !important; }
        #paginationBlockBottom { margin-top: 3rem !important; }
    }

    /* PRENUMERATA RESPONSIVE */
    @media (max-width: 1024px) {
        .newsletter-subscribe-container { flex-direction: column !important; text-align: center !important; }
        .newsletter-subscribe-text { text-align: center !important; max-width: 100% !important; }
        .newsletter-subscribe-form { max-width: 100% !important; }
    }

/* ============================================================
   NAUJIENŲ FILTRŲ BLOKAS
   Papildyta pagal renginių filtrų vaizdą.
   Esamas CSS aukščiau nekeistas.
   ============================================================ */

.news-filter-panel {
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(300px, 338px) minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    background: #f8fafc;
    border: 1px solid rgba(75, 29, 63, 0.06);
    border-radius: 2.6rem;
    box-shadow: 0 5px 14px rgba(75, 29, 63, 0.09);
}

.news-status-tabs {
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    background: #fff;
    border: 2px solid var(--brand-violet);
    border-radius: 999px;
    overflow: hidden;
}

.news-status-tab {
    min-width: 0;
    height: 50px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--brand-violet);
    background: transparent;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.news-status-tab i {
    font-size: 0.95rem;
}

.news-status-tab:hover {
    color: var(--brand-orange);
}

.news-status-tab.is-active {
    color: #fff;
    background: #c93d08;
    box-shadow: 0 7px 14px rgba(201, 61, 8, 0.22);
}

.news-filter-form {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    align-items: center;
    gap: 1rem;
}

.news-search-field,
.news-category-field {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.news-search-field > i,
.news-category-field > i:not(.news-select-arrow) {
    position: absolute;
    left: 1.45rem;
    top: 50%;
    z-index: 2;
    color: var(--brand-orange);
    font-size: 1.12rem;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-search-field input,
.news-category-field select {
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0 3.4rem 0 3.7rem;
    color: var(--brand-violet) !important;
    background: #fff !important;
    border: 2px solid var(--brand-violet) !important;
    border-radius: 999px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    font-style: italic;
    line-height: normal;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.news-search-field input::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.news-search-field input:focus,
.news-category-field select:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 10px rgba(244, 93, 34, 0.15);
}

.news-category-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.news-select-arrow {
    position: absolute;
    right: 1.35rem;
    top: 50%;
    z-index: 2;
    color: var(--brand-orange);
    font-size: 0.82rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-search-button {
    display: none !important;
}

.news-filter-results {
    grid-column: 1 / -1;
    margin: -0.15rem 0 0;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: var(--brand-violet);
    font-size: 0.82rem;
    font-weight: 800;
    font-style: italic;
}

.news-filter-results a {
    color: #c93d08;
    font-weight: 900;
    text-decoration: none;
}

.news-filter-results a:hover {
    color: var(--brand-violet);
}

@media (max-width: 1050px) {
    .news-filter-panel {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        border-radius: 2rem;
    }

    .news-status-tabs {
        max-width: 380px;
    }
}

@media (max-width: 680px) {
    .news-filter-panel {
        padding: 0.75rem;
        border-radius: 1.6rem;
    }

    .news-status-tabs {
        max-width: none;
        min-height: 56px;
        padding: 5px;
    }

    .news-status-tab {
        height: 44px;
        padding: 0 0.55rem;
        font-size: 0.76rem;
    }

    .news-status-tab i {
        display: none;
    }

    .news-filter-form {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .news-search-field input,
    .news-category-field select {
        height: 56px;
        font-size: 0.93rem;
    }

    .news-filter-results {
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0 0.35rem;
    }
}


/* ============================================================
   ADMINISTRATORIAUS MYGTUKAI ANT KORTELĖS KAIRĖS
   ============================================================ */
.admin-card-actions {
    position: absolute;
    top: 18px;
    left: -14px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto;
}

.admin-card-btn {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 950;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(75, 29, 63, 0.24);
    transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.admin-card-btn:hover {
    transform: translateX(5px) scale(1.03);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px rgba(75, 29, 63, 0.34);
}

.admin-card-btn-expired { background: #dc2626; }
.admin-card-btn-vip { background: #eab308; color: #4b1d3f; }
.admin-card-btn-edit { background: #f45d5d; }

/* ============================================================
   KATEGORIJOS MYGTUKAS KORTELĖJE – KAIP „SKAITYTI“
   ============================================================ */
.news-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 62%;
    padding: 0.5rem 0.9rem;
    color: #fff !important;
    background: var(--brand-violet);
    border: 0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 950;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 5px 12px rgba(75, 29, 63, 0.22);
    transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

.news-category-button:hover {
    color: #000 !important;
    background: var(--brand-yellow);
    transform: translateY(-2px);
}

.news-category-button i {
    flex: 0 0 auto;
    font-size: 0.72rem;
}

@media (max-width: 600px) {
    .admin-card-actions {
        top: 14px;
        left: -8px;
        gap: 6px;
    }

    .admin-card-btn {
        min-height: 34px;
        padding: 0.48rem 0.7rem;
        font-size: 0.64rem;
    }

    .news-category-button {
        max-width: 58%;
        padding: 0.48rem 0.72rem;
        font-size: 0.7rem;
    }
}

/* Greitas kategorijos keitimo langas administratoriui */
    .admin-card-btn-category {
        background: #2563eb;
        border-color: #ffffff;
    }

    .admin-card-btn-category:hover {
        background: #1d4ed8;
    }

    .admin-category-modal {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background: rgba(17, 24, 39, 0.72);
        backdrop-filter: blur(5px);
    }

    .admin-category-modal.is-open {
        display: flex;
    }

    .admin-category-dialog {
        width: min(520px, 100%);
        overflow: hidden;
        background: #ffffff;
        border: 4px solid #f9b200;
        border-radius: 2rem;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    }

    .admin-category-header {
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        color: #ffffff;
        background: #4b1d3f;
    }

    .admin-category-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 950;
        font-style: italic;
        text-transform: uppercase;
    }

    .admin-category-close {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        cursor: pointer;
    }

    .admin-category-body {
        padding: 1.5rem;
    }

    .admin-category-select {
        width: 100%;
        min-height: 58px;
        padding: 0 1rem;
        color: #4b1d3f;
        background: #ffffff;
        border: 2px solid #4b1d3f;
        border-radius: 999px;
        outline: none;
        font-size: 1rem;
        font-weight: 850;
        font-style: italic;
    }

    .admin-category-select:focus {
        border-color: #f45d22;
        box-shadow: 0 0 0 4px rgba(244, 93, 34, 0.12);
    }

    .admin-category-message {
        min-height: 1.4rem;
        margin-top: 0.8rem;
        color: #b91c1c;
        font-size: 0.88rem;
        font-weight: 800;
        font-style: italic;
    }

    .admin-category-footer {
        padding: 0 1.5rem 1.5rem;
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
    }

    .admin-category-action {
        min-height: 46px;
        padding: 0 1.3rem;
        border-radius: 999px;
        font-weight: 950;
        font-style: italic;
        text-transform: uppercase;
        cursor: pointer;
        transition: 0.25s;
    }

    .admin-category-cancel {
        color: #4b1d3f;
        background: #ffffff;
        border: 2px solid #4b1d3f;
    }

    .admin-category-save {
        color: #ffffff;
        background: #c93d08;
        border: 2px solid #f45d22;
    }

    .admin-category-save:hover {
        background: #f45d22;
        transform: translateY(-1px);
    }

    .admin-category-save:disabled {
        opacity: 0.55;
        cursor: wait;
        transform: none;
    }

    @media (max-width: 600px) {
        .admin-category-dialog {
            border-radius: 1.5rem;
        }

        .admin-category-footer {
            flex-direction: column-reverse;
        }

        .admin-category-action {
            width: 100%;
        }
    }

/* ============================================================
   DIDESNĖS NAUJIENŲ KORTELĖS TELEFONUOSE IR PLANŠETĖSE
   ============================================================ */
@media (max-width: 1024px) {
    .news-slider-wrapper {
        overflow: visible !important;
    }

    .news-grid {
        scroll-padding-left: 1rem !important;
        scroll-padding-right: 1rem !important;
        padding-left: 1rem !important;
        padding-right: 4.25rem !important;
        gap: 1.15rem !important;
    }

    .news-grid .news-card-style {
        flex: 0 0 91% !important;
        min-width: 91% !important;
        max-width: 91% !important;
        scroll-snap-align: start !important;
    }

    .news-card-style .img-wrapper {
        height: 320px !important;
    }

    .news-card-style > .p-6,
    .news-card-style > .md\:p-8 {
        padding: 1.55rem !important;
    }

    /* Apatinį puslapiavimą pritraukiame prie kortelių */
    .news-pagination-bottom {
        margin-top: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .news-slider-wrapper-block {
        margin-bottom: 0 !important;
    }
}

/* Telefonuose paliekame tik vos matomą kitos kortelės kraštą */
@media (max-width: 600px) {
    .news-grid {
        padding-right: 3.25rem !important;
    }

    .news-grid .news-card-style {
        flex-basis: 92% !important;
        min-width: 92% !important;
        max-width: 92% !important;
    }

    .news-card-style .img-wrapper {
        height: 310px !important;
    }

    .news-pagination-bottom {
        margin-top: 0.6rem !important;
    }
}

/* Planšetėms kortelės didesnės – viena pagrindinė ir matomas kitos kraštas */
@media (min-width: 601px) and (max-width: 1024px) {
    .news-grid .news-card-style {
        flex: 0 0 72% !important;
        min-width: 72% !important;
        max-width: 72% !important;
        scroll-snap-align: start !important;
    }

    .news-grid {
        padding-right: 7rem !important;
    }

    .news-card-style .img-wrapper {
        height: 340px !important;
    }
}

/* Viršutinis puslapiavimas rodomas tik kompiuteriuose */
.news-pagination-top {
    display: none;
}

@media (min-width: 1025px) {
    .news-pagination-top {
        display: flex !important;
        margin-top: 0.25rem !important;
        margin-bottom: 2rem !important;
    }

    .news-pagination-bottom {
        margin-top: 3rem !important;
    }
}

/* ============================================================
   GALUTINIS KORTELIŲ PLOČIO IR SLINKIMO PRITAIKYMAS
   Telefonas: beveik visa kortelė, matomas tik kitos kampukas.
   Planšetė: 2 kortelės ir matomas trečios kraštas.
   ============================================================ */

/* Telefonai */
@media (max-width: 600px) {
    .news-slider-wrapper {
        overflow: visible !important;
    }

    .news-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;

        gap: 0.9rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1.8rem !important;
        scroll-padding-left: 1rem !important;
        scroll-padding-right: 1rem !important;
    }

    .news-grid::-webkit-scrollbar {
        display: none !important;
    }

    .news-grid .news-card-style {
        flex: 0 0 96% !important;
        min-width: 96% !important;
        max-width: 96% !important;
        width: 96% !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
    }

    .news-grid .news-card-style:first-child {
        scroll-snap-align: start !important;
    }

    .news-grid .news-card-style:last-child {
        scroll-snap-align: end !important;
    }

    .news-card-style .img-wrapper {
        height: 330px !important;
    }

    .news-pagination-bottom {
        margin-top: 0.35rem !important;
        margin-bottom: 0.75rem !important;
    }

    .news-slider-wrapper-block {
        margin-bottom: 0 !important;
    }
}

/* Planšetės: 2 kortelės ir dalis trečios */
@media (min-width: 601px) and (max-width: 1024px) {
    .news-slider-wrapper {
        overflow: visible !important;
    }

    .news-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;

        gap: 1rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 3.5rem !important;
        scroll-padding-left: 1rem !important;
        scroll-padding-right: 1rem !important;
    }

    .news-grid::-webkit-scrollbar {
        display: none !important;
    }

    .news-grid .news-card-style {
        flex: 0 0 45.5% !important;
        min-width: 45.5% !important;
        max-width: 45.5% !important;
        width: 45.5% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    .news-grid .news-card-style:last-child {
        scroll-snap-align: end !important;
    }

    .news-card-style .img-wrapper {
        height: 255px !important;
    }

    .news-pagination-bottom {
        margin-top: 0.55rem !important;
        margin-bottom: 0.9rem !important;
    }

    .news-slider-wrapper-block {
        margin-bottom: 0 !important;
    }
}