/* ============================================================
   IZBA Slider â€” Complete Styles
   ============================================================ */

/* --- Section --- */
.izba-slider-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.izba-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 30px 0;
    letter-spacing: 0.5px;
}

/* --- Slider Container --- */
.izba-slider {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* --- Slide --- */
.izba-slide {
    display: none;
    animation: izbaFadeIn 0.5s ease;
}

.izba-slide.active {
    display: flex;
}

@keyframes izbaFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.izba-slide-image {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

.izba-slide-image img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    min-height: 420px;
}

.izba-slide-content {
    flex: 1;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.izba-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.izba-slide-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 24px;
}

.izba-slide-body p {
    margin: 0 0 10px 0;
}

.izba-slide-body p:last-child {
    margin-bottom: 0;
}

.izba-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a68e2;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 0;
}

.izba-slide-link::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #7a68e2;
    transition: width 0.3s, background 0.3s;
}

.izba-slide-link:hover {
    color: #7a68e2;
}

.izba-slide-link:hover::after {
    width: 35px;
    background: #7a68e2;
}

/* ============================================================
   Navigation Controls (Bottom Bar)
   ============================================================ */
.izba-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #ededed;
}

/* --- Prev / Next Buttons --- */
.izba-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #7a68e273;
    border-radius: 10px;
    background: #7a68e212;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
    padding: 0;
}

.izba-nav-btn:hover {
    background: #7a68e2;
    border-color: #7a68e273;
    box-shadow: 0 3px 12px#7a68e273;
}

.izba-nav-btn:active {
    transform: scale(0.93);
}

.izba-nav-arrow {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #7a68e27a;
    transition: color 0.2s;
    user-select: none;
    margin-top: -2px;
}

.izba-nav-btn:hover .izba-nav-arrow {
    color: #fff;
}

/* --- Indicators (Tabs) --- */
.izba-slider-indicators {
    display: flex;
    gap: 5px;
    align-items: center;
}

.izba-indicator {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    border: none;
    background: #7a68e230;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    overflow: hidden;
}

.izba-indicator:hover {
    background: #7a68e273;
}

.izba-indicator.active {
    width: 52px;
    background: #7a68e2;
}

.izba-indicator-fill {
    display: none;
}

/* --- Counter --- */
.izba-slider-counter {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #888;
    user-select: none;
    margin-left: 6px;
    flex-shrink: 0;
}

.izba-counter-sep {
    margin: 0 2px;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.izba-progress {
    height: 3px;
    background: #7a68e236;
    overflow: hidden;
}

.izba-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7a68e273, #7a68e2);
    width: 0%;
}

.izba-progress-fill.running {
    animation: izbaProgress 6s linear forwards;
}

@keyframes izbaProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ============================================================
   Admin Edit Pencil
   ============================================================ */
.izba-edit-pencil {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, background 0.25s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.izba-slider:hover .izba-edit-pencil {
    opacity: 1;
    visibility: visible;
}

.izba-edit-pencil:hover {
    background:#7a68e2;
    transform: scale(1.1);
}

.izba-edit-pencil:active {
    transform: scale(0.95);
}

.izba-edit-pencil svg {
    pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .izba-slide.active {
        flex-direction: column;
    }

    .izba-slide-image {
        flex: none;
        max-width: 100%;
        max-height: 280px;
    }

    .izba-slide-image img {
        min-height: 240px;
        max-height: 280px;
    }

    .izba-slide-content {
        padding: 28px 24px;
    }

    .izba-slide-title {
        font-size: 1.35rem;
    }

    .izba-nav-btn {
        width: 38px;
        height: 38px;
    }

    .izba-indicator {
        width: 22px;
        height: 5px;
    }

    .izba-indicator.active {
        width: 40px;
    }
}

@media (max-width: 600px) {
    .izba-slider-section {
        padding: 0 10px;
    }

    .izba-section-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .izba-slide-content {
        padding: 20px 16px;
    }

    .izba-slide-title {
        font-size: 1.15rem;
    }

    .izba-slide-body {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .izba-slider-controls {
        gap: 8px;
        padding: 14px 12px;
    }

    .izba-nav-btn {
        width: 34px;
        height: 34px;
    }

    .izba-nav-arrow {
        font-size: 1.1rem;
    }

    .izba-indicator {
        width: 18px;
        height: 4px;
    }

    .izba-indicator.active {
        width: 30px;
    }

    .izba-slider-counter {
        font-size: 0.72rem;
    }

    .izba-edit-pencil {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    .izba-edit-pencil svg {
        width: 14px;
        height: 14px;
    }
}
