html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Marriage centers section */
.centers-section {
  direction: rtl;
  width: 100%;
  padding: 76px clamp(20px, 7vw, 100px) 88px;
  background: #f3f7fd;
  border-radius: 0 0 22px 22px;
  font-family: "IRANSansfanum", "Vazir", "Tahoma", sans-serif;
}

.centers-section__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.centers-section__title { margin: 0; color: #071750; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -1px; }
.centers-section__all { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; color: #058da4; border: 2px solid #058da4; border-radius: 8px; background: transparent; font-size: 18px; font-weight: 600; transition: .2s ease; }
.centers-section__all:hover { color: #fff; background: #058da4; }
.centers-section__all span { font-size: 28px; line-height: 1; }
.centers-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.center-card { display: flex; min-height: 238px; flex-direction: column; padding: 14px 14px 13px; overflow: hidden; color: #17213d; background: #fff; border-radius: 23px; box-shadow: 0 12px 30px rgba(31, 63, 112, .09); text-align: right; }
.center-card__brand { display: flex; align-items: center; justify-content: flex-start; min-height: 38px; margin-bottom: 4px; }
.center-card__brand-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--center-color); font-size: 32px; line-height: 1; }
.center-card__name { margin: 5px 0 10px; color: #08164d; font-size: 16px; font-weight: 800; }
.center-card__location { display: flex; align-items: center; gap: 8px; min-height: 22px; color: #30374a; font-size: 12px; }
.center-card__location i { color: #0698ae; font-size: 17px; }
.center-card__divider { width: 100%; height: 1px; margin: 9px 0; background: #e7e9ee; }
.center-card__meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; color: #34394a; font-size: 11px; }
.center-card__meta span { display: flex; align-items: center; gap: 9px; }
.center-card__meta i { color: #ff7300; font-size: 17px; }
.center-card__link { display: flex; align-items: center; justify-content: center; min-height: 34px; margin-top: auto; color: #fff; background: #078fa5; border-radius: 8px; font-size: 12px; font-weight: 600; transition: .2s ease; }
.center-card__link:hover { color: #fff; background: #067b8e; transform: translateY(-2px); }
.centers-section--legacy { display: none !important; }

/* Applicants strip */
.applicants-section {
  direction: rtl;
  width: 100%;
  padding: 32px clamp(20px, 7vw, 100px) 82px;
  overflow: hidden;
  background: #f1f5fb;
  font-family: "IRANSansfanum", "Vazir", "Tahoma", sans-serif;
}

.applicants-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.applicants-section__title {
  margin: 0;
  color: #071750;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 800;
  letter-spacing: -1px;
}

.applicants-section__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  color: #078fa5;
  border: 2px solid #078fa5;
  border-radius: 8px;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: .2s ease;
}

.applicants-section__all:hover {
  color: #fff;
  background: #078fa5;
}

.applicants-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.applicant-card {
  display: flex;
  min-width: 0;
  min-height: 438px;
  flex-direction: column;
  padding: 22px 14px 14px;
  overflow: hidden;
  color: #101c4d;
  background: #fff;
  border: 1px solid rgba(222, 228, 239, .9);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(31, 63, 112, .1);
  text-align: right;
}

.applicant-card__code {
  margin: 0 0 19px;
  color: #071750;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  direction: rtl;
}

.applicant-card__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
}

.applicant-card__details > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 0;
  border-top: 1px solid #e8ebf1;
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
}

.applicant-card__details dt,
.applicant-card__details dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-card__details dt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #17213d;
  font-weight: 700;
}

.applicant-card__details dd {
  color: #30374a;
  font-weight: 500;
}

.applicant-card__details i {
  flex: 0 0 auto;
  color: #078fa5;
  font-size: 18px;
}

.applicant-card__details > div:nth-child(3) i { color: #8b45e8; }
.applicant-card__details > div:nth-child(4) i { color: #ff9800; }
.applicant-card__details > div:nth-child(5) i { color: #16a4a2; }

.applicant-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 8px;
  color: #fff;
  background: #078fa5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: .2s ease;
}

.applicant-card__link:hover {
  color: #fff;
  background: #067b8e;
  transform: translateY(-2px);
}

.applicants-section--legacy { display: none !important; }

/* Applicants directory */
.applicant-page { min-height: calc(100vh - 76px); color: #101c4d; background: linear-gradient(135deg, #f6faff 0%, #eef4fb 100%); font-family: "Vazir", "Tahoma", sans-serif; }
.applicant-page__container { width: min(1480px, calc(100% - 56px)); margin: 0 auto; padding: 24px 0 70px; }
.applicant-breadcrumb { display: flex; align-items: center; gap: 9px; color: #516079; font-size: 14px; }
.applicant-breadcrumb a { color: #071750; font-size: 25px; line-height: 1; }
.applicant-breadcrumb .mdi-chevron-left { color: #9aa7b9; }
.applicant-page__hero { margin: 12px 0 35px; text-align: center; }
.applicant-page__hero h1 { margin: 0 0 18px; color: #071750; font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.applicant-page__hero p { margin: 0; color: #64728b; font-size: 16px; }
.applicant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 1000px; gap: 36px; align-items: start; direction: rtl; }
.applicant-filter, .applicant-results { direction: rtl; }
.applicant-filter { position: sticky; top: 95px; padding: 35px 22px 28px; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(31,63,112,.09); }
.applicant-filter h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 38px; color: #071750; font-size: 23px; font-weight: 800; }
.applicant-filter h2 i { color: #069bb4; font-size: 32px; font-weight: 400; }
.applicant-filter__field { margin-bottom: 29px; }
.applicant-filter__field label { display: block; margin-bottom: 13px; color: #071750; font-size: 16px; font-weight: 700; }
.applicant-filter select, .applicant-filter input[type="text"] { width: 100%; min-height: 49px; padding: 0 16px; appearance: auto; border: 1px solid #d9e1ed; border-radius: 9px; color: #182658; background: #fff; font: inherit; font-size: 14px; outline: none; }
.applicant-filter select:focus, .applicant-filter input[type="text"]:focus { border-color: #079ab3; box-shadow: 0 0 0 3px rgba(7,154,179,.12); }
.applicant-filter input[type="text"]::placeholder { color: #182658; opacity: 1; }
.applicant-filter__range { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; direction: rtl; }
.applicant-filter__submit { width: 100%; min-height: 56px; margin-top: 10px; border: 0; border-radius: 8px; color: #fff; background: #079bb5; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.applicant-filter__submit:hover { background: #067f96; }
.applicant-filter__clear { display: block; margin: 22px auto 0; padding: 0; border: 0; color: #079bb5; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.applicant-filter__clear i { margin-right: 4px; font-size: 20px; vertical-align: middle; }
.applicant-results__top { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 0 22px; }
.applicant-results__top h2 { margin: 0 0 6px; color: #071750; font-size: 23px; font-weight: 800; }
.applicant-results__top span { color: #6d7890; font-size: 13px; }
.applicant-results__top span b { color: #071750; }
.applicant-sort { display: flex; align-items: center; gap: 5px; color: #69748b; font-size: 13px; }
.applicant-sort select { padding: 7px 8px; border: 0; color: #142052; background: transparent; font: inherit; font-weight: 700; outline: none; }
.applicant-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; direction: rtl; }
.applicant-list-card { display: flex; min-height: 265px; padding: 15px 17px 12px; flex-direction: column; border: 1px solid rgba(222,228,239,.8); border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(31,63,112,.09); }
.applicant-list-card[hidden] { display: none; }
.applicant-list-card h3 { margin: 0; color: #071750; font-size: 20px; font-weight: 800; text-align: center; }
.applicant-list-card__heart { display: flex; align-items: center; gap: 5px; margin: 11px 0 4px; color: #079db7; }
.applicant-list-card__heart span { height: 1px; flex: 1; background: #dae4ed; }
.applicant-list-card__heart i { font-size: 14px; }
.applicant-list-card dl { margin: 0; flex: 1; }
.applicant-list-card dl > div { display: flex; align-items: center; gap: 6px; min-height: 31px; border-bottom: 1px solid #edf0f4; color: #172254; font-size: 11px; white-space: nowrap; }
.applicant-list-card dt { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.applicant-list-card dd { margin: 0; overflow: hidden; text-overflow: ellipsis; color: #273158; }
.applicant-list-card dt i { color: #ff9200; font-size: 18px; }
.applicant-list-card dl > div:nth-child(2) dt i { color: #e1008d; }
.applicant-list-card dl > div:nth-child(3) dt i { color: #09a4c2; }
.applicant-list-card dl > div:nth-child(4) dt i { color: #a400ef; }
.applicant-list-card dl > div:nth-child(5) dt i { color: #08a5c1; }
.applicant-list-card__profile { display: flex; min-height: 32px; align-items: center; justify-content: center; margin-top: 8px; border-radius: 8px; color: #fff; background: #079bb5; font-size: 11px; font-weight: 700; transition: .2s ease; }
.applicant-list-card__profile:hover { color: #fff; background: #067f96; transform: translateY(-2px); }
.applicant-empty { padding: 70px 15px; text-align: center; color: #65718a; }
.applicant-empty i { color: #079bb5; font-size: 60px; }
.applicant-empty h3 { color: #071750; }
@media (max-width: 1200px) and (min-width: 651px) { .applicant-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px) { .applicant-layout { grid-template-columns: 1fr; } .applicant-filter { position: static; } }
@media (max-width: 650px) { .applicant-page__container { width: calc(100% - 30px); } .applicant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .applicant-list-card { min-height: 265px; padding: 15px 12px 12px; } .applicant-list-card h3 { font-size: 20px; } .applicant-list-card dl > div { font-size: 10px; } .applicant-results__top { gap: 8px; flex-direction: column; } }
@media (max-width: 400px) { .applicant-grid { grid-template-columns: 1fr; } }

@media (max-width: 991px) {
  .centers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .applicants-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .centers-section { padding: 46px 16px 56px; }
  .centers-section__header { align-items: flex-start; margin-bottom: 30px; }
  .centers-section__title { font-size: 22px; }
  .centers-section__all { min-height: 42px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .centers-section__all span { font-size: 21px; }
  .centers-grid {
    grid-template-columns: repeat(6, minmax(218px, 218px));
    gap: 10px;
    padding: 2px 2px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: #078fa5 #dfeaf2;
  }
  .centers-grid::-webkit-scrollbar { height: 5px; }
  .centers-grid::-webkit-scrollbar-track { background: #dfeaf2; border-radius: 999px; }
  .centers-grid::-webkit-scrollbar-thumb { background: #078fa5; border-radius: 999px; }
  .center-card {
    min-height: 270px;
    padding: 13px 12px 11px;
    scroll-snap-align: start;
  }
  .center-card__brand { min-height: 30px; }
  .center-card__brand-icon { width: 32px; height: 32px; font-size: 26px; }
  .center-card__name { margin: 3px 0 8px; font-size: 15px; }
  .center-card__location { min-height: 20px; font-size: 11px; }
  .center-card__location i { font-size: 16px; }
  .center-card__divider { margin: 7px 0; }
  .center-card__meta { gap: 6px; margin-bottom: 8px; font-size: 10px; }
  .center-card__meta i { font-size: 16px; }
  .center-card__link { min-height: 34px; font-size: 11px; }
  .applicants-section { padding: 24px 16px 60px; }
  .applicants-section__header { align-items: flex-start; margin-bottom: 28px; }
  .applicants-section__title { font-size: 26px; }
  .applicants-section__all { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .applicants-strip {
    grid-template-columns: repeat(6, minmax(218px, 218px));
    gap: 10px;
    padding: 2px 2px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: #078fa5 #dfeaf2;
  }
  .applicants-strip::-webkit-scrollbar { height: 5px; }
  .applicants-strip::-webkit-scrollbar-track { background: #dfeaf2; border-radius: 999px; }
  .applicants-strip::-webkit-scrollbar-thumb { background: #078fa5; border-radius: 999px; }
  .applicant-card {
    min-height: 318px;
    padding: 14px 12px 11px;
    scroll-snap-align: start;
  }
  .applicant-card__code { margin-bottom: 10px; font-size: 29px; }
  .applicant-card__details > div {
    min-height: 34px;
    padding: 4px 0;
    font-size: 10px;
  }
  .applicant-card__details i { font-size: 16px; }
  .applicant-card__link { min-height: 34px; margin-top: 8px; font-size: 11px; }
}
