/**
 * eCob Tabbed Section Widget Styles
 * 
 * @package eCob_Custom_Widgets
 */

/* Reset Elementor conflicts */
.ecob-tabs-widget .elementor-container,
.ecob-tabs-widget .elementor-row,
.ecob-tabs-widget .elementor-column,
.ecob-tabs-widget .elementor-widget-wrap,
.ecob-tabs-widget .elementor-widget {
    margin: 0;
    padding: 0;
/*
     width: 100%;
    height: 100%; 
*/
}

/* 
 * RGB Color Usage Examples:
 * 
 * For RGB values (comma-separated): rgb(var(--ecob-primary-color-rgb))
 * For RGBA with opacity: rgba(var(--ecob-primary-color-rgb), 0.5)
 * For CSS color-mix: color-mix(in srgb, rgb(var(--ecob-primary-color-rgb)) 50%, transparent)
 * 
 * Note: --ecob-primary-color-rgb contains values like "28, 196, 232" (without rgb() wrapper)
 */

.elementor-widget-ecob_tabbed_section {
    padding: 4em 0 1em;
}

/* Main container */
.ecob-tabs-widget {
    width: 100%;
}

.ecob-tabs-container {
    display: flex;
    align-items: center;
    
/*    gap: 2em;*/
}

/* Tab navigation */
.ecob-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    min-width: 180px;
    flex-shrink: 0;
    padding-right: 2em;
width:33%;
}

.ecob-tabs-nav .tab-trigger {
    background: none;
    border: 1px solid var(--ecob-primary-color, #2ab2dc);
    border-radius:8px;
    padding: 0.75em 1em;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--ecob-primary-color, #2ab2dc);
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.ecob-tabs-nav .tab-trigger:hover {
    background: color-mix(in srgb, var(--ecob-primary-color, #2ab2dc) 50%, transparent);
    /* Alternative using RGB: background: rgba(var(--ecob-primary-color-rgb, 42, 178, 220), 0.5); */
}

.ecob-tabs-nav .tab-trigger.active {
    background: var(--ecob-primary-color, #2ab2dc);
    color: #fff;
}

.ecob-tabs-nav .tab-trigger.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(2em + 4px);
    height: 1px;
    background-color: var(--ecob-primary-color, #2ab2dc);
    transform: translateY(-50%);
    z-index: 1;
}

/* Tab panels */
.ecob-tabs-panels {
/*    flex: 1;*/
    min-height: auto;
position:relative;
}

.ecob-content-wrapper {
    background-image: radial-gradient(at right bottom, #00A9DF32 20%, #00A9DF00 100%);
    border: 2px solid var(--ecob-primary-color, #2ab2dc);
    border-radius: 12px 12px 12px 12px;
background-color: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height:auto;
transform: all 0s;
/*
    position: relative;
    width: 100%;
height:100%;
*/
}

.ecob-tabs-panels .tab-panel {
    display: none;
height:auto;
}

.ecob-tabs-panels .tab-panel.active {
    display: block;
}

/* Content layout */
.ecob-tabs-content-container {
    padding:0;
    width: 100%;
height:auto;
align-items: stretch;
flex-direction: row;
}
.ecob-tabs-content-row {
padding:0;
margin:0;
}
.ecob-tabs-content-innerRow {
 display: flex;
 flex-direction: row;
    gap: 1em;
    align-items: stretch;
    padding:0;
height:auto;
}

/* Ensure equal-height columns and full-height widget wraps */
.ecob-tabs-content-innerRow > .elementor-column {
    display: flex;
    flex-direction: column;
}

.ecob-tabs-content-innerRow > .elementor-column > .elementor-widget-wrap {
    display: flex;
/*    flex: 1 1 auto;*/
    flex-direction: column;
}

.ecob-tabs-text-column {
color:#fff;
}

.ecob-tabs-text-column.elementor-col-66 {
/*     padding: 6em 3em 6em 2em;*/
    padding: 4em 3em 4em 2em;
}

.ecob-tabs-text-column p {
/*    color: #fff;*/
margin-bottom:0;
}
.ecob-tabs-text-column ul{
    margin-top:1em;
margin-bottom:0;
}
.ecob-tabs-image-column.elementor-col-33 {

display:none;
/*
    padding: 0;
    align-items:center;
    height:auto;
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(var(--ecob-primary-color-rgb), 1), rgba(var(--ecob-primary-color-rgb), 0.3));
    border-radius:10px 0 0 10px;
    justify-content: center;
*/

}
.ecob-layout-full_width .ecob-tabs-image-column .elementor-widget-container{
   margin: -2em -.5em -2em -3em;
}
.ecob-tabs-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ecob-tabs-image-column figure {
    margin: 0;
}

/* Elementor column layout - desktop */
.ecob-tabs-content-row .elementor-col-66 {
width:100%;
/*    width: 66.666%;*/
/*  padding:4em 2em 4em;*/
}

.ecob-tabs-content-row .elementor-col-33 {
    width: 33.333%;
/*    flex: 1;*/
}

/* Content styling */
.ecob-tab-title {
    color: var(--ecob-primary-color, #2ab2dc);
    margin: 0;
font-size:2rem;
}

.ecob-divider {
    height: 1px;
    width: 100%;
    background-color: var(--ecob-primary-color, #2ab2dc);
    margin:.5em 0 1em ;
}

/* Thumb image */
.thumb-image-wrap { display: none; }

.ecob-thumb-image {
display:none;
/*
 position: absolute;
    right: 1em;
    top: 1em;
*/
}

.ecob-thumb-image img {
    max-width: 100%;
    height: auto;
/*    display: inline-block;*/
}

/* SVG thumb color control */
.ecob-thumb-image svg .cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
}

.ecob-thumb-image svg path.cls-1 {
    fill: var(--ecob-primary-color, #2ab2dc) !important;
}



/* Section image */
.ecob-section-image {
display:flex;
    margin-bottom: 1em;
/*    text-align: center;*/
}

.ecob-section-image img {
    max-width: 100%;
    width:100%;
    height: auto;
/*    display: inline-block;*/
}
.image-right-wrap{
    display:none;
    width:100%;
    margin-bottom:2em;
justify-content:center;
}
.ecob-section-image-right{
/*position:absolute;*/
    height:40px;
    width:auto;
}
.ecob-section-image-right img{
    height:100%;
    width:auto;
}
/* Rive animation */
.ecob-rive-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

canvas.rive-canvas {
    width: 100%;
    height: 100%;
/*    display: block;*/
}
/*--admin tweaks--*/
/* Clean section targeting using JavaScript-added class */
/* body.elementor-editor-active .ecob-tab-topSection.elementor-section-items-middle > .elementor-container,
.elementor-editor .ecob-tab-topSection.elementor-section-items-middle > .elementor-container {
    align-items: flex-start !important;
} */

body.elementor-editor-active .ecob-tab-topSection > .elementor-container {
    align-items: flex-start !important;
}
body.elementor-editor-active .ecob-tab-topSection.elementor-section.elementor-section-height-full {
    height: auto !important;
}
/* Responsive */
@media (max-width: 768px) {

    .ecob-tabs-nav .tab-trigger.active::after {
        display: none;
    }
    
    .ecob-tabs-container {
        flex-direction: column-reverse;
/*        gap: 1em;*/
    }
.ecob-tabs-content-innerRow {
 flex-direction: column;
}
    
    .ecob-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: auto;
        padding-right: 0;
width:100%;
/*        padding-bottom: 1em;*/
/*        border-bottom: 1px solid #ddd;*/
    }
    
    .ecob-tabs-nav .tab-trigger {
        min-width: 120px;
        text-align: center;
    }
    
    .ecob-tabs-content-row {
        flex-direction: column;
        gap: 1em;
    }
    
    /* Full width columns on mobile */
    .ecob-tabs-text-column,
    .ecob-tabs-image-column,
    .ecob-tabs-content-row .elementor-col-66,
    .ecob-tabs-content-row .elementor-col-33 {
        width: 100% !important;
    }
    .ecob-tabs-image-column.elementor-col-33{
display:none;
        height:auto;
        padding-top:3em;
/*    background-image: linear-gradient(180deg, rgba(var(--ecob-primary-color-rgb), 1), rgba(var(--ecob-primary-color-rgb), 0.3));*/
border-radius:10px 10px 0 0px;
}
.ecob-layout-full_width .ecob-tabs-image-column .elementor-widget-container{
   margin: -2em 0 0 0;
}
    
    .ecob-tabs-content-row .elementor-col-66{
        padding:4em 2em 4em;
    }
    
    .ecob-tabs-text-column {
        padding: 0 1em;
    }
    
    .ecob-tabs-image-column {
        text-align: center;
        margin-bottom: 2em;
    }
.image-right-wrap{
    display:flex;
    }
    .ecob-section-image {
    display:none;
    }
.ecob-tab-title {
font-size:1.6rem;
text-align:center;
}

}

@media (max-width: 480px) {
    .ecob-tabs-text-column {
        padding: 0 0.5em;
    }
    
    .ecob-tabs-content-innerRow {
        gap: 0.75em;
    }
}


