/* Listeo Taxonomy Tabs Widget Styles */
.services-container {
    margin: 0 auto;
    background-color: transparent;
    border-radius: 20px;
    overflow: hidden;
}

.services-container.switching {
    pointer-events: none;
}

.services-nav {
    display: flex;
    justify-content: center;
    padding: 0;
    background-color: white;
    /* border-bottom: 2px solid #e8f4f0; */
    flex-wrap: wrap;
    gap: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    color: var(--listeo-primary-color);
    background: var(--listeo-primary-color-light);
}

.nav-item.active::after {
    display: none;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--listeo-primary-color-light);
    border-radius: 2px;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 3px;
    color: #6c757d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: #6c757d;
    transition: fill 0.3s ease;
}

.nav-icon svg path,
.nav-icon svg circle,
.nav-icon svg rect,
.nav-icon svg polygon {
    fill: #6c757d;
    transition: fill 0.3s ease;
}

.nav-item.active .nav-icon {
    color: var(--listeo-primary-color);
}

.nav-item.active .nav-icon svg {
    fill: var(--listeo-primary-color);
}

.nav-item.active .nav-icon svg path,
.nav-item.active .nav-icon svg circle,
.nav-item.active .nav-icon svg rect,
.nav-item.active .nav-icon svg polygon {
    fill: var(--listeo-primary-color);
}

.nav-label {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 20px;
    margin-top: 3px;
}

.nav-item.active .nav-label {
    color: var(--listeo-primary-color);
}

.content-area {
    position: relative;
    min-height: var(--content-height, 500px);
    transition: min-height 0.4s ease-out;
    margin-top: 20px;
    overflow: hidden;
}

.content-area .tab-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.services-container .tab-content {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 500px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: visibility 0s linear 0.2s, opacity 0.1s ease-in, transform 0.4s ease-in;
    border-radius: 20px;
    background-color: var(--tab-bg-color, #e8f4f0);
    padding: 100px 50px;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.services-container .tab-content.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: auto;
    z-index: 2;
}

.content-background-image {
    position: absolute;
    top: 0;
    right: 50px;
    width: 80%;
    height: calc(100% - 100px);
    border-radius: 15px;
    overflow: hidden;
    z-index: 10;
    transform: translateY(-50%);
    top: 50%;
}

.content-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 50%;
    z-index: 20;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active .content-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 10px;
}

p.content-description  {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 26px;
}

.content-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    align-items: center;
}

.check-icon {
    color: var(--listeo-primary-color);
    font-size: 12px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--light-pink-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Button styles */
.content-button-wrapper {
    margin-top: 20px;
}

.content-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--listeo-primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 65px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.13s ease;
    cursor: pointer;
    border: none;

}

.content-button:hover {
    background: color-mix(in srgb, var(--listeo-primary-color) 85%, black);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.content-button .button-icon {
    font-size: 16px;
}

.content-button .button-text {
    flex: 1;
}
.services-nav svg path,
.services-nav svg circle,
.services-nav svg rect,
.services-nav svg polygon {
    fill: #666 !important;
    transition: fill 0.3s ease;
}

.services-nav .active svg path,
.services-nav .active svg circle,
.services-nav .active svg rect,
.services-nav .active svg polygon {
    fill: var(--listeo-primary-color) !important;
    transition: fill 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        min-height: 450px;
        height: var(--content-height) !important;
        margin-top: 0;
    }
    .services-nav {
        padding: 10px 15px;
        gap: 5px;
    }
   .services-container .tab-content {
        flex-direction: column;
        min-height: 400px;
        padding: 40px 20px;
    }

    .content-area .tab-content {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 15px;
        width: calc(100% - 45px);
    }

    .content-background-image {
        position: static;
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
        transform: none;
    }

    .content-card {
        width: 100%;
        padding: 30px 20px;
        margin-top: 0;
    }

    .content-title {
        font-size: 24px;
    }

    .content-item {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .nav-icon {
        font-size: 18px;
        margin-bottom: 0px;
    }

    .nav-label {
        font-size: 11px;
        padding: 0; margin-bottom: -5px;
    }

    .content-area {
        min-height: 350px;
    }

    .services-container .tab-content {
        min-height: 350px;
        padding: 30px 15px;
    }

    .content-background-image {
        height: 250px;
    }

    .content-card {
        padding: 20px 25px;
    }

    .content-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .content-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .content-item {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .check-icon {
        font-size: 12px;
        margin-right: 10px;
    }

    .content-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Dark Mode Styles */
#dark-mode .services-nav {
    background-color: #2a2a2a;
}

#dark-mode .nav-item {
    color: #e0e0e0;
}

#dark-mode .nav-item:hover {
    background-color: #3a3a3a;
}

#dark-mode .nav-item.active {
    color: var(--listeo-primary-color);
    background: rgba(var(--listeo-primary-color-rgb), 0.2);
}

#dark-mode .nav-icon {
    color: #b0b0b0;
}

#dark-mode .nav-item.active .nav-icon {
    color: var(--listeo-primary-color);
}

#dark-mode .nav-label {
    color: #b0b0b0;
}

#dark-mode .nav-item.active .nav-label {
    color: var(--listeo-primary-color);
}

#dark-mode .services-container .tab-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

#dark-mode .content-card {
    background: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

#dark-mode .content-title {
    color: #ffffff;
}

#dark-mode .content-description {
    color: #b0b0b0;
}

#dark-mode .content-item {
    color: #e0e0e0;
}

#dark-mode .check-icon {
    color: var(--listeo-primary-color);
    background-color: rgba(var(--listeo-primary-color-rgb), 0.2);
}

#dark-mode .content-button {
    background: var(--listeo-primary-color);
    color: #ffffff;
}

#dark-mode .content-button:hover {
    background: color-mix(in srgb, var(--listeo-primary-color) 85%, white);
    color: #ffffff;
}

#dark-mode .no-content-message {
    color: #999999 !important;
}

/* Dark Mode Admin Editor Styles */
#dark-mode .elementor-editor-active .tab-content {
    background: #2a2a2a;
    border-color: #444444;
    color: #e0e0e0;
}

#dark-mode .elementor-editor-active .tab-content.active {
    background: #333333;
    border-color: #71d7f7;
}

#dark-mode .elementor-editor-active .tab-content::before {
    color: #b0b0b0;
    background: #1a1a1a;
}

#dark-mode .elementor-editor-active .no-content-message {
    background: #3a2a1a;
    border-color: #5a4a2a;
    color: #d4b886 !important;
}
