* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat";
}

.container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.header-callback a:last-child span {
  display: none;
}

/* ----------  lanugage --------- */

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #474747;
  font-size: 14px;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-top: 5px;
  z-index: 100;
}

.lang-menu a {
  display: block;
  padding: 4px 6px;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.lang-menu a:hover {
  opacity: 0.5;
}

/* JavaScript orqali ochilganda */
.lang-menu.show {
  display: block;
}

/* Burger Menu Styles */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  padding: 15px;
}

.burger.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px;
  padding-left: 22px;
}

.burger span {
  width: 20px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* Desktop Navigation */

/* Mobile Styles */
@media (max-width: 1023px) {
  .burger {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: -200%;
    height: 100vh;
    width: 360px;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
    overflow-x: auto;
  }

  .mobile-nav.active {
    left: 0;
  }

  .mobile-content {
    padding: 25px;
  }

  .mobile-nav .navList {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
  }

  .mobile-nav .navList > li {
    width: 100%;
  }

  .mobile-nav .navList > li > a {
    display: block;
    padding: 15px 0;
    font-size: 20px;
    color: #474747;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
  }

  .mobile-nav .navList > li > a:hover {
    color: #77b75f;
  }

  .mobile-nav .navList > li:last-child > a {
    border-bottom: none;
  }

  .mobile-lang {
    padding-top: 15px;
  }

  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: black;
    z-index: 999;
    opacity: 50%;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .overlay.active {
    display: block;
    visibility: visible;
    opacity: 0.5;
  }
}

/* Swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
  position: relative;
  display: flex;
  align-items: center;
  bottom: 48px !important;
  left: 0 !important;
  right: auto !important;
  width: auto !important;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 100%;
  width: 12px;
  height: 12px;
  margin-right: 30px !important;
}

.swiper-pagination-bullet-active {
  background: #77b75f !important;
  width: 16px;
  height: 16px;
}

.headerList li a:hover {
  color: #77b75f;
  transition: all 300ms ease;
}

@media (max-width: 800px) {
  .swiper-pagination-bullet {
    margin-right: 20px !important;
  }
}

/* Bu klassni siz faol elementga (masalan, .thumb-item.active-line) qo'llasiz */
.active-line {
  position: relative; /* ::before uchun ota element bo'lishi shart */
}

.active-line::before {
  content: ""; /* JS dagi '""' ga to'g'ri keladi */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background-color: rgba(119, 183, 95, 1);
  z-index: 20;
  /* CSS da to'g'ridan-to'g'i qo'shish, masalan, 12px yoki 20px bo'lishi mumkin */
  border-radius: 20px; /* Tailwind 'xl' taxminan 12px bo'lishi mumkin */
}

.splide__arrow--next {
  background-color: #000;
  opacity: 60%;
  width: 50px;
  height: 50px;
  border-radius: 20px;
}

.splide__arrow--prev {
  background-color: #000;
  opacity: 40%;
  width: 50px;
  height: 50px;
  border-radius: 20px;
}

.splide__arrow--prev svg {
  color: #ffffff;
  fill: #fff;
}

.splide__arrow--next svg {
  color: #ffffff;
  fill: #fff;
}

.thumb-item:hover{
transform: scale(1.05) translateX(-5px) translateY(-5px);
}

/* footer  */
.fooLink {
  transition: all 0.4s ease;
  
}

.fooLink:hover {
  background-color: white;
  transform: scale(1.03) translateY(-5px);
}

.fooLink > svg path,
.fooLink > svg rect {
  transition: fill 0.4s ease;
}

.fooLink:hover > svg path {
  fill: #77b75f;
}

.fooLink:hover > svg rect[fill="rgb(255,255,255)"] {
  fill: #77b75f;
}

.fooNav > a {
  transition: transform 0.4s ease;
  transform: scale(1) translateY(0);

}
.fooNav > a:hover {
  transform: scale(1.03) translateX(-8px);
}


.isPage {
  background:
    /* ✅ 1. Qora rangli Overlay qatlami (Yuqorida turishi shart) */
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
    
    /* 2. Asosiy gradient (Yuqoridan to'qlashtirish uchun) */
    linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6),
        rgba(7, 7, 7, 0) 50%,
        rgba(7, 7, 7, 0) 100%
    ),
    
    /* 3. Rasm (Eng pastda turishi kerak) */
    url('/storage/img/heroBg.jpg');

    /* Qo'shimcha stillar (Avvalgi maslahat) */
    background-size: cover; 
    background-position: center;
}

.bottomShadow {
    /* Faqat pastki qismda yaqqol ko'rinadigan soya */
    box-shadow: 
        0 4px 6px -6px black; 
    
    /* Izoh:
       0    (Horizontal ofset)
       8px  (Vertikal ofset - soya pastga 8px siljiydi)
       6px  (Xiralashish (Blur) - soyani yumshatadi)
       -6px (Tarqalish (Spread) - soyani cheklaydi, shunda u yuqoriga chiqib ketmaydi)
       black (Soya rangi - shaffoflikni kamaytirish tavsiya etiladi) 
    */
}

.shadowNone {
  box-shadow: none;
}

.categShadow a{
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.12);
}

.breadcrumb {
  display: flex;
  align-items: center;
}

 .tabButtons {
    display: flex;
    align-items: center;
  }

@media (max-width: 360px) {
  .breadcrumb {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .breadcrumb > span {
    height: 0;
    width: 0;
  }

  .tabButtons {
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 13px;
  }


}


.news-item {
        display: none;
    }

@media (max-width: 400px) {
    .categGrid {
    grid-template-columns: 1fr;
  }
}



/* * 💡 Active holati uchun zaruriy CSS qismi. 
 * Endi barcha selectorlar toza va yangi klass nomlari bilan ishlaydi.
 */

/* Faol thumbnail uchun overlayni ko'rsatish */
.media-thumbnail.is-active-media .media-overlay {
    display: block !important; 
}

/* Faol thumbnail uchun Play tugmasini ko'rsatish, uni markazlashtirish va joylashishini o'rnatish */
.media-thumbnail.is-active-media .media-play-icon-wrapper {
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}

/* Faol thumbnail sarlavhasi rangini o'zgartirish */
.media-thumbnail.is-active-media .media-title-text {
    color: #77B75F !important; 
}

/* Faol bo'lmaganida matnni asl rangiga tiklash */
.media-thumbnail:not(.is-active-media) .media-title-text {
    color: #474747 !important; 
}

.media-thumbnail:hover .media-title-text {
    color: #77B75F !important; 
}





/* modal  */
/* Modal o'chirilgan holat */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal oynasi */
.modalBox {
  width: 800px;
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  animation: scaleIn 0.3s ease;
}



/* Forma */
.modalForm > .input,
.modalForm > .textarea {
  width: 100%;
  background-color: #F4F4F4;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
}

.modalForm::placeholder {
  color: #474747;
}

.modalForm > .textarea {
  height: 100px;
  resize: none;
}

.sendBtn {
  background: #77B75F;
  color: white;
  padding: 12px 35px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  float: right;
}

/* Animatsiya */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}