

#spectechs {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

#spectechs .intro__inner {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

#spectechs .intro__inner > img {
  position: absolute;
  bottom: 0;
  left: 5%;
  max-width: 90%;
  margin: 0 auto;
  max-height: 70%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
}

#spectechs > img {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  margin: 0 auto;
  max-height: 75%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
}


#spectechs .pageNavigation__text.blue {
  color: var(--blue);
}

#main {
  position: relative;
  z-index: 0;
}

.heroProducts {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Chap: text | O'ng: rasm */
  align-items: end;
  gap: 60px;
  padding: 60px 0;
}

.heroProducts img{
  width: 100%;
}

.miniTextDiv {
  padding: 40px 20px 40px 20px;
}

.miniTextDiv__inner {
  max-width: 952px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.textTitle {
  font-family: "Exo 2";
  font-size: 48px;
  line-height: 48px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
}

.miniText__textsDiv {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.textsDiv__text p {
  font-family: "Inter";
  font-size: 20px;
  line-height: 32px;
  color: #353437;
}

.solutionsDiv {
  position: relative;
  z-index: -1;
}

.solutionsDiv .section__inner {
  /*padding-inline: 20px;*/
}

.solutionsContainer {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 48px;
}

.solutionsMainText {
  font-family: "Exo 2";
  font-size: 40px;
  line-height: 56px;
  font-weight: 800;
  color: var(--black);
  position: relative;
  width: fit-content;
  text-transform: uppercase;
}

.solutionsMainText::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 18px;
  background-color: #a1a9ee;
  z-index: -1;
}

.solutionCard {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  transition: 0.35s ease;
  position: relative;
}

.solutionCard:hover {
  transform: scale(1.01);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

.solutionCardLink {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  padding: 24px;
  position: relative;
  background-color: var(--white);
}

.solutionCardLink::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  transition: 0.5s;
}

.solutionCardLink:hover::after {
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.solutionCardLink:hover .readMoreDiv {
  color: var(--blue);
  transition: 0.5s;
}

.kac_btn_div {
  width: 100%;
  display: grid;
  place-items: flex-start;
  padding-top: 40px;
}

.kac_btn {
  display: inline-block;
  padding: 12px;
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  border: 1px solid var(--blue);
  background-color: var(--blue);
  transition: 0.3s;
}

.kac_btn:hover {
  background-color: rgb(37, 37, 113);
  transition: 0.3s;
}

.solutionInfoDiv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soltuonCardTitle {
  font-family: "Exo 2";
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soltuonCardSubtitle {
  max-height: 42px;
  height: 100%;
  overflow: hidden;
}

.soltuonCardSubtitle > p {
  font-family: "Inter";
  font-size: 14px;
  line-height: 20px;
  color: #929292;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.solutionImageDiv {
  position: relative;
  width: 100%;
  height: 276px;
  margin-top: 16px;
  overflow: hidden;
}

.solutionImageDiv img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.readMoreText {
  font-family: "Exo 2";
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.readMoreDiv {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a999b;
  margin-top: 40px;
  transition: 0.5s;
}

.readMoreArrow {
  width: 24px;
  height: 24px;
}

.infoTextSection .section__inner {
  padding: 56px 20px 112px 20px;
}

.infoTextsDiv {
  max-width: 1074px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.infoText {
  font-family: "Inter";
  font-size: 18px;
  line-height: 32px;
  color: #353437;
}

.infoTextPadding {
  background-color: #f5f5f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paddingTitle {
  font-family: "Exo 2";
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--black);
}

.paddingSubtitle {
  font-family: "Inter";
  font-size: 16px;
  line-height: 28px;
  color: #353437;
}

.servicesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding: 40px 20px;
}

.serviceCard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
}

.serviceCard:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.15);
}

.serviceCard:hover .serviceCard__button {
  gap: 12px;
}

.serviceCard__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.serviceCard__content {
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.serviceCard__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--black);
  display: -webkit-box;
    -webkit-line-clamp: 2;   /* 2 qator */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.serviceCard__desc {
  font-size: 16px;
  color: #5a5a5a;
  min-height: 48px;
  margin-bottom: 15px;
}

.serviceCard__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0D47A1;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}



@media (min-width: 1024px) {
  .servicesGrid > :nth-child(4),
  .servicesGrid > :nth-child(5) {
      grid-column: span 1;
  }
}


@media (max-width: 1800px) {
  .textsDiv__text p {
    font-size: 16px;
    line-height: 28px;
  }
}

@media (max-width: 1200px) {
  .infoTextSection .section__inner {
    padding: 55px 20px 85px 20px;
  }
  .infoText {
    font-size: 16px;
    line-height: 24px;
  }
  .solutionImageDiv {
    height: 220px;
  }
  .solutionsContainer {
    gap: 24px;
  }
  #spectechs .intro__inner {
    padding: 40px;
  }
  #spectechs .intro__inner > img {
    max-height: 60%;
  }
  .textTitle,
  .solutionsMainText {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 1024px) {
  .textTitle {
    font-size: 40px;
    line-height: 48px;
  }
  .solutionsContainer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .servicesGrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .soltuonCardTitle {
    font-size: 20px;
    line-height: 28px;
  }
  .solutionImageDiv {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .heroProducts{
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    padding: 0px;

  }
  .servicesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .textTitle {
    font-size: 36px;
    line-height: 40px;
  }
  .miniTextDiv {
    padding: 40px 20px 55px 20px;
  }
  .miniTextDiv__inner {
    gap: 12px;
  }
  .textsDiv__text p {
    font-size: 14px;
    line-height: 24px;
  }
  .solutionsMainText {
    font-size: 20px;
    line-height: 30px;
    width: 100%;
    text-align: center;
  }
  .solutionsMainText::after {
    display: none;
  }
  .solutionCardLink {
    padding: 14px 4px;
  }
  .infoTextSection .section__inner {
    padding: 40px 20px 55px 20px;
  }
  .soltuonCardTitle,
  .soltuonCardSubtitle {
    font-size: 18px;
    line-height: 24px;
  }
  .readMoreText {
    font-size: 18px;
    line-height: 32px;
  }
  .readMoreDiv {
    margin-top: 30px;
  }
  .readMoreArrow {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  
  .servicesGrid {
    grid-template-columns: repeat(1, 1fr);
  }

  #spectechs .intro__inner > img {
    max-height: 160px;
    max-width: 100%;
    left: 0;
    bottom: 16px;
  }
  #spectechs > img {
    max-height: 200px;
    height: 100%;
  }
  #spectechs .intro__inner {
    padding: 48px 20px;
  }
  .textTitle {
    font-size: 24px;
    line-height: 36px;
  }
  .solutionsContainer {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .solutionImageDiv {
    height: 260px;
  }
  .solutionImageDiv {
    margin-top: 24px;
  }
  .infoTextPadding {
    padding: 16px;
  }
  .paddingTitle {
    font-size: 18px;
    line-height: 26px;
  }
  .paddingSubtitle {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 400px) {
  #spectechs > img {
    max-height: 300px;
  }
  .solutionImageDiv {
    height: 220px;
  }
}
