/**
 * POLMOR Interactive Timeline Styles
 * Single authoritative horizontal timeline across all breakpoints.
 */

.polmor_timeline,
.polmor-timeline-tabs,
.polmor-story-timeline-widget {
    position: relative;
    width: 100%;
}

/* Single horizontal years strip - strictly non-wrapping */
.polmor-timeline-nav,
.polmor_timeline .elementor-tabs-wrapper,
.polmor_timeline .polmor-timeline-nav,
.elementor-element-48927e4 .elementor-tabs-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 69, 125, 0.2) transparent;
    padding: 8px 0 12px 0 !important;
    margin: 0 0 16px 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Subtle, unobtrusive scrollbar matching clean reference design */
.polmor-timeline-nav::-webkit-scrollbar,
.polmor_timeline .elementor-tabs-wrapper::-webkit-scrollbar {
    height: 3px;
}
.polmor-timeline-nav::-webkit-scrollbar-track,
.polmor_timeline .elementor-tabs-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.polmor-timeline-nav::-webkit-scrollbar-thumb,
.polmor_timeline .elementor-tabs-wrapper::-webkit-scrollbar-thumb {
    background: rgba(4, 69, 125, 0.2);
    border-radius: 3px;
}
.polmor-timeline-nav::-webkit-scrollbar-thumb:hover,
.polmor_timeline .elementor-tabs-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 69, 125, 0.45);
}

/* Year tab buttons */
.polmor-timeline-tab-btn,
.polmor_timeline .elementor-tab-desktop-title {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 4px 10px !important;
    margin: 0 2px !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 500;
    color: #04457d !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 2px solid transparent !important;
    border-right: 2px solid transparent !important;
    background: transparent !important;
    transition: color 0.15s ease, font-weight 0.15s ease;
    user-select: none;
    line-height: 1.2;
    white-space: nowrap;
}

.polmor-timeline-tab-btn:hover,
.polmor_timeline .elementor-tab-desktop-title:hover {
    color: #022544 !important;
}

/* Active tab button: framed with black vertical lines | Year | matching reference */
.polmor-timeline-tab-btn.elementor-active,
.polmor-timeline-tab-btn.polmor-tab-active,
.polmor-timeline-tab-btn[aria-selected="true"],
.polmor_timeline .elementor-tab-desktop-title.elementor-active,
.polmor_timeline .elementor-tab-desktop-title[aria-selected="true"] {
    font-weight: 700 !important;
    color: #04457d !important;
    border-left: 2px solid #000000 !important;
    border-right: 2px solid #000000 !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
}

/* Suppress all Elementor 999em horizontal lines or pseudo-elements */
.polmor_timeline .elementor-tab-desktop-title:before,
.polmor_timeline .elementor-tab-desktop-title:after,
.polmor-timeline-tab-btn:before,
.polmor-timeline-tab-btn:after,
.polmor_timeline .elementor-tabs-wrapper:before,
.polmor_timeline .elementor-tabs-wrapper:after,
.elementor-element-48927e4 .elementor-tab-desktop-title:before,
.elementor-element-48927e4 .elementor-tab-desktop-title:after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* Tab content container */
.polmor-timeline-content-wrapper,
.polmor_timeline .elementor-tabs-content-wrapper {
    width: 100%;
    min-height: 150px;
    border: none !important;
}

/* Tab panels */
.polmor-timeline-panel,
.polmor_timeline .elementor-tab-content {
    display: none;
    padding: 15px 10px 25px !important;
    border: none !important;
    text-align: center;
    animation: polmorFadeIn 0.25s ease;
}

.polmor-timeline-panel.elementor-active,
.polmor-timeline-panel.polmor-panel-active,
.polmor_timeline .elementor-tab-content.elementor-active {
    display: block !important;
}

/* Prominent active year heading (matching reference 60px #04457d) */
.polmor-timeline-year-heading,
.polmor_timeline .elementor-tab-content h6 {
    font-size: clamp(42px, 5.5vw, 62px) !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #04457d !important;
    margin: 15px 0 15px 0 !important;
    line-height: 1 !important;
}

/* Milestone description text */
.polmor-timeline-desc-box,
.polmor-timeline-desc-text,
.polmor_timeline .elementor-tab-content center,
.polmor_timeline .elementor-tab-content span,
.polmor_timeline .elementor-tab-content p {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.5;
    color: #04457d !important;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    display: block;
}

.polmor-timeline-desc-box strong,
.polmor_timeline .elementor-tab-content strong {
    color: #04457d;
    font-weight: 700;
}

/* Strictly prevent any mobile title elements or duplicate widgets from displaying */
.polmor_timeline .elementor-tab-mobile-title,
.elementor-tab-mobile-title,
.mobile-historia,
.elementor-element-5200026 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

@keyframes polmorFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .polmor-timeline-year-heading,
    .polmor_timeline .elementor-tab-content h6 {
        font-size: 38px !important;
    }
    .polmor-timeline-desc-box,
    .polmor-timeline-desc-text {
        font-size: 16px;
    }
}

/* =========================================================
   Universal suppression of Header Flags & Footer RODO
   ========================================================= */
.elementor-element-056640c,
.elementor-element-f217423,
.elementor-element-2c071c7,
.elementor-element-684ea13,
.elementor-element-0ce2c42,
.elementor-element-8459261,
li.lang-item,
.lang-item,
.polmor-lang-switcher,
.menu-item-1811-en,
.menu-item-1811-pl,
a[href*="rodo"],
a[href*="rodo-2"],
.elementor-widget-text-editor a[href*="rodo"] {
    display: none !important;
    visibility: hidden !important;
}
