@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: url("../fonts/jameel-noori-nastaleeq.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.pm-urdu-translate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pm-urdu-translate-btn [lang="ur"] {
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: 1.08rem;
  line-height: 1;
}

.pm-urdu-modal-content {
  border: 1px solid #cfe2d5;
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(1, 53, 26, .22);
  overflow: hidden;
}

#urduTranslationModal .modal-dialog { max-width: 620px; }

.pm-urdu-modal-header {
  position: relative;
  min-height: 62px;
  padding: .65rem 1.15rem;
  border-bottom-color: #dce9e0;
  background: linear-gradient(100deg, #f8fcf9, #eff8f2);
}

.pm-urdu-modal-title {
  margin-left: auto;
  color: #075b2b;
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.35;
}

.pm-urdu-modal-body {
  min-height: 0;
  padding: 1.1rem 1.35rem 1.2rem;
  text-align: right;
  background: #fff;
}

.pm-urdu-question {
  margin: 0;
  color: #111827;
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: clamp(1.48rem, 2.7vw, 1.82rem);
  font-weight: 400;
  line-height: 1.7;
  text-align: right;
  overflow-wrap: anywhere;
}

.pm-urdu-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .9rem;
}

.pm-urdu-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 50px;
  padding: .35rem .7rem;
  border: 1px solid #d6e7db;
  border-radius: 8px;
  background: #f5faf7;
  color: #17241c;
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: right;
}

.pm-urdu-option-key {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid #118844;
  border-radius: 50%;
  background: #fff;
  color: #075b2b;
  font-family: Arial, sans-serif;
  font-size: .76rem;
  line-height: 1;
}

.pm-urdu-loading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  color: #475569;
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: 1.45rem;
}

.pm-urdu-modal-footer {
  justify-content: flex-start;
  padding: .7rem 1.15rem;
  border-top-color: #dce9e0;
  background: #fbfdfb;
}

.pm-urdu-close {
  min-width: 105px;
  border-color: #0b7137 !important;
  color: #075b2b !important;
  font-family: "Jameel Noori Nastaleeq", serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.pm-urdu-close:hover {
  background: #0b7137 !important;
  color: #fff !important;
}

#urduTranslationModal .btn-close {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #b9d4c1;
  border-radius: 50%;
  background-color: #fff;
  background-size: 12px;
  opacity: .72;
  transform: translateY(-50%);
  box-shadow: 0 3px 10px rgba(1, 65, 28, .08);
}
#urduTranslationModal .btn-close:hover {
  border-color: #0b7137;
  background-color: #edf7f0;
  opacity: 1;
}

@media (max-width: 575.98px) {
  #urduTranslationModal .modal-dialog { margin: .75rem; }
  #urduTranslationModal .btn-close { left: .8rem; width: 32px; height: 32px; }
  .pm-urdu-modal-header { min-height: 56px; padding: .55rem .9rem; }
  .pm-urdu-modal-body { padding: .9rem; }
  .pm-urdu-modal-title { font-size: 1.48rem; }
  .pm-urdu-question { font-size: 1.38rem; line-height: 1.65; }
  .pm-urdu-options { gap: .5rem; margin-top: .7rem; }
  .pm-urdu-option { min-height: 46px; padding: .3rem .55rem; font-size: 1.15rem; }
  .pm-urdu-modal-footer { padding: .55rem .9rem; }
}

@media (max-width: 390px) {
  .pm-urdu-options { grid-template-columns: 1fr; }
}
