/* Site-specific adjustments on top of the BabyCare template (moved from inline styles) */
@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link { font-size: 0.8rem; padding: 0.4rem 0.6rem; white-space: nowrap; }
    .navbar .navbar-brand { margin-right: 0.5rem; }
    .navbar .navbar-brand img { height: 45px !important; }
    .navbar .navbar-brand span { font-size: 1.2rem !important; }
    .navbar .btn-search { width: 35px; height: 35px; }
    .navbar .btn-outline-primary { width: 35px; height: 35px; }
    .navbar .phone-icon { font-size: 1.5rem; margin-right: 0.5rem; }
    .navbar .phone-text { font-size: 0.75rem; }
    .navbar .dropdown-menu .dropdown-item { font-size: 0.8rem; padding: 0.3rem 1.2rem; }
}
/* Rich text from the CMS */
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-content iframe { max-width: 100%; }
.rich-content table { width: 100%; margin-bottom: 1rem; }
.rich-content table td, .rich-content table th { border: 1px solid #dee2e6; padding: .5rem; }
.rich-content blockquote { border-left: 4px solid var(--bs-primary); padding-left: 1rem; color: #555; }
.search-result + .search-result { border-top: 1px dashed #dee2e6; }
.gallery-page img { height: 220px; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery-page a:hover img { transform: scale(1.04); }
.contact-map iframe { min-height: 380px; border: 0; }
.hp-field { position: absolute; left: -9999px; }
/* Safety net: hide the loading spinner even if JavaScript fails to load */
#spinner.show { animation: njs-spinner-hide 0s linear 4s forwards; }
@keyframes njs-spinner-hide { to { opacity: 0; visibility: hidden; z-index: -1; } }
/* Director's Speech */
.director-photo { max-width: 340px; aspect-ratio: 4 / 5; background: #fff; }
.director-photo img { object-fit: cover; }
.director-photo-empty { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 7rem; color: var(--bs-primary); background: var(--bs-light); }
.director-quote { font-size: 1.25rem; font-style: italic; color: var(--bs-dark); border-left: 4px solid var(--bs-primary); padding: .25rem 0 .25rem 1.25rem; }
.director-signature { max-height: 70px; width: auto; }
/* Special Thanks */
.thanks-photo { width: 110px; height: 110px; border-radius: 50%; border: 3px dotted var(--bs-primary); padding: 5px; background: #fff; }
.thanks-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.thanks-initials { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bs-primary); color: #fff; font: 700 2rem Fredoka, sans-serif; }
.thanks-message { white-space: normal; }
/* School Portal (ERP) sign-in */
.portal-card { box-shadow: 0 18px 50px rgba(255, 72, 128, .12); }
.portal-roles { display: grid; grid-template-columns: repeat(var(--roles, 4), 1fr); gap: 8px; }
@media (max-width: 420px) { .portal-roles { grid-template-columns: repeat(2, 1fr); } }
.portal-role { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; min-width: 0; border: 2px solid #f3c6d6; border-radius: 16px; cursor: pointer; color: var(--bs-dark); font-weight: 600; font-size: .9rem; transition: all .15s; background: #fff; }
.portal-role i { font-size: 1.3rem; color: var(--bs-primary); }
.portal-role:hover { border-color: var(--bs-primary); }
.btn-check:checked + .portal-role { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; box-shadow: 0 6px 16px rgba(255, 72, 128, .35); }
.btn-check:checked + .portal-role i { color: #fff; }
.btn-check:focus-visible + .portal-role { outline: 3px solid rgba(255, 72, 128, .4); outline-offset: 2px; }
.portal-perk-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--bs-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: 14px; }
.btn-portal { white-space: nowrap; font-size: .85rem; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .btn-portal { width: 35px; height: 35px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 50% !important; }
    .btn-portal i { margin: 0 !important; }
    .btn-portal .portal-txt { display: none; }
}
