.nav-item .nav-link {
  position: relative; /* Chiziqni joylashtirish uchun kerak */
  text-decoration: none; /* Asosiy link chizig'ini olib tashlash */
  color: black; /* Asosiy rang */
  transition: all 0.3s ease-in-out; /* Animatsiya qo'shish */
}

.nav-item .nav-link::after {
  content: ''; /* Pseudo-element */
  position: absolute;
  bottom: 0; /* Chiziqni pastki qismga joylashtirish */
  left: 0;
  width: 0; /* Boshida kengligi 0 */
  height: 2px; /* Chiziqning qalinligi */
  background-color: rgba(1, 62, 141, 1); /* Ko'k rang */
  transition: width 0.3s ease-in-out; /* Animatsiya */
}

.nav-item .nav-link:hover::after,
.nav-item .nav-link.active::after {
  width: 100%; /* Hover yoki active bo'lganda chiziq kengayadi */
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  color: rgba(1, 62, 141, 1); /* Hover yoki active paytida rang o'zgarishi */
}


.topbar{
  background: linear-gradient(90deg, #1B45B4 0%, #1C2792 100%);
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
}
.navbar-nav .nav-item{
  font-weight: 500;
  font-size: 15px;
  color: black;
}
.contact{
  background: linear-gradient(90deg, #1B45B4 0%, #1C2792 100%);
  border-radius: 8px;
  padding: 8px;
  color: white;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease
}
.contact:hover {
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.card{
  font-weight: 500;
  cursor: pointer;
  border: solid 1px rgba(238, 238, 238, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease
}
.card:hover{
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.active-card{
  background: linear-gradient(90deg, #1B45B4 0%, #1C2792 100%);
  color: white;
}

#openModal{
  background: linear-gradient(90deg, #1D418D 0%, #3062E7 100%);
  color: white;
  width: 25%;
}

.modal-overlay {
  position: absolute;
  top: 210px; /* Headerdan pastdan boshlash */
  left: 0;
  width: 100%;
  height: calc(100vh + 150px); /* Faqat headerdan pastni qoplaydi */
  background: rgba(0, 0, 0, 0.5); /* Yengil qorong‘ulash */
  display: none;
  z-index: 1049; /* Headerdan pastga joylash */
}

/* Modalning o‘zi */
.custom-modal {
  position: absolute;
  top: 220px; /* Headerdan pastga tushadi */
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  display: none;
  z-index: 1050; /* Overlaydan yuqoriroq */
}

/* Modal ichidagi kontent */
.custom-modal-content {
  display: flex;
  flex-direction: column;
}

/* Yopish tugmasi */
.close {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}


.qr-section {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}
.qr-section-item {
  background-color: #004aad; /* QR kodning orqa foni */
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

.qr-section img {
  width: 100px; /* QR kodning o‘lchami */
  margin-top: 10px;
}
.footer-navbar a{
  text-decoration: none;
  color: white;
  font-weight: 400;
  font-size: 16px;
}
.alphabet { cursor: pointer; }

#alphabet button{
  font-size: 25px;
}

.alphabet:hover {
  color: rgba(14, 165, 233, 1);
}
.alphabet.active {
  color: rgba(14, 165, 233, 1);
}
#words ul li.active {
  color: blue;
}
#words ul li{
  cursor: pointer;
}
#words ul li:hover{
  color: blue;
}


.contact-form input{
  background-color: #f5f7fa;
}

.contact-form textarea{
  background-color: #f5f7fa;
}
.card-maqola{
  width: 400px;
  margin: 20px;
}
.image-container img{
  height: 420px;
  border-radius: 10px;
}


.sport-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.sport-item:hover, .selected {
    background-color: #0d6efd;
    color: white;
}

/* Mobile css */
@media (max-width: 575px) {
  .mobile {
    padding: 50px;
  }

  .card-adabiyot {
    margin: 10px;
  }

  .card-maqola {
    width: 95%;
    margin: 10px;
  }

  .image-container img {
    width: 98%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
  }

  #openModal {
    width: 100%;
  }

  .modal-overlay {
    top: 250px;
  }

  .custom-modal {
    top: 260px;
  }
}