/* Tabbed Accordion Media Widget Styles */

.tamw-accordion-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 40px;
}

.tamw-accordion-content {
    flex: 1 1 50%;
    min-width: 0;
}

.tamw-accordion-media {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
}

/* Layout Direction - Content Right / Media Left */
.tamw-accordion-wrapper.content-right {
    flex-direction: row-reverse;
}

/* Accordion Items */
.tamw-accordion-item {
    padding: 15px 20px;
    padding-left: 23px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.tamw-accordion-item:hover {
    background-color: rgba(1, 118, 211, 0.05);
}

.tamw-accordion-item.active {
    border-left-color: #0176D3;
    background-color: transparent;
}

/* Accordion Title */
.tamw-accordion-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #181818;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.tamw-accordion-item.active .tamw-accordion-title {
    color: #0176D3;
}

/* Accordion Text */
.tamw-accordion-text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.tamw-accordion-text p {
    margin: 0 0 10px;
}

.tamw-accordion-text p:last-child {
    margin-bottom: 0;
}

/* Media Items */
.tamw-media-item {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tamw-media-item.active {
    display: block;
    opacity: 1;
}

.tamw-media-item img,
.tamw-media-item video,
.tamw-media-item iframe {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tamw-media-item iframe {
    aspect-ratio: 16 / 9;
}

/* Video Wrapper */
.tamw-video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tamw-video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* Play Button */
.tamw-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.tamw-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.tamw-play-button svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    margin-left: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .tamw-accordion-wrapper {
        flex-direction: column;
    }

    .tamw-accordion-content,
    .tamw-accordion-media {
        width: 100%;
    }

    .tamw-accordion-media {
        order: -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .tamw-accordion-title {
        font-size: 16px;
    }

    .tamw-accordion-text {
        font-size: 14px;
    }

    .tamw-play-button {
        width: 50px;
        height: 50px;
    }

    .tamw-play-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .tamw-accordion-item {
    cursor: default;
}
