/* =============================================
   TABS CAROUSEL WIDGET – Swaggos Gems
   ============================================= */

.tc-carousel-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    box-sizing: border-box;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Nadpis ── */
.tc-title {
    font-size: 32px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 28px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ── Prepínač tabov (Pill menu) ── */
.tc-tabs-container {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 8px;
    background: #f0f0f2;
    border-radius: 999px !important;
    margin-bottom: 40px;
    max-width: 90%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tc-tabs-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.tc-tab-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #4a4a4a;
    white-space: nowrap;
    transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                color      0.25s cubic-bezier(0.25, 1, 0.5, 1);
    line-height: 1.2;
}

.tc-tab-btn:hover:not(.is-active) {
    color: #111111;
}

.tc-tab-btn.is-active {
    background: #1d1d1f;
    color: #ffffff;
    box-shadow: none !important;
}

/* ── Slider scéna (Maskovanie strán) ── */
.tc-slider-scene {
    position: relative;
    width: 100%;
    overflow: visible; /* Aby boli vidno susedné slidy */
}

/* Trasa slideru */
.tc-slider-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Jednotlivý Slide ── */
.tc-slide {
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 12px; /* Medzera medzi slidmi */
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.4;
    transform: scale(0.93);
    pointer-events: none;
}

/* Aktívny slide v strede */
.tc-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Obrázok slidu */
.tc-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background-color: #f5f5f7;
}

.tc-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Overlay gradient na spodku slidu */
.tc-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
    pointer-events: none;
}

/* Textový obsah na slide */
.tc-slide-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    padding: 40px 20px 50px 20px;
    color: #ffffff;
    z-index: 5;
    box-sizing: border-box;
}

/* Riadky s popisom */
.tc-desc-p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tc-desc-p:last-child {
    margin-bottom: 0;
}

/* Špeciálne formátovanie pre prvý odsek (nadpis / kľúčová info) */
.tc-desc-p:first-child {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

/* ── Navigation Arrows ── */
.tc-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    transition: background 0.3s, transform 0.2s, opacity 0.3s;
}

.tc-arrow-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.tc-arrow-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.tc-arrow-prev {
    left: 20px;
}

.tc-arrow-next {
    right: 20px;
}

.tc-arrow-icon {
    border: solid #1d1d1f;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
}

.tc-arrow-prev .tc-arrow-icon {
    transform: rotate(135deg);
}

.tc-arrow-next .tc-arrow-icon {
    transform: rotate(-45deg);
}

/* Skrytie šípok, ak nie sú povolené */
.tc-arrows-hidden .tc-arrow-btn {
    display: none !important;
}

/* ── RESPONZIVITA ── */
@media (max-width: 768px) {
    body .elementor-widget-tabs_carousel .tc-carousel-wrapper .tc-title,
    .elementor-widget-tabs_carousel .tc-title,
    .tc-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
}
@media (max-width: 640px) {
    body .elementor-widget-tabs_carousel .tc-carousel-wrapper .tc-title,
    .elementor-widget-tabs_carousel .tc-title,
    .tc-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }
    .tc-tabs-container {
        margin-bottom: 28px;
    }
    .tc-tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .tc-slide {
        padding: 0 8px;
    }
    .tc-slide-content {
        width: 90%;
        padding: 30px 15px 40px 15px;
    }
    .tc-desc-p {
        font-size: 14px;
        line-height: 1.5;
    }
    .tc-desc-p:first-child {
        font-size: 17px;
    }
    .tc-arrow-btn {
        width: 38px;
        height: 38px;
    }
}

/* ══════════════════════════════════════════
   HIGH-SPECIFICITY OVERRIDES FOR TABS
   Prevents theme button backgrounds from stretching or coloring inactive tabs
══════════════════════════════════════════ */
.elementor-widget-tabs_carousel .tc-tabs-container,
.tc-tabs-container {
    background-color: #f0f0f2 !important; /* Force soft gray container background */
    border-radius: 999px !important;
    border: none !important;
    box-shadow: none !important;
}

.elementor-widget-tabs_carousel .tc-tab-btn,
.tc-tab-btn {
    background-color: transparent !important; /* Force transparent background for inactive tabs */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.elementor-widget-tabs_carousel .tc-tab-btn.is-active,
.tc-tab-btn.is-active {
    background-color: #1d1d1f !important; /* Force dark background only for active tab */
    background: #1d1d1f !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.elementor-widget-tabs_carousel .tc-tab-btn:hover:not(.is-active),
.tc-tab-btn:hover:not(.is-active) {
    background-color: transparent !important;
    background: transparent !important;
    color: #111111 !important;
}

