/* Media query for devices with max-width of 425px */
@media (max-width: 425px) {
  #carouselExampleIndicators .carousel-inner .carousel-item img {
    max-height: 200px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures images cover the area without distortion */
  }

  #carouselExampleIndicators .carousel-caption {
    max-height: 50px; /* Adjust the height as needed */
    font-size: 0.8rem; /* Adjust font size if needed */
  }

  #carouselExampleIndicators .carousel-control-prev,
  #carouselExampleIndicators .carousel-control-next {
    display: none; /* Hide controls if you don't want them on small screens */
  }
}

/* Ensure fade effect is applied */
.carousel-item {
    transition: opacity 1s ease-in-out;
}
.carousel-item-next, .carousel-item-prev, .carousel-item-active {
    opacity: 1;
}
.carousel-item-next, .carousel-item-prev {
    opacity: 0;
}
.carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
    opacity: 1;
}


.flexbox {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
  height: fit-content;

}

.flexcard {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 20%;
  align-items: baseline;
  height: auto;
  border-radius: 20px;

}

.flexcardNumber {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  margin: 10px 0px;
  border-radius: 0px 50px 50px 0px;
  font-family: 'Jost', sans-serif;
  color: white;
  text-shadow: 0px 3px 5px black;
  font-weight: 500;
  font-size: 20px;
  position: relative;
}

.flexcardTitle {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 400;
}

.flexcardText {
  font-family: 'Jost', sans-serif;
  text-align: center;
  font-weight: 300;
}

.flexcardNumber:before {
  content: '';
  width: 34px;
  height: 90px;
  position: absolute;
  left: -33px;
  top: 0px;
  border-radius: 50px 0px 0px 50px;
  z-index: -1;
  background: #95B7A2;
  background: -webkit-linear-gradient(bottom, #95B7A2, #3ABEF9);
  background: -moz-linear-gradient(bottom, #95B7A2, #3ABEF9);
  background: linear-gradient(to top, #95B7A2, #3ABEF9);
}

.flexcardNumber:after {
  content: '';
  width: 25px;
  height: 40px;
  position: absolute;
  left: -25px;
  bottom: -40px;
  border-radius: 50px 0px 0px 50px;
  z-index: -1;
}

.flex {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 10px auto;
}

img.flexcardimgItem {
  width: 50%;
}

/* Breakpoint: 320px */
@media only screen and (max-width: 320px) {
  .flexcard {
    width: 100%;
    margin-top: 20px;
  }

  img.flexcardimgItem {
    width: 100%;
  }

  .carousel-inner {
    width: fit-content;
    height: auto;
  }
}

@media only screen and (max-width: 425px) {
  .flexcard {
    width: 40%;
    height: 200px;
  }

  .butt {
    width: 0px !important;
    height: 40px !important;
    padding-right: 33px !important;
    padding-top: 10px !important;
  }


  .flexcard:nth-child(odd) {
    margin-right: 10%;
  }

  .flexcard .flexcardNumber {
    width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .flexcard .flexcardText {
    height: calc(100% - 60px);
  }

  .flexcard .flexcardText marquee {
    font-size: 14px;
  }

  img.flexcardimgItem {
    width: 100%;
  }

  .img-s img {
    width:82px !important;
    height: auto;
  }

  h6 {
    font-size: 10px;
  }
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 3px #166ec9;
  }

  50% {
    background: linear-gradient(135deg, #75baff, #ffffff);
    box-shadow: 0 0 40px #75baff;
  }

  100% {
    box-shadow: 0 0 3px #166ec9;
  }
}

/* Slower animation by adjusting animation duration */
.butt {
  background-color: #dedcf7;
  color: #333233;
  width: fit-content;
  height: fit-content;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: Arial;
  font-size: 20px;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  margin: 20px;
  box-sizing: border-box;
  animation: glowing 3000ms infinite;
}



/* Breakpoint: 768px */
@media only screen and (max-width: 768px) {
  .flexcard {
    width: 35%;
    margin-top: 20px;
  }

  img.flexcardimgItem {
    width: 30%;
  }

  .img-s img {
    max-width: 90%;
    max-height: auto;
  }
}

/* Breakpoint: 1024px */
@media only screen and (max-width: 1024px) {
  .img-s img {
    max-width: 90%;
    max-height: auto;
  }
}

.flexcardText {}

/* 
.flexcardGreen {
  background: #f9fbfa;
  box-shadow: 6px 15px 20px #0e607c;
  transition: transform 0.3s ease;
}
.flexcardGreen:hover {
  transform: scale(1.05);
}
.flexcardNumberGreen {
  background: #FCFCFC;
  background: -webkit-linear-gradient(right, #FCFCFC,
      #0e607c);
  background: -moz-linear-gradient(right, #FCFCFC,
      #0e607c);
  background: linear-gradient(to left, #FCFCFC,
      #0e607c);
  box-shadow: 0px 2px 2px #0e607c;
}
.flexcardNumberGreen:before {
  background:
    #0e607c;
}
.flexcardNumberGreen:after {
  background: #959994;
}
.flexcardBlue {
  background: #f7ffff;
  box-shadow: 6px 15px 20px #900C3F;
  transition: transform 0.3s ease;
}
.flexcardBlue:hover {
  transform: scale(1.05);
}
.flexcardNumberBlue {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #900C3F);
  background: -moz-linear-gradient(right, #FDFFFE, #900C3F);
  background: linear-gradient(to left, #FDFFFE, #900C3F);
  box-shadow: 0px 2px 2px #900C3F;
}
.flexcardNumberBlue:before {
  background: #900C3F;
}
.flexcardNumberBlue:after {
  background: #959994;
}
.flexcardOrange {
  background: #fdf8f3;
  box-shadow: 6px 15px 20px #ff8d1a;
  transition: transform 0.3s ease;
}
.flexcardOrange:hover {
  transform: scale(1.05);
}
.flexcardNumberOrange {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #ff8d1a);
  background: -moz-linear-gradient(right, #FDFFFE, #ff8d1a);
  background: linear-gradient(to left, #FDFFFE, #ff8d1a);
  box-shadow: 0px 2px 2px #ff8d1a;
}
.flexcardNumberOrange:before {
  background: #ff8d1a;
}
.flexcardNumberOrange:after {
  background: #959994;
}
.flexcardPink {
  background: #fffafd;

  box-shadow: 6px 15px 20px #283747;
  transition: transform 0.3s ease;
}
.flexcardPink:hover {
  transform: scale(1.05);
}
.flexcardNumberPink {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #283747);
  background: -moz-linear-gradient(right, #FDFFFE, #283747);
  background: linear-gradient(to left, #FDFFFE, #283747);
  box-shadow: 0px 2px 2px #283747;
}
.flexcardNumberPink:before {
  background: #283747;
}
.flexcardNumberPink:after {
  background: #959994;
}
.flex {
  flex: 1;

  overflow: auto;

} */


.flexcardGreen,
.flexcardBlue,
.flexcardOrange,
.flexcardPink {
  background: #f9fbfa;
  box-shadow: 6px 15px 20px #0e607c;
  transition: transform 0.3s ease;
}

.flexcardGreen:hover,
.flexcardBlue:hover,
.flexcardOrange:hover,
.flexcardPink:hover {
  transform: scale(1.05);
}

/* Green Card */
.flexcardGreen {
  background: #f9fbfa;
  box-shadow: 6px 15px 20px #0e607c;
}

.flexcardNumberGreen {
  background: #FCFCFC;
  background: -webkit-linear-gradient(right, #FCFCFC, #0e607c);
  background: -moz-linear-gradient(right, #FCFCFC, #0e607c);
  background: linear-gradient(to left, #FCFCFC, #0e607c);
  box-shadow: 0px 2px 2px #0e607c;
}

.flexcardNumberGreen:before {
  background: #0e607c;
}

.flexcardNumberGreen:after {
  background: #959994;
}

/* Blue Card */
.flexcardBlue {
  background: #f7ffff;
  box-shadow: 6px 15px 20px #900C3F;
}

.flexcardNumberBlue {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #900C3F);
  background: -moz-linear-gradient(right, #FDFFFE, #900C3F);
  background: linear-gradient(to left, #FDFFFE, #900C3F);
  box-shadow: 0px 2px 2px #900C3F;
}

.flexcardNumberBlue:before {
  background: #900C3F;
}

.flexcardNumberBlue:after {
  background: #959994;
}

/* Orange Card */
.flexcardOrange {
  background: #fdf8f3;
  box-shadow: 6px 15px 20px #ff8d1a;
}

.flexcardNumberOrange {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #ff8d1a);
  background: -moz-linear-gradient(right, #FDFFFE, #ff8d1a);
  background: linear-gradient(to left, #FDFFFE, #ff8d1a);
  box-shadow: 0px 2px 2px #ff8d1a;
}

.flexcardNumberOrange:before {
  background: #ff8d1a;
}

.flexcardNumberOrange:after {
  background: #959994;
}

/* Pink Card */
.flexcardPink {
  background: #fffafd;
  box-shadow: 6px 15px 20px #283747;
}

.flexcardNumberPink {
  background: #FDFFFE;
  background: -webkit-linear-gradient(right, #FDFFFE, #283747);
  background: -moz-linear-gradient(right, #FDFFFE, #283747);
  background: linear-gradient(to left, #FDFFFE, #283747);
  box-shadow: 0px 2px 2px #283747;
}

.flexcardNumberPink:before {
  background: #283747;
}

.flexcardNumberPink:after {
  background: #959994;
}

/* General Flex Settings */
.flex {
  flex: 1;
  overflow: auto;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.icon-cards {
  max-width: 80rem;
  /* Adjust the maximum width if necessary */
  width: 90%;
  /* Adjust the width if necessary */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Display 5 cards per row */
  justify-content: center;
  gap: 1rem;
  --bgColor: rgba(245, 245, 245);
}


.card2 {
  max-width: 12rem;
  --bgColor: rgba(245, 245, 245);
  justify-self: center;
  display: grid;
  grid-template:
    "icon"
    "line"
    "dot"
    "title"
    "descr" 1fr;
  justify-items: center;
  align-items: flex-start;
  text-align: center;

}

.card2 .icon {
  grid-area: icon;
  width: 6rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: -0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.45),
    inset -0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.45);
}

/* Keyframe animations */
@keyframes lineAnimation {
  0% {
    height: 0;
  }

  100% {
    height: 2rem;
  }
}

@keyframes dotAnimation {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Applying animations */
.card2::before {
  content: "";
  grid-area: line;
  height: 2rem;
  border-right: 2px dotted currentColor;
  animation: lineAnimation 0.5s ease forwards;
}

.card5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dotAnimation 1s ease infinite;
  /* Apply animation to the container */
}

.card5 .dot {
  width: 1rem;
  height: 1rem;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-bottom: 0.5rem;
}



.card2::after {
  content: "";
  grid-area: dot;
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-color);
  justify-self: center;
  margin-bottom: 0.5rem;
  box-shadow: -0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.45),
    inset -0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.45);
  animation: dotAnimation 1s ease infinite;
}

.card2 .title12 {
  grid-area: title;
  margin-block: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.credits {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
}

.credits a {
  color: var(--color);
}

.card-wrapper {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .icon-cards {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
  }

  .card2 {
    max-width: 8rem;
  }

  .card2 .icon {
    font-size: 2rem;
    width: 4rem;
  }

  .card2::before {
    height: 1.5rem;
  }

  .card2::after {
    width: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .card2 .title12 {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 320px) {
  .icon-cards {
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 1rem;
  }

  .card2 {
    max-width: 6rem;
  }

  .card2 .icon {
    font-size: 1.5rem;
    width: 3rem;
  }

  .card2::before {
    height: 1rem;
  }

  .card2::after {
    width: 0.5rem;
    margin-bottom: 0.3rem;
  }

  .card2 .title12 {
    font-size: 0.8rem;
  }
}


@media screen and (min-width: 375px) {
  /* Adjust styles for screen width 375px */
}

@media screen and (min-width: 425px) {
  /* Adjust styles for screen width 425px */
}

@media screen and (min-width: 1024px) {
  /* Adjust styles for screen width 1024px */
}

@media screen and (min-width: 1440px) {
  .icon-cards {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 3rem;
  }

  .card2 {
    max-width: 15rem;
  }

  .card2 .icon {
    font-size: 3rem;
    width: 8rem;
  }

  .card2::before {
    height: 2.5rem;
  }

  .card2::after {
    width: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .card2 .title12 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 2560px) {
  /* Adjust styles for screen width 2560px and above */
}

* {
  position: relative;
  box-sizing: border-box;
}

.body1 {
  padding: 0;
  margin: 0;
  border: none;
  color: aliceblue;
  display: flex;
  align-items: center;
  background: transparent;
  min-height: 100vh;
  overflow: hidden;
}

.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url(https://images.unsplash.com/photo-1669989821467-86418b272b8d);
  background-size: cover;
  background-position: center;
  filter: blur(60px);
  min-height: 100vh;
  opacity: 0.55;
}

.wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.quote-row {
  margin: auto;
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
}

.quote-column {
  position: absolute;
  padding: 0 !important;
  overflow: hidden;
  transition-property: top, left, right, bottom;
  background: transparent;
  box-shadow: none;
  /* transition: .4s; */
}

.col-active {
  width: 33.33% !important;
  transform: translate(-50%, -50%) !important;
  top: 50% !important;
  left: 50% !important;
  bottom: unset !important;
  background: rgba(255, 255, 255, 0.375);
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.37);
  overflow: hidden;
  z-index: 1;
}

.col-inner {
  position: relative;
  width: 100%;
  max-width: 130px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.col-active .col-inner {
  max-width: 100%;
}

.author-meta {
  width: 100%;
  position: relative;
  border: none;
}

.col-active .author-meta {
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.432);
}

.image-cover {
  position: absolute;
  width: 100%;
  float: left;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 100%;
  z-index: 1;
  cursor: pointer;
}

.col-active .image-cover {
  position: relative;
  width: 30%;
  max-width: 140px;
  float: left;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 1.3rem 0rem 1.3rem 0rem;
  z-index: 1;
}

.author-info {
  width: 70%;
  float: left;
  padding: 10px;
  overflow: hidden;
  visibility: hidden;
}

.col-active .author-info {
  visibility: visible;
}

.author-info .author-name,
.author-info .person-title {
  transform: translate(-100%, 0%);
  transition: .4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.show .author-info .author-name {
  transform: translate(0%, 0%);
}

.show .author-info .person-title {
  transform: translate(0%, 0%);
  transition-delay: .2s;
}

.person-name {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 21.7px;
  color: #000;
  margin: 0;
  margin-bottom: 5px;
}

.person-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.quote-wrapper {
  position: relative;
  width: 100%;
  margin: auto;
  color: #494949;
  padding: 20px 15px;
  text-align: center;
  overflow: hidden;
  visibility: hidden;
  z-index: 0;
}

.col-active .quote-wrapper {
  visibility: visible;
}

.box-text-inner {
  /* width: 400px; */
  margin: auto;
  color: #000;
}

.quote-wrapper .quote-symbol {
  font-size: 14vw;
  line-height: 1em;
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  z-index: 1;
  transition: 0.4s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.quote-wrapper .quote-symbol:first-child {
  left: 0%;
  text-align: right;
}

.quote-wrapper .quote-symbol:last-child {
  right: 0%;
  text-align: left;
}

.show .quote-wrapper .quote-symbol:first-child {
  left: -50%;
}

.show .quote-wrapper .quote-symbol:last-child {
  right: -50%;
}

/* /--Arrow--/ .arrows-wrap {
    position: unset;
  } */
.arrows-wrap {
  position: unset;
}

.arrow {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 80%;
  background-color: #494949;
  cursor: pointer;
}

.left-arrow {
  float: left;
  left: 30px;
  clip-path: polygon(40% 0%, 40% 20%, 100% 33%, 100% 67%, 40% 80%, 40% 100%, 0% 50%);
}

.right-arrow {
  float: right;
  right: 30px;
  clip-path: polygon(0 33%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0 67%);
}

@media (min-width:640px) {
  .col-active {
    width: 75% !important;
    height: unset !important;
    transform: translate(-50%, -50%) !important;
    top: 50% !important;
    left: 50% !important;
  }
}

@media (min-width:840px) {
  .col-active {
    width: 50% !important;
  }
}

@media (min-width:1080px) {
  .col-active {
    width: 33.33% !important;
  }
}

@media (max-width:640px) {
  .quote-column {
    width: 90% !important;
    top: 50%;
    position: absolute;
    opacity: 0;
    transform: translate(-50%, -50%) !important;
    left: 50%;
    height: auto !important;
    z-index: 0;
    transition: .5s all;
  }

  .col-active {
    opacity: 1;
    z-index: 1;
  }

  .col-inner {
    max-width: 100%;
  }

  .author-meta {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.432);
  }

  .image-cover {
    position: relative;
    width: 30%;
    max-width: 140px;
    float: left;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 1.3rem 0rem 1.3rem 0rem;
    z-index: 1;
  }

  .quote-wrapper {
    visibility: visible;
  }

  .quote-wrapper .quote-symbol {
    font-size: 34vh;
  }
}

@media (max-width:640px) {
  .quote-column {
    /* Add max-height and overflow properties */
    max-height: calc(100vh - 80px);
    /* Adjust as needed */
    overflow-y: auto;
  }

  .col-inner {
    max-height: 100%;
    /* Ensure the inner content doesn't exceed the height of the column */
    overflow: hidden;
    /* Hide overflow content */
  }

  .author-meta {
    display: flex;
    flex-direction: column;
    /* Stack author info vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Center align text */
  }

  .quote-wrapper {
    visibility: visible;
    padding: 10px;
    /* Add some padding to separate text from edges */
  }

  .quote-wrapper .quote-symbol {
    font-size: 24px;
    /* Adjust size of quote symbols */
  }

  .image-cover {
    width: 70%;
    /* Adjust width of image cover */
    max-width: 140px;
    margin-bottom: 10px;
    /* Add some space between image and text */
  }
}

@media screen and (min-width: 2560px) {
  .icon-cards {
    grid-template-columns: repeat(5, minmax(15rem, 1fr));
    /* Adjust column layout */
    gap: 0rem;
  }

  .card2 {
    max-width: 15rem;
    /* Adjust card max-width */
  }

  .card2 .icon {
    font-size: 3rem;
    /* Adjust icon size */
    width: 8rem;
    /* Adjust icon container width */
  }

  .card2::before {
    height: 2.5rem;
    /* Adjust line height */
  }

  .card2::after {
    width: 1.5rem;
    /* Adjust dot width */
    margin-bottom: 0.8rem;
  }

  .card2 .title12 {
    font-size: 1.5rem;
    /* Adjust title font size */
  }
}

@media screen and (min-width: 1440px) {
  .icon-cards {
    grid-template-columns: repeat(5, minmax(15rem, 1fr));
    /* Adjust column layout */
    gap: 0rem;
  }

  .card2 {
    max-width: 15rem;
    /* Adjust card max-width */
  }

  .card2 .icon {
    font-size: 3rem;
    /* Adjust icon size */
    width: 8rem;
    /* Adjust icon container width */
  }

  .card2::before {
    height: 2.5rem;
    /* Adjust line height */
  }

  .card2::after {
    width: 1.5rem;
    /* Adjust dot width */
    margin-bottom: 0.8rem;
  }

  .card2 .title12 {
    font-size: 1.5rem;
    /* Adjust title font size */
  }
}