/* =========================================
   SBMCH INSTITUTION NAME (header + footer)
   Two lines of equal width:
   SRI BALAJI MEDICAL COLLEGE
   HOSPITAL & RESEARCH INSTITUTE

   Line 2 is sized (0.89em) so its natural width almost
   matches line 1 in Poppins; justify then only closes the
   last few pixels, so no wide gaps appear between words.
========================================= */

.sbmch-name {
    display: inline-block !important;   /* shrink-wrap to the widest line */
    margin: 0;
    font-family: "Poppins", var(--heading-font), sans-serif !important;
    color: #650041 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
}

.sbmch-name .sbmch-name-line1,
.sbmch-name .sbmch-name-line2 {
    display: block;
    font-family: inherit !important;
    color: inherit !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    line-height: inherit !important;
    text-align: justify;
    text-align-last: justify;
}

.sbmch-name .sbmch-name-line1 {
    font-size: 1em !important;
    font-weight: 700 !important;
}

.sbmch-name .sbmch-name-line2 {
    font-size: 0.89em !important;
    font-weight: 500 !important;
    margin-top: 0.12em;
}

/* ---------- Header ---------- */

.header .logo h1.sbmch-name {
    font-size: 26px !important;
    margin-left: 12px !important;
    margin-right: 22px !important;
}

/* Give the larger name room: slightly tighter menu on desktop */
@media (min-width: 1200px) {
    .header .navmenu a,
    .header .navmenu a:focus {
        padding-left: 11px;
        padding-right: 11px;
    }

    .header .btn-getstarted,
    .header .btn-getstarted:focus {
        margin-left: 12px;
    }
}

/* Small desktops (1200-1399px): use more of the screen width for the
   header bar (Bootstrap caps it at 1140px here) so the name stays large */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header .header-container {
        max-width: calc(100% - 30px) !important;
    }

    .header .logo h1.sbmch-name {
        font-size: 20px !important;
        margin-right: 14px !important;
    }

    .header .navmenu a,
    .header .navmenu a:focus {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Tablets (menu collapses into the toggle) */
@media (max-width: 1199.98px) {
    .header .logo h1.sbmch-name {
        font-size: 22px !important;
    }
}

/* Phones */
@media (max-width: 576px) {
    .header .logo img {
        max-height: 40px !important;
    }

    .header .logo h1.sbmch-name {
        font-size: clamp(9.5px, 2.8vw, 16px) !important;
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    .header .btn-getstarted,
    .header .btn-getstarted:focus {
        font-size: 11px;
        padding: 4px 8px;
        margin-right: 6px;
        white-space: nowrap;
    }
}

/* ---------- Footer (white on the dark footer) ---------- */

#footer .footer-logo .sbmch-name {
    color: #FFFFFF !important;
    font-size: 19px !important;
}

@media (max-width: 1199.98px) {
    #footer .footer-logo .sbmch-name { font-size: 15px !important; }
}

@media (max-width: 576px) {
    #footer .footer-logo .sbmch-name { font-size: 15px !important; }
}
