@font-face {
  font-family: "JameelNooriNastaleeq";
  src: url("https://hamqadam.b-cdn.net/fonts/JameelNooriNastaleeq.woff2") format("woff2"), url("https://hamqadam.b-cdn.net/fonts/JameelNooriNastaleeq.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body.language--ur {
  font-family: "JameelNooriNastaleeq", "Noto Nastaliq Urdu", "Nunito", sans-serif !important;

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  span,
  a,
  label {
    font-family: "JameelNooriNastaleeq", "Noto Nastaliq Urdu", "Nunito", sans-serif !important;
  }

  p {
    font-size: 22px;
  }

  span {
    font-size: 22px;
  }

  li a {
    font-size: 22px !important;
  }

}

.col-auto-brand {
  width: 22% !important;

  .header-logo {
    img {
      width: 100% !important;
    }
  }
}



html {
  scroll-behavior: smooth !important;
}

#introduction {
  scroll-margin-top: 300px !important;
}

#picture-gallery {
  scroll-margin-top: 100px !important;
}

.menu-item-has-children>a[href="/results"] {
  pointer-events: none !important;
  cursor: default;
}

.menu-item-has-children>a[href="/results"]:hover {
  text-decoration: none;
  color: var(--theme-color);
}

@media (min-width: 992px) {
  .menu-item-has-children>a[href="/examinations"] {
    pointer-events: none !important;
    cursor: default;
  }


  .menu-item-has-children>a[href="/results"] {
    pointer-events: none !important;
    cursor: default;
  }

  .menu-item-has-children>a[href="/download-forms"] {
    pointer-events: none !important;
    cursor: default;
  }




  /* disable Roll number slip Print menu item */
  .menu-item-has-children>.sub-menu>li>a[href="/roll-number-slip-print"] {
    pointer-events: none;
    cursor: default;
  }

}

@media (max-width: 991px) {

  /* Disable full link click */
  .menu-item-has-children>a[href="/examinations"] {
    pointer-events: none;
  }

  /* Enable only the toggle icon */
  .menu-item-has-children>a[href="/examinations"] .th-mean-expand {
    pointer-events: auto;
    cursor: pointer;
  }

  .menu-item-has-children>a[href="/ur/curriculum"] {
    pointer-events: none !important;
    cursor: default;
  }

    .menu-item-has-children>a[href="/ur/curriculum"] .th-mean-expand {
    pointer-events: auto;
    cursor: pointer;
  }

  .menu-item-has-children>a[href="/results"] {
    pointer-events: none !important;
    cursor: default;
  }

  .menu-item-has-children>a[href="/results"] .th-mean-expand {
    pointer-events: auto;
    cursor: pointer;
  }

  .menu-item-has-children>a[href="/download-forms"] {
    pointer-events: none !important;
    cursor: default;
  }

  .menu-item-has-children>a[href="/download-forms"] .th-mean-expand {
    pointer-events: auto;
    cursor: pointer;
  }

  /* disable Roll number slip Print menu item */
  .menu-item-has-children>.sub-menu>li>a[href="/roll-number-slip-print"] {
    pointer-events: none;
    cursor: default;
  }

  .menu-item-has-children>.sub-menu>li>a[href="/roll-number-slip-print"] .th-mean-expand {
    pointer-events: auto;
    cursor: pointer;
  }

}

.rules-and-regulations,
.fee-page {
  table {
    width: 700px;
    border: 2px solid black;

    tr {
      border: 1px solid black;

      td {
        border: 1px solid black;
        font-size: 22px !important;
        text-align: center;
      }
    }
  }
}

.path-contact {
  .contact-region {
    .page__header {
      display: none;
    }

    .page__content {
      .contact-message-contact-form {
        flex-wrap: wrap;
        display: flex;

        .field--name-field-name,
        .field--type-email,
        .field--name-field-phone-number,
        .field--name-subject,
        .form-actions,
        .field--name-field-subject {
          padding: 10px 50px;
          width: 50%;

          .js-form-item {
            display: flex;

            .form-label {
              width: 80px;
              font-size: 20px;
              display: flex;
              justify-content: center;
              align-items: center;
            }
          }
        }

        .js-form-item-copy {
          display: none;
        }
      }

      .contact-message-contact-form {
        flex-wrap: wrap;
        display: flex;
        justify-content: center;

        .field--name-field-address,
        .field--name-field-message {
          padding: 10px 50px;
          width: 100%;

          .js-form-item {
            display: flex;

            .form-label {
              width: 80px;
              font-size: 20px;
              display: flex;
              justify-content: center;
              align-items: center;
            }
          }
        }
      }
    }
  }
}

.path-contact {
  .dialog-off-canvas-main-canvas {
    background-color: #E0EDF4 !important;

    .th-header header-layout3 {
      background-color: white !important;
    }
  }
}

.other-exam-centers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.team {
  width: 32%;
  /* ✅ 3 per row with space between */
  border-radius: 5px;
  transition-duration: 0.3s;
  background-color: #F3F7FB;
  padding: 25px 35px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .col-auto-brand {
    width: 45% !important;
  }

  .path-contact {
    .contact-region {
      .page__header {
        display: none;
      }

      .page__content {
        .container {
          margin-left: 0;
          margin-right: 0;
          padding-left: 0;
          padding-right: 0;

          .contact-message-contact-form {
            flex-wrap: nowrap;
            display: block !important;

            .field--name-field-name,
            .field--type-email,
            .field--name-field-phone-number,
            .field--name-subject,
            .field--name-field-subject,
            .form-actions {
              padding: 10px 0px;
              width: 100% !important;

              .js-form-item {
                display: flex;

                .form-label {
                  width: 50px;
                }
              }
            }

            .js-form-item-copy {
              display: none;
            }
          }
        }

        .contact-message-contact-form {
          flex-wrap: wrap;
          display: flex;
          justify-content: center;

          .field--name-field-address,
          .field--name-field-message {
            padding: 10px 0px;
            width: 100% !important;

            .js-form-item {
              display: flex;

              .form-label {
                width: 50px;
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 992px) {

  .team,
  .contact-feature {
    width: 48%;
    /* 2 per row on tablets */
  }
}

@media (min-width: 477px) and (max-width: 624px) {

  .col-auto-brand {
    width: 40% !important;
  }
}

@media (max-width: 476px) {

  .col-auto-brand {
    width: 45% !important;
  }
}

@media (min-width: 625px) and (max-width: 980px) {

  .col-auto-brand {
    width: 30% !important;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .latest-news {
    padding-bottom: 20px !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .latest-news {
    padding-bottom: 20px !important;

    .bn-breaking-news {
      .bn-label {
        padding: 0px;
        min-width: 50px;

        .urdu {
          img {
            width: 50px !important;
          }
        }
      }

      .bn-news {
        right: 0px !important;
      }
    }
  }
}

@media (min-width: 327px) and (max-width: 480px) {
  .latest-news {
    padding-bottom: 20px !important;

    .bn-breaking-news {
      .bn-label {
        padding: 0px !important;
        padding-left: 10px !important;
        min-width: 50px;

        .urdu {
          img {
            padding-left: 10px;
            width: 40px !important;
          }

        }
      }

      .bn-news {
        right: 0px !important;
        left: 30px !important;
      }

      .bn-controls {

        .backward-button,
        .forward-button {
          display: none;
        }
      }
    }
  }
}


.current_leadership_front {
  .slick-dots {
    margin: 40px 0 0 0;
  }
}

/* Apply only on Urdu pages */
.hero-stats {
  display: block !important;
  width: 100% !important;

  direction: rtl !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
  white-space: pre-line !important;
  word-spacing: 12px;
  line-height: 1.1;
}

@media (max-width: 992px) {
  .path-frontpage {
    .introduction-front {
      .about-sec {
        padding-top: 20px;
      }
    }

    .apply-now-front {
      .row {
        margin-bottom: 30px;

        .col {
          padding-bottom: 20px !important;
          margin-bottom: 0px !important;
        }
      }
    }

    .current_leadership_front {
      padding-top: 30px;
    }


  }

  .footer-content {
    padding-bottom: 30px !important;

    .account-number {
      padding-bottom: 20px;

      .post-item {
        p {
          line-height: 1.0;
        }

      }
    }

    .logo {
      .logo-content {
        margin-bottom: 20px;
      }

      .th-social {
        margin-left: 100px;

        .title {
          margin: 0;
          font-size: 22px;
        }
      }
    }

    .footer-content {
      .office-timings {
        padding-top: 40px !important;
      }
    }
  }

  .rules-and-regulation-page,
  .fee-page {
    table {
      width: 350px;
    }
  }

  .contact-page {
    .contact-feature {
      display: flex;
      flex-direction: column;
      padding: 25px !important;
    }
  }
}