* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

.slider-container {
  width: 100%;
  height: 80vh;
  margin-top: 0;
  background-image: url("Images/bg-img.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.slider-images {
  display: flex;
  align-items: center;
  gap: 14px;
}
.slider-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.slider-img {
  width: 90px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: 0.7s ease;
}
.slider-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.slider-img.active::after {
  opacity: 0;
}
.slider-images .slider-img:first-child,
.slider-images .slider-img:last-child {
  height: 360px;
}
.slider-images .slider-img:nth-child(2),
.slider-images .slider-img:nth-child(6) {
  height: 420px;
}
.slider-images .slider-img:nth-child(3),
.slider-images .slider-img:nth-child(4),
.slider-images .slider-img:nth-child(5) {
  height: 500px;
}
h1 {
  font-family: "Jost", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(270deg);
  transform-origin: center center;
  white-space: nowrap;
  z-index: 2;
  transition: 0.7s ease;
}
.details {
  position: absolute;
  bottom: 28px;
  left: 28px;
}
.details h2 {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  line-height: 24px;
  text-align: left;
  color: #fff;
  text-transform: uppercase;
  transition: 0.7s ease;
  display: none;
}
.details p {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  line-height: 20px;
  text-align: left;
  color: #fff;
  text-transform: uppercase;
  transition: 0.7s ease;
  display: none;
}
.slider-img.active {
  width: 560px !important;
  height: 540px !important;
}
.slider-img.active h1 {
  display: none;
}
.slider-img.active .details p,
.slider-img.active .details h2 {
  display: block;
}

.cut-rect-row {
  max-width: 100%;
  margin: 24px auto 40px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
}

.cut-rect-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: auto;
  margin: 0;
}

.cut-rect-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.cut-rect-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.cut-rect-content {
  display: flex;
  flex-direction: column;
}

.cut-rect-title {
  width: 2500px;
  height: 170px;
  background: transparent;
  overflow: visible;
  margin-left: -90px;
  clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%);
  flex-shrink: 0;
}

.cut-rect-title h2 {
  font-family: "Jost", sans-serif;
  font-size: 1.05rem;
  margin: 0;
  color: #000;
  font-weight: 700;
  text-align: center;
}

.cut-rect-desc {
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  max-width: 520px;
  margin: -4px 0 0 20px;
}

.cut-rect {
  width: 340px;
  height: 170px;
  background: #d22163;
  clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(210, 33, 99, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cut-rect img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0.85;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cut-rect:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.cut-rect-cs {
  background: #2e7d32;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.25);
}

.cut-rect-cs.cut-rect-title {
  background: rgba(46, 125, 50, 0.35);
}

.cut-rect-pd {
  background: #1565c0;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.25);
}

.cut-rect-pd.cut-rect-title {
  background: rgba(21, 101, 192, 0.35);
}

.cut-rect-finance {
  background: #e65100;
  box-shadow: 0 10px 24px rgba(230, 81, 0, 0.25);
}

.cut-rect-finance.cut-rect-title {
  background: rgba(230, 81, 0, 0.35);
}

.cut-rect-iu {
  background: #6a1b9a;
  box-shadow: 0 10px 24px rgba(106, 27, 154, 0.25);
}

.cut-rect-iu.cut-rect-title {
  background: rgba(106, 27, 154, 0.35);
}

.cut-rect-pi {
  background: #003366;
  box-shadow: 0 10px 24px rgba(0, 51, 102, 0.25);
}

.cut-rect-pi.cut-rect-title {
  background: rgba(0, 51, 102, 0.35);
}

.cut-rect-cls {
  background: #f57f17;
  box-shadow: 0 10px 24px rgba(245, 127, 23, 0.25);
}

.cut-rect-cls.cut-rect-title {
  background: rgba(245, 127, 23, 0.35);
}

.cut-rect-text {
  font-family: "Jost", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
  max-width: 900px;
}

.board-container > .cut-rect-text {
  display: block;
  max-width: 900px;
  margin: 100px auto 8px;
  padding: 0 20px;
  text-align: center;
}

.moto {
  text-align: center;
  margin: 40px auto;
}

@media (max-width: 768px) {
  .slider-container {
    height: 50vh;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .slider-images {
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
  }

  .slider-img {
    width: 55px;
    min-width: 55px;
  }

  .slider-images .slider-img:first-child,
  .slider-images .slider-img:last-child {
    height: 220px;
  }

  .slider-images .slider-img:nth-child(2),
  .slider-images .slider-img:nth-child(6) {
    height: 280px;
  }

  .slider-images .slider-img:nth-child(3),
  .slider-images .slider-img:nth-child(4),
  .slider-images .slider-img:nth-child(5) {
    height: 340px;
  }

  .slider-img.active {
    width: 380px !important;
    height: 360px !important;
  }

  h1 {
    font-size: 16px;
  }

  .details {
    bottom: 18px;
    left: 18px;
  }

  .details h2 {
    font-size: 13px;
    line-height: 18px;
  }

  .details p {
    font-size: 10px;
    line-height: 16px;
  }

  .cut-rect-row {
    margin: 16px auto 30px;
    padding: 0 15px;
  }

  .cut-rect-stack {
    width: 100%;
    align-items: center;
  }

  .cut-rect-item {
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .cut-rect {
    width: 220px;
    height: 130px;
  }

  .cut-rect-title {
    width: 100%;
    height: 130px;
    margin-left: 0;
    padding: 0 20px;
  }

  .cut-rect-title h2 {
    font-size: 0.9rem;
  }

  .cut-rect-desc {
    margin: 10px 0 0 0;
    max-width: 100%;
    text-align: center;
    font-size: 0.85rem;
    flex-basis: 100%;
  }

  .board-container > .cut-rect-text {
    max-width: 100%;
    margin: 60px auto 8px;
    font-size: 0.9rem;
  }

  .moto {
    font-size: 1.2rem;
    margin: 30px auto 20px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 35vh;
    margin-bottom: 10px;
    padding: 0 5px;
  }

  .slider-images {
    gap: 3px;
    overflow-x: auto;
  }

  .slider-img {
    width: 35px;
    min-width: 35px;
  }

  .slider-images .slider-img:first-child,
  .slider-images .slider-img:last-child {
    height: 130px;
  }

  .slider-images .slider-img:nth-child(2),
  .slider-images .slider-img:nth-child(6) {
    height: 160px;
  }

  .slider-images .slider-img:nth-child(3),
  .slider-images .slider-img:nth-child(4),
  .slider-images .slider-img:nth-child(5) {
    height: 190px;
  }

  .slider-img.active {
    width: 220px !important;
    height: 210px !important;
  }

  h1 {
    font-size: 12px;
  }

  .details {
    bottom: 12px;
    left: 12px;
  }

  .details h2 {
    font-size: 11px;
    line-height: 14px;
  }

  .details p {
    font-size: 9px;
    line-height: 12px;
  }

  .cut-rect-row {
    margin: 12px auto 20px;
    padding: 0 10px;
  }

  .cut-rect-stack {
    gap: 12px;
  }

  .cut-rect-item {
    margin-bottom: 20px;
  }

  .cut-rect {
    width: 170px;
    height: 100px;
  }

  .cut-rect-title {
    height: 100px;
    padding: 0 12px;
  }

  .cut-rect-title h2 {
    font-size: 0.75rem;
  }

  .cut-rect-desc {
    margin: 8px 0 0 0;
    font-size: 0.75rem;
  }

  .board-container > .cut-rect-text {
    margin: 40px auto 8px;
    font-size: 0.8rem;
  }

  .moto {
    font-size: 1rem;
    margin: 20px auto 15px;
  }
}
