/* ------------------------------------- */
/* Blocks Slider Section Styles          */
/* ------------------------------------- */


.ocb-blocks-section {
    position: relative;
    padding: 90px 0 0 0;
    max-width: 1360px;
    margin: 0 auto;
    color: #ffffff;
    z-index: 1;
    overflow: visible; /* Ensure bg layer isn't clipped incorrectly */
}

.ocb-blocks-bg-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* Elementor controls will manage specific border-radius, but here's a default for bottom corners */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    z-index: 0; 
}

.ocb-blocks-header {
    position: relative; /* Ensure it stays above bg layer */
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0;
    gap: 50px;
}

.ocb-blocks-header-left {
    flex: 1 1 655px;
}

.ocb-blocks-header-right {
    flex: 1 1 655px;
}

.ocb-blocks-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ocb-blocks-description {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e6ed;
}
.ocb-blocks-description p {
    margin: 0;
}

/* Slider */
.ocb-blocks-slider-container {
    position: relative;
    z-index: 2; /* Move above bg layer */
    padding: 20px 0 60px 0; /* extra padding for tooltip */
    min-height: 180px; /* Prevent collapse if swiper is slow */
    padding: 0;
}

.ocb-swiper {
    padding: 0 130px 70px 0 !important;
    overflow: hidden;
}

.ocb-swiper .swiper-wrapper {
    display: flex;
    box-sizing: content-box;
}

.ocb-swiper .swiper-slide {
    flex-shrink: 0;
}

.ocb-block-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 0 0;
}

/* Icon Outer borders */
.ocb-block-icon-outer {
    position: relative;   
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 11px solid #fff;
}

/* .swiper-slide-active .ocb-block-icon-outer {
    transform: scale(1.15);
} */

.ocb-block-icon {
    width: 92px;
    height: 92px;
    background-color: #0c2041;
    border: 3px solid #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 0 0 4px #0c2041, 0 0 0 6px rgba(255,255,255, 0.4); */
    /* box-shadow: 0 0 0 11px #fff; */
    transition: all 0.3s ease;
    z-index: 2;
}
.ocb-block-icon .ocb-icon {
    height: 46px;
 }
 .ocb-block-icon .ocb-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
 }

.ocb-block-icon i {
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
}
.ocb-block-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

/* Active State */
.swiper-slide-active .ocb-block-icon {
    background-color: #4a7dff; /* Active blue */
    border-color: rgba(0,0,0,0.7);
    box-shadow: 0 4px 15px 0 rgba(19, 44, 86, 0.33), 0 14px 54px 0 rgba(0, 0, 0, 0.25) inset;

}
.swiper-slide-active .ocb-block-icon i {
    color: #ffffff;
}

/* Connecting line (optional, imitating the line behind circles) */
.ocb-blocks-slider-container::before {
    content: '';
    position: absolute;
    top: 50%; /* roughly */
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
    transform: translateY(-20px);
}

/* Tooltip */
.ocb-block-tooltip {
    position: absolute;
    top: 115px;
    background-color: #ffffff;
    color: #4a7dff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;    
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: none;
    min-width: 150px;
    z-index: 10;
}

.ocb-block-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.swiper-slide-active .ocb-block-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Arrows */
.ocb-swiper-prev,
.ocb-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50px);
    width: 36px;
    height: 36px;
    background-color: #3B82F6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}
.ocb-swiper-prev:hover,
.ocb-swiper-next:hover {
    background-color: #ffffff;
    color: #3B82F6;
    border-color: #3B82F6;
}

.ocb-swiper-prev {
    left: 0;
}

.ocb-swiper-next {
    right: 0;
}
.ocb-swiper-prev.swiper-button-disabled,
.ocb-swiper-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .ocb-blocks-header {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    .ocb-blocks-title {
        font-size: 30px;
    }
}

/* Tabs Content */
.ocb-blocks-tabs-content {
    margin-top: -30px;
    position: relative;
    padding: 0 0;
}

.ocb-inner-tabs-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.ocb-inner-tabs-container.has-sidebar {
    background: #ffffff;    
    border-radius: 12px;
    /*box-shadow: 0 10px 40px rgba(0,0,0,0.08);*/ /* Stronger shadow */
    min-height: 550px; /* Ensure sufficient space for content */
}

/* Left Sidebar Menu */
.ocb-inner-tabs-menu {
    flex: 0 0 325px;
    background: #ffffff;
    /* border-right: 1px solid #e0e6ed; */
    max-height: 550px; /* Limit height to prevent super long sidebar */
    overflow-y: auto;  /* Enable vertical scrollbar */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4a7dff #f0f4f8; /* Firefox */
}

/* Custom Scrollbar for Chrome/Safari */
.ocb-inner-tabs-menu::-webkit-scrollbar {
    width: 6px;
}
.ocb-inner-tabs-menu::-webkit-scrollbar-track {
    background: #f0f4f8;
}
.ocb-inner-tabs-menu::-webkit-scrollbar-thumb {
    background: #4a7dff;
    border-radius: 10px;
}

.ocb-inner-tabs-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ocb-inner-tabs-menu li {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 400;
    color: #04255C;
    opacity: 0.7;
    cursor: pointer;
    border-bottom: 1px solid rgb(4, 37, 92, 0.2);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    line-height: normal;
}

.ocb-inner-tabs-menu li:last-child {
    border-bottom: none;
}

.ocb-inner-tabs-menu li:hover {
    background-color: #f0f4ff;
    color: #04255C;
    opacity: 1;
    border-radius: 5px 5px 0 0;    
    background: #D8E5FB;
}
.ocb-inner-tabs-menu li.active {
    background-color: #f0f4ff;
    color: #04255C;
    opacity: 1;
    border-radius: 5px 5px 0 0;    
    background: #D8E5FB;
}

.ocb-inner-tabs-menu li.active::after {
    content: '';
    position: absolute;
   left: 0;
   bottom: 0;
   height: 3px;
   width: 100%;
   background-color: #3B82F6;
}

/* Right Side Content */
.ocb-inner-tabs-content {
    flex: 1;
    background: #ffffff;
    padding: 0 0 0 60px;
    max-width: calc(100% - 325px); 
}

.ocb-inner-tab-content-item {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}
.ocb-inner-tab-content-item .ocb-tab-image { 
    height: 550px;
 }


.ocb-inner-tab-content-item.active {
    display: block;
}

.ocb-tab-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;    
}

@media (max-width: 1366px) {
    .ocb-blocks-header { gap: 40px; }
    .ocb-blocks-header-left, .ocb-blocks-header-right { flex: 1 1 600px; }
    .ocb-swiper {
        padding: 0 120px 70px 0 !important;    
    }
}

@media (max-width: 1199px) {
    .ocb-blocks-section { padding: 50px 0 0; }
    .ocb-blocks-header { align-items: flex-start; }
    .ocb-blocks-header-left, .ocb-blocks-header-right { flex: 1 1 450px; }
    .ocb-swiper { padding: 0 180px 70px 0 !important; }
    .ocb-blocks-bg-layer { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
    .ocb-blocks-tabs-content { margin-top: 0; }
}

@media (max-width: 991px) {
    .ocb-blocks-section { padding: 40px 0 0; }
    .ocb-blocks-header { padding: 0; align-items: center; margin-bottom: 30px; }
    .ocb-blocks-title { font-size: 30px; }
    .ocb-blocks-header-left, .ocb-blocks-header-right { flex: auto; }
    .ocb-blocks-header { gap: 20px; }
    .ocb-swiper { padding: 0 0px 70px 0 !important; }
    .ocb-inner-tabs-content { padding: 30px 0 0; flex: 0; }
    .ocb-inner-tab-content-item .ocb-tab-image { height: 400px; }
}

@media (max-width: 767px) {
    .ocb-inner-tabs-container{flex-direction:column;}
    .ocb-inner-tabs-menu{flex:1 1 100%;border-right:none;border-bottom:1px solid #e0e6ed;min-height:auto;}
    .ocb-inner-tabs-content{max-width:100%;}
    .ocb-blocks-section { padding: 30px 0 0; }
    .ocb-blocks-header { gap: 10px; }
    .ocb-blocks-slider-container { margin-top: -30px; }
    .ocb-swiper-prev, .ocb-swiper-next { width: 30px; height: 30px; }
    .ocb-block-icon { width: 80px; height: 80px; }
    .ocb-inner-tab-content-item .ocb-tab-image { height: 200px; }
}

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