/* COMMON */
.bmh-inner-body {
    background: var(--bmh-bg);
}



.bmh-inner-content {
    min-width: 0;
}

.bmh-inner-content .content-area,
.bmh-inner-content .inner-cont {
    width: 100%;
    min-width: 0;
}

.bmh-inner-content .content-area {
    padding: 0;
    background: transparent;
}

.bmh-inner-content .inner-cont {
    margin: 0;
    padding: 0;
}

.bmh-inner-content
    > .content-area.content-grey
    > .inner-cont
    > .row {
    margin-right: 0;
    margin-left: 0;
}

/* SHARED FEEDBACK DIALOGS */
.bmh-inner-body .swal2-container {
    padding: 16px;
    background: rgba(4, 42, 25, 0.56);
}

.bmh-inner-body .swal2-popup {
    width: min(440px, calc(100% - 24px));
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--bmh-border);
    border-radius: 16px;
    background: var(--bmh-white);
    box-shadow: 0 24px 70px rgba(4, 42, 25, 0.24);
    color: var(--bmh-ink);
    font-family: inherit;
    font-size: 1rem !important;
}

.bmh-inner-body .swal2-icon {
    width: 4em;
    height: 4em;
    margin: 0 auto 12px;
    border-width: 0.2em;
    line-height: 4em;
}

.bmh-inner-body .swal2-icon.swal2-error {
    border-color: rgba(234, 76, 47, 0.55);
}

.bmh-inner-body .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    top: 1.86em;
    width: 2.35em;
    height: 0.24em;
    background: var(--bmh-accent);
}

.bmh-inner-body .swal2-icon.swal2-error [class$="left"] {
    left: 0.82em;
}

.bmh-inner-body .swal2-icon.swal2-error [class$="right"] {
    right: 0.82em;
}

.bmh-inner-body .swal2-title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--bmh-green-dark);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.25;
}

.bmh-inner-body .swal2-content,
.bmh-inner-body .swal2-html-container {
    margin: 0;
    padding: 0;
    color: var(--bmh-ink);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.bmh-inner-body .sweet-alert-error {
    margin: 0;
    padding: 10px 12px 10px 32px;
    border: 1px solid rgba(234, 76, 47, 0.24);
    border-radius: 10px;
    background: rgba(234, 76, 47, 0.08);
    color: #8f2f22;
}

.bmh-inner-body .sweet-alert-error li {
    margin: 0 0 3px;
    padding-left: 2px;
    color: inherit;
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: left;
}

.bmh-inner-body .sweet-alert-error li:last-child {
    margin-bottom: 0;
}

.bmh-inner-body .swal2-actions {
    margin: 14px auto 0;
}

.bmh-inner-body .swal2-styled {
    min-height: 38px;
    margin: 0 4px;
    padding: 8px 18px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 750;
}

.bmh-inner-body .swal2-styled.swal2-confirm {
    border: 1px solid var(--bmh-green);
    background: var(--bmh-green) !important;
    color: var(--bmh-white);
}

.bmh-inner-body .swal2-styled.swal2-confirm:hover,
.bmh-inner-body .swal2-styled.swal2-confirm:focus-visible {
    border-color: var(--bmh-green-dark);
    background: var(--bmh-green-dark) !important;
}

.bmh-inner-body .swal2-styled.swal2-cancel {
    border: 1px solid var(--bmh-border);
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark);
}

/* SHARED CARDS */
.bmh-card,
.bmh-card-panel,
.bmh-result-panel,
.bmh-detail-panel,
.bmh-empty-state,
.bmh-error-state {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bmh-border);
    border-radius: var(--bmh-radius);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
}

.bmh-card-header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bmh-border);
}

.bmh-card-title {
    min-width: 0;
    margin: 0;
    color: var(--bmh-green-dark);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.bmh-card--static,
.bmh-card--static:hover,
.bmh-card--static:focus-within {
    border-color: var(--bmh-border);
    box-shadow: var(--bmh-shadow);
    transform: none;
}

.bmh-card--static::after,
.bmh-card--static:hover::after,
.bmh-card--static:focus-within::after {
    display: none;
}

.bmh-card--interactive {
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease;
}

.bmh-inner-content-full {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--bmh-border);
    border-radius: var(--bmh-radius);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
}

.bmh-inner-content-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bmh-border);
    border-radius: calc(var(--bmh-radius) - 2px);
    background: var(--bmh-white);
}

.bmh-inner-content-notice {
    margin: 0;
    background: #fff8df;
    color: #5d4a08;
}

.bmh-inner-content-notice h2 {
    margin: 0 0 8px;
    color: #5d4a08;
    font-size: 1rem;
    font-weight: 750;
}

.bmh-inner-content-form {
    min-width: 0;
}

.bmh-inner-content-form__title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bmh-border);
}

.bmh-inner-content-form__title h2 {
    margin: 0;
    color: var(--bmh-green-dark);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 750;
}

.bmh-inner-content-form fieldset {
    min-width: 0;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--bmh-border);
    border-radius: 12px;
    background: #fbfdfc;
}

.bmh-inner-content-form legend {
    width: auto;
    margin: 0;
    padding: 0 8px;
    color: var(--bmh-green-dark);
    font-size: 0.95rem;
    font-weight: 750;
}

.bmh-inner-content-form .form-control {
    width: 100%;
    max-width: 100%;
}

/* SHARED SECTIONED FORMS */
.bmh-form-sections {
    display: grid;
    gap: 14px;
}

.bmh-form-sections .bmh-inner-content-form__title {
    margin: 0;
}

.bmh-form-sections .bmh-form-section {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--bmh-border);
    border-top: 3px solid var(--bmh-green);
    border-radius: 14px;
    background: var(--bmh-white);
    box-shadow: 0 8px 24px rgba(4, 42, 25, 0.06);
}

.bmh-form-sections .bmh-form-section__legend {
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 20px);
    align-items: center;
    gap: 7px;
    margin: 0 0 4px;
    padding: 5px 10px;
    border: 1px solid rgba(15, 103, 66, 0.12);
    border-radius: 999px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.3;
}

.bmh-form-sections .bmh-form-section__legend::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--bmh-green);
    content: "";
}

.bmh-form-section > .row.form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 0 14px;
}

.bmh-form-section > .row.form-group:last-child {
    margin-bottom: 0;
}

.bmh-form-section > .row.form-group:has(> :only-child:not(.bmh-form-upload):not(.bmh-form-field--wide)) {
    grid-template-columns: minmax(220px, 360px);
}

.bmh-form-section > .row.form-group:has(> .bmh-form-upload),
.bmh-form-section > .row.form-group:has(> .bmh-form-field--wide) {
    grid-template-columns: minmax(0, 1fr);
}

.bmh-form-section > .row.form-group > [class*="col-"] {
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.bmh-form-section > .row.form-group > [class*="col-"] > .control-label,
.bmh-form-section > .row.form-group > [class*="col-"] > [class*="col-"],
.bmh-form-section .dob-wrap,
.bmh-form-section .dob-wrap > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.bmh-form-section .control-label {
    display: block;
    margin: 0 0 5px !important;
    color: var(--bmh-ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.bmh-form-section .form-control,
.bmh-form-section .select2-container .select2-selection--single {
    min-height: 42px;
    border: 1px solid var(--bmh-border);
    border-radius: 10px;
    background: #fbfdfc;
    color: var(--bmh-ink);
}

.bmh-form-section textarea.form-control {
    min-height: 82px;
    resize: vertical;
}

.bmh-form-section .form-control:focus,
.bmh-form-section .select2-container--focus .select2-selection--single {
    border-color: var(--bmh-green);
    background: var(--bmh-white);
    box-shadow: 0 0 0 3px rgba(15, 103, 66, 0.1) !important;
}

.bmh-form-section .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    width: 100%;
}

.bmh-form-section .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.bmh-form-section .input-group-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bmh-border);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
}

/* Datepicker icon inside input box - General */
.input-group.datepicker {
    position: relative !important;
    display: block !important;
}


.input-group.datepicker .form-control {
    padding-right: 45px;
    border-radius: 10px !important;
    min-height: 40px;
}

.input-group.datepicker .input-group-addon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none !important;
    border-radius: 6px;
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.input-group.datepicker .input-group-addon:hover {
    background: var(--bmh-green) !important;
    color: white;
}

.input-group.datepicker .input-group-addon i {
    font-size: 14px;
}

.bmh-form-section .help-block,
.bmh-form-section .red-txt-on-green {
    display: block;
    margin: 4px 0 0;
    color: var(--bmh-muted) !important;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bmh-form-section > .row.form-group > .bmh-form-upload {
    padding: 16px !important;
    border: 1px dashed rgba(15, 103, 66, 0.3);
    border-radius: 12px;
    background: var(--bmh-green-soft);
}

.bmh-form-upload > .control-label {
    margin-bottom: 8px !important;
}

.bmh-form-upload__layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0;
}

.bmh-form-upload__control,
.bmh-form-upload__preview {
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.bmh-form-file {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 7px;
    border: 1px solid var(--bmh-border);
    border-radius: 9px;
    background: var(--bmh-white);
    color: var(--bmh-ink);
    font-size: 0.8rem;
}

.bmh-form-upload__preview .pip {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    align-items: center;
}

.bmh-form-upload__preview .imageThumb {
    width: 66px;
    height: 74px;
    border: 3px solid var(--bmh-white);
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(4, 42, 25, 0.12);
    object-fit: cover;
}

.bmh-form-upload__preview br {
    display: none;
}

.bmh-form-upload__preview .remove {
    border: 1px solid rgba(234, 76, 47, 0.24) !important;
    background: var(--bmh-white) !important;
    color: var(--bmh-accent) !important;
}

.bmh-form-sections > .bmh-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.bmh-form-sections > .bmh-form-actions .btn-primary {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
}

.bmh-form-sections > .bmh-form-actions .btn-primary:hover,
.bmh-form-sections > .bmh-form-actions .btn-primary:focus-visible {
    border-color: var(--bmh-green-dark) !important;
    background: var(--bmh-green-dark) !important;
}

.bmh-form-sections > .bmh-form-actions > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.bmh-card-body {
    min-width: 0;
    padding: 14px;
}

.bmh-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* SHARED FORMS AND ALERTS */
.bmh-form,
.bmh-form-row,
.bmh-form-group {
    min-width: 0;
}

.bmh-form-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.bmh-form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--bmh-green-dark);
    font-weight: 700;
}

.bmh-form-control,
.bmh-form .form-control,
.bmh-form .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.bmh-form-help,
.bmh-form-error {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bmh-form-error {
    color: #a43727;
}

/* SHARED RESULT SEARCH */
.bmh-result-search-layout {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.bmh-result-search-content {
    align-items: start;
}

.bmh-result-search-messages {
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 !important;
}

.bmh-result-search-messages:not(:has(.alert)):not(:has(.response:not([style*="display:none"]):not([style*="display: none"]))) {
    display: none;
}

.bmh-result-search-panel {
    width: min(100%, 620px);
    min-width: 0;
    margin: 0;
    padding: 16px !important;
    border: 1px solid var(--bmh-border);
    border-radius: 14px;
    background: var(--bmh-white);
    box-shadow: 0 8px 24px rgba(4, 42, 25, 0.06);
}

.bmh-result-search-panel__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--bmh-border);
}

.bmh-result-search-panel__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green);
}

.bmh-result-search-panel__heading h2 {
    margin: 0;
    color: var(--bmh-green-dark);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.bmh-result-search-panel__heading p {
    margin: 2px 0 0;
    color: var(--bmh-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.bmh-result-search-class,
.bmh-result-search-form > .form-group,
.bmh-result-search-form .by-rollno,
.bmh-result-search-form .by-name,
.bmh-result-search-form .by-rollno-h,
.bmh-result-search-form .by-name-h {
    width: 100%;
    margin: 0 0 12px;
}

.bmh-result-search-class > [class*="col-"],
.bmh-result-search-form > .form-group > [class*="col-"],
.bmh-result-search-form .by-rollno > [class*="col-"],
.bmh-result-search-form .by-name > [class*="col-"],
.bmh-result-search-form .by-rollno-h > [class*="col-"],
.bmh-result-search-form .by-name-h > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}

.bmh-result-search-form,
.bmh-result-search-panel .ssc-wrap,
.bmh-result-search-panel .hssc-wrap {
    min-width: 0;
    width: 100%;
    margin: 0;
}

.bmh-result-search-panel .control-label {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 5px;
    padding: 0 !important;
    color: var(--bmh-ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.bmh-result-search-panel .form-control {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid var(--bmh-border);
    border-radius: 10px;
    background: #fbfdfc;
    color: var(--bmh-ink);
}

.bmh-result-search-panel .form-control:focus {
    border-color: var(--bmh-green);
    background: var(--bmh-white);
    box-shadow: 0 0 0 3px rgba(15, 103, 66, 0.1) !important;
}

.bmh-result-search-panel .form-text,
.bmh-result-search-panel .help-block {
    display: block;
    margin: 4px 0 0;
    color: var(--bmh-muted) !important;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bmh-result-search-panel .by-rollno .row,
.bmh-result-search-panel .by-name .row,
.bmh-result-search-panel .by-rollno-h .row,
.bmh-result-search-panel .by-name-h .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 5px;
}

.bmh-result-search-panel .by-rollno .row > *,
.bmh-result-search-panel .by-name .row > *,
.bmh-result-search-panel .by-rollno-h .row > *,
.bmh-result-search-panel .by-name-h .row > * {
    width: auto;
    max-width: none;
    flex: 0 1 auto;
}

.bmh-result-search-panel .text-underline {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.bmh-result-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0 !important;
}

.bmh-result-search-actions > [class*="col-"],
.bmh-result-search-actions > div {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.bmh-result-search-actions .btn-primary,
.bmh-result-search-actions > .btn-primary {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
}

.bmh-result-search-actions .btn-light {
    border-color: var(--bmh-border) !important;
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark) !important;
}

.bmh-result-captcha {
    display: grid;
    gap: 8px;
}

.bmh-result-captcha br {
    display: none;
}

.bmh-result-search-output {
    min-width: 0;
    width: 100%;
    margin: 0;
}

.bmh-result-detail {
    align-items: start;
}

.bmh-result-detail__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bmh-border);
}

.bmh-result-detail__toolbar .btn-light {
    border-color: var(--bmh-border) !important;
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark) !important;
}

.bmh-result-detail__query {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    font-size: 0.8rem;
}

.bmh-result-detail .bmh-table-wrap {
    width: 100%;
    margin: 0;
    border: 1px solid var(--bmh-border);
    border-radius: 12px;
}

.bmh-result-detail__empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    width: 100%;
    padding: 28px 16px;
    text-align: center;
}

.bmh-result-detail__empty i {
    color: var(--bmh-green);
    font-size: 1.25rem;
}

.bmh-result-detail__empty h2,
.bmh-result-detail__empty p {
    margin: 0;
}

.bmh-result-detail__empty h2 {
    color: var(--bmh-green-dark);
    font-size: 1rem;
}

.bmh-result-detail__empty p {
    color: var(--bmh-muted);
    font-size: 0.82rem;
}

.bmh-alert {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--bmh-border);
    border-radius: 10px;
    line-height: 1.5;
}

.bmh-alert-warning {
    border-color: #ead28a;
    background: #fff8df;
    color: #5d4a08;
}

.bmh-alert-info {
    border-color: #a9d8c0;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
}

.bmh-alert-success {
    border-color: #93cfaa;
    background: #edf9f1;
    color: #145f35;
}

.bmh-alert-error {
    border-color: #e6b4ad;
    background: #fff1ef;
    color: #8f3024;
}

/* SHARED TABLES */
.bmh-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--bmh-border);
    border-radius: 12px;
    background: var(--bmh-white);
}

.bmh-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.bmh-table th,
.bmh-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--bmh-border);
    text-align: start;
    vertical-align: middle;
}

.bmh-table th {
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    font-weight: 750;
}

.bmh-table-empty,
.bmh-empty-state,
.bmh-error-state {
    padding: 20px;
    color: var(--bmh-muted);
    text-align: center;
}

.bmh-result-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bmh-result-directory-card {
    min-height: 150px;
}

.bmh-result-directory-card .bmh-service-directory-card__db-content {
    min-width: 0;
    padding: 0 14px 13px;
    color: var(--bmh-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.bmh-result-directory-card .bmh-service-directory-card__db-content > :last-child {
    margin-bottom: 0;
}

.bmh-service-directory-card {
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.bmh-service-directory-card:hover,
.bmh-service-directory-card:focus-within {
    border-color: rgba(15, 103, 66, 0.28);
    box-shadow: var(--bmh-shadow-hover);
    transform: translateY(-3px);
}

.bmh-card .bmh-service-directory-card__db-content .btn {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 5px 5px 0 !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(15, 103, 66, 0.20) !important;
    border-radius: 8px !important;
    background: var(--bmh-green-soft) !important;
    box-shadow: none !important;
    color: var(--bmh-green-dark) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: normal;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.bmh-card .bmh-service-directory-card__db-content .btn:hover,
.bmh-card .bmh-service-directory-card__db-content .btn:focus-visible {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
    transform: translateY(-1px);
}

.bmh-bill-inquiry {
    display: block;
}

.bmh-bill-inquiry__instructions,
.bmh-bill-inquiry__results {
    width: 100%;
    max-width: 100%;
}

.bmh-bill-inquiry__instructions {
    margin: 0;
    padding: 0;
    border-color: rgba(15, 103, 66, 0.18);
    background: #fff8df;
    color: #5d4a08;
}

.bmh-bill-inquiry__instructions-title {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #ead28a;
    color: #5d4a08;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.bmh-bill-inquiry__instructions .instruct-border {
    border: 0;
    padding: 14px;
    color: #5d4a08;
    line-height: 2;
}

.bmh-bill-inquiry__instructions ol {
    margin: 0;
    padding-inline-start: 24px;
}

.bmh-bill-inquiry__search {
    width: min(100%, 780px);
    justify-self: start;
}

.bmh-bill-inquiry__search .bmh-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.bmh-bill-inquiry__search .bmh-form-group {
    margin: 0;
}

.bmh-bill-inquiry__search .bmh-card-actions {
    flex-wrap: nowrap;
}

.bmh-bill-inquiry__search .btn-primary {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
}

.bmh-bill-inquiry__search .btn-primary:hover,
.bmh-bill-inquiry__search .btn-primary:focus-visible {
    border-color: var(--bmh-green-dark) !important;
    background: var(--bmh-green-dark) !important;
}

.bmh-bill-inquiry__search .btn-light {
    border-color: rgba(15, 103, 66, 0.18) !important;
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark) !important;
}

.bmh-rollno-page .bmh-application-guide-panel {
    padding: 14px !important;
    direction: rtl;
    line-height: 1.9;
    text-align: right;
}

.bmh-rollno-page .bmh-application-guide-panel ul {
    margin: 0;
    padding-right: 20px;
}

.bmh-rollno-page .bmh-application-form-panel {
    padding: 14px !important;
}

.bmh-application-messages {
    display: grid;
    gap: 10px;
    margin: 0;
}

.bmh-application-messages:has(.alert),
.bmh-application-messages:has(.response:not([style*="display:none"]):not([style*="display: none"])) {
    margin-bottom: 10px;
}

.bmh-application-messages .alert {
    margin: 0;
    border-radius: 10px;
}

/* SHARED TABBED FORMS */
.bmh-form-tabs {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--bmh-border) !important;
    border-radius: var(--bmh-radius) !important;
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
}

.bmh-form-tabs__nav,
.option-tabs .bmh-form-tabs__nav,
.option-tabs-grbg .bmh-form-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
    padding: 8px;
    border: 0 !important;
    border-bottom: 1px solid var(--bmh-border) !important;
    background: var(--bmh-green-soft) !important;
}

.bmh-form-tabs__nav .nav-item {
    display: flex;
    flex: 1 1 180px;
    min-width: 0;
    margin: 0;
}

.bmh-form-tabs .bmh-form-tabs__nav .nav-item .nav-link {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 12px;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--bmh-green-dark) !important;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.bmh-form-tabs .bmh-form-tabs__nav .nav-item .nav-link:hover,
.bmh-form-tabs .bmh-form-tabs__nav .nav-item .nav-link:focus-visible {
    border-color: rgba(15, 103, 66, 0.22) !important;
    background: var(--bmh-white) !important;
}

.bmh-form-tabs .bmh-form-tabs__nav .nav-item .nav-link.active,
.bmh-form-tabs .bmh-form-tabs__nav .nav-item.show .nav-link {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    box-shadow: 0 5px 14px rgba(15, 103, 66, 0.18);
    color: var(--bmh-white) !important;
}

.bmh-form-tabs__body {
    min-width: 0;
    padding: 14px;
}

.bmh-form-tabs__content,
.option-tabs .bmh-form-tabs__content,
.option-tabs-grbg .bmh-form-tabs__content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bmh-white);
    box-shadow: none !important;
}

.bmh-form-tabs__body > .bmh-form-tabs__content {
    padding: 0 !important;
}

.bmh-form-tabs__content > .tab-pane {
    min-width: 0;
    width: 100%;
}

.bmh-form-tabs__nav--secondary,
.option-tabs-grbg .bmh-form-tabs__nav--secondary {
    justify-content: flex-start;
    margin-bottom: 12px !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

.bmh-form-tabs__nav--secondary .nav-item {
    flex: 0 1 auto;
}

.bmh-form-tabs .bmh-form-tabs__nav--secondary .nav-item .nav-link {
    min-height: 34px;
    padding: 6px 10px;
    border-color: var(--bmh-border) !important;
    background: var(--bmh-green-soft) !important;
}

.bmh-form-tabs .bmh-form-tabs__nav--secondary .nav-item .nav-link.active {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
}

.bmh-form-tabs__record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px !important;
}

.bmh-form-tabs__record-grid > [class*="col-"],
.bmh-form-tabs__content--nested {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.bmh-form-tabs__content--nested {
    flex: none;
}

.bmh-form-tabs__record-grid > :last-child {
    align-self: end;
}

.bmh-bank-challan-page .bmh-application-form-panel {
    padding: 12px !important;
}

.bmh-bank-challan-page .bmh-form-tabs__body > .form-group {
    margin-right: 0;
    margin-left: 0;
}

/* SHARED APPLICATION / INSTRUCTIONS LAYOUT */
.bmh-application-page,
.bmh-application-page * {
    box-sizing: border-box;
}

.bmh-application-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--bmh-border);
    border-radius: 14px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
}

.bmh-application-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 14px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.bmh-application-layout > div {
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.bmh-application-form-column {
    grid-column: 1;
    grid-row: 1;
}

.bmh-application-guide-column {
    grid-column: 2;
    grid-row: 1;
}

.bmh-application-form-panel,
.bmh-application-guide-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px !important;
    border: 1px solid var(--bmh-border);
    border-radius: var(--bmh-radius);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
    color: var(--bmh-ink);
}

.bmh-application-form-panel .alert {
    width: auto;
    max-width: 100%;
    margin: 0 0 10px !important;
    border-radius: 10px;
}

.bmh-application-form-panel .alert-warning {
    border: 1px solid #ead28a;
    background: #fff8df;
    color: #5d4a08;
}

.bmh-application-form-panel fieldset,
.bmh-application-form-panel .form-load-wrapper,
.bmh-application-form-panel .form-confirm-wrapper {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.bmh-application-form-panel .form-group {
    margin-right: 0;
    margin-left: 0;
}

.bmh-application-guide-panel .accordion-instr {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bmh-application-form-panel .sub-title {
    margin: 0 0 10px;
    color: var(--bmh-green-dark);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.bmh-application-page fieldset {
    min-width: 0;
    margin: 10px 0 0;
    padding: 12px;
    border: 1px solid var(--bmh-border);
    border-radius: 14px;
    background: #fbfdfb;
}

.bmh-application-page legend {
    width: auto;
    max-width: calc(100% - 16px);
    margin: 0;
    padding: 0 8px;
    color: var(--bmh-green-dark);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.4;
}

.bmh-application-page .control-label {
    margin-bottom: 5px;
    color: var(--bmh-ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.bmh-application-page .form-control,
.bmh-application-page .select2-container .select2-selection--single {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    border-color: var(--bmh-border);
    border-radius: 10px;
}

.bmh-application-page .accordion-instr {
    display: grid;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: var(--bmh-ink);
    text-align: right;
}

.bmh-application-page .accordion-instr .btn-collapse {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid var(--bmh-border);
    border-radius: 12px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.7;
}

.bmh-application-page .accordion-instr .collapse-icon {
    margin-right: auto;
    flex: 0 0 auto;
}

.bmh-application-page .accordion-instr .collapse {
    padding: 3px 12px 10px;
    border-inline: 1px solid var(--bmh-border);
    border-bottom: 1px solid var(--bmh-border);
    border-radius: 0 0 12px 12px;
    background: var(--bmh-white);
    font-size: 0.88rem;
    line-height: 1.8;
}

.bmh-application-page .accordion-instr ol,
.bmh-application-page .accordion-instr ul {
    margin: 0;
    padding-right: 22px;
}

@media (max-width: 1100px) {
    .bmh-result-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-application-layout {
        grid-template-columns: 1fr;
    }

    .bmh-application-form-column,
    .bmh-application-guide-column {
        grid-column: 1;
        width: 100%;
    }

    .bmh-application-guide-column {
        grid-row: 1;
    }

    .bmh-application-form-column {
        grid-row: 2;
    }
}

@media (max-width: 900px) {
    .bmh-application-help {
        grid-template-columns: 1fr;
    }

    .bmh-application-help > * {
        width: 100%;
        max-width: 100%;
        text-align: start !important;
    }
}

@media (max-width: 600px) {
    .bmh-inner-body .swal2-container {
        padding: 10px;
    }

    .bmh-inner-body .swal2-popup {
        width: calc(100% - 12px);
        padding: 16px 14px;
        border-radius: 14px;
    }

    .bmh-inner-body .swal2-title {
        font-size: 1.1rem;
    }

    .bmh-inner-body .swal2-content,
    .bmh-inner-body .swal2-html-container {
        font-size: 0.84rem;
    }

    .bmh-form-sections {
        gap: 12px;
    }

    .bmh-form-sections .bmh-form-section {
        padding: 12px;
        border-radius: 12px;
    }

    .bmh-form-section > .row.form-group,
    .bmh-form-section > .row.form-group:has(> :only-child:not(.bmh-form-upload):not(.bmh-form-field--wide)) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .bmh-form-upload__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bmh-form-upload__preview .pip {
        justify-content: start;
    }

    .bmh-result-search-panel {
        width: 100%;
        padding: 13px !important;
        border-radius: 12px;
    }

    .bmh-result-search-panel__heading {
        align-items: flex-start;
    }

    .bmh-result-search-panel .by-rollno .row,
    .bmh-result-search-panel .by-name .row,
    .bmh-result-search-panel .by-rollno-h .row,
    .bmh-result-search-panel .by-name-h .row {
        align-items: flex-start;
    }

    .bmh-result-search-panel .text-underline {
        text-align: right;
    }

    .bmh-result-detail__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .bmh-form-tabs__nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bmh-form-tabs__nav--secondary {
        display: flex !important;
        flex-wrap: nowrap;
    }

    .bmh-form-tabs__nav--secondary .nav-item {
        flex: 1 1 0;
        width: auto;
    }

    .bmh-form-tabs__nav:not(.bmh-form-tabs__nav--secondary) .nav-item {
        width: 100%;
    }

    .bmh-form-tabs__body,
    .bmh-form-tabs__content {
        padding: 12px !important;
    }

    .bmh-form-tabs__body > .bmh-form-tabs__content {
        padding: 0 !important;
    }

    .bmh-form-tabs__record-grid {
        grid-template-columns: 1fr;
    }

    .bmh-inner-content-form .form-group > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .bmh-result-card-grid,
    .bmh-bill-inquiry__search .bmh-form {
        grid-template-columns: 1fr;
    }

    .bmh-application-help {
        grid-template-columns: 1fr;
    }

    .bmh-form-row {
        grid-template-columns: 1fr;
    }
}

/* Repeatable cards only. Do not apply to page-level content containers. */
.bmh-inner-card {
    --bmh-inner-card-lift: -4px;
    --bmh-inner-card-bubble: rgba(34, 136, 82, 0.055);
    --bmh-inner-card-bubble-hover: rgba(34, 136, 82, 0.08);
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border-color: var(--bmh-border);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
    animation: bmhInnerCardEnter 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease;
}

.bmh-inner-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    z-index: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--bmh-inner-card-bubble);
    pointer-events: none;
    transform: scale(1);
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 0.35s ease;
}

.bmh-inner-card > * {
    position: relative;
    z-index: 1;
}

.bmh-inner-card:hover,
.bmh-inner-card:focus-within {
    border-color: #cfe2d7;
    box-shadow: var(--bmh-shadow-hover);
    transform: translate3d(0, var(--bmh-inner-card-lift), 0);
}

.bmh-inner-card:hover::after,
.bmh-inner-card:focus-within::after {
    background: var(--bmh-inner-card-bubble-hover);
    transform: scale(1.18);
}

.bmh-inner-card:nth-child(2) {
    animation-delay: 0.04s;
}

.bmh-inner-card:nth-child(3) {
    animation-delay: 0.08s;
}

.bmh-inner-card:nth-child(4) {
    animation-delay: 0.12s;
}

@keyframes bmhInnerCardEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* PAGE TITLE */
.bmh-inner-content .section-title {
    color: var(--bmh-green-dark);
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
    text-wrap: balance;
    font-weight: 650;
}

/* COMMON */
.bmh-inner-content .btn {
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.bmh-inner-content .btn-sm {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.bmh-inner-content .form-control,
.bmh-inner-content select.form-control {
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.bmh-inner-content .alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.bmh-inner-section-title {
    margin: 0 0 10px;
    color: var(--bmh-green-dark);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.bmh-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bmh-empty-state {
    padding: 20px;
    border: 1px dashed var(--bmh-border);
    border-radius: 12px;
    background: var(--bmh-white);
    color: var(--bmh-muted);
    text-align: center;
}

.bmh-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.bmh-filter-bar__label {
    margin-right: 4px;
    color: var(--bmh-green-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.bmh-filter-chip {
    min-height: 38px !important;
    padding: 6px 12px !important;
    border: 1px solid var(--bmh-border) !important;
    background: var(--bmh-white);
    color: var(--bmh-green-dark);
}

.bmh-filter-chip[aria-pressed="true"] {
    border-color: var(--bmh-green) !important;
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
}

.bmh-inner-content .pagination-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 12px 0;
    padding: 0;
}

.bmh-inner-content .pagination {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.bmh-inner-content .pagination .page-link {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--bmh-border);
    border-radius: 7px;
    background: var(--bmh-white);
    color: var(--bmh-green-dark);
    font-size: 0.8rem;
}

.bmh-inner-content .pagination .active .page-link {
    border-color: var(--bmh-green);
    background: var(--bmh-green);
    color: var(--bmh-white);
}

.bmh-inner-content .pagination .disabled .page-link {
    color: #98a69e;
    pointer-events: none;
}

.bmh-inner-content img,
.bmh-inner-content svg,
.bmh-inner-content video,
.bmh-inner-content iframe {
    max-width: 100%;
}

.bmh-content-gallery__link {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
}

.bmh-content-gallery__link img {
    display: block;
    max-width: 100%;
    height: auto;
    transition:
        filter 0.24s ease,
        transform 0.24s ease;
}

.bmh-content-gallery__link::after {
    content: "\f00e";
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 90, 55, 0.9);
    color: var(--bmh-white);
    font-family: "Font Awesome 5 Free";
    font-size: 0.78rem;
    font-weight: 900;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.bmh-content-gallery__link:hover img,
.bmh-content-gallery__link:focus-visible img {
    filter: brightness(0.94);
    transform: scale(1.015);
}

.bmh-content-gallery__link:hover::after,
.bmh-content-gallery__link:focus-visible::after {
    opacity: 1;
    transform: none;
}

.fancybox-container {
    z-index: 100000;
}

.fancybox-button--download {
    display: inline-flex !important;
}

.bmh-inner-content :focus-visible {
    outline: 3px solid var(--bmh-gold);
    outline-offset: 3px;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .bmh-inner-content *,
    .bmh-inner-content *::before,
    .bmh-inner-content *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/*
 * SPLIT LAYOUT AND PANELS
 * Two equal panels (details/history, form/guide) that stack below 992px.
 * Add .bmh-split-layout__mobile-first to a panel to show it first when stacked.
 * .bmh-split-panel shares its card and title design with the application
 * form/guide panels so every two-column inner page looks the same.
 */
.bmh-split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.bmh-split-layout__stack {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.bmh-split-panel,
.bmh-application-form-panel,
.bmh-application-guide-panel {
    min-width: 0;
    max-width: 100%;
    padding: 16px !important;
    border: 1px solid var(--bmh-border);
    border-radius: var(--bmh-radius);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
    color: var(--bmh-ink);
    box-sizing: border-box;
}

.bmh-split-panel__title,
.bmh-application-form-panel .sub-title {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--bmh-green-dark);
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.3;
}

.bmh-split-panel__title > i,
.bmh-application-form-panel .sub-title > i {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bmh-green-soft);
    color: var(--bmh-green-dark);
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
}

.bmh-split-panel .bmh-table-wrap,
.bmh-split-panel .table {
    margin-bottom: 0;
}

/* Page-level action buttons and notices that span the content width. */
.bmh-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.bmh-page-actions:empty {
    display: none;
}

.bmh-page-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.bmh-page-actions .btn-primary {
    border-color: var(--bmh-green);
    border-radius: 9px;
    background: var(--bmh-green);
    color: var(--bmh-white);
    font-weight: 750;
}

.bmh-page-actions .btn-primary:hover,
.bmh-page-actions .btn-primary:focus {
    border-color: var(--bmh-green-dark);
    background: var(--bmh-green-dark);
    color: var(--bmh-white);
}

.bmh-page-notices {
    width: 100%;
}

.bmh-page-notices:empty {
    display: none;
}

.bmh-page-notices .bmh-alert {
    margin: 0 0 12px;
}

.bmh-page-notices .bmh-alert ol {
    margin: 0;
    padding-inline-start: 1.4em;
}

@media (max-width: 991.98px) {
    .bmh-split-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .bmh-split-layout__stack {
        gap: 10px;
    }

    /* e.g. instructions/guide panel shown above the form when stacked */
    .bmh-split-layout > .bmh-split-layout__mobile-first {
        order: -1;
    }
}

/* =========================================================
   BISE Malakand Modern Theme
   Responsive styles
========================================================= */

@media (min-width: 768px) {
    .bmh-container {
        width: min(calc(100% - 50px), 1480px);
    }
}

@media (max-width: 1200px) {
    .bmh-brandbar__inner {
        grid-template-columns:
            minmax(430px, 1fr)
            minmax(250px, 300px);

        gap: 18px;
    }

    .bmh-brand strong {
        font-size: clamp(18px, 1.7vw, 20px);
    }

    .bmh-brand img {
        width: 82px;
        height: 82px;
    }

    .bmh-brand-copy > .site-urdu-name {
        font-size: 18px;
        line-height: 38px !important;
    }

    .bmh-brand-actions .bmh-btn {
        padding-inline: 13px;

        font-size: 11px;
    }

    .bmh-header-search {
        max-width: 280px;
    }
}

/* Homepage review pass: compact, readable mobile system. */

@media (max-width: 820px) {
    .bmh-home section:not(.bmh-urgent):not(.bmh-hero) {
        padding-block: 15px;
    }

    .bmh-home .bmh-section-title,
    .bmh-home .bmh-services-directory__heading,
    .bmh-home .bmh-institution-corner__heading,
    .bmh-home .bmh-contact__heading,
    .bmh-home .bmh-board-hub__heading {
        font-size: 1.375rem;
        line-height: 1.18;
    }

    .bmh-home .bmh-section-intro,
    .bmh-home .bmh-services-directory__intro,
    .bmh-home .bmh-institution-corner__intro,
    .bmh-home .bmh-contact__intro {
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    .bmh-home :is(button, .btn, [role="button"], input, select, textarea):not(.bmh-carousel-control):not([data-bmh-gallery-dot]),
    .bmh-home .bmh-service-tabs__button,
    .bmh-home .bmh-mobile-nav-toggle,
    .bmh-home .bmh-mobile-updates-toggle {
        min-height: 44px;
    }

    .bmh-home .bmh-social-link {
        width: 44px;
        height: 44px;
    }

    .bmh-shell .bmh-urgent__item,
    .bmh-home .bmh-footer,
    .bmh-home .bmh-footer a,
    .bmh-home .bmh-institution-corner__card,
    .bmh-home .bmh-contact-card {
        font-size: 0.8125rem;
    }

    .bmh-home .bmh-mobile-updates-toggle {
        color: var(--bmh-white);
    }

    .bmh-home .bmh-featured-services__item,
    .bmh-home .bmh-featured-service-link {
        min-height: 64px;
    }

    .bmh-home .bmh-featured-service-title {
        font-size: 0.8375rem;
        line-height: 1.35;
    }

    .bmh-home :is(#bmh-services, #services) .bmh-featured-service-link__main {
        min-height: 44px !important;
    }
}

@media (max-width: 479px) {
    .bmh-home section:not(.bmh-urgent):not(.bmh-hero) {
        padding-block: 15px;
    }

}

/* Brand hierarchy: English name is primary, Urdu name is secondary. */

@media (max-width: 1200px) {
    .bmh-brand-heading {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }

    .bmh-brand-heading + .site-urdu-name {
        font-size: 1rem;
        line-height: 1.5 !important;
    }
}

@media (max-width: 820px) {
    .bmh-brand-heading {
        font-size: 1.4rem;
        line-height: 1.18;
    }

    .bmh-brand-heading + .site-urdu-name {
        margin-top: 3px;
        font-size: 0.9375rem;
        line-height: 1.45 !important;
        text-align: left;
    }
}

@media (max-width: 430px) {
    .bmh-brand-heading {
        font-size: 1.2rem;
    }

    .bmh-brand-heading + .site-urdu-name {
        font-size: 0.875rem;
        white-space: normal;
    }
}

@media (max-width: 820px) {
    .bmh-shell .bmh-urgent__item {
        font-family: var(--bmh-font-urdu) !important;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 1.8;
    }
}

@media (max-width: 430px) {
    .bmh-shell .bmh-urgent__item {
        font-size: 0.71875rem;
    }
}


@media (max-width: 1100px) {
    .bmh-brandbar__inner {
        grid-template-columns:
            minmax(400px, 1fr)
            minmax(240px, 280px);

        gap: 16px;
    }
}


@media (max-width: 1040px) {
    .bmh-hero-grid {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(300px, 0.85fr);
    }

    .bmh-services-layout {
        grid-template-columns: 1fr;
    }

    .bmh-institution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmh-glance,
    .bmh-download-layout,
    .bmh-contact-layout {
        grid-template-columns: 1fr;
    }

    .bmh-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 950px) {
    .bmh-brandbar__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(230px, 260px);
        grid-template-rows: auto auto;

        gap: 8px 12px;
        padding-block: 10px;
    }

    .bmh-brand {
        grid-row: 1 / 3;
    }

    .bmh-brand img {
        width: 72px;
        height: 72px;
    }

    .bmh-brand strong {
        font-size: 18px;
    }

    .bmh-brand-copy > .site-urdu-name {
        font-size: 17px;
        line-height: 36px !important;
    }

    .bmh-header-search {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        max-width: 260px;
        justify-self: end;
    }

    .bmh-brand-actions {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}


@media (max-width: 900px) {
    .bmh-nav-menu .bmh-nav-link {
        padding-inline: 10px;

        font-size: 12px;
    }
}


@media (max-width: 950px) {
    .bmh-hero-grid {
        grid-template-columns: 1fr;
    }

    .bmh-gallery-card {
        height: 430px;
    }

    .bmh-updates-card {
        height: 500px;
    }

    .bmh-about {
        grid-template-columns: 1fr;
    }

    .bmh-about__visual {
        min-height: 220px;
    }

    .bmh-about__visual img {
        width: 125px;
        height: 125px;
    }

    .bmh-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmh-section {
        padding: 40px 0;
    }

    .bmh-section-head {
        align-items: flex-start;
    }

    .bmh-download-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {
    .bmh-brand-title{
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .bmh-nav__inner {
        display: block;

        min-height: 42px;
    }

    .bmh-nav-toggle {
        display: flex;

        min-height: 42px;
        padding-block: 8px;
    }

    .bmh-nav-menu {
        display: none;

        width: 100%;

        padding: 0 0 10px;

        gap: 2px;
    }

    .bmh-nav-menu.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-nav-menu .bmh-nav-link {
        justify-content: flex-start;

        width: 100%;
        min-height: 46px;

        padding: 11px 13px;

        font-size: 13px;
    }

    .bmh-nav-menu .bmh-nav-link i {
        width: 21px;

        font-size: 14px;
    }

    .bmh-nav-menu .bmh-nav-link::after {
        right: auto;
        bottom: 5px;
        left: 13px;

        width: 28px;

        transform: scaleX(0.4);
        transform-origin: left center;
    }

    .bmh-nav-menu .bmh-nav-link:hover::after,
    .bmh-nav-menu .bmh-nav-link:focus-visible::after,
    .bmh-nav-menu .bmh-nav-link.is-active::after {
        transform: scaleX(1);
    }
}


@media (max-width: 700px) {
    .bmh-topbar__inner {
        display: flex;
        flex-wrap: nowrap;

        min-height: auto;

        gap: 8px;
        padding-block: 4px;
    }

    .bmh-topbar__links {
        flex: 1 1 auto;

        display: flex;

        gap: 13px;

        min-width: 0;

        overflow-x: auto;

        white-space: nowrap;

        scrollbar-width: none;
    }

    .bmh-topbar__links::-webkit-scrollbar {
        display: none;
    }

    .bmh-topbar__links a {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;

        min-height: 30px;

        font-size: 10.5px;
    }

    .bmh-social {
        flex: 0 0 auto;

        gap: 5px;
        margin-left: auto;
    }

    .bmh-social__label {
        display: none;
    }
}


@media (max-width: 680px) {
    .bmh-brandbar__inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        gap: 9px;
        padding-block: 10px;
    }

    .bmh-brand {
        width: auto;
        align-items: flex-start;
        justify-self: center;
        grid-row: auto;
    }

    .bmh-brand-copy {
        width: auto;
        max-width: calc(100vw - 84px);
    }

    .bmh-gallery-slide__content strong {
        overflow:visible;
    }

    .bmh-brand img {
        width: 64px;
        height: 64px;
    }

    .bmh-brand strong {
        font-size: 18px;
    }

    .bmh-brand-copy > .site-urdu-name {
        padding-left: 0;

        font-size: 18px;
        line-height: 34px !important;
    }

    .bmh-header-search {
        grid-column: auto;
        grid-row: auto;
        order: initial;

        width: 100%;
        max-width: 340px;
        justify-self: center;
    }

    .bmh-brand-actions {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        width: min(100%, 340px);

        gap: 7px;
        justify-self: center;
        grid-column: auto;
        grid-row: auto;
    }

    .bmh-brand-actions .bmh-btn,
    .bmh-brand-actions .bmh-btn--outline {
        display: inline-flex !important;

        width: 100%;
        min-width: 0;
        min-height: 36px;

        padding: 7px 9px;

        font-size: 10.5px;

        white-space: normal;
        text-align: center;
    }

    .bmh-urgent__label {
        display: none;
    }

    .bmh-urgent__inner {
        grid-template-columns:
            22px
            minmax(0, 1fr)
            22px
            22px;

        min-height: 56px;

        gap: 4px;
    }

    .bmh-urgent__item {
        min-width: 72vw;
        max-width: 78vw;

        font-size: 12px;
        line-height: 1.7;

        display: -webkit-box;
        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}


@media (max-width: 600px) {
    .bmh-brand strong {
        font-size: 18px;
    }

    .bmh-brand-copy > .site-urdu-name {
        font-size: 18px;
        line-height: 34px !important;
    }

    .bmh-gallery-slide__content strong {
        overflow:visible;
    }

    .bmh-hero-section {
        padding: 8px 0 32px;
    }

    .bmh-gallery-card {
        height: 390px;
    }

    .bmh-gallery-slide img {
        object-fit: cover;
        object-position: center;
    }

    .bmh-updates-card {
        height: 480px;
    }

    .bmh-gallery-slide__content {
        right: 18px;
        bottom: 62px;
        left: 18px;
    }

    .bmh-gallery-slide__content strong {
        font-size: 16px;
    }

    .bmh-gallery-controls {
        right: auto;
        bottom: 14px;
        left: 16px;
    }

    .bmh-carousel-control{
        width: 25px;
        height: 25px;
        min-width: 25px;
        min-height: 25px;
    }

    .bmh-gallery-dots {
        right: 16px;
        bottom: 28px;
        left: auto;
    }

    .bmh-section {
        padding: 34px 0;
    }

    .bmh-section-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bmh-home .bmh-section-head {
        row-gap: 8px;
    }

    .bmh-section-head h2 {
        font-size: 25px;
    }

    .bmh-section-head > a {
        justify-self: start;
        margin-top: 0;
    }

    .bmh-about__content {
        max-height: none;

        padding: 20px;
    }

    .bmh-service-grid,
    .bmh-institution-grid {
        grid-template-columns: 1fr;
    }

    .bmh-download-feature-grid {
        grid-template-columns: 1fr;
    }

    .bmh-glance__content {
        padding: 23px;
    }

    .bmh-glance__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmh-footer__grid {
        grid-template-columns: 1fr;
    }

    .bmh-footer__bottom {
        display: block;
    }

    .bmh-footer__bottom span {
        display: block;

        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .bmh-social a {
        width: 27px;
        height: 27px;
    }

    .bmh-topbar__links {
        gap: 10px;
    }

    .bmh-brand img {
        width: 56px;
        height: 56px;
    }

    .bmh-brand strong {
        font-size: 17px;
        line-height: 1.08;
    }

    .bmh-brand-title {
        white-space: normal;
    }

    .bmh-brand-copy > .site-urdu-name {
        display: block;
        margin-left: 0;
        color: var(--bmh-green-800);
        font-size: 18px;
        line-height: 32px !important;
        /* text-align: center; */
        white-space: nowrap;
    }

    .bmh-gallery-slide__content strong {
        font-size: 14px;
    }
}


@media (max-width: 430px) {
    .bmh-nav-menu.is-open {
        grid-template-columns: 1fr;
    }

    .bmh-urgent__inner {
        grid-template-columns:
            22px
            minmax(0, 1fr)
            22px
            22px;

        gap: 3px;
    }

    .bmh-urgent__item {
        min-width: 70vw;
        max-width: 74vw;

        font-size: 11.5px;
    }

    .bmh-quick-grid,
    .bmh-glance__stats {
        grid-template-columns: 1fr;
    }

    .bmh-card-head {
        padding: 16px 14px 12px;
    }

    .bmh-card-head h2 {
        font-size: 19px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .bmh-nav-menu .bmh-nav-link,
    .bmh-nav-menu .bmh-nav-link i,
    .bmh-card--corner-pattern::after,
    .bmh-download-feature::after {
        transition: none;
    }
}

/* =========================================================
   FINAL RESPONSIVE COMPONENT RULES
========================================================= */

@media (max-width: 1200px) {
    .bmh-institution-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-services-directory-layout {
        grid-template-columns: minmax(310px, 340px) minmax(0, 1fr);
    }

    .bmh-service-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-board-glance__summary,
    .bmh-board-glance__district-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-glance-breakdown-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .bmh-contact-layout-modern {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    }

    .bmh-download-modern-layout {
        grid-template-columns: minmax(0, 2.3fr) minmax(250px, 0.8fr);
    }

    .bmh-download-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .bmh-download-modern-layout,
    .bmh-contact-layout-modern,
    .bmh-board-hub__shell {
        grid-template-columns: 1fr;
    }

    .bmh-facebook-card {
        height: auto;
    }

    .bmh-download-modern-layout > *,
    .bmh-download-modern-content,
    .bmh-social-follow-card {
        min-height: 0;
        height: auto;
    }

    .bmh-board-hub__nav {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .bmh-board-hub__nav::-webkit-scrollbar {
        display: none;
    }

    .bmh-board-hub__map {
        margin: 14px 14px 0;
        padding: 18px;
        border-radius: 20px;
    }

    .bmh-board-hub__map-image {
        min-height: 300px;
    }

    .bmh-board-hub__content {
        padding: 14px;
    }

    .bmh-board-overview {
        height: auto;
    }

    /* Services tools: one stable tablet/mobile flow. */
    .bmh-services-browser__tools {
        display: block !important;
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 10px;
    }

    .bmh-service-filters {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        gap: 6px;
        padding-bottom: 0;
        overflow: visible;
    }

    .bmh-service-filters::-webkit-scrollbar {
        display: none;
    }

    .bmh-service-filter,
    .bmh-service-more-filter {
        flex: 0 0 auto;
    }

    .bmh-service-search {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 44px !important;
        height: auto !important;
        margin: 12px 0 0 !important;
        padding: 0 !important;
        inset: auto !important;
        transform: none !important;
    }

    .bmh-service-search > i.fa-search {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        z-index: 3;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        color: var(--bmh-green);
    }

    .bmh-service-search input {
        box-sizing: border-box !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 42px 0 40px !important;
        border-radius: 12px;
    }

    .bmh-service-search button {
        box-sizing: border-box !important;
        position: absolute !important;
        right: 8px !important;
        top: 8px !important;
        margin: 0 !important;
        transform: none !important;
    }

    .bmh-service-directory-grid {
        margin-top: 16px !important;
    }
}

@media (max-width: 820px) {
    .bmh-services-directory-layout {
        grid-template-columns: 1fr;
    }

    .bmh-featured-services__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-location-map iframe {
        height: 340px !important;
    }
}

@media (max-width: 767px) {
    /* Chairman legacy DB markup: compact image beside the text. */
    .bmh-board-chairman__database-content {
        max-height: none;
        overflow: visible;
    }

    .bmh-board-chairman__database-content .row {
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) !important;
        align-items: start;
        gap: 14px;
        width: 100%;
        margin: 0 !important;
    }

    .bmh-board-chairman__database-content .row > div {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .bmh-board-chairman__database-content .row > div:first-child {
        width: 82px !important;
    }

    .bmh-board-chairman__database-content img {
        display: block !important;
        float: none !important;
        width: 76px !important;
        height: 76px !important;
        max-width: 76px !important;
        margin: 0 !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .bmh-board-chairman__database-content p {
        margin: 0 0 7px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

}

@media (max-width: 700px) {
    .bmh-institution-section {
        padding-block: 30px;
    }

    .bmh-institution-compact-grid,
    .bmh-service-directory-grid {
        grid-template-columns: 1fr;
    }

    .bmh-institution-compact-card {
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        min-height: 112px;
        gap: 11px;
        padding: 13px;
    }

    .bmh-board-glance {
        padding: 14px;
    }

    .bmh-board-glance__summary,
    .bmh-board-glance__district-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-board-glance__breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bmh-download-modern-content {
        padding: 12px;
        gap: 10px;
    }

    .bmh-model-papers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmh-facebook-card__body {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .bmh-section {
        padding-block: 30px;
    }

    .bmh-section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .bmh-featured-services {
        padding: 18px;
    }

    .bmh-featured-services__head p {
        display: none;
    }

    .bmh-featured-services__list {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 15px;
    }

    .bmh-board-hub__nav {
        grid-template-columns: repeat(3, 170px);
        gap: 7px;
    }

    .bmh-board-hub__tab {
        min-height: 66px;
        padding: 9px 10px;
    }

    .bmh-board-hub__tab-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .bmh-board-hub__map {
        margin: 10px 10px 0;
        padding: 15px;
    }

    .bmh-board-hub__map-image {
        min-height: 230px;
        padding: 5px;
    }

    .bmh-board-hub__content {
        padding: 10px;
    }

    .bmh-board-chairman,
    .bmh-board-glance,
    .bmh-board-directory {
        padding: 14px;
    }

    .bmh-board-directory__grid {
        grid-template-columns: 1fr;
    }

    .bmh-contact-card-head {
        padding: 17px 18px 14px;
    }

    .bmh-contact-directory {
        padding: 18px;
    }

    .bmh-contact-directory > .row,
    .bmh-contact-directory .row:first-child {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bmh-contact-office-grid {
        grid-template-columns: 1fr;
    }

    .bmh-location-map iframe {
        height: 280px !important;
        min-height: 280px;
    }

    .bmh-location-details {
        grid-template-columns: 1fr;
    }

    .bmh-location-detail + .bmh-location-detail {
        border-top: 1px solid var(--bmh-line);
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .bmh-download-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bmh-download-primary-card {
        min-height: 122px;
        padding: 12px !important;
    }

    .bmh-download-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bmh-board-chairman__database-content .row {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 10px;
    }

    .bmh-board-chairman__database-content .row > div:first-child {
        width: 64px !important;
    }

    .bmh-board-chairman__database-content img {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
    }

    .bmh-model-papers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .bmh-board-glance__summary,
    .bmh-board-glance__district-grid {
        grid-template-columns: 1fr;
    }

    .bmh-model-papers-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmh-institution-compact-card,
    .bmh-institution-compact-card::after,
    .bmh-institution-compact-card__icon,
    .bmh-institution-compact-card__arrow,
    .bmh-service-directory-card,
    .bmh-service-directory-card::after,
    .bmh-glance-summary-card,
    .bmh-glance-district-card,
    .bmh-glance-breakdown-card {
        transition: none !important;
    }
}

/* =========================================================
   FINAL HOMEPAGE UI REFINEMENT - RESPONSIVE
========================================================= */


/* Tablet: keep some compactness, but not desktop density */

@media (min-width: 601px) and (max-width: 900px) {

    .bmh-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .bmh-section-head {
        margin-bottom: 14px;
    }

    .bmh-section-head p {
        font-size: 14px;
    }


    /* Institution cards */

    .bmh-institution-compact-card {
        min-height: 112px;

        padding:
            12px
            13px;
    }


    /* Contact */

    .bmh-contact-office-item {
        min-height: 80px;

        padding:
            11px
            12px;
    }


    /* Footer */

    .bmh-footer__grid > div > a:not(.bmh-brand) {
        font-size: 12.5px;
    }

}

/* Mobile should remain comfortably spaced and readable */

@media (max-width: 600px) {

    .bmh-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }


    .bmh-section-head p {
        font-size: 13.5px;
        line-height: 1.5;
    }


    .bmh-institution-compact-card__content small {
        font-size: 10px;
    }


    /*
     * Do not over-compress touch targets on mobile.
     */

    .bmh-contact-office-item {
        min-height: 92px;

        padding:
            13px
            14px;
    }


    .bmh-footer {
        padding:
            30px
            0
            15px;
    }


    .bmh-footer__grid > div > a:not(.bmh-brand) {
        font-size: 13px;

        padding:
            5px
            0;
    }


    .bmh-footer__bottom {
        font-size: 11.5px;
    }

}


/* =========================================================
   CHAIRMAN MESSAGE - STACK EARLIER ON MEDIUM SCREENS
========================================================= */

@media (max-width: 980px) {

    .bmh-board-chairman__database-content .row {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
    }


    .bmh-board-chairman__database-content .row > div {
        width: 100% !important;
        max-width: 100% !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Chairman image on top */

    .bmh-board-chairman__database-content .row > div:first-child {
        display: flex !important;

        justify-content: center;
        align-items: center;

        width: 100% !important;

        margin-bottom: 14px !important;

        text-align: center !important;
    }


    .bmh-board-chairman__database-content img {
        display: block !important;

        float: none !important;

        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;

        margin: 0 auto !important;

        border-radius: 50% !important;

        object-fit: cover !important;
    }


    /* Message below */

    .bmh-board-chairman__database-content .row > div:nth-child(2) {
        width: 100% !important;

        text-align: left !important;
    }


    .bmh-board-chairman__database-content p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

}


/* Smaller mobile screens */

@media (max-width: 600px) {

    .bmh-board-chairman__database-content img {
        width: 150px !important;
        height: 150px !important;
        max-width: 150px !important;
    }

}

@media (max-width: 768px) {
    .bmh-inner-page-shell {
        padding: 12px 0 24px;
    }
}

@media (max-width: 480px) {
    .bmh-inner-page-shell {
        padding-top: 10px;
    }
}

/* Compact shared footer */
@media (max-width: 700px) {
    .bmh-footer {
        padding: 22px 0 12px;
    }

    .bmh-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .bmh-footer__brand {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .bmh-footer__brand .bmh-brand {
        min-width: 0;
    }

    .bmh-footer__brand .bmh-brand img {
        width: 50px;
        height: 50px;
        padding: 5px;
        border-radius: 10px;
    }

    .bmh-footer__brand .bmh-brand strong {
        font-size: 1rem;
        line-height: 1.2;
    }

    .bmh-footer__brand .bmh-brand small {
        margin-top: 2px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .bmh-footer__social {
        flex-wrap: nowrap;
        margin-top: 0;
    }

    .bmh-footer__social a {
        width: 30px;
        height: 30px;
    }

    .bmh-footer__grid h3 {
        margin-bottom: 7px;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .bmh-footer__grid > div:nth-child(4) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
    }

    .bmh-footer__grid > div:nth-child(4) h3 {
        grid-column: 1 / -1;
    }

    .bmh-footer__grid > div > a:not(.bmh-brand) {
        padding: 3px 0;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .bmh-footer__bottom {
        display: grid;
        gap: 4px;
        margin-top: 18px;
        padding-top: 11px;
        font-size: 0.68rem;
        line-height: 1.45;
    }

    .bmh-footer__bottom span {
        margin-top: 0;
    }
}

@media (max-width: 380px) {
    .bmh-footer__brand {
        grid-template-columns: 1fr;
    }

    .bmh-footer__social {
        justify-self: start;
    }
}


@media (max-width: 820px) {
    .bmh-home section:not(.bmh-urgent):not(.bmh-hero) {
        padding-block: 15px;
    }

    .bmh-home :is(.bmh-section-title, .bmh-services-directory__heading, .bmh-institution-corner__heading, .bmh-contact__heading, .bmh-board-hub__heading) {
        font-size: 1.375rem;
        line-height: 1.18;
    }

    .bmh-home :is(.bmh-section-intro, .bmh-services-directory__intro, .bmh-institution-corner__intro, .bmh-contact__intro),
    .bmh-home :is(.bmh-footer, .bmh-footer a, .bmh-institution-corner__card, .bmh-contact-card),
    .bmh-shell :is(.bmh-urgent__item, a.bmh-urgent__item) {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .bmh-home :is(button, .btn, [role="button"], input, select, textarea, .bmh-service-tabs__button, .bmh-mobile-nav-toggle, .bmh-mobile-updates-toggle):not(.bmh-carousel-control):not([data-bmh-gallery-dot]) {
        min-height: 44px;
    }

    .bmh-home .bmh-social-link {
        width: 44px;
        height: 44px;
    }

    .bmh-home .bmh-mobile-updates-toggle {
        color: var(--bmh-white);
    }

    .bmh-home :is(.bmh-featured-services__item, .bmh-featured-service-link) {
        min-height: 64px;
    }

    .bmh-home .bmh-featured-service-title {
        font-size: 0.8375rem;
        line-height: 1.35;
    }

    .bmh-home :is(#bmh-services, #services) .bmh-featured-service-link__main {
        min-height: 44px !important;
    }
}

@media (max-width: 479px) {
    .bmh-home section:not(.bmh-urgent):not(.bmh-hero) {
        padding-block: 15px;
    }

}
.bmh-shell .bmh-urgent__item,
.bmh-shell .bmh-urgent__item * {
    font-family: var(--bmh-font-urdu) !important;
    font-weight: 400;
}

.bmh-common-card-grid {
    align-items: stretch;
    grid-auto-rows: auto !important;
}

.bmh-common-card {
    --bmh-common-card-height: 158px;
    --bmh-common-card-content-height: 88px;
    --cards-footer-height: 40px;
    position: relative;
    display: flex !important;
    box-sizing: border-box;
    min-width: 0;
    height: var(--bmh-common-card-height) !important;
    min-height: var(--bmh-common-card-height) !important;
    max-height: var(--bmh-common-card-height) !important;
    flex-direction: column;
    padding: 10px 12px 0 !important;
    overflow: hidden;
    border: 1px solid var(--bmh-border);
    border-radius: var(--bmh-radius);
    background: var(--bmh-white);
    box-shadow: var(--bmh-shadow);
    color: var(--bmh-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bmh-common-card[hidden] {
    display: none !important;
}

.bmh-common-card--roomy {
    --bmh-common-card-height: 190px;
    --bmh-common-card-content-height: 117px;
}

.bmh-common-card__head {
    position: relative !important;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 32px !important;
    width: 100% !important;
    min-width: 0;
    min-height: 40px;
    align-items: start !important;
    gap: 8px !important;
    text-align: left;
}

.bmh-common-card__icon,
.bmh-common-card__arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: var(--bmh-green-soft) !important;
    color: var(--bmh-green-dark) !important;
}

.bmh-common-card__icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
}

.bmh-common-card__arrow {
    width: 32px !important;
    height: 32px !important;
    justify-self: end;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.bmh-common-card__arrow:hover,
.bmh-common-card__arrow:focus-visible {
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
}

.bmh-common-card:has(> .bmh-common-card__badge) .bmh-common-card__arrow {
    margin-top: 18px;
}

.bmh-common-card__heading,
.bmh-common-card__content,
.bmh-common-card__middle {
    min-width: 0;
}

.bmh-common-card__heading {
    width: 100%;
    padding-top: 1px;
    text-align: left;
}

.bmh-common-card__eyebrow {
    display: block;
    margin: 0 0 1px;
    color: var(--bmh-red) !important;
    font-family: var(--bmh-font-ui) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
}

.bmh-common-card__title {
    display: -webkit-box !important;
    width: 100%;
    max-height: 35px;
    overflow: hidden;
    color: var(--bmh-green-dark) !important;
    font-family: var(--bmh-font-ui) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: left;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bmh-common-card__badge {
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 2;
    display: inline-flex;
    min-width: 28px;
    min-height: 16px;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bmh-red);
    color: var(--bmh-white);
    font-family: var(--bmh-font-ui);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
}

.cards_w_footer {
    position: relative;
    overflow: hidden;
}

.cards_w_footer__content {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    box-sizing: border-box;
    width: 100% !important;
    height: var(--bmh-common-card-content-height) !important;
    min-height: 0 !important;
    max-height: var(--bmh-common-card-content-height) !important;
    flex-direction: column !important;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
}

.bmh-common-card__middle {
    overflow: hidden;
    background: transparent !important;
    color: var(--bmh-green-dark);
    font-family: var(--bmh-font-ui) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: center;
}

.cards_w_footer__content > :not(.cards_w_footer__footer) {
    align-self: center;
}

.cards_w_footer__middle {
    display: flex !important;
    width: 100%;
    min-height: 48px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 2px !important;
    padding: 5px 10px !important;
}

.bmh-common-card__middle--split {
    flex-direction: column;
    gap: 3px;
}

.bmh-common-card__middle-label,
.bmh-common-card__middle-actions,
.bmh-card-action-note {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.bmh-card-action-note {
    display: block;
    flex: 1 0 100%;
    text-align: center;
}

.cards_w_footer__middle .btn {
    display: inline-flex !important;
    max-width: 100% !important;
    min-height: 26px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--bmh-border) !important;
    border-radius: 8px !important;
    background: var(--bmh-green-50) !important;
    color: var(--bmh-green-dark) !important;
    font-family: var(--bmh-font-ui) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.cards_w_footer__footer {
    display: grid !important;
    width: 100% !important;
    height: var(--cards-footer-height) !important;
    min-height: var(--cards-footer-height) !important;
    max-height: var(--cards-footer-height) !important;
    flex: 0 0 var(--cards-footer-height) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-top: 1px solid var(--bmh-border) !important;
    border-radius: 0 !important;
    background: rgba(234, 245, 239, 0.35) !important;
}

body .cards_w_footer .cards_w_footer__footer > :is(a, button, .btn) {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--cards-footer-height) !important;
    min-height: var(--cards-footer-height) !important;
    max-height: var(--cards-footer-height) !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 5px 28px 5px 10px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bmh-green-dark) !important;
    font-family: var(--bmh-font-ui) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .cards_w_footer .cards_w_footer__footer > :is(a, button, .btn)::after {
    position: absolute;
    top: 50%;
    right: 10px;
    display: block !important;
    content: "\2192";
    font-size: 12px;
    line-height: 1;
    transform: translateY(-50%);
}

body .cards_w_footer .cards_w_footer__footer > :is(a, button, .btn) + :is(a, button, .btn) {
    border-left: 1px solid var(--bmh-border) !important;
}

.cards_w_footer__footer > :is(a, button, .btn):only-child {
    grid-column: 1 / -1;
}

body .cards_w_footer .cards_w_footer__footer > :is(a, button, .btn):hover,
body .cards_w_footer .cards_w_footer__footer > :is(a, button, .btn):focus-visible {
    background: var(--bmh-green-100) !important;
    color: var(--bmh-green-deep) !important;
}

.bmh-card-hover-lift {
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.bmh-card-hover-lift__icon,
.bmh-card-hover-lift__arrow {
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease !important;
}

@media (hover: hover) {
    .bmh-card-hover-lift:hover {
        border-color: rgba(15, 103, 66, 0.28) !important;
        box-shadow: var(--bmh-shadow-hover) !important;
        transform: translateY(-3px) !important;
    }

    .bmh-card-hover-lift:hover .bmh-card-hover-lift__icon {
        background: var(--bmh-green) !important;
        color: var(--bmh-white) !important;
        transform: translateY(-2px) !important;
    }

    .bmh-card-hover-lift:hover .bmh-card-hover-lift__arrow {
        background: var(--bmh-green) !important;
        color: var(--bmh-white) !important;
        transform: translateX(3px) !important;
    }
}

.bmh-card-hover-lift:focus-visible,
.bmh-card-hover-lift:focus-within {
    border-color: rgba(15, 103, 66, 0.28) !important;
    box-shadow: var(--bmh-shadow-hover) !important;
    transform: translateY(-3px) !important;
}

.bmh-card-hover-lift:focus-visible .bmh-card-hover-lift__icon,
.bmh-card-hover-lift:focus-within .bmh-card-hover-lift__icon {
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
    transform: translateY(-2px) !important;
}

.bmh-card-hover-lift:focus-visible .bmh-card-hover-lift__arrow,
.bmh-card-hover-lift:focus-within .bmh-card-hover-lift__arrow {
    background: var(--bmh-green) !important;
    color: var(--bmh-white) !important;
    transform: translateX(3px) !important;
}

.bmh-common-card--roomy .bmh-common-card__content > :not(.cards_w_footer__footer) {
    margin-right: 10px;
    margin-left: 10px;
}

.bmh-common-card--roomy .bmh-application-meta {
    gap: 3px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 6px 9px;
    border-radius: 10px;
    background: var(--bmh-green-soft);
    font-size: 12px;
    line-height: 1.3;
}

.bmh-common-card--roomy .bmh-application-status {
    gap: 6px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
}

.bmh-featured-service-link__main > span {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 14px !important;
    color: var(--bmh-white) !important;
    font-weight: 750 !important;
    padding-left: 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bmh-featured-service-link__main > i:first-child {
    position: static !important;
    align-self: center !important;
    width: 22px !important;
    font-size: 16px !important;
    transform: translateY(-2px);
}

.bmh-featured-card-actions {
    padding: 0 12px 10px;
}

.bmh-featured-card-actions .service-w-button,
.bmh-featured-card-actions .service-w-button:has(.btn:nth-of-type(3)),
.bmh-featured-card-actions .service-w-button:has(.btn:only-of-type) {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2px !important;
    overflow: hidden !important;
}

.bmh-featured-card-actions .service-w-button .btn,
.bmh-featured-card-actions .service-w-button .btn:nth-last-of-type(n+3),
.bmh-featured-card-actions .service-w-button .btn:nth-last-of-type(-n+2) {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 22px !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 3px 7px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.bmh-card-pill,
.cards_w_footer__middle .btn.bmh-card-pill,
.bmh-featured-card-actions .service-w-button .btn.bmh-card-pill {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 24px !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 2px 7px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    font-family: var(--bmh-font-ui) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.cards_w_footer__middle .btn.bmh-card-pill {
    border: 1px solid transparent !important;
    background: var(--bmh-surface-2) !important;
    color: var(--bmh-muted) !important;
}

.bmh-featured-card-actions .service-w-button .btn.bmh-card-pill {
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, .07) !important;
    color: rgba(255, 255, 255, .82) !important;
}

.cards_w_footer__middle .btn.bmh-card-pill:hover,
.cards_w_footer__middle .btn.bmh-card-pill:focus-visible {
    border-color: transparent !important;
    background: var(--bmh-green-100) !important;
    color: var(--bmh-green-900) !important;
}

.bmh-featured-card-actions .service-w-button .btn.bmh-card-pill:hover,
.bmh-featured-card-actions .service-w-button .btn.bmh-card-pill:focus-visible {
    border-color: transparent !important;
    background: rgba(255, 255, 255, .12) !important;
    color: var(--bmh-white) !important;
}

.bmh-shell .bmh-btn--outline:hover,
.bmh-shell .bmh-btn--outline:focus-visible {
    border-color: var(--bmh-green-900) !important;
    background: var(--bmh-green-900) !important;
    color: var(--bmh-white) !important;
}

.bmh-shell .bmh-btn--outline:is(:hover, :focus-visible) :is(i, span) {
    color: currentColor !important;
}

@media (max-width: 820px) {
    .bmh-common-card--compact {
        --bmh-common-card-height: 160px;
        --bmh-common-card-content-height: 92px;
        --cards-footer-height: 44px;
        padding-right: 11px !important;
        padding-left: 11px !important;
    }

    .bmh-featured-service-link__main {
        grid-template-columns: 20px minmax(0, 1fr) 14px !important;
        gap: 8px !important;
        padding: 10px 11px 8px !important;
    }
}

@media (max-width: 480px) {
    .bmh-common-card__head {
        grid-template-columns: 36px minmax(0, 1fr) 32px !important;
        gap: 7px !important;
    }

    .bmh-common-card__icon {
        width: 36px !important;
        height: 36px !important;
    }

    .bmh-featured-service-link__main {
        padding-inline: 9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmh-common-card,
    .bmh-common-card__arrow,
    .bmh-card-hover-lift,
    .bmh-card-hover-lift__icon,
    .bmh-card-hover-lift__arrow {
        transition: none;
    }

    .bmh-common-card:hover,
    .bmh-common-card:focus-within,
    .bmh-card-hover-lift:hover,
    .bmh-card-hover-lift:focus-visible,
    .bmh-card-hover-lift:focus-within,
    .bmh-card-hover-lift:hover .bmh-card-hover-lift__icon,
    .bmh-card-hover-lift:hover .bmh-card-hover-lift__arrow,
    .bmh-card-hover-lift:focus-visible .bmh-card-hover-lift__icon,
    .bmh-card-hover-lift:focus-visible .bmh-card-hover-lift__arrow,
    .bmh-card-hover-lift:focus-within .bmh-card-hover-lift__icon,
    .bmh-card-hover-lift:focus-within .bmh-card-hover-lift__arrow {
        transform: none;
    }
}
.bmh-action-pill {
    box-sizing: border-box;
    min-height: 36px !important;
    gap: 7px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

/* Shared visual patterns for the Modern theme. */

.bmh-card-head__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bmh-green-50);
    color: var(--bmh-green-900) !important;
    font-size: 12px !important;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.bmh-card-head__action:hover,
.bmh-card-head__action:focus-visible {
    background: var(--bmh-green-900);
    color: var(--bmh-white) !important;
}

.bmh-nav-utility {
    display: none;
}

.bmh-home .bmh-section {
    padding-block: var(--bmh-space-section-desktop);
}

.bmh-home .bmh-section-head {
    margin-bottom: var(--bmh-space-heading-content);
}

.bmh-home .bmh-section-head p,
.bmh-home .bmh-about-rich-content,
.bmh-home .bmh-about-rich-content p {
    font-size: 14px;
    line-height: 1.6;
}

.bmh-home .bmh-tab-list button,
.bmh-home .bmh-update-item,
.bmh-home .bmh-updates-footer a {
    font-size: 13px;
}

.bmh-home .bmh-update-item small,
.bmh-home .bmh-update-date,
.bmh-home .bmh-update-new {
    font-size: 12px;
}

.bmh-home .bmh-institution-compact-grid {
    gap: var(--bmh-space-card-gap);
}

.bmh-home .bmh-institution-compact-card__content strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bmh-home .bmh-institution-compact-card__content small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bmh-home :is(
    .bmh-institution-compact-card__icon,
    .bmh-download-card-icon,
    .bmh-contact-card-head__icon,
    .bmh-location-detail__icon
) {
    border-radius: 10px;
}

.bmh-home #bmh-services .bmh-featured-service-actions .btn {
    border-color: transparent !important;
    background: rgba(255, 255, 255, .11) !important;
    color: rgba(255, 255, 255, .94) !important;
}

.bmh-home #bmh-services .bmh-featured-service-actions .btn:hover,
.bmh-home #bmh-services .bmh-featured-service-actions .btn:focus-visible {
    background: rgba(255, 255, 255, .2) !important;
    color: var(--bmh-white) !important;
}

.bmh-home .bmh-institution-profile.is-ready {
    border: 1px solid var(--bmh-border);
    background: var(--bmh-surface-2);
    box-shadow: var(--bmh-shadow-sm);
}

.bmh-home .bmh-institution-profile .bmh-board-hub__map {
    border: 1px solid var(--bmh-border);
    background: var(--bmh-white);
}

.bmh-home .bmh-institution-profile .bmh-board-glance {
    border: 0;
    background: transparent;
    color: var(--bmh-ink);
}

.bmh-home .bmh-board-glance__subhead span {
    color: var(--bmh-coral-700);
}

.bmh-home .bmh-board-glance__subhead strong {
    color: var(--bmh-green-900);
}

.bmh-home #board-at-a-glance :is(
    .bmh-glance-summary-card small,
    .bmh-glance-district-card__stats small,
    .bmh-glance-district-card__total span,
    .bmh-glance-breakdown-card__head small,
    .bmh-glance-breakdown-card__grid small
) {
    font-size: 11px;
    line-height: 1.35;
}

.bmh-home #board-at-a-glance :is(
    .bmh-glance-district-card__stats strong,
    .bmh-glance-breakdown-card__grid strong
) {
    font-size: 14px;
}

.bmh-home .bmh-social-follow-action {
    border-color: var(--bmh-border) !important;
    background: var(--bmh-green-50) !important;
    color: var(--bmh-green-900) !important;
}

.bmh-home .bmh-social-follow-action:hover,
.bmh-home .bmh-social-follow-action:focus-visible {
    border-color: var(--bmh-green-800) !important;
    background: var(--bmh-green-800) !important;
    color: var(--bmh-white) !important;
}

.bmh-home .bmh-facebook-card__body,
.bmh-home .bmh-deferred-embed--facebook {
    min-height: 240px;
    max-height: 300px;
}

.bmh-home .bmh-deferred-embed--facebook iframe {
    width: 100%;
    height: 300px;
}

.bmh-home .bmh-contact-office-grid {
    gap: 8px;
}

.bmh-home .bmh-contact-office-item {
    min-height: 72px;
    border-radius: 12px;
    background: var(--bmh-surface-2);
    box-shadow: none;
}

.bmh-home .bmh-contact-office-item h4 {
    font-size: 14px;
}

.bmh-home .bmh-contact-office-item a,
.bmh-home .bmh-location-detail__content {
    font-size: 12px;
}

.bmh-footer__grid {
    gap: 28px;
}

.bmh-footer__grid h3 {
    font-size: 16px;
}

.bmh-footer__grid > div > a:not(.bmh-brand) {
    min-height: 34px;
    padding-block: 6px;
    font-size: 13px;
}

.bmh-footer__bottom {
    font-size: 12px;
}

@media (min-width: 1101px) {
    .bmh-home .bmh-hero-grid {
        grid-template-columns: minmax(0, 1.85fr) minmax(360px, 1fr);
    }
}

@media (max-width: 900px) {
    .bmh-home .bmh-section {
        padding-block: var(--bmh-space-section-tablet);
    }

    .bmh-home .bmh-about-rich-content,
    .bmh-home .bmh-about-rich-content p {
        font-size: 14px;
    }
}

@media (max-width: 760px) {
    .bmh-topbar {
        display: none;
    }

    .bmh-nav-utility {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        padding: 8px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .bmh-nav-utility a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 7px 8px;
        color: rgba(255, 255, 255, .9);
        font-size: 12px;
    }

    .bmh-home .bmh-section {
        padding-block: var(--bmh-space-section-mobile);
    }

    .bmh-home .bmh-section-head {
        row-gap: 8px;
    }

    .bmh-home .bmh-facebook-card__body,
    .bmh-home .bmh-deferred-embed--facebook {
        min-height: 190px;
        max-height: 230px;
    }

    .bmh-home .bmh-deferred-embed--facebook iframe {
        height: 230px;
    }
}

@media (max-width: 600px) {
    .bmh-home .bmh-featured-services__list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .bmh-home .bmh-featured-services__list > .bmh-featured-service-link {
        flex: 0 0 min(82vw, 310px);
        scroll-snap-align: start;
    }

    .bmh-home .bmh-contact-office-grid {
        grid-template-columns: 1fr;
    }

    .bmh-home .bmh-board-chairman__database-content img {
        width: 128px !important;
        height: 128px !important;
        max-width: 128px !important;
    }

    .bmh-home .bmh-board-chairman__database-content .row > div:first-child {
        margin-bottom: 10px;
    }

    .bmh-footer__grid {
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmh-card-head__action {
        transition: none;
    }
}
@supports (content-visibility: auto) {
    .bmh-home > #bmh-board,
    .bmh-home > #bmh-services,
    .bmh-home > #bmh-institutions,
    .bmh-home > #board-at-a-glance,
    .bmh-home > #bmh-downloads,
    .bmh-home > #bmh-contact {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }
}

.bmh-tab-loading {
    margin: 0;
    padding: 32px 20px;
    color: var(--bmh-color-text-muted);
    text-align: center;
}

/* =========================================================
   SHARED PRINT
   Any page prints as a clean A4 document: the site shell is hidden and
   the page's .bmh-print-header / .bmh-print-footer (partial
   "print-header-footer") frame the content. Wrap the printable content in
   .bmh-print-sheet. The e-DMC (edmc.css) builds on these rules; the
   legacy .bmh-edmc-print-* class names remain as aliases.
========================================================= */

.bmh-print-header,
.bmh-print-footer,
.bmh-edmc-print-header,
.bmh-edmc-print-footer {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 14mm 16mm;
    }

    html,
    body {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        color: #000 !important;
        font: 9pt/1.25 Arial, Helvetica, sans-serif !important;
    }

    .bmh-header,
    .bmh-topbar,
    .bmh-brandbar,
    .bmh-mainnav,
    .bmh-nav,
    .bmh-urgent,
    .bmh-ticker,
    .bmh-footer,
    .bmh-updates-dock,
    .mo-header,
    .mo-page__header,
    .mo-search-card,
    #mo-search-area,
    .mo-footer,
    .result-form-wrapper,
    .mo-result-sheet--legacy > #search-result-backbtn,
    .mo-result-sheet--legacy > #print-page-btn,
    .mo-result-sheet--legacy .modal,
    .bmh-no-print,
    .bmh-inner-social,
    .bmh-page-actions,
    .modal {
        display: none !important;
    }

    .bmh-shell,
    .bmh-container,
    .content-area,
    .inner-cont,
    .mo-page,
    .mo-result-output,
    #result-show,
    .mo-result-sheet--legacy,
    .bmh-print-sheet {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .mo-result-sheet--legacy,
    .mo-result-sheet--legacy *,
    .mo-result-sheet--legacy *::before,
    .mo-result-sheet--legacy *::after,
    .bmh-print-sheet,
    .bmh-print-sheet *,
    .bmh-print-sheet *::before,
    .bmh-print-sheet *::after {
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .bmh-edmc-print-header,
    .bmh-print-header {
        display: block !important;
        margin: 0 0 0.5mm;
        padding: 0;
        border: 0 !important;
    }

    .bmh-edmc-print-brand,
    .bmh-print-brand {
        display: flex !important;
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
        gap: 0.5mm;
        transform: translateX(-8.25mm);
        color: #000 !important;
        text-decoration: none !important;
    }

    .bmh-edmc-print-brand::after,
    .bmh-print-brand::after {
        display: none !important;
        content: none;
    }

    .bmh-edmc-print-brand > img,
    .bmh-print-brand > img {
        width: 16mm !important;
        height: 16mm !important;
        flex: 0 0 16mm;
        object-fit: contain;
    }

    .bmh-edmc-print-brand .bmh-brand-copy,
    .bmh-print-brand .bmh-brand-copy {
        display: grid !important;
        width: max-content;
        min-width: 0;
        align-content: center;
        text-align: center;
    }

    .bmh-edmc-print-brand strong,
    .bmh-print-brand strong {
        font-size: 13pt !important;
        font-weight: 700;
        line-height: 1.08;
        white-space: nowrap;
    }

    .bmh-edmc-print-brand .site-urdu-name,
    .bmh-print-brand .site-urdu-name {
        display: block !important;
        margin-top: 0.5mm;
        font-size: 12pt !important;
        line-height: 1.1;
        white-space: nowrap;
        text-align: center;
    }

    .bmh-edmc-print-footer,
    .bmh-print-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8mm;
        padding-top: 1.5mm;
        border-top: 1px solid #000;
        background: #fff !important;
        font-size: 7pt;
        text-align: left;
    }

    .bmh-edmc-print-footer > span,
    .bmh-print-footer > span {
        display: block;
        min-width: 0;
        max-width: 50%;
        overflow-wrap: anywhere;
    }

    .bmh-edmc-print-footer > span:last-child,
    .bmh-print-footer > span:last-child {
        text-align: right;
    }

    /* Generic printable sheet (.bmh-print-sheet), styled like the e-DMC. */
    .bmh-print-sheet .section-title,
    .bmh-print-sheet .bmh-inner-title,
    .bmh-print-sheet .bmh-page-intro {
        display: block !important;
        margin: 0 0 3mm !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        text-align: center !important;
    }

    .bmh-print-sheet .bmh-inner-title__eyebrow,
    .bmh-print-sheet .bmh-page-intro .bmh-eyebrow,
    .bmh-print-sheet .bmh-inner-title p,
    .bmh-print-sheet .bmh-page-intro p {
        display: none !important;
    }

    .bmh-print-sheet .bmh-page-title {
        margin: 0 !important;
        font-size: 10pt !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-transform: uppercase;
    }

    .bmh-print-sheet .bmh-split-layout,
    .bmh-print-sheet .bmh-split-layout__stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 3mm !important;
    }

    .bmh-print-sheet .bmh-split-panel {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        break-inside: avoid;
    }

    .bmh-print-sheet .bmh-split-panel__title {
        display: block !important;
        min-height: 0 !important;
        margin: 0 0 1mm !important;
        padding: 2px 4px;
        font-size: 8pt !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .bmh-print-sheet .bmh-split-panel__title > i {
        display: none !important;
    }

    .bmh-print-sheet .bmh-table-wrap,
    .bmh-print-sheet .table-responsive {
        width: 100% !important;
        margin: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .bmh-print-sheet .bmh-table {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-collapse: collapse !important;
    }

    .bmh-print-sheet .bmh-table th,
    .bmh-print-sheet .bmh-table td {
        overflow-wrap: anywhere;
        padding: 2.5px 4px !important;
        border: 1px solid #000 !important;
        background: #fff !important;
        font-size: 7pt !important;
        line-height: 1.18 !important;
    }

    .bmh-print-sheet .bmh-alert {
        margin: 0 0 2mm !important;
        padding: 4px !important;
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        background: #fff !important;
        font-size: 7pt;
    }

    .bmh-print-sheet .bmh-alert.urdu-font {
        font-size: 10pt;
        line-height: 1.8;
    }

    .bmh-print-sheet td .bmh-alert {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: inherit;
    }
}
