/* Shared Layout */

.mb-page-wrapper {

    max-width: 1200px;

    margin: 100px auto;

    padding: 0 20px;

    font-family: 'Instrument Sans', sans-serif;

}



/* Overlapping Hero Section */

.mb-hero-flex {

    display: flex;

    align-items: center;

    gap: 50px;

    margin-bottom: 100px;

}



.mb-hero-text {

    flex: 1;

}



.mb-hero-text h1 {

    text-align: left;

    font-size: 3.5rem;

    line-height: 1.1;

    margin: 20px 0;

    font-weight: 800;

}



.mb-hero-text h1 span {

    color: #FF9D47;

}



.mb-badge {

    color: #059669;

    background: #F0EEFF;

    padding: 6px 16px;

    border-radius: 50px;

    font-weight: 600;

}



/* Fixed Overlap Logic */

.mb-image-stack {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

}



.mb-pill {
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
        border-radius: 50px !important; 
    /* margin-left: 100px; */
}

.mb-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-pill-main {
    width: 240px;
    height: 400px;
    border-radius:50px;
    z-index: 10;
    border: 10px solid #fff;
}

.mb-pill-side {

    width: 160px;

    height: 300px;

    border-radius: 50px;

    z-index: 5;

    filter: grayscale(20%);



}



.mb-overlap-left {

    margin-right: -10px;

}



.mb-overlap-right {

    margin-left: -10px;

}



/* Grid for Benefits/Stats */

.mb-content-grid {

    display: flex;

    /* grid-template-columns: repeat(auto-fit, minmax(300px, 3fr)); */

    gap: 10px;

    margin-top: 50px;

}



.mb-feature-card {

    background: #F9FAFF;

    padding: 40px;

    border-radius: 24px;

    text-align: center;

    border: 1px solid transparent;

}



.mb-feature-card:hover {

    border-color: #FF9D47;

    background: #fff;

    transform: translateY(-5px);

}



/* Buttons */

.mb-btn-primary {

    background: #059669;

    color: #fff;

    border: none;

    padding: 16px 35px;

    border-radius: 12px;

    font-weight: 700;

    cursor: pointer;

}

.mb-btn-primary:hover {

    background: #FF9D47;

    color: #fff;

    border: none;

    padding: 16px 35px;

    border-radius: 12px;

    font-weight: 700;

    cursor: pointer;

}





.mb-btn-secondary {

    background: transparent;

    border: 2px solid #EEE;

    padding: 16px 35px;

    border-radius: 12px;

    font-weight: 700;

    margin-left: 10px;

}



/* Mobile */

@media (max-width: 992px) {

    .mb-hero-flex {

        flex-direction: column;

        text-align: center;

    }



    .mb-image-stack {

        margin-top: 50px;

    }



    .mb-hero-text h1 {

        font-size: 2.5rem;

    }

}



/* Info Boxes */

.mb-info-split {

    display: flex;

    gap: 30px;

    margin-top: 50px;

}



.mb-info-box {

    flex: 1;

    background: #fff;

    border: 1px solid #eee;

    padding: 30px;

    border-radius: 24px;

}



.mb-intake-flex {

    display: flex;

    gap: 10px;

    margin: 15px 0;

}



.mb-intake-item {

    border: 2px solid #059669;

    /* border-color: #059669; */

    color: #059669;

    padding: 10px 25px;

    border-radius: 12px;

    font-weight: 600;

}



.mb-intake-item:hover {

    background-color: #059669;

    color: #ffffff;

    padding: 10px 25px;

    border-radius: 12px;

    font-weight: 600;

}



.mb-cost-row {

    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;

}



.mb-note {

    font-size: 13px;

    color: #999;

    margin-top: 15px;

}



/* Buttons */

.mb-btn-primary {

    background: #047857;

    color: white;

    border: none;

    padding: 16px 32px;

    border-radius: 12px;

    font-weight: 700;

    cursor: pointer;

}



.mb-btn-outline {

    background: transparent;

    border: 2px solid #eee;

    padding: 16px 32px;

    border-radius: 12px;

    margin-left: 10px;

    font-weight: 700;

    cursor: pointer;

}



:root {

  --pill-width: 200px;

  --pill-height: 300px;

  --animation-duration: 6s; /* Total time for one full loop */

}



.mb-image-stack {

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  height: 450px;

  perspective: 1000px; /* Essential for the 3D effect */

}



.mb-pill {

  position: absolute;

  width: var(--pill-width);

  height: var(--pill-height);

  border-radius: 100px; /* The "pill" shape */

  overflow: hidden;

  transition: all 0.5s ease-in-out;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

}



.mb-pill img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



/* Base Animation Logic */

/* We use keyframes to swap positions and scales over time */



.mb-pill-side.mb-overlap-left {

  animation: stack-cycle-left var(--animation-duration) infinite;

}



.mb-pill-main {

  animation: stack-cycle-main var(--animation-duration) infinite;

}



.mb-pill-side.mb-overlap-right {

  animation: stack-cycle-right var(--animation-duration) infinite;

}



/* Keyframes for the Central Focus (Middle Image) */

@keyframes stack-cycle-main {

  0%, 25% { transform: translateZ(100px) scale(1.2); z-index: 3; opacity: 1; }

  33%, 58% { transform: translateX(150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  66%, 91% { transform: translateX(-150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  100% { transform: translateZ(100px) scale(1.2); z-index: 3; }

}



/* Keyframes for the Left Image */

@keyframes stack-cycle-left {

  0%, 25% { transform: translateX(-150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  33%, 58% { transform: translateZ(100px) scale(1.2); z-index: 3; opacity: 1; }

  66%, 91% { transform: translateX(150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  100% { transform: translateX(-150px) translateZ(0) scale(0.8); z-index: 1; }

}



/* Keyframes for the Right Image */

@keyframes stack-cycle-right {

  0%, 25% { transform: translateX(150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  33%, 58% { transform: translateX(-150px) translateZ(0) scale(0.8); z-index: 1; opacity: 0.6; }

  66%, 91% { transform: translateZ(100px) scale(1.2); z-index: 3; opacity: 1; }

  100% { transform: translateX(150px) translateZ(0) scale(0.8); z-index: 1; }

}