/**
 * eCob Group Widget Styles
 */

.ecob-group-widget {
    margin-bottom: 0;
    position: relative;
}

/* Cursor feedback during swipe */
.ecob-group-widget.ecob-swiping,
.ecob-group-widget.ecob-swiping * {
    cursor: grab;
    cursor: -webkit-grab;
}

.ecob-group-widget.ecob-swiping-active,
.ecob-group-widget.ecob-swiping-active * {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}



.ecob-group-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.ecob-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-evenly;
    margin-bottom: 0 !important;
    padding: 0;
    list-style: none;
}

/* Viewport + track for horizontal sliding and cursor feedback */
.ecob-group-viewport { overflow-x: hidden; overflow-y: visible; width: 100%; position: relative; cursor: grab; }
.ecob-group-viewport .ecob-tabs-panels { touch-action: pan-y; }
/* Disable interaction only within panels */
.ecob-group-viewport .ecob-tabs-panels { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-touch-callout: none; }
.ecob-group-viewport .ecob-tabs-panels img { pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
.ecob-group-viewport .ecob-tabs-panels svg { pointer-events: none; }
/* Make slide contents non-interactive so swipe always works; controls stay interactive */
/* Keep slide content interactive; we only disable images for drag, not the whole slide */
.ecob-group-controls-row, .ecob-group-controls-row * { pointer-events: auto; }
.ecob-group-nav, .ecob-group-nav * { pointer-events: auto; }
/* Horizontal track; stretch items so slide height follows content */
.ecob-group-track { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; transition: transform 350ms ease; will-change: transform; }
/* Slides occupy full viewport width and stretch vertically */
.ecob-group-track > .elementor-widget-ecob_tabbed_section { display: flex; align-items: stretch; flex: 0 0 100%; width: 100%; margin-bottom:0;}
/* Fallback: match generic Elementor widget wrappers too */
.ecob-group-track > .elementor-widget { display: flex; align-items: stretch; flex: 0 0 100%; width: 100%; }

/* Hard guarantee: any direct child in the track is one full slide */
.ecob-group-track > * { display: block; flex: 0 0 100%; width: 100%; }
.ecob-group-widget.ecob-swiping .ecob-group-viewport,
.ecob-group-widget.ecob-swiping-active .ecob-group-viewport { cursor: grabbing; }

/* Pagination + arrows container */
.ecob-group-controls-row { width: 100%; display: flex; justify-content: center; }
.ecob-group-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.ecob-group-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecob-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4c4c4;
    border: none;
    padding: 0;
    line-height: 1;
}

.ecob-group-dot.active {
    background: var(--e-global-color-primary);
}

.ecob-group-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ecob-primary-color, #2ab2dc);
    cursor: pointer;
}

.ecob-group-arrow:hover { 
/*    opacity: 0.85;*/
    color:#fff;
}

.ecob-group-arrow[disabled] {
    opacity: 0.4;
    pointer-events: none;
}
.ecob-group-arrow svg{
    width: 48px;
    height: 48px;
}


.ecob-group-btn {
    color: var(--e-global-color-primary);
background-color: transparent;
/*    font-family: "Roboto", Sans-serif;*/
    margin: 0.5em;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 13px -5px, rgba(0, 0, 0, 0.3) 0px 4px 8px -8px;
    cursor: pointer;
    text-wrap: nowrap;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 4px;
    padding: 8px 12px;
    list-style: none;
    text-align: center;
    transition: all 300ms ease;
    /* background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 80px;
    text-align: center; */
}

.ecob-group-btn:hover {
color:#fff;
      background-color: var(--e-global-color-primary);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    transform: translateY(-4px);
    border: 1px solid #29333B;
    transition: all 300ms ease;
}


/* .ecob-group-btn-all {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.ecob-group-btn-all:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
} */

/* .ecob-group-btn-all.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.ecob-group-btn-all.active:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
} */

/* Minimal button style */
.ecob-group-btn-minimal {
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    text-decoration: underline;
}

.ecob-group-btn-minimal:hover {
    background: transparent !important;
    color: #007bff !important;
    transform: none !important;
    box-shadow: none !important;
}

.ecob-group-btn-minimal.active {
    background: transparent !important;
    border: none !important;
    color: #007bff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* Thumbnail navigation style */
.ecob-group-thumbnail {
/*    display: inline-block;*/
    margin: 0.25rem;
    cursor: pointer;
    height:2em;
width:auto;
    transition: all 0.3s ease;
}

.ecob-group-thumbnail:hover {
transform: translateY(-3px);
   
}


.ecob-group-thumbnail img, .ecob-group-thumbnail.active img {
    width:fit-content;
    height:100%;
/*
  object-fit: contain; 
    object-position: left top;
*/
}

.ecob-group-thumbnail img{filter: brightness(10);}
.ecob-group-thumbnail:hover img, .ecob-group-thumbnail.active img {filter: brightness(1);}

/* SVG thumb color control */
.ecob-group-thumbnail svg .cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
}

.ecob-group-thumbnail:hover svg .cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
    opacity: 0.8 !important;
}

.ecob-group-thumbnail.active svg .cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
    opacity: 1 !important;
}

/* Additional specificity for inline styles */
.ecob-group-thumbnail svg path.cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
}

.ecob-group-thumbnail:hover svg path.cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
    opacity: 0.8 !important;
}

.ecob-group-thumbnail.active svg path.cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
    opacity: 1 !important;
}

.ecob-group-thumbnail-label {
    display: block;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    font-weight: 500;
}

/* Tab widget visibility control */
.ecob-tabs-widget {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stacking container for carousel mode */
/* removed stacked overlay approach; using crossfade */

.elementor-widget-ecob_tabbed_section.hidden { display: none !important; opacity: 0; visibility: hidden; pointer-events: none; }
.elementor-widget-ecob_tabbed_section.visible { display: block; opacity: 1; visibility: visible; pointer-events: auto; }

/* removed old slide-up animation in favor of horizontal slide animations */

/* Crossfade transitions for section switches */
.elementor-widget-ecob_tabbed_section.ecob-fade-in { animation: ecobFadeIn 250ms ease-out both; }
.elementor-widget-ecob_tabbed_section.ecob-fade-out { animation: ecobFadeOut 200ms ease-in both; }

@keyframes ecobFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecobFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Carousel layout: viewport + horizontal track */
/* Removed experimental carousel track */

/* Focus states for accessibility */
.ecob-group-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading state */
.ecob-group-widget.loading .ecob-group-nav {
    opacity: 0.6;
    pointer-events: none;
}

.ecob-group-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Popup Wrapper */
.ecob-group-popup-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999!important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 80%;
max-width:800px;
/*max-width:100%;*/
/*    border-radius: 12px;*/

}

.ecob-group-popup-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.ecob-group-popup-wrapper .ecob-group-nav {
    position:relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
  width: 100%;
max-width:100%;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
    padding: 8px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
background-color:transparent;
 background-image: linear-gradient(0deg, rgba(14, 29, 74, 1) 80%, rgba(14, 29, 74, 1) 100%);
/*background-image: radial-gradient(at top center, rgba(14, 29, 74, 0.6) 43%, rgba(14, 29, 74, 0.2) 100%);*/
max-height: 80px;
}

.ecob-group-popup-wrapper.expanded .ecob-group-nav{
 max-height: 100%;
/*
    max-height: 160px;
    overflow-y: auto;
*/
}

/*.ecob-group-popup-wrapper .ecob-group-btn,*/
.ecob-group-popup-wrapper .ecob-group-thumbnail {
    min-width: 80px;
    flex: 1;
}
.ecob-group-popup-wrapper .ecob-group-btn{
    flex:1;
}
.ecob-group-popup-toggle-row{
  display:flex;
  justify-content: center;
}

.ecob-group-popup-toggle {
/*width:fit-content;*/
width:100%;
    padding: 0 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    font-size: 24px;
    font-weight: 500;
color: #fff;
    background-color: var(--e-global-color-primary);
    border-radius: 8px 8px 0 0;
/*    min-width: 80px;*/
/*    flex: 1;*/
/*
    border-radius:50px;
      border: 1px solid var(--e-global-color-primary);
*/

}



.ecob-group-popup-toggle::after {
    content: '\f077';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.ecob-group-popup-wrapper.expanded .ecob-group-popup-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.ecob-group-popup-wrapper .ecob-group-btn.hidden,
.ecob-group-popup-wrapper .ecob-group-thumbnail.hidden {
    display: none;
}
@media (max-width: 1024px){
    .ecob-group-popup-toggle-row {
        display: flex;
    }
}
/* Responsive design */
@media (max-width: 768px) {
    .ecob-group-nav {
display:none !important;
    }
    
    .ecob-group-btn {
        width: 100%;
    flex: none !important;
/*        max-width: 200px;*/
    }
    
    .ecob-group-title {
        font-size: 1.25rem;
    }
    .ecob-group-popup-wrapper {
        width:90%;    
    }
.ecob-group-thumbnail {
    height:1.4em;
}
.ecob-section-image-right {
    height: 30px;
}
}

@media (max-width: 480px) {
    .ecob-group-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .ecob-group-title {
        font-size: 1.1rem;
    }
}

/* Removed fadeInUp animation in favor of horizontal slide animations */


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 