/* Vision Page starts */

.vision{
    display: flex;
    flex-direction: column;
}

/* .vision-top{
    flex: 1;
    background-color: var(--beige);
    padding-bottom: 10vh;
    display: flex;
    flex-direction: row;
    padding-top: 3vw;
}
.vision-top-img-left{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vision-top-img-left img{
    margin-left: -13vw;
    margin-top: -45%;
}
.vision-top-center{
    flex: 3;
}
.vision-top-img-right{
    flex: 1;
}
.vision-top-img-right img{
    margin-right: -13vw;
    margin-bottom: -45%;
}
.vision-top .main-head{
    padding-top: 10vh;
}

.vision-top .main-sub-head{
    width: 40%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

#vision-mid{
    flex: 2;
    background-color: white;
}

.section-mid{
    display: flex;
    flex-direction: column;
}
.section-mid-image {
    flex: 1;
    height: 30vh;
    display: flex;
    justify-content: center;
}
.section-mid-image img{
    width: 70%;
    height:70vh;
    margin-top: -10vh !important;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5vw;
}
.section-mid-text-container{
    display: flex;
    flex-direction: column;
    height: 70vh;
    padding: 5vh 30vh;
}

.section-mid-head{
    font-weight: 500;
    font-size: 4vw;
    line-height: 76.8px;
    margin-left: 5vw;
    margin-bottom: 1vw;
}
.section-mid-text{
    color : #555555;
    font-size: 24px;
    width: 65%;
    margin-left: 35%;
    margin-top: 20px;
}
.section-mid-sub-ctn{
    flex: 1;
    margin-top: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vision-sub-ctn{
    display: flex;
    flex-direction: row;
    width: 80vw;
    margin-right: auto;
    margin-left: auto;
    padding: 1vw;
    justify-content: space-between;
}
.vision-sub-ctn-img{
    margin: 1vw;
}
.vision-sub-ctn-img img{
    width: 25vw;
    height: 30vw;
    border-radius: 15px;
}
.vision-text-ctn{
    width: 40vw;
    margin-top: auto;
    margin-bottom: auto;
    padding-bottom: 2vw;
}

.vision-text-ctn svg{
    margin: 1vw;
    margin-left: 0;
    margin-bottom: 0.8vw;
}

.vision-text-ctn h3{
    font-weight: 500;
    font-size: 48px;
}

.vision-text-ctn p{
    width: 80%;
    font-size: 18px;
    margin-top: 1vw;
}

.vision-text-ctn hr{
    margin-top: 1vw;
    border: 0.5px solid #F04B25;
} */

.vision-top-ctn{
    height: 60vh;
    width: 100%;
    background-color: #f9f4ee;
    display: flex;
    flex-direction: row;
    padding-top: 5vw;
    padding-bottom: 5vw;
}

.vision-top-ctn-lft{
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-direction: column;
    justify-content: flex-start; 
}
.about .vision-top-ctn-lft{
    flex-direction: column;
    justify-content: flex-end; 
}
.vision-top-ctn-lft img{
    margin-top: -5vw;
}
.vision-top-ctn-mid{
    flex: 3;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.vision-top-ctn-mid h1{
    font-size: 56px;
    font-weight: 400;
    text-align: center;
}
.vision-top-ctn-mid p{
    font-size: 24px;
    width: 85%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}
.vision-top-ctn-rgt{
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}
.about .vision-top-ctn-rgt{
    flex-direction: column;
    justify-content: flex-start; 
}

.vision-top-ctn-rgt img{
    align-self: flex-end;
}


.vision-hero-banner{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: -5vw;
}

.vision-sub-ctn{
    display: flex;
    flex-direction: column;
    height: auto;
    width: 70vw;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5vw;
    padding-bottom: 5vw;
}
.vision-sub-ctn-head{
    font-weight: 500;
    font-size: 64px;
}
.vision-sub-ctn-body{
    margin-top: 2vw;
    display: flex;
    flex-direction: row;
    margin-bottom: 2vw;
}
.dates-img{
    width: 35vw;
}
.vision-sub-ctn-body p{
    font-size: 24px;
    font-weight: 400;
    width: 65vw;
}

.vision-product-pages{
    display: flex;
    flex-direction: column;
    position : relative;
   
}
.about .vision-product-pages{
    background-image: url(../assets/about-bg.png);
    background-size: contain;
    background-position: bottom; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
}


.vision-product-top{
    flex: 1;
    display: flex;
    flex-direction: row;
    margin-top: 0.5vw;

}
.vision-product-top h3{
    margin-left: 0.5vw;
    font-size: 18px;
    margin-right: 10%;
    font-weight: 400;
    margin-top: auto;
    margin-bottom: auto;
}
.vision-product-top h4{
    font-size: 16px;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: auto;
}
.vision-product-mid{
    flex: 3;
    display: flex;
    flex-direction: row;
}
.vision-product-mid h3{
    font-size: 12px;
    font-weight: 400;
    margin-left: 0.5vw;
    margin-right: 10%;
}
.vision-product-mid h2{
    font-size: 48px;
    font-weight: 500;
}

.vision-product-bottom{
    flex: 8;
    display: flex;
    margin: 10%;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.vp-b{
    display: flex;
    flex-direction: column;
    margin-right: 15px;
    margin-left: 15px;
    width: 40vw;
}
.vp-b img{
    margin-right: auto;
    margin-left: auto;
    height: 120px;
}
.vp-b h4{
    font-size: 24px;
    font-weight: 500;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    margin-top: 0.5vw;
}

.vp-b p{
    font-size: 18px;
    font-weight: 400;
    margin-top: 0.5vw;
    text-align: center;
}
#vision-product1{
    background-color: #FFF7E6;
}
#vision-product2{
    background-color: #FBE9E1;
}
#vision-product3{
    background-color: #D5EDC4;
}

.about .vision-top-ctn-mid p{
    width: 52vw;
}

.dates-img img{
    height: 380px;
    transform: rotate(-21deg);
    margin-right: auto;
    margin-bottom: auto;
    margin-right: 3vw;
}

#vision-product3 {
    background-color: #D5EDC4; /* Fallback color */
}

#presence{
    padding-top: 7rem;
}

.vision ~ #get-in-touch{
    margin-top: -5%;
    padding-top: 7rem;
}



  
  .about .vision-product-pages {
    background-image: url(../assets/about-bg.png);
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
  }
  
  .vision-product {
    position: sticky;
    top: 0;
    padding-top: calc(var(--index) * var(--card-top-offset));
    width: 65vw;
    border-radius: 24px;
    margin-right: auto;
    margin-left: auto;
    background-color: red;
    display: flex;
    flex-direction: column;
    padding: 1vw;
    padding-top: 2vw;
    padding-bottom: 3vw;
    margin-bottom: 5vw;
  }
  
  /* Assign stacking order */
  .vision-product:nth-child(1) {
    --index: 1;
  }
  .vision-product:nth-child(2) {
    --index: 2;
  }
  .vision-product:nth-child(3) {
    --index: 3;
  }
  .vision-product:nth-child(4) {
    --index: 4;
  }
  
  /* Stacking Animation */
  @supports (animation-timeline: works) {
    @scroll-timeline cards-scroll {
      source: selector(body);
      scroll-offsets:
        selector(.vision-product-pages) start 1,
        selector(.vision-product-pages) start 0;
      time-range: 4s;
    }
  
    .vision-product {
      --index0: calc(var(--index) - 1);
      --reverse-index: calc(var(--numcards) - var(--index0));
      --reverse-index0: calc(var(--reverse-index) - 1);
    }
  
    .vision-product {
      transform-origin: 50% 0%;
      will-change: transform;
      --duration: calc(var(--reverse-index0) * 1s);
      --delay: calc(var(--index0) * 1s);
  
      animation: var(--duration) linear scale var(--delay) forwards;
      animation-timeline: cards-scroll;
    }
  
    @keyframes scale {
      to {
        transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
      }
    }
  }
  
  @media (max-width: 768px) { /* Adjust for phone screens */
    .vision-hero-banner img {
        width: 80vw;
        height: auto; /* Maintain aspect ratio */
    }
    .vision-top-ctn-lft img{
        height: 30vw;
    }
    .vision-top-ctn-rgt img {
        height: 50vw; /* Reduce height */
        width: auto; /* Maintain aspect ratio */
    }
    .vision-top-ctn-mid h1 {
        font-size: 33px;
    }
    .vision-top-ctn p{
        font-size: 12px;
        width: auto;
    }
    .vision-sub-ctn-head{
        font-size: 4.5vw;
        width: auto;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }
    .vision-sub-ctn-body p{
        font-size: 4vw;
        width: auto;
    }
    .vision-product{
        width: 90vw;
    }
    .vision-product-top h4 {
        font-size: 3vw;
    }
    .vision-product-mid h2 {
        font-size: 5vw;
    }
    .vision-product-bottom{
        flex-direction: column;
        justify-content:center;
        margin-right: auto;
        margin-left: auto;
    }
    .vp-b{
        width: 80vw;
        margin-top: 2vw;
    }
    .vp-b img{
        height: 20vw;
    }
    .vp-b h4{
        font-size: 5vw;
    }
    .vp-b p{
        font-size: 4vw;
    }
    .dates-img img{
     display: none;
    }
}
