/* start you code from here  */
.rawContainer {
  margin-top: 5rem;
  margin-bottom: 2rem;
}
.subYarn {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  text-align: justify;
  gap: 3rem;
  margin: 5rem 0rem;
}
.materialImg {
  border-radius: 14px;
  min-height: 20vh;
  max-height: 70vh;
  width: 100%;
}
.readMore {
  display: none;
}
.close_more {
  display: block;
}
.yarnContent {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  gap: 3rem;
  width: 50%;
}

.yarnContent h1 {
  font-size: 10rem !important;
}

.seeMoreBtn {
  background: #eca906;
  font-size: 3rem !important;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.5 ease;
  cursor: pointer;
  width: 223px;
  height: 64px;
  color: black !important;
}

.seeMoreBtn:hover {
  background-color: #b88401;
}

.line-height {
  line-height: 1.4;
}

/*  Cards Container*/

.cardsContainer {
  margin-top: 3rem;
  padding: 50px 0px;
  background: #daccb2;
}

.subTabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.2rem;
}

.tabs {
  background: #faf7f0;
  padding: 20px;
  border-radius: 50px;
}

.tab_li {
  border-radius: 52px;
  width: 100%;
  padding: 10px 0px;
  text-align: center;
  cursor: pointer;
}

.activeTab {
  box-shadow: 0px 0px 5px 2px gray;
}
.cardContent {
  display: none;
}
.activeContent {
  display: block;
  overflow: hidden;
}

.subCards {
  margin-top: 4rem;
}
.tbMargin {
  margin: 5rem 0rem;
}

.card {
  position: relative;
  width: 297px;
  height: 401px;
}

/* THE CARD HOLDS THE FRONT AND BACK FACES */
.thecard {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transform-style: preserve-3d;
  transition: all 0.8s ease;
}

/* THE PSUEDO CLASS CONTROLS THE FLIP ON MOUSEOVER AND MOUSEOUT */

.thecard.rotate {
  transform: rotateY(180deg);
}

/* THE FRONT FACE OF THE CARD, WHICH SHOWS BY DEFAULT */
.thefront {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  backface-visibility: hidden;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  line-height: 0;
  filter: brightness(0.8);
}

.cardSide {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  position: absolute;
  bottom: 17px;
  width: 100%;
  left: 20px;
  color: white;
  gap: 12px;
}
/* THE BACK FACE OF THE CARD, WHICH SHOWS ON MOUSEOVER */
.theback {
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: c;
  /* align-items: center; */
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  backface-visibility: hidden;
  overflow: hidden;
  background: #e1ded7;
  /* text-align: center; */
  transform: rotateY(180deg);
}

.w-d {
  width: 90%;
}

.theback h3 {
  margin-top: 20px;
}

/*This block (starts here) is merely styling for the flip card, and is NOT an essential part of the flip code */
.thefront h1,
.theback h1 {
  font-family: "zilla slab", sans-serif;
  padding: 30px;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
}

.thefront p,
.theback p,
.theback h3,
.theback h2,
.theback h4 {
  padding: 15px;
  /* font-weight: normal;
  font-size: 12px;
  text-align: center; */
}
.cardList {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#rightArrow {
  background: rgb(227, 188, 93);
}
#leftArrow {
  background: rgb(227, 188, 93);
}
#subSpecial {
  width: auto;
  overflow: hidden;
}

#subSpecial::-webkit-scrollbar {
  scrollbar-width: none;
}
.specialList {
  width: fit-content;
  overflow: hidden;
  transition: transform 0.5s ease; /* Smooth transition */
}

.ml {
  margin-left: 50px;
}

.custom-bullet {
  list-style-type: circle;
}

.scrollArr {
  font-size: x-large;
  /* padding: 0.8rem 1rem; */
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 0px;
  color: white;
  cursor: pointer;
  outline: none;
}

.arrowBtns {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flowFabric {
  width: 100%;
  object-fit: cover;
}
.fabricBigImage {
  margin: 4rem 0rem;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fabricBigImage.visible {
  opacity: 1;
}

.mediaScroll {
  width: fit-content;
  overflow: hidden;
}

.future-card-3 {
  /* transform: translateX(-100%); */
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease; /* Adjust the duration and timing function as needed */
}

.future-card-5 {
  /* transform: translateX(100%); */
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease; /* Same transition settings */
}

.future-card-3.visible,
.future-card-5.visible {
  /* transform: translateX(0); */
  opacity: 1;
}

/* Initial state */
.fabric-text {
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.fabric-img {
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
}

.animate {
  transform: translateX(0);
}

.font-size-14 {
  font-size: 1.4rem !important;
}

@media (min-width: 1600px) {
  p {
    /* font-size: 3rem !important; */
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 5rem !important;
  }

  h2 {
    font-size: 4rem !important;
  }

  p {
    font-size: 1.7rem !important;
  }
  .subYarn {
    flex-direction: column-reverse;
    text-align: start;
  }
  .yarnContent {
    width: 100%;
    text-align: justify;
  }
  .yarnHero {
    width: 100%;
  }

  .card {
    width: 270px;
    height: 360px;
  }

  .materialImg {
    min-height: auto;
    max-height: auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 4.5rem !important;
  }

  h2 {
    font-size: 3.5rem !important;
  }

  p {
    font-size: 1.5rem !important;
  }
  .materialImg {
    width: 100%;
  }

  #Polyster {
    overflow-x: scroll;
  }
  #Polyster::-webkit-scrollbar {
    scrollbar-width: none;
  }
  .cardsContainer {
    padding: 6rem 0rem;
  }
}

@media (max-width: 556px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 2rem !important;
  }

  p {
    font-size: 1.4rem !important;
  }
  .mediaScroll {
    width: fit-content;
  }

  #Cotton {
    overflow-x: scroll;
  }
  #Cotton::-webkit-scrollbar {
    scrollbar-width: none;
  }

  .subTabs {
    width: 100%;
    display: flex;
  }

  .card {
    width: 248px;
    height: 315px;
  }

  .tabs {
    width: 180%;
    transition: all 1s ease;
  }

  .seeMoreBtn {
    zoom: 0.6;
  }
}

@media (max-width: 350px) {
  .tabs {
    width: 250%;
  }

  .tab_li {
    padding: 10px 20px;
  }
}
