* {
  margin: 0;
  padding: 0;

}


.card-wrapper {
  position: relative;
  display: inline-block;
  padding: 2px;
  width: 1100px;
  height: 460px;
}

.card {
  display: flex;
  flex-direction: column;
  /* Mobile-first: image on top */
  align-items: center;
  text-align: center;
  padding: 1em;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  /* Forces content like images to clip inside rounded corners */
}

.card img.mktng-img {
  transform: scale(1.8) translateX(-30px) translateY(-10px);
}

.card img.adm-serv-img {
  transform: scale(1.60) translateX(-50px) translateY(-10px);
}

.card img.custm-sales-img {
  transform: scale(1.35) translateX(-50px) translateY(-10px);
}

.card img.crtv-serv-img {
  transform: scale(1.5) translateX(0px) translateY(20px);
}

.card img.finance-img {
  transform: scale(1.7) translateX(0px) translateY(10px);
}

.card img.it-img {
  transform: scale(1.3) translateX(-40px) translateY(5px);
}

.card img.proc-img {
  transform: scale(1.6) translateX(-40px) translateY(5px);
}

.card img.supply-chain-img {
  transform: scale(1.3) translateX(-30px) translateY(5px);
}

.card img.hr-img {
  transform: scale(1.6) translateX(-20px) translateY(5px);
}

@media (max-width: 1030px) {

  .card img.mktng-img {
    transform: scale(1.5) translateX(-10px) translateY(-10px);
  }

  .card img.adm-serv-img {
    transform: scale(1.5) translateX(-10px) translateY(-10px);
  }

  .card img.custm-sales-img {
    transform: scale(1.4) translateX(0px) translateY(-10px);
  }

  .card img.crtv-serv-img {
    transform: scale(1.4) translateX(0px) translateY(-10px);
  }

  .card img.finance-img {
    transform: scale(1.5) translateX(0px) translateY(10px);
  }

  .card img.it-img {
    transform: scale(1.4) translateX(-30px) translateY(5px);
  }

  .card img.proc-img {
    transform: scale(1.5) translateX(0px) translateY(5px);
  }

  .card img.supply-chain-img {
    transform: scale(1.4) translateX(20px) translateY(5px);
  }

  .card img.hr-img {
    transform: scale(1.4) translateX(0px) translateY(5px);
  }

}

.image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.row-card {
  display: flex;
  flex-wrap: nowrap;
  /* Keep all cards in one row */
  justify-content: center;
  /* Center the cards horizontally */
  gap: 1rem;
  /* Optional spacing between cards */
  padding: 1rem;

}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card-wrapper::after,
.card-wrapper::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #24346a);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 10px;
  border-radius: 10px;
  animation: 3s spin linear infinite;
}


@keyframes spin {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

.horizontal-scroll-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.horizontal-scroll {
  display: flex;
  height: 100%;
  will-change: transform;
}

.panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.custom-text {
  color: #24346a;
  font-size: 1rem;
}

.custom-textXL {
  color: #24346a;
  font-size: 3rem;
}

@media (max-width: 1030px) {
  .card-wrapper {
    position: relative;
    display: block;
    /* Use block instead of inline-block for full width */
    padding: 2px;
    width: 100%;
    height: 100%;
  }

  .card {
    display: flex;
    /* Ensure flexbox applies */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* Prevent padding from exceeding width */
  }

  .card img {
    width: 100%;
    max-width: 100%;
    /* Prevent from exceeding container */
    height: auto;
    margin-bottom: 1rem;
    border-radius: inherit;
  }

  .card p {
    text-align: center;
  }

  .row-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-item .row {
    display: flex;
    flex-direction: column;
  }

  /* Text should come first */
  .carousel-item .col-lg-7 {
    order: 1;
  }

  /* Image should always go last */
  .carousel-item .col-lg-4 {
    order: 2;
  }
}