/* === DESKTOP FIRST RESPONSIVE === */

/* xl <= 1200px */
@media (max-width: 1200px) {
  .menu {
    margin-right: 10px;
  }
  .menu__toggle {
    display: flex;
  }
  .menu__list {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    position: absolute;
    top: 55px;
    left: 0;
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: 0 4px 30px -5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    margin: 0;
  }
  .menu__list::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #FFFFFF transparent;
  }
  .menu__list-show {
    opacity: 1;
    visibility: visible;
  }
  .menu__link {
    font-size: 16px;
    padding: 2px 0;
    color: var(--text);
  }
  .menu__link:hover,
  .menu__link:focus {
    color: var(--accent);
    background-color: rgba(0, 0, 0, 0.05);
  }
  .home-slider__title {
    font-size: 35px;
  }
  .home-slider__subtitle {
    font-size: 22px;
  }
  .swiper {
    width: 100%;
    height: 600px;
    padding: 20px 40px;
  }
  .swiper .swiper-wrapper .swiper-slide {
    width: 100px;
    height: 300px;
    margin: 0 50px 0 115px;
  }
  .swiper-slide .info {
    width: 100%;
    height: 200px;
    background-color: #ECECEC;
    padding: 10px 30px;
    border-radius: 0 0 40px 40px;
  }
  .swiper-slide .icon {
    width: 76px;
    height: 70px;
    background-color:gainsboro;
    position: absolute;
    margin-left: 100px;
    border-radius: 20px 0 30px 0;
  }
  .swiper-slide .icon i {
    margin-left: 30px;
    margin-top: 20px;
  }
}

/* lg <= 992px */
@media (max-width: 992px) {
  .title,
  .home-slider__title {
    font-size: 32px;
  }
  .home-slider__logo {
    margin-bottom: 40px;
  }
  .home-slider__form {
    max-width: 320px;
    margin-left: 30px;
  }
  .home-about__image {
    margin-left: 0;
  }
  .home-service::before {
    content: none;
  }
  .swiper-slide {
    width: 200px;
  }
  .swiper-slide .img img {
    width: 320px;
  }

}
  

/* md <= 768px */
@media (max-width: 768px) {
  .title {
    font-size: 30px;
  }
  .navbar__phone-num {
    display: none;
  }
  .home-slider__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-slider__form {
    max-width: none;
    margin-left: 0;
    margin-top: 30px;
  }
  .swiper-slide .img {
    width: 100%;
  }
  .swiper-slide .img img {
    width: 100%;
  }
  .swiper-slide .info {
    width: 100%;
  }
  .swiper-slide .icon {
    width: 90px;
    height: 70px;
    margin-left: 125px;
  }
  .swiper-slide .icon i {
    margin-left: 40px;
    margin-top: 20px;
  }
  .swiper-slide {
    width: 180px;
  }
  .swiper-slide .img img {
    width: 280px;
  }
}

/* sm <= 576px */
@media (max-width: 576px) {
  .navbar {
    padding: 15px 0;
  }
  .navbar__logo .logo {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    font-weight: 500;
    max-width: 150px;
  }
  .navbar__logo .logo img {
    width: auto;
  }
  .navbar__logo .logo__text {
    margin-left: 0;
    margin-top: 2px;
  }
  .navbar__lang,
  .menu {
    margin-left: 5px;
  }
  .home-slider__title {
    font-size: 26px;
  }
  .home-slider__subtitle {
    font-size: 18px;
  }
  .home-slider__arrows-arrow {
    width: 70px;
  }
  .home-about {
    padding: 30px;
  }
  .home-about .title {
    font-size: 40px;
    color: #024A8C;
    font-weight: 900;
    margin-right: 20px;
  }
  .home-about__image {
    padding-left: 0;
    padding-bottom: 35px;
  }
  .home-about__work {
    left: 15px;
    right: 15px;
    bottom: 0;
  }
  .home-service__right {
    padding-left: 15px;
    padding-right: 15px;
  }
  .price-list-item {
    flex-direction: column;
  }
  .price-list-item__price {
    margin-left: 0;
  }
  .swiper {
    width: 100%;
    height: 600px;
    padding: 20px 40px;
  }
  .swiper .swiper-wrapper .swiper-slide {
    width: 100px;
    height: 300px;
    margin: 0 50px 0 115px;
  }
  .swiper-slide .info {
    width: 100%;
  }
  .swiper-slide .icon {
    width: 70px;
    height: 70px;
    margin-left: 120px;
  }
  .swiper-slide .icon i {
    margin-left: 20px;
    margin-top: 20px;
  }
  .swiper-slide {
    width: 160px;
  }
  .swiper-slide .img img {
    width: 240px;
  }
  .home-service {
    height: auto;
  }
  .home-service .container .box {
    display: grid;
    margin-left: 140px;
  }
  .home-review .box .card:nth-child(1) {
    display: block;
  }
  .home-review .box .card:nth-child(2),
  .home-review .box .card:nth-child(3) {
    display: none;
  }
  .home-review .container .row .box .card {
    width: 80%;
    height: 250px;
    background-color: #024A8C;
    margin-right: 50px;
    border-radius: 20px;
    padding: 20px;
    font-family: Gilroy-Regular;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  .home-blog {
    padding: 20px;
    margin: 0 30px;
  }
  .home-blog .row h3 {
    color: #024A8C;
    font-size: 35px;
    font-family: Gilroy-ExtraBold;
    font-weight: bold;
    margin: 0;
  }
  .footer-top {
    text-align: center;
  }
  .footer-bottom .container {
    margin: 0;
  }
  .footer-bottom .logo img {
    width: 130px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-right: 270px;
  }
  .footer-bottom__copyright,
  .text-white {
    text-align: center;
    margin: 0 30px;
  }
  .swiper {
    overflow: hidden;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* xs <= 420px */
@media (max-width: 420px) {
  .home-slider__arrows {
    display: none;
  }
  .swiper-slide {
    width: 140px;
  }
  .swiper-slide .img img {
    width: 200px;
  }
}


/* home-review */

.home-review {
  width: 100%;
  height: auto;
  background-image: url(../img/comment_bg.png);
  background-repeat: no-repeat;
  background-position: left;
}

.home-review .container .title {
  color: #024A8C;
  text-align: center;
}

.home-review .container .row .box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;  /* Allow wrapping of the cards */
  gap: 30px;  /* Space between the cards */
  justify-content: flex-start;  /* Align to the left */
  padding: 130px 0px 20px 120px;
  margin-left: 0;
}

/* Default - for desktop (3 cards in one row) */
.home-review .container .row .box .card {
  width: calc(26.333% - 30px); /* 3 cards on desktop, accounting for gaps */
  height: auto;
  background-color: #53b1e2;
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-bottom: 100px;
}

.home-review .container .row .box .card:hover {
  transform: scale(1.05);
  background-color: #0369A1;
}

/* Tablet - for 2 cards */
@media (max-width: 1024px) {
  .home-review .container .row .box .card {
    width: calc(30% - 30px); /* 2 cards on tablet */
  }
}

/* Mobile - for 1 card */
@media (max-width: 768px) {
  .home-review .container .row .box .card {
    width: 100%;
    /* 1 card on mobile */
  }
 

  .home-review .container .row .box .card .img_absolute {
    position: relative;
  }

  .home-review .container .row .box .card .img_absolute img {
    width: 220px;
    position: absolute;
    bottom: 0;
    border-radius: 20px;
  }

  .home-review .container .row .box .card .description {
    padding: 20px 0px;
  }

  .home-review .container .row .box .card .name {
    display: flex;
  }

  .home-review .container .row .box .card h1 {
    font-size: 18px;
    color: white;
    margin-left: 20px;
    margin-top: 10px;
  }
.home-review .container .row .btn-link {
    color: #024A8C;
    margin-left: 200px;
}

}




/* Responsive o'zgarishlar */
@media screen and (max-width: 992px) {

  
  .home-vakansi .vakansi .content img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 60%;
  }

  .home-vakansi .vakansi .content p {
    padding: 0 15px;
  }

  .home-vakansi .box .card {
    width: calc(50% - 20px); /* 2 ta kartochka yonma-yon */
    margin: 20px 10px;
  }
}

@media screen and (max-width: 600px) {
  .home-vakansi .vakansi .content img {
    width: 100%;
  }

  .home-vakansi .vakansi .content p {
    padding: 0 10px;
    font-size: 14px;
  }

  .home-vakansi .box .card {
    width: 100%; /* Bitta ustun */
    margin: 25px 0;
    /*margin-left: 60px*/
  }

  .home-vakansi .box {
    padding: 0 15px;
  }

  .home-vakansi .box .info .desc {
    flex-direction: column;
    gap: 5px;
  }

  .home-vakansi .box .info{
    width: 81%;
  }

  .home-vakansi .box .card .icon {
    margin-left: auto;
    margin-right: 10px;
    position: relative;
    float: none;
  }

  .home-vakansi .box .card .info .price p {
    font-size: 16px;
  }
}

/* new o nas */
/* Asosiy tartib */
.py-4 .box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
}

/* Har doim 4ta sig‘adi */
.py-4 .card {
  width: calc(25% - 15px);
  height: auto;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  margin: 20px 0px;
}

.py-4 .card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ✅ Responsivlik: 768px dan kichik — bittadan joylashadi */
@media screen and (max-width: 768px) {
  .py-4 .box {
    flex-direction: column;
    gap: 20px;
  }

  .py-4 .card {
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  .py-4 .card img {
    max-height: 300px;
    object-fit: cover;
  }
}


@media screen and (max-width: 992px) {

  .home-service{
    height: auto;
  }
  .home-service .container .box {
    flex-direction: column;
    align-items: center; /* markazga joylashadi */
    margin-left: 0;
  }

  .home-service .container .box .card {
    width: 100%;
    max-width: 350px; /* optional: maksimal eni */
    margin: 15px auto; /* markazlashtirish uchun */
  }

  .home-service .container .btn-link {
    margin: 20px auto;
    text-align: center;
    display: block;
  }
}




/* blog */
/* Home Blog section styling */
#home-blog {
  padding: 50px 0px;
  background-color: #f8f9fa; /* or use your site background */

}

#home-blog h3 {
  font-size: 28px;
  color: #024A8C;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Gilroy-ExtraBold', sans-serif;
}

#home-blog p {
  font-size: 20px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  max-width: 1200px;
  margin: 10px auto;
}

/* Responsive behavior */
@media (max-width: 768px) {
  #home-blog h3 {
    font-size: 25px;
    text-align: center;
  }

  #home-blog p {
    font-size: 18px;
    padding: 0 10px;
    text-align: left;
  }
}


