/* Elementor Custom Widgets Styles */

/* 1. Vertical Timeline */
.ecw-timeline {
    position: relative;
    padding: 20px 0;
}

/* Line Container & Progress Bar */
.ecw-timeline-line-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    /* Matches default line position */
    width: 4px;
    z-index: 0;
}

.ecw-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ddd;
    /* Default line color */
}

.ecw-timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #27ae60;
    /* Default progress color */
    transition: height 0.1s linear;
}

.ecw-timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 20px;
    z-index: 1;
    align-items: center;
    /* Center marker and content vertically */
}

.ecw-timeline-marker {
    flex-shrink: 0;
    width: 18px;
    /* Slightly larger to cover line */
    height: 18px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    margin-top: 0;
    /* Removed margin-top for center alignment */
    border: 2px solid #fff;
    /* Border to separate from line */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ecw-timeline-content {
    flex-grow: 1;
}

/* Thumbnails */
.ecw-timeline-img {
    margin-bottom: 15px;
    width: 100%;
    /* Ensure image container fills the flex column */
}

.ecw-timeline-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.ecw-timeline-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.ecw-timeline-title {
    margin: 0 0 10px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Image Side (Left of Line) */
.ecw-timeline-img-side {
    width: 100px;
    margin-right: 20px;
    flex-shrink: 0;
    text-align: right;
    z-index: 10;
}

/* Image Inline (Row with text) */
.ecw-timeline.ecw-img-inline .ecw-timeline-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    align-items: center;
    /* Changed from flex-start to center */
}

.ecw-timeline.ecw-img-inline .ecw-timeline-img {
    width: 30%;
    flex-shrink: 0;
    margin-bottom: 0;
}

.ecw-timeline.ecw-img-inline .ecw-timeline-info {
    flex-grow: 1;
}

/* Left of Line Layout Adjustments */
.ecw-img-pos-left .ecw-timeline-line-container {
    left: 127px;
    /* 100px image + 20px gap + 9px (center of 18px marker) - 2px (half line) */
}

/* Responsive adjustment for Left of Line */
@media (max-width: 767px) {
    .ecw-img-pos-left .ecw-timeline-line-container {
        left: 77px;
        /* Fallback if we shrink image */
    }

    .ecw-img-pos-left .ecw-timeline-item {
        flex-direction: row;
    }

    .ecw-img-pos-left .ecw-timeline-img-side {
        width: 50px;
        margin-right: 18px;
    }
}



/* Center Layout Styles */
.ecw-layout-center .ecw-timeline-line-container {
    left: 50%;
    transform: translateX(-50%);
}

.ecw-layout-center .ecw-timeline-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    /* Always row */
    position: relative;
    justify-content: flex-start;
    align-items: center;
    /* Vertically center content */
}

.ecw-layout-center .ecw-timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
}

.ecw-layout-center .ecw-timeline-content {
    width: calc(50% - 40px);
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    /* Side by side */
    align-items: flex-start;
    gap: 15px;
}

.ecw-layout-center .ecw-timeline-img {
    width: 30%;
    /* Fixed width for side-by-side */
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Odd Items (Left): [Info] [Image] -- Line (Image inside) */
.ecw-layout-center .ecw-timeline-item:nth-child(odd) .ecw-timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
    flex-direction: row-reverse;
    /* Flip so Image is on right (closest to line) */
}

/* Even Items (Right): Line -- [Image] [Info] (Image inside) */
.ecw-layout-center .ecw-timeline-item:nth-child(even) .ecw-timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    flex-direction: row;
    /* Image Left, Text Right */
}

/* Responsive: Collapse Center to Left on Mobile */
@media (max-width: 767px) {
    .ecw-layout-center .ecw-timeline-line-container {
        left: 7px;
        transform: none;
    }

    .ecw-layout-center .ecw-timeline-marker {
        position: static;
        transform: none;
        margin-right: 20px;
        margin-top: 0;
    }

    .ecw-layout-center .ecw-timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: flex-start;
        /* Reset align */
    }

    .ecw-layout-center .ecw-timeline-content {
        width: auto;
        flex-grow: 1;
        margin: 0 !important;
        text-align: left !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }
}

/* Active State Animation (simple fade/slide up) */
.ecw-scroll-effect .ecw-timeline-item {
    opacity: 1;
    /* Forced visibility to debug layout first. Was 0.2 */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(0);
    /* Removed transform for now */
}

.ecw-scroll-effect .ecw-timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Business Hours */
.ecw-business-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ecw-business-hours-item.highlight {
    font-weight: bold;
    color: #27ae60;
}

.ecw-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.ecw-status-open {
    background-color: #e8f5e9;
    color: #27ae60;
}

.ecw-status-closed {
    background-color: #ffebee;
    color: #c0392b;
}

/* 3. Before After */
.ecw-before-after {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.ecw-ba-img {
    width: 100%;
    height: auto;
    display: block;
}

.ecw-after-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #fff;
}

.ecw-after-img {
    height: 100%;
    width: auto;
    /* width will be set by JS */
    max-width: none !important;
    display: block;
}

.ecw-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 4. Dual Button */
.ecw-dual-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ecw-dual-btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    background-color: #333;
    color: #fff;
}

.ecw-dual-btn:hover {
    background-color: #555;
    color: #fff;
}

.ecw-middle-text {
    font-weight: bold;
    color: #555;
}

/* 5. Content Switcher */
.ecw-switcher-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.ecw-switcher-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 15px;
}

.ecw-switcher-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ecw-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.ecw-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.ecw-slider {
    background-color: #2196F3;
}

input:checked+.ecw-slider:before {
    transform: translateX(26px);
}

.ecw-content-sec {
    display: none;
    animation: fadeIn 0.5s;
}

.ecw-content-sec.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ecw-switch-label {
    cursor: pointer;
    font-weight: bold;
}

.ecw-switch-label.active {
    color: #2196F3;
}

/* 6. QR Code */
.ecw-qr-wrapper {
    text-align: center;
}

.ecw-qr-canvas {
    max-width: 100%;
}

/* 7. Custom Card (formerly Tilt Card) */
.ecw-tilt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ecw-card-item,
.ecw-tilt-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Glass Effect for Cards */
.ecw-card-item.ecw-effect-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.ecw-card-item.ecw-effect-glass:hover::before {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.2);
}

.ecw-card-item.ecw-effect-glass .ecw-tilt-inner {
    position: relative;
    z-index: 2;
}

/* Zoom Effect for Cards */
.ecw-card-item.ecw-effect-zoom:hover {
    transform: scale(1.05);
}

/* Lift Effect for Cards */
.ecw-card-item.ecw-effect-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ecw-tilt-inner {
    transform: translateZ(20px);
}

/* 8. Image + Text */
.ecw-image-text-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.ecw-it-image-side,
.ecw-it-text-side {
    flex: 1;
    min-width: 300px;
    /* basic responsiveness */
}

/* Layout Switching */
.ecw-image-text-container.ecw-layout-right {
    flex-direction: row-reverse;
}

/* Image Wrapper */
.ecw-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Aspect ratio is handled inline by Elementor control selector, but fallback: */
    display: block;
    transition: transform 0.3s ease;
}

.ecw-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover Effects */
/* Glass Effect */
.ecw-effect-glass {
    position: relative;
}

.ecw-effect-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.ecw-effect-glass:hover::before {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.2);
}

.ecw-effect-glass:hover img {
    filter: brightness(1.1);
}

/* Zoom In Effect */
.ecw-effect-zoom:hover img {
    transform: scale(1.1);
}

/* Lift Up Effect */
.ecw-effect-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecw-effect-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .ecw-image-text-container {
        flex-direction: column !important;
    }

    .ecw-image-text-container.ecw-layout-right {
        flex-direction: column !important;
    }
}

/* 9. Enhanced Portfolio */
.ecw-portfolio-wrapper {
    width: 100%;
}

.ecw-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ecw-portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ecw-portfolio-item.ecw-hidden {
    display: none;
}

/* Portfolio Image */
.ecw-portfolio-image,
.ecw-portfolio-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ecw-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover Effects */
.ecw-portfolio-item.ecw-hover-zoom .ecw-portfolio-image img {
    transition: transform 0.4s ease;
}

.ecw-portfolio-item.ecw-hover-zoom:hover .ecw-portfolio-image img {
    transform: scale(1.1);
}

.ecw-portfolio-item.ecw-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecw-portfolio-item.ecw-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ecw-portfolio-item.ecw-hover-fade .ecw-portfolio-image img {
    transition: opacity 0.3s ease;
}

.ecw-portfolio-item.ecw-hover-fade:hover .ecw-portfolio-image img {
    opacity: 0.8;
}

/* Portfolio Content */
.ecw-portfolio-content {
    padding: 20px;
    flex-grow: 1;
}

.ecw-portfolio-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.ecw-portfolio-description {
    font-size: 0.95em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Pagination */
.ecw-portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.ecw-portfolio-pagination .ecw-page-btn {
    padding: 10px 16px;
    border: none;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.ecw-portfolio-pagination .ecw-page-btn:hover:not(:disabled) {
    background-color: #333;
    color: #fff;
}

.ecw-portfolio-pagination .ecw-page-btn.active {
    background-color: #0073aa;
    color: #fff;
}

.ecw-portfolio-pagination .ecw-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ecw-portfolio-pagination .ecw-prev-btn,
.ecw-portfolio-pagination .ecw-next-btn {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .ecw-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ecw-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ecw-portfolio-pagination {
        gap: 5px;
    }

    .ecw-portfolio-pagination .ecw-page-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

/* =========================================
   10. Design Presets (Accordion & Tabs)
   ========================================= */

/* --- Glassmorphism Preset --- */
/* Accordion Glass */
.ecw-preset-glass .ecw-accordion-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    border-radius: 12px;
}

.ecw-preset-glass .ecw-accordion-title {
    color: #333;
    /* Default dark text, assumes light bg behind glass */
}

.ecw-preset-glass .ecw-accordion-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Tabs Glass */
.ecw-preset-glass .ecw-tab-title {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 4px;
    border-radius: 8px;
    color: #444;
}

.ecw-preset-glass .ecw-tab-title.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.ecw-preset-glass .ecw-tabs-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}


/* --- Neon Preset --- */
/* Accordion Neon */
.ecw-preset-neon .ecw-accordion-item {
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    margin-bottom: 5px;
    border-radius: 4px;
}

.ecw-preset-neon .ecw-accordion-title {
    color: #0ff !important;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.ecw-preset-neon .ecw-accordion-title svg {
    fill: #0ff !important;
    filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.8));
}

.ecw-preset-neon .ecw-accordion-title i {
    color: #0ff !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.ecw-preset-neon .ecw-accordion-item.active {
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3), inset 0 0 5px rgba(0, 255, 255, 0.1);
}

.ecw-preset-neon .ecw-accordion-content {
    color: #ddd;
}

/* Tabs Neon */
.ecw-preset-neon .ecw-tab-title {
    background: #000;
    border: 1px solid #333;
    color: #0ff !important;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
    margin: 2px;
    border-radius: 2px;
}

.ecw-preset-neon .ecw-tab-title.active {
    border-color: #0ff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    background: #111;
}

.ecw-preset-neon .ecw-tabs-content {
    background: #0a0a0a;
    border: 1px solid #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    border-radius: 4px;
    padding: 20px;
    color: #fff;
    margin-top: 10px;
}


/* --- Minimalist Preset --- */
/* Accordion Minimal */
.ecw-preset-minimal .ecw-accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    margin: 0;
    border-radius: 0;
}

.ecw-preset-minimal .ecw-accordion-title {
    padding: 15px 0;
    font-weight: 500;
    color: #222 !important;
}

.ecw-preset-minimal .ecw-accordion-title svg,
.ecw-preset-minimal .ecw-accordion-title i {
    fill: #222 !important;
    color: #222 !important;
}

.ecw-preset-minimal .ecw-accordion-content {
    padding: 0 0 20px 0;
    color: #555;
    line-height: 1.6;
}

/* Tabs Minimal */
.ecw-preset-minimal .ecw-tab-title {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #777 !important;
    margin: 0 10px;
    padding: 10px 5px;
}

.ecw-preset-minimal .ecw-tab-title.active {
    border-bottom-color: #222;
    color: #000 !important;
    font-weight: 600;
}

.ecw-preset-minimal .ecw-tabs-content {
    border: none;
    background: transparent;
    padding: 20px 0;
}


/* --- Flat Preset --- */
/* Accordion Flat */
.ecw-preset-flat .ecw-accordion-item {
    background: #f1f2f6;
    border: none;
    margin-bottom: 2px;
    border-radius: 0;
}

.ecw-preset-flat .ecw-accordion-title {
    color: #2f3542 !important;
    font-weight: 600;
}

.ecw-preset-flat .ecw-accordion-title svg,
.ecw-preset-flat .ecw-accordion-title i {
    fill: #2f3542 !important;
    color: #2f3542 !important;
}

.ecw-preset-flat .ecw-accordion-item.active {
    background: #dfe4ea;
}

.ecw-preset-flat .ecw-accordion-item.active .ecw-accordion-title {
    background: #ced6e0;
}

.ecw-preset-flat .ecw-accordion-content {
    background: #fff;
    padding: 20px;
}

/* Tabs Flat */
.ecw-preset-flat .ecw-tabs-nav {
    gap: 0;
    /* Attach them */
}

.ecw-preset-flat .ecw-tab-title {
    background: #f1f2f6;
    color: #57606f !important;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 12px 24px;
}

.ecw-preset-flat .ecw-tab-title.active {
    background: #3742fa;
    color: #fff !important;
}

.ecw-preset-flat .ecw-tab-title.active svg {
    fill: #fff !important;
}

.ecw-preset-flat .ecw-tab-title.active i {
    color: #fff !important;
}

.ecw-preset-flat .ecw-tabs-content {
    border: 2px solid #3742fa;
    background: #fff;
    padding: 20px;
    margin-top: 0;
}

/* Adjustments for Vertical Flat */
.ecw-tabs-layout-vertical.ecw-preset-flat .ecw-tabs-content {
    border: none;
    border-left: 2px solid #3742fa;
    margin-top: 0;
}

/* =========================================
   11. Critical Widget Styles (Moved from Inline)
   ========================================= */
/* Advanced Accordion Icon Toggling */
.ecw-accordion-item.active .ecw-icon-closed {
    display: none;
}

.ecw-accordion-item:not(.active) .ecw-icon-opened {
    display: none;
}

.ecw-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ecw-advanced-accordion .ecw-accordion-item {
    transition: all 0.3s ease;
}

.ecw-accordion-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.ecw-accordion-content {
    overflow: hidden;
}

/* Advanced Tabs Base Styles */
.ecw-advanced-tabs {
    display: flex;
}

.ecw-tabs-layout-horizontal {
    flex-direction: column;
}

.ecw-tabs-layout-vertical {
    flex-direction: row;
}

.ecw-tabs-nav {
    display: flex;
}

.ecw-tabs-layout-horizontal .ecw-tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
}

.ecw-tabs-layout-vertical .ecw-tabs-nav {
    flex-direction: column;
}

.ecw-tab-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ecw-tab-icon {
    margin-right: 8px;
    display: flex;
    /* Ensure alignment */
    align-items: center;
}

.ecw-tabs-icon-align-top .ecw-tab-title {
    flex-direction: column;
}

.ecw-tabs-icon-align-top .ecw-tab-icon {
    margin-right: 0;
    margin-bottom: 8px;
}

.ecw-tabs-icon-align-right .ecw-tab-title {
    flex-direction: row-reverse;
}

.ecw-tabs-icon-align-right .ecw-tab-icon {
    margin-right: 0;
    margin-left: 8px;
}

.ecw-tabs-content {
    flex-grow: 1;
}

.ecw-tab-content {
    animation: ecwFadeIn 0.5s ease;
}

@keyframes ecwFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   12. Custom Card - Flip 3D Effect
   ========================================= */

/* The card container */
.ecw-effect-flip {
    perspective: 1000px;
    /* Define perspective scene */
    padding: 0;
    /* Let inner container handle height/padding if needed, or keep as is */
    background: transparent !important;
    /* flip card container is usually transparent */
    /* Remove default card styles from outer wrapper if necessary */
    border: none !important;
    box-shadow: none !important;
}

/* The inner container: needed to position the front and back side */
.ecw-effect-flip .ecw-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /* Ensure it fills parent */
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    /* Removed fixed min-height to assume front content dictates height,
       or user sets height on container. */
}

/* Do the horizontal flip when you move the mouse over the flip box container */
.ecw-effect-flip:hover .ecw-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.ecw-card-front,
.ecw-card-back {
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    /* Default radius, can be overridden */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Style the front side */
.ecw-card-front {
    background-color: #fff;
    /* Default front bg */
    color: black;
    position: relative;
    /* Drives the height of the container */
}

/* Specific override for Flip effect front side to allow full-size image */
.ecw-effect-flip .ecw-card-front {
    padding: 0;
    overflow: hidden;
    /* Ensure image respects border-radius */
}

/* Style the back side */
.ecw-card-back {
    background-color: #2980b9;
    /* Default, overridden by controls */
    color: white;
    transform: rotateY(180deg);
    position: absolute;
    /* Overlays correctly when flipped */
    top: 0;
    left: 0;
}

/* Ensure images on front don't overflow */
.ecw-card-front img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Remove margin-bottom for flip effect images */
.ecw-effect-flip .ecw-card-front img {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .ecw-tabs-layout-vertical {
        flex-direction: column;
    }

    .ecw-tabs-layout-vertical .ecw-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100% !important;
        flex-basis: auto !important;
    }
}

/* =========================================
   12. Testimonial Slider
   ========================================= */
.ecw-testimonial-card {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    /* Box shadow is optional or handled by parent */
}

.ecw-testimonial-img {
    width: 40%;
    position: relative;
    /* If we want to use background image instead, but img tag is easier for responsive */
}

.ecw-testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecw-testimonial-content {
    width: 60%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ecw-testimonial-quote {
    font-size: 2em;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    /* Font family should be inherited or set by typography control */
}

.ecw-testimonial-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ecw-testimonial-rating {
    color: #f1c40f;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ecw-testimonial-role {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

/* Navigation Arrows Inside Content */
.ecw-testimonial-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.ecw-testi-prev,
.ecw-testi-next {
    cursor: pointer;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ecw-testi-prev:hover,
.ecw-testi-next:hover {
    opacity: 1;
}

/* Responsive Testimonial */
@media (max-width: 768px) {
    .ecw-testimonial-card {
        flex-direction: column;
    }

    .ecw-testimonial-img {
        width: 100%;
        height: 250px;
        /* Fixed height for mobile image */
    }

    .ecw-testimonial-content {
        width: 100%;
        padding: 30px;
    }

    .ecw-testimonial-quote {
        font-size: 1.5em;
    }
}

/* =========================================
   13. Brand Logo Slider
   ========================================= */
.ecw-brand-slider-wrapper {
    width: 100%;
    padding: 20px 0;
}

.ecw-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    /* Fixed height container for uniform alignment */
}

.ecw-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Static Image Layout Adjustments */
.ecw-testimonial-content .swiper {
    width: 100%;
}

/* --- Navigation Enhancements --- */

/* Testimonial Slider Navigation */
.ecw-testimonial-nav {
    display: flex;
    gap: 15px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.ecw-testi-prev,
.ecw-testi-next {
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.ecw-testi-prev:hover,
.ecw-testi-next:hover {
    opacity: 0.7;
}

/* Position: Inside (Default - typically bottom right or inline with content) */
.ecw-nav-pos-inside .ecw-testimonial-nav {
    position: relative;
    margin-top: 20px;
    justify-content: flex-start;
    /* Or flex-end depending on design preference, user asked for 'positions' so we stick to flow */
}

/* Position: Outside (Absolute positioning) */
.ecw-nav-pos-outside .ecw-testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* Allow clicking through constraints */
}

.ecw-nav-pos-outside .ecw-testi-prev,
.ecw-nav-pos-outside .ecw-testi-next {
    pointer-events: auto;
    /* Re-enable pointer events for buttons */
    /* background: rgba(255,255,255,0.8); Remove default BG */
    padding: 10px;
    /* border-radius: 50%; */
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
}

.ecw-nav-pos-outside .ecw-testi-prev {
    margin-left: 0px;
    /* Reset negative margin */
}

.ecw-nav-pos-outside .ecw-testi-next {
    margin-right: 0px;
}


/* Brand Logo Slider Navigation */
.ecw-brand-nav {
    display: flex;
    z-index: 10;
    transition: opacity 0.3s ease;
    /* Default for brand slider usually outside */
}

.ecw-brand-prev,
.ecw-brand-next {
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

/* Position: Inside (Not common for brand slider, but supported) */
.ecw-nav-pos-inside .ecw-brand-nav {
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

/* Position: Outside (Default) */
.ecw-nav-pos-outside .ecw-brand-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.ecw-nav-pos-outside .ecw-brand-prev,
.ecw-nav-pos-outside .ecw-brand-next {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    /* background: #fff; Default bg removed */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.ecw-nav-pos-outside .ecw-brand-prev {
    margin-left: 0px;
}

.ecw-nav-pos-outside .ecw-brand-next {
    margin-right: 0px;
}

/* Force Font Awesome on Icons to resolve visibility issues */
.ecw-testimonial-nav i,
.ecw-brand-nav i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* --- Force Font Awesome Fixes --- */
/* Common Font Family Rule */
.ecw-testimonial-nav i,
.ecw-brand-nav i,
.ecw-star {
    font-family: "Font Awesome 5 Free" !important;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* Force Weight for Solid Icons (fas) - Arrows and Filled Stars */
.ecw-testimonial-nav i.fas,
.ecw-brand-nav i.fas,
.ecw-star.fas,
.ecw-star.fa-star-half-alt {
    font-weight: 900 !important;
}

/* Force Weight for Regular Icons (far) - Empty Stars */
.ecw-star.far {
    font-weight: 400 !important;
}

/* --- Equal Height Slides Option --- */
/* When enabled, ensure Swiper slides are same height and content stretches */
.ecw-testimonial-slider-wrapper.ecw-equal-height .swiper-wrapper {
    align-items: stretch;
}

.ecw-testimonial-slider-wrapper.ecw-equal-height .swiper-slide {
    height: auto;
    display: flex;
    /* Ensure children can stretch */
}

.ecw-testimonial-slider-wrapper.ecw-equal-height .ecw-testimonial-card {
    height: 100%;
    width: 100%;
}

/* --- Testimonial Slider Styling Updates --- */

/* Title */
.ecw-testimonial-title.elementor-heading-title {
    margin-bottom: 10px;
    /* Typography settings from controls will apply here */
}

/* Quote Text */
.ecw-quote-text {
    margin-bottom: 10px;
    /* Typography and color from controls will apply here */
}

/* Meta Container (Name & Role) */
.ecw-testimonial-meta {
    margin-top: 10px;
}

/* Name */
.ecw-testimonial-name {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    /* Typography and color from controls will apply here */
}

/* Role */
.ecw-testimonial-job-role {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    /* Typography and color from controls will apply here */
}

/* 14. Counter X */
.ecw-counter-x-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ecw-counter-x-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecw-counter-x-number-wrapper {
    display: inline-flex;
    position: relative;
    line-height: 1;
}

.ecw-counter-x-number.ecw-rolling {
    display: inline-flex;
}

.ecw-counter-x-digit-column {
    display: flex;
    flex-direction: column;
    transition: transform 2s cubic-bezier(0.12, 0, 0.39, 0);
    line-height: 1;
    overflow: hidden;
}

.ecw-counter-x-digit {
    display: block;
    line-height: 1;
}

.ecw-counter-x-reel-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ensure no clipping for large typography */
.ecw-counter-x-number-wrapper {
    vertical-align: middle;
}

@media (max-width: 767px) {
    .ecw-counter-x-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

/* 15. Marquee Card */
.ecw-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 40px 0;
    /* Increased padding for alternating margins */
}

.ecw-marquee-inner {
    display: flex;
    gap: 20px;
    width: max-content;
    align-items: center;
    /* Center items for zig-zag effect */
}

.ecw-marquee-inner.ecw-is-animating {
    animation: ecw-marquee-yoyo 20s linear infinite alternate;
}

.ecw-pause-on-hover:hover {
    animation-play-state: paused;
}

.ecw-marquee-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    /* Dark background for image containers */
    height: 450px;
    /* Fixed height for consistent look */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

/* Alternating Margins */
.ecw-marquee-item:nth-child(even) {
    margin-top: 65px;
}

.ecw-marquee-item:nth-child(odd) {
    margin-top: -30px;
}

/* Full Height Image Option */
.ecw-marquee-full-height-yes .ecw-marquee-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ecw-marquee-full-height-yes .ecw-marquee-img img {
    height: 100%;
    object-fit: cover;
}

.ecw-marquee-img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* Fallback height */
    z-index: 1;
}

.ecw-marquee-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ecw-marquee-item:hover .ecw-marquee-img img {
    transform: scale(1.05);
}

.ecw-marquee-content {
    position: relative;
    z-index: 2;
    margin: 15px;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    background-color: var(--item-bg-color, #ffffff);
    color: var(--item-text-color, #333333);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ecw-marquee-item-title,
.ecw-marquee-item-desc {
    color: inherit !important;
}

/* Hover Effect: Content Box turns to Global/Primary BG */
.ecw-marquee-item:hover .ecw-marquee-content {
    background-color: var(--e-global-color-primary, #61ce70);
    /* Fallback to a standard primary green */
    color: #ffffff;
}

.ecw-marquee-item-title {
    margin: 0 0 5px;
    font-size: 1.35rem;
    font-weight: 700;
}

.ecw-marquee-item-desc {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 600;
}

.ecw-marquee-item-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

@keyframes ecw-marquee-yoyo {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-distance, -100px));
    }
}

/* Fallback if wrapper width is not 100% */
.ecw-marquee-inner {
    will-change: transform;
}

/* Clipping for Counter X Vertical Animation */
.ecw-counter-x-number.ecw-rolling-v2 {
    overflow: hidden;
}

/* Draggable Marquee Styles */
.ecw-marquee-wrapper.ecw-is-draggable {
    cursor: grab;
}

.ecw-marquee-wrapper.ecw-dragging {
    cursor: grabbing;
}

.ecw-marquee-wrapper.ecw-dragging .ecw-marquee-inner {
    transition: none !important;
}

/* Column Based Widths */
.ecw-marquee-columns-1 .ecw-marquee-item {
    width: calc(100vw - 40px);
    flex-shrink: 0;
}

.ecw-marquee-columns-2 .ecw-marquee-item {
    width: calc(50vw - 30px);
    flex-shrink: 0;
}

.ecw-marquee-columns-3 .ecw-marquee-item {
    width: calc(33.33vw - 26px);
    flex-shrink: 0;
}

.ecw-marquee-columns-4 .ecw-marquee-item {
    width: calc(25vw - 25px);
    flex-shrink: 0;
}

.ecw-marquee-columns-5 .ecw-marquee-item {
    width: calc(20vw - 24px);
    flex-shrink: 0;
}

.ecw-marquee-columns-6 .ecw-marquee-item {
    width: calc(16.66vw - 23px);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .ecw-marquee-columns-tablet-1 .ecw-marquee-item {
        width: calc(100vw - 40px);
        flex-shrink: 0;
    }

    .ecw-marquee-columns-tablet-2 .ecw-marquee-item {
        width: calc(50vw - 30px);
        flex-shrink: 0;
    }

    .ecw-marquee-columns-tablet-3 .ecw-marquee-item {
        width: calc(33.33vw - 26px);
        flex-shrink: 0;
    }

    .ecw-marquee-columns-tablet-4 .ecw-marquee-item {
        width: calc(25vw - 25px);
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .ecw-marquee-columns-mobile-1 .ecw-marquee-item {
        width: calc(100vw - 40px);
        flex-shrink: 0;
    }

    .ecw-marquee-columns-mobile-2 .ecw-marquee-item {
        width: calc(50vw - 30px);
        flex-shrink: 0;
    }
}

.ecw-counter-x-number-wrapper {
    display: inline-flex;
    vertical-align: middle;
    line-height: 1;
}