/* Curved Tabs Elementor Widget Styles */
.curved-tabs-widget {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 20px;
    border-radius: 20px;
}

/* Curved Tabs Override for Existing Elementor Tabs */
.curved-tabs-elementor-override {
    padding: 0px !important;
    border-radius: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    position: relative !important;
    overflow: visible !important;
}

.curved-tabs-elementor-override .e-n-tabs {
    position: relative;
    display:initial !Important;
    max-width: 1200px;
    margin: 0 auto;
}

.curved-tabs-elementor-override .curved-tabs-container {
    position: absolute;
    height: 95px;
    margin-bottom: -2px;
    z-index: 1;
    width: 100%;
    left: 0;
    top: -95px;
}

.curved-tabs-elementor-override .e-n-tab-title {
    position: absolute !important;
    top: 20px !important;
    left: 0px !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    height: 60px !important;
    width: 90% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.curved-tabs-elementor-override .curved-tab-background {
    position: absolute !important;
    top: 0 !important;
    width: 502px !important;
    height: 95px !important;
    transition: all 0.3s ease !important;
    pointer-events: auto;
}

.curved-tabs-elementor-override .curved-tab-background svg {
    pointer-events: none !important;
}

.curved-tabs-elementor-override .curved-tab-background svg path {
    transition: fill 0.3s ease;
}

.curved-tabs-elementor-override .curved-tab-background[data-index="0"] {
    left: 0;
}

.curved-tabs-elementor-override .curved-tab-background[data-index="1"] {
    left: 380px;
}

.curved-tabs-elementor-override .curved-tab-background[data-index="2"] {
    left: 760px;
}

.curved-tabs-elementor-override .curved-tab-background[data-index="3"] {
    left: 1140px;
}

.curved-tabs-elementor-override .curved-tab-background[data-index="4"] {
    left: 1520px;
}

.curved-tabs-elementor-override .curved-tab-background:not(.inactive) svg path {
    fill: #EAF7F0;
}

.curved-tabs-elementor-override .curved-tab-background.inactive svg path {
    fill: #71CC98;
}

.curved-tabs-elementor-override .curved-tabs-wrapper {
    position: relative;
    z-index: 10;
}

.curved-tabs-elementor-override .e-n-tabs-heading {
    position: relative !important;
    display: flex !important;
    height: 95px !important;
    align-items: flex-end !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.curved-tabs-elementor-override .curved-tab-background .curved-tab-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 18px !important;
    font-weight: 500 !important;
    outline: none;
    transition: all 0.3s ease;
    position: absolute !important;
    color: #666 !important;
    padding: 0 !important;
    height: 60px !important;
    margin: 0 !important;
    width: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    top: 20px !important;
    left: 111px !important;
    z-index: 10 !important;
    font-family: inherit !important;
}

.curved-tabs-elementor-override .curved-tab-background .curved-tab-btn[aria-selected="true"] {
    background: none !important;
}

.curved-tabs-elementor-override .curved-tab-background .curved-tab-btn[aria-selected="false"] {
    background: none !important;
}

/* Hide original tabs */
.curved-tabs-elementor-override .e-n-tab-title[style*="display: none"] {
    display: none !important;
}

.curved-tabs-elementor-override .e-n-tabs-content {
    background-color: #EAF7F0 !important;
    border-color: #EAF7F0 !important;
    border-radius: 0 20px 20px 20px !important;
    padding: 50px 60px !important;
    min-height: 500px !important;
    position: relative !important;
    z-index: 5 !important;
    margin-top:-1px !Important;
    border: none !important;
}

.curved-tabs-elementor-override .e-n-tabs-content .e-con {
    display: none;
    animation: fadeIn 0.3s ease;
}

.curved-tabs-elementor-override .e-n-tabs-content .e-con.e-active {
    display: block;
}

.curved-tabs-elementor-override .e-n-tabs-content h2 {
    color: #1a6b5c !important;
    margin-bottom: 20px;
    font-size: 28px;
}

.curved-tabs-elementor-override .e-n-tabs-content p {
    margin-bottom: 15px;
    color: #555 !important;
    line-height: 1.6;
}

/* Responsive Design for Override */
@media (max-width: 1200px) {
    .curved-tabs-elementor-override .curved-tab-background[data-index="1"] {
        left: 340px;
    }
    
    .curved-tabs-elementor-override .curved-tab-background[data-index="2"] {
        left: 680px;
    }
    
    .curved-tabs-elementor-override .curved-tab-background[data-index="3"] {
        left: 1020px;
    }
    
    .curved-tabs-elementor-override .e-n-tab-title:not(:first-child) {
        margin-left: 100px !important;
    }
    
    .curved-tabs-elementor-override .e-n-tab-title {
        width: 90% !important;
        padding: 0 50px !important;
    }
}

@media (max-width: 992px) {
    .curved-tabs-elementor-override .curved-tab-background[data-index="1"] {
        left: 300px;
    }
    
    .curved-tabs-elementor-override .curved-tab-background[data-index="2"] {
        left: 600px;
    }
    
    .curved-tabs-elementor-override .e-n-tab-title:not(:first-child) {
        margin-left: 80px !important;
    }
    
    .curved-tabs-elementor-override .e-n-tab-title {
        width: 240px !important;
        padding: 0 40px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .curved-tabs-elementor-override .curved-tabs-container {
        display: none;
    }

    .curved-tabs-elementor-override .curved-tab-background {
        display: none;
    }

    .curved-tabs-elementor-override .e-n-tabs-heading {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    .curved-tabs-elementor-override .e-n-tab-title {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 15px !important;
        height: 50px !important;
        margin-top: 0 !important;
    }

    .curved-tabs-elementor-override .e-n-tab-title[aria-selected="true"] {
        background-color: #7cc5a1 !important;
    }

    .curved-tabs-elementor-override .e-n-tab-title[aria-selected="false"] {
        background-color: #e0e0e0 !important;
    }

    .curved-tabs-elementor-override .e-n-tabs-content {
        padding: 30px;
        border-radius: 20px;
        min-height: 300px;
    }
    
    .curved-tabs-elementor-override .e-n-tabs-content h2 {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .curved-tabs-elementor-override {
        padding: 10px;
    }
    
    .curved-tabs-elementor-override .e-n-tabs-content {
        padding: 20px;
    }
    
    .curved-tabs-elementor-override .e-n-tabs-content h2 {
        font-size: 22px !important;
        margin-bottom: 15px;
    }
}

.curved-tabs-widget .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.curved-tabs-widget .tabs-container {
    position: absolute;
    height: 95px;
    margin-bottom: -2px;
    width: 100%;
    left: 0;
    top: -95px;
}

.curved-tabs-widget .tab-background {
    position: absolute;
    top: 0;
    width: 502px;
    height: 95px;
    transition: all 0.3s ease;
}

.curved-tabs-widget .tab-background svg path {
    transition: fill 0.3s ease;
}

.curved-tabs-widget .tab-background[data-index="0"] {
    left: 0;
}

.curved-tabs-widget .tab-background[data-index="1"] {
    left: 380px;
}

.curved-tabs-widget .tab-background[data-index="2"] {
    left: 760px;
}

.curved-tabs-widget .tab-background[data-index="3"] {
    left: 1140px;
}

.curved-tabs-widget .tab-background[data-index="4"] {
    left: 1520px;
}

/* Default colors - can be overridden by Elementor controls */
.curved-tabs-widget .tab-background:not(.inactive) svg path {
    fill: #7cc5a1;
}

.curved-tabs-widget .tab-background.inactive svg path {
    fill: #e0e0e0;
}

.curved-tabs-widget .tabs-wrapper {
    position: relative;
    display: flex;
    height: 100%;
    z-index: 10;
}

.curved-tabs-widget .tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    color: #333;
    padding: 0 60px;
    height: 60px;
    margin-top: 20px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.curved-tabs-widget .tab:not(:first-child) {
    margin-left: 120px;
}

.curved-tabs-widget .tab.active {
    color: #fff;
}

.curved-tabs-widget .tab:not(.active) {
    color: #666;
}

.curved-tabs-widget .content-wrapper {
    background-color: #f5f5f5;
    border-radius: 0 20px 20px 20px;
    padding: 50px 60px;
    min-height: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    margin-top: 95px;
}

.curved-tabs-widget .tab-content {
    display: none;
}

.curved-tabs-widget .tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.curved-tabs-widget .content-wrapper h2 {
    color: #1a6b5c;
    margin-bottom: 20px;
    font-size: 28px;
}

.curved-tabs-widget .content-wrapper p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .curved-tabs-widget .tab-background[data-index="1"] {
        left: 340px;
    }
    
    .curved-tabs-widget .tab-background[data-index="2"] {
        left: 680px;
    }
    
    .curved-tabs-widget .tab-background[data-index="3"] {
        left: 1020px;
    }
    
    .curved-tabs-widget .tab:not(:first-child) {
        margin-left: 100px;
    }
    
    .curved-tabs-widget .tab {
        width: 260px;
        padding: 0 50px;
    }
}

@media (max-width: 992px) {
    .curved-tabs-widget .tab-background[data-index="1"] {
        left: 300px;
    }
    
    .curved-tabs-widget .tab-background[data-index="2"] {
        left: 600px;
    }
    
    .curved-tabs-widget .tab:not(:first-child) {
        margin-left: 80px;
    }
    
    .curved-tabs-widget .tab {
        width: 240px;
        padding: 0 40px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .curved-tabs-widget .tabs-container {
        height: auto;
    }

    .curved-tabs-widget .tab-background {
        display: none;
    }

    .curved-tabs-widget .tabs-wrapper {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .curved-tabs-widget .tab {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 15px;
        height: 50px;
        margin-top: 0 !important;
    }

    .curved-tabs-widget .tab.active {
        background-color: #7cc5a1;
        color: #fff;
    }

    .curved-tabs-widget .tab:not(.active) {
        background-color: #e0e0e0;
        color: #666;
    }

    .curved-tabs-widget .content-wrapper {
        padding: 30px;
        border-radius: 20px;
        min-height: 300px;
    }
    
    .curved-tabs-widget .content-wrapper h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .curved-tabs-widget {
        padding: 10px;
    }
    
    .curved-tabs-widget .content-wrapper {
        padding: 20px;
    }
    
    .curved-tabs-widget .content-wrapper h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
}