/* Container styles */
.tabbed-content-container {
    padding: 0;
    margin: 0;
}

/* Tabs navigation */
.tabbed-content-tabs {
    padding: 0;
    background: #092B4C; /* Blue background for the tab container */
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    overflow: hidden;
    margin-top: -1px; /* Remove any gap between panels and tabs */
}

.tabbed-content-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 !important;
    justify-content: space-between;
}

.tabbed-content-tabs li {
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
    background-color: #092B4C; /* Blue background for inactive tabs */
    text-align: center;
    position: relative;
    width: 100%;
}

.tabbed-content-tabs li.active {
    background-color: #ffffff; /* White background for active tab */
    margin-bottom: -1px; /* Fix for blue pixel showing through */
    box-shadow: 0 1px 0 #ffffff; /* Add a small white shadow to cover any gap */
}

/* Create the "bleeding" effect by adding a pseudo-element */
.tabbed-content-tabs li.active::before {
    content: "";
    position: absolute;
    top: -10px; /* Extend above the tab */
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #ffffff;
}

.tabbed-content-tabs li a {
    display: block;
    padding: 20px 30px; /* Increased padding for better appearance */
    text-decoration: none;
    height: 100%;
    width: 100%;
    color: #ffffff; /* Text color for inactive tabs */
    font-weight: 500; /* Medium weight for better readability */
}

.tabbed-content-tabs li.active a {
    color: #092B4C; /* Blue text color for active tab */
}

.tabbed-content-tabs li img {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Handle active/inactive tab images */
.tabbed-content-tabs li .tab-active {
    display: none;
}

.tabbed-content-tabs li .tab-inactive {
    display: inline-block;
    color: #ffffff; /* Text color for inactive state */
}

.tabbed-content-tabs li.active .tab-active {
    display: inline-block;
    color: #092B4C; /* Text color for active state */
}

.tabbed-content-tabs li.active .tab-inactive {
    display: none;
}

/* Content panels */
.tabbed-content-panels {
    padding: 50px;
    background: #fff;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
}

.tabbed-content-panel {
    display: none;
}

.tabbed-content-panel.active {
    display: block;
}

.tabbed-content-row {
    display: flex;
    flex-wrap: wrap;
}

.tabbed-content-image {
    flex: 0 0 50%;
    padding-right: 25px;
}

.tabbed-content-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 26px;
}

.tabbed-content-text {
    flex: 0 0 50%;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tabbed-content-row {
        flex-direction: column;
    }
    
    .tabbed-content-image,
    .tabbed-content-text {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 20px;
    }
}
