/*  */
.cred-carousel-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.cred-carousel {
    position: relative;
    width: 100%;
    min-height: 670px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 1s ease-out;
}

.cred-slide {
    position: absolute;
    width: 500px;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    transform-style: preserve-3d;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.cred-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: -1;
}

.cred-slide-image {
    width: 100%;
    height: 45vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    border-radius: 8px;
}

.cred-slide-title {
    font-size: clamp(1rem, 0.7233rem + 0.6472vw, 1.5rem);
    color: var(--primary-color);
}

.cred-slide-description {
    font-size: clamp(0.875rem, 0.8143rem + 0.2589vw, 1.125rem);
}

/* Slide positions - Desktop */
.cred-slide[data-position="0"] {
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 5;
}

.cred-slide[data-position="1"] {
    transform: translateX(250px) translateZ(-100px) scale(0.9);
    z-index: 4;
}

.cred-slide[data-position="2"] {
    transform: translateX(450px) translateZ(-200px) scale(0.8);
    z-index: 3;
}

.cred-slide[data-position="-1"] {
    transform: translateX(-250px) translateZ(-100px) scale(0.9);
    z-index: 4;
}

.cred-slide[data-position="-2"] {
    transform: translateX(-450px) translateZ(-200px) scale(0.8);
    z-index: 3;
}

/* Hide slides beyond position 2 on desktop */
.cred-slide[data-position="3"],
.cred-slide[data-position="-3"],
.cred-slide[data-position="4"],
.cred-slide[data-position="-4"] {
    pointer-events: none;
    transform: translateX(600px) translateZ(-300px) scale(0.7);
}

.cred-slide[data-position="-3"],
.cred-slide[data-position="-4"] {
    transform: translateX(-600px) translateZ(-300px) scale(0.7);
}

/* Navigation buttons */
.cred-nav-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid #486BB1;
}

.cred-nav-button:hover {
    background: white; transform: translateY(-50%) scale(1.1);}
.cred-nav-button.cred-prev {left: 20px;}
.cred-nav-button.cred-next {right: 20px;}
.cred-nav-button::before {
    content: '';
    width: 16px;
    height: 16px;
    border-top: 3px solid #486BB1;
    border-right: 3px solid #486BB1;
}

.cred-nav-button.cred-prev::before {
    transform: rotate(-135deg);
}

.cred-nav-button.cred-next::before {
    transform: rotate(45deg);
}

/* Responsive design */
@media (max-width: 1599px) {
    .cred-slide-image {
        height: 35vh;
    }
}
@media (min-width: 768px){
    .cred-carousel-container{
        padding-bottom: 150px;
    }
}
@media (max-width: 1024px) {
    .cred-carousel-container {padding: 0 60px;}
    .cred-slide {
        width: 300px;
        padding: 20px;
    }

    .cred-slide[data-position="1"] {
        transform: translateX(200px) translateZ(-80px) scale(0.95);
    }

    .cred-slide[data-position="-1"] {
        transform: translateX(-200px) translateZ(-80px) scale(0.95);
    }

    .cred-slide[data-position="2"] {
        transform: translateX(350px) translateZ(-150px) scale(0.85);
    }

    .cred-slide[data-position="-2"] {
        transform: translateX(-350px) translateZ(-150px) scale(0.85);
    }
}

@media (min-width: 1025px) and (max-width: 1600px) {
    .cred-carousel-container {
        margin: 0 auto;
        min-height: 500px;
    }
    .cred-carousel {min-height: 500px;}
    .cred-slide {width: 400px; padding: 20px;}
    .cred-slide[data-position="0"] {
        transform: translateX(0) translateZ(0) scale(1);
        z-index: 5;
    }

    .cred-slide[data-position="1"] {
        transform: translateX(320px) translateZ(-80px) scale(0.9);
        z-index: 4;
    }

    .cred-slide[data-position="-1"] {
        transform: translateX(-320px) translateZ(-80px) scale(0.9);
        z-index: 4;
    }

    .cred-slide[data-position="2"] {
        transform: translateX(600px) translateZ(-150px) scale(0.8);
        z-index: 3;
    }

    .cred-slide[data-position="-2"] {
        transform: translateX(-600px) translateZ(-150px) scale(0.8);
        z-index: 3;
    }
}

@media (max-width: 1440px){
    .cred-carousel-container {
        margin: 0 auto;
        min-height: 430px;
    }
    .cred-carousel {min-height: 430px;}
}

@media (max-width: 768px) {
    .cred-carousel-container {
        padding: 0 40px;
        min-height: 400px;
    }

    .cred-carousel {
        min-height: 350px;
    }

    .cred-slide {
        width: 300px;
        padding: 20px;
    }

    .cred-slide-title {
        margin-bottom: 8px;
    }

    .cred-slide-description {
        line-height: 1.3;
    }

    .cred-slide[data-position="0"] {
        transform: translateX(0) translateZ(0) scale(1);
        z-index: 5;
    }

    .cred-slide[data-position="1"] {
        transform: translateX(150px) translateZ(-50px) scale(0.9);
        z-index: 4;
    }

    .cred-slide[data-position="-1"] {
        transform: translateX(-150px) translateZ(-50px) scale(0.9);
        z-index: 4;
    }

    .cred-slide[data-position="2"],
    .cred-slide[data-position="-2"],
    .cred-slide[data-position="3"],
    .cred-slide[data-position="-3"],
    .cred-slide[data-position="4"],
    .cred-slide[data-position="-4"] {
        display: none;
        pointer-events: none;
    }

    .cred-nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cred-carousel-container {
        padding: 0 30px;
        min-height: 550px;
        overflow-x: hidden;
    }

    .cred-carousel {
        min-height: 500px;
    }

    .cred-slide-title {
        margin-bottom: 6px;
    }

    .cred-slide-description {
        line-height: 1.2;
    }

    .cred-slide[data-position="1"] {
        transform: translateX(120px) translateZ(-40px) scale(0.85);
    }

    .cred-slide[data-position="-1"] {
        transform: translateX(-120px) translateZ(-40px) scale(0.85);
    }

    .cred-nav-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .cred-nav-button.cred-prev {
        left: 10px;
    }

    .cred-nav-button.cred-next {
        right: 10px;
    }

    .cred-slide-image {
        height: 32vh;
    }
}

.cred-carousel.cred-dragging {
    cursor: grabbing;
}

.cred-carousel.cred-dragging .cred-slide {
    pointer-events: none;
}

.cred-spacer {
    height: 120vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cred-carousel-container {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.cred-carousel-container.cred-carousel-visible {
    transform: scale(1.02);
}

/* Pulse animation for navigation buttons */
@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.9);
    }

    50% {
        transform: translateY(-50%) scale(1);
    }

    100% {
        transform: translateY(-50%) scale(0.9);
    }
}

/* Entrance animation states */
.cred-slide {
    transition: all 0s ease-out, transform 0.8s ease-out;
}

.cred-slide-in-right {
    animation-name: slideInRight;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-in-left {
    animation-name: slideInLeft;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-left {
    animation-name: slideOutLeft;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-right {
    animation-name: slideOutRight;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 2 !important;
}

.cred-slide-in-right-blaptop {
    animation-name: slideInRightLaptopb;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-in-left-blaptop {
    animation-name: slideInLeftLaptopb;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-left-blaptop {
    animation-name: slideOutLeftLaptopb;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-right-blaptop {
    animation-name: slideOutRightLaptopb;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 2 !important;
}

.cred-slide-in-right-laptop {
    animation-name: slideInRightLaptop;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-in-left-laptop {
    animation-name: slideInLeftLaptop;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-left-laptop {
    animation-name: slideOutLeftLaptop;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-right-laptop {
    animation-name: slideOutRightLaptop;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 2 !important;
}

.cred-slide-in-right-tablet {
    animation-name: slideInRightTablet;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-in-left-tablet {
    animation-name: slideInLeftTablet;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-left-tablet {
    animation-name: slideOutLeftTablet;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 3 !important;
}

.cred-slide-out-right-tablet {
    animation-name: slideOutRightTablet;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 2 !important;
}

.cred-slide-in-right-mobile {
    animation-name: slideInRightMobile;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 4 !important;
}

.cred-slide-in-left-mobile {
    animation-name: slideInLeftMobile;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 4 !important;
}

.cred-slide-out-left-mobile {
    animation-name: slideOutLeftMobile;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 4 !important;
}

.cred-slide-out-right-mobile {
    animation-name: slideOutRightMobile;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    z-index: 4 !important;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(830px) translateZ(-100px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(630px) translateZ(-100px) scale(0.8);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(-630px) translateZ(-100px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(-830px) translateZ(-100px) scale(0.7);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-830px) translateZ(-100px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(-630px) translateZ(-100px) scale(0.8);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(630px) translateZ(-100px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(830px) translateZ(-100px) scale(0.7);
    }
}

@keyframes slideInRightLaptopb {
    0% {
        opacity: 0;
        transform: translateX(530px) translateZ(-80px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(500px) translateZ(-80px) scale(0.8);
    }
}

@keyframes slideOutLeftLaptopb {
    0% {
        opacity: 1;
        transform: translateX(-500px) translateZ(-80px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(-530px) translateZ(-80px) scale(0.7);
    }
}

@keyframes slideInLeftLaptopb {
    0% {
        opacity: 0;
        transform: translateX(-530px) translateZ(-80px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(-500px) translateZ(-80px) scale(0.8);
    }
}

@keyframes slideOutRightLaptopb {
    0% {
        opacity: 1;
        transform: translateX(500px) translateZ(-80px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(530px) translateZ(-80px) scale(0.7);
    }
}

@keyframes slideInRightLaptop {
    0% {
        opacity: 0;
        transform: translateX(530px) translateZ(-80px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(440px) translateZ(-80px) scale(0.8);
    }
}

@keyframes slideOutLeftLaptop {
    0% {
        opacity: 1;
        transform: translateX(-440px) translateZ(-80px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(-530px) translateZ(-80px) scale(0.7);
    }
}

@keyframes slideInLeftLaptop {
    0% {
        opacity: 0;
        transform: translateX(-530px) translateZ(-80px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(-440px) translateZ(-80px) scale(0.8);
    }
}

@keyframes slideOutRightLaptop {
    0% {
        opacity: 1;
        transform: translateX(440px) translateZ(-80px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(530px) translateZ(-80px) scale(0.7);
    }
}

@keyframes slideInRightTablet {
    0% {
        opacity: 0;
        transform: translateX(500px) translateZ(-150px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(350px) translateZ(-150px) scale(0.8);
    }
}

@keyframes slideOutLeftTablet {
    0% {
        opacity: 1;
        transform: translateX(-350px) translateZ(-150px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(-500px) translateZ(-150px) scale(0.7);
    }
}

@keyframes slideInLeftTablet {
    0% {
        opacity: 0;
        transform: translateX(-500px) translateZ(-150px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(-350px) translateZ(-150px) scale(0.8);
    }
}

@keyframes slideOutRightTablet {
    0% {
        opacity: 1;
        transform: translateX(350px) translateZ(-150px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(500px) translateZ(-150px) scale(0.7);
    }
}

@keyframes slideInRightMobile {
    0% {
        opacity: 0;
        transform: translateX(230px) translateZ(-40px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(120px) translateZ(-40px) scale(0.8);
    }
}

@keyframes slideOutLeftMobile {
    0% {
        opacity: 1;
        transform: translateX(-120px) translateZ(-40px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(-230px) translateZ(-40px) scale(0.7);
        display: none;
    }
}

@keyframes slideInLeftMobile {
    0% {
        opacity: 0;
        transform: translateX(-230px) translateZ(-40px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateX(-120px) translateZ(-40px) scale(0.8);
    }
}

@keyframes slideOutRightMobile {
    0% {
        opacity: 1;
        transform: translateX(120px) translateZ(-40px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateX(230px) translateZ(-40px) scale(0.7);
    }
}

.cred-slide-img-1 {
    background-image: url('https://www.drcatalyst.com/wp-content/uploads/2025/07/Practice-Expansion.png');
}

.cred-slide-img-2 {
    background-image: url('https://www.drcatalyst.com/wp-content/uploads/2025/07/Hospital-Credentialing.png');
}

.cred-slide-img-3 {
    background-image: url('https://www.drcatalyst.com/wp-content/uploads/2025/07/Practice-Start-Up-1.png');
}

.cred-slide-img-4 {
    background-image: url('https://www.drcatalyst.com/wp-content/uploads/2025/07/Short-Term-Projects.png');
}

.cred-slide-img-5 {
    background-image: url('https://www.drcatalyst.com/wp-content/uploads/2025/07/Credentialing-for-multiple-specialties.png');
}