/* Layout adjustments for the institute's existing theme. */
html, body { overflow-x: clip; }
.site-header { position: sticky; top: 0; z-index: 1020; }
.site-header .main-navigation, .site-header .navbar { position: relative; inset: auto; }
.site-header .navbar-brand { flex: 0 0 auto; padding-left: 0; }
.site-header .navbar-brand img { max-width: 100%; height: auto; }
.site-header .mobile-nav-toggle { width: 44px; height: 44px; font-size: 1.35rem; color: var(--color-dark); }
.site-menu .nav-link { text-align: left; }
.site-menu button.nav-link { background: none; border: 0; }
.site-menu .theme-btn { white-space: nowrap; }
.site-menu .offcanvas-title { color: var(--color-dark); }
.site-menu .offcanvas-body { min-width: 0; }

.hero-single { background-color: #0b1c39 !important; }
.hero-single .hero-content .hero-title { font-size: clamp(2rem, 5vw, 4.5rem); overflow-wrap: break-word; }
.hero-slider .owl-nav button { min-width: 44px; min-height: 44px; }
.site-breadcrumb { background-color: #0b1c39; background-image: var(--page-banner); padding-block: clamp(3rem, 7vw, 7rem); }
.site-breadcrumb .breadcrumb-title { font-size: clamp(1.9rem, 5vw, 2.8rem); overflow-wrap: anywhere; }
.breadcrumb-menu { padding: 0; margin-bottom: 0; }

main img { max-width: 100%; }
.gallery-item img, .team-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5f6f8; }
.team-img img { aspect-ratio: 4 / 5; }
.contact-img img, .team-single-img img { max-width: 100%; height: auto; }
.contact-map iframe { display: block; width: 100%; max-width: 100%; }
.application-form { padding: clamp(1.25rem, 4vw, 2.5rem); }
.application-form h3 { margin-bottom: 1rem; }
.application-form .form-group { margin-bottom: 0; }
.application-form .application-group-title { margin: .5rem 0 0; }
.application-form .form-control, .application-form .form-select, .institute-form .form-control { width: 100%; min-width: 0; min-height: 46px; font-size: 1rem; }
.institute-form .form-control { border-color: #dce1e7; }
.application-form label, .institute-form label { display: block; margin-bottom: .4rem; font-weight: 600; }
.application-form .form-check { margin-top: .5rem; }
.application-form .theme-btn { margin-top: .25rem; }
.required-star { color: #b42333; }
.form-required-note { margin: .6rem 0 1.25rem; }
.site-feedback { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .4rem; }
.site-feedback ul { margin: .25rem 0 0; padding-inline-start: 1.3rem; list-style: disc; }
.site-feedback-success { background: #e8f7ec; color: #185837; }
.site-feedback-error { background: #fff0f1; color: #8c1d37; }

@media (min-width: 1200px) {
    .site-menu .nav-link { margin-right: 0 !important; padding-inline: .6rem !important; }
    .site-menu .theme-btn { margin-inline-start: .5rem; padding: .65rem .9rem; }
    .site-menu .offcanvas-body { justify-content: flex-end; }
}

@media (max-width: 1199.98px) {
    .site-menu { --bs-offcanvas-width: min(330px, 90vw); }
    .site-menu .offcanvas-header { border-bottom: 1px solid #e8eaf0; }
    .site-menu .offcanvas-body { padding: .75rem 1rem 1.25rem; }
    .site-menu .nav-link { width: 100%; min-height: 44px; padding: .62rem .55rem !important; margin: 0 !important; }
    .site-menu .nav-item { border-bottom: 1px solid #eef0f4; }
    .site-menu .nav-item:last-child { border: 0; margin-top: .9rem; }
    .site-menu .navbar-nav .dropdown-menu { position: static; margin: 0 0 .45rem; padding: .2rem 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
    .site-menu .dropdown-menu:not(.show) { display: none; }
    .site-menu .dropdown-item { white-space: normal; padding: .5rem .85rem; }
    .site-menu .dropdown-toggle::after { float: right; }
}

@media (max-width: 767.98px) {
    .site-header .navbar { padding-block: .25rem; }
    .site-header .navbar-brand img { width: 58px; }
    .hero-single { background-size: contain !important; padding: 2.6rem .5rem 5rem; min-height: 340px; }
    .hero-single .hero-content .hero-sub-title { font-size: 1rem; }
    .hero-single .hero-content p { font-size: .95rem; }
    .hero-section + .feature-area.fa-negative { margin-top: 0; }
    .feature-wrapper { padding-inline: 1rem; }
    .site-breadcrumb { background-size: contain !important; padding-block: clamp(3rem, 14vw, 5rem); }
    .application.py-120, .contact-area.py-120, .gallery-area.py-120 { padding-block: 2.5rem; }
    .contact-form { margin-top: 1.5rem; }
}

.py-120 { padding-block: clamp(2.25rem, 5.5vw, 4.5rem); }
.pt-120 { padding-top: clamp(2.25rem, 5.5vw, 4.5rem); }
.pb-120 { padding-bottom: clamp(2.25rem, 5.5vw, 4.5rem); }
.main .site-heading { margin-bottom: clamp(1.3rem, 3vw, 2rem); }
.footer-widget-wrapper { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.gallery-grid .gallery-item { margin-bottom: 0; }
.site-pagination .pagination { flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 0; }
.site-pagination .page-link { display: grid; place-items: center; min-width: 40px; width: auto; margin: 0; line-height: 1; }
.footer-credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; }
.copyright .footer-credits .copyright-text { margin: 0; }
@media (min-width: 768px) {
    .hero-single { padding-top: clamp(5rem, 9vw, 7rem); padding-bottom: clamp(10.5rem, 16vw, 12rem); }
}
.institute-error { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background: #f3f6fb; color: #0b1c39; }
.error-panel { width: min(100%, 38rem); text-align: center; padding: clamp(1.25rem, 6vw, 3rem); background: #fff; border-radius: 1rem; box-shadow: 0 .5rem 2rem #0b1c3912; }
.error-panel img { width: 68px; height: auto; }
.error-code { margin: .75rem 0 0; color: #0b7168; font-size: clamp(3rem, 13vw, 5rem); line-height: 1; font-weight: 800; }
.error-panel h1 { margin: .6rem 0; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.error-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.25rem; }
.error-link { color: #0b7168; font-weight: 600; }
#directions { scroll-margin-top: 8rem; }
@media (min-width: 1200px) {
    .hero-slider.owl-theme .owl-nav .owl-prev { left: auto; right: 105px; }
}

.notice-section { background: #f5f8f8; }
.notice-archive > .container { max-width: 980px; }
.notice-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.notice-section-heading .site-title { font-size: clamp(1.7rem, 4vw, 2.45rem); }
.notice-section-heading p { margin: .35rem 0 0; }
.notice-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.notice-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem 1rem; min-width: 0; padding: .9rem 1rem; border: 1px solid #dce7e6; border-radius: .8rem; background: #fff; }
.notice-icon { display: grid; place-items: center; align-self: start; width: 2.5rem; height: 2.5rem; border-radius: .55rem; color: #a4313f; background: #fff0ee; font-size: 1.25rem; }
.notice-title h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.notice-meta { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-top: .25rem; color: #526568; font-size: .875rem; }
.notice-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.notice-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .45rem .75rem; border: 1px solid #14665f; border-radius: .45rem; background: #fff; color: #14665f; font-size: .91rem; font-weight: 650; }
.notice-action:hover, .notice-action:focus-visible { background: #e4f3f0; color: #103e3a; }
.notice-download { background: #14665f; color: #fff; }
.notice-download:hover, .notice-download:focus-visible { background: #124e49; color: #fff; }
.notice-empty { grid-column: 1 / -1; padding: 1rem; border: 1px dashed #afc0be; border-radius: .7rem; background: #fff; }
@media (min-width: 992px) {
    .home-notices .notice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-notices .notice-card { grid-template-columns: auto minmax(0, 1fr); }
    .home-notices .notice-actions { grid-column: 2; }
}
@media (max-width: 575.98px) {
    .notice-card { grid-template-columns: auto minmax(0, 1fr); }
    .notice-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .notice-actions .notice-action { min-height: 44px; text-align: center; }
}

.cta-content h2 { color: var(--color-white); font-size: clamp(1.85rem, 4vw, 2.8rem); }
.testimonial-slider .owl-stage, .testimonial-slider .owl-item { display: flex; }
.testimonial-slider .testimonial-item { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.testimonial-slider .testimonial-content { margin-top: auto; padding-top: 1rem; }
.testimonial-author-img { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 50%; }
.testimonial-author-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.contact-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.contact-card-grid .contact-info { min-width: 0; margin-bottom: 0; gap: 1.4rem; overflow-wrap: anywhere; }
.contact-card-grid .contact-info-content p { margin-bottom: 0; }
@media (min-width: 576px) {
    .contact-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}
@media (min-width: 1200px) {
    .contact-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.preloader[hidden] { display: none; }
.preloader { pointer-events: none; }
.preloader .loader-book-page:nth-child(1) { animation-delay: .25s; }
.preloader .loader-book-page:nth-child(2) { animation-delay: .15s; }
.preloader .loader-book-page:nth-child(3) { animation-delay: .05s; }
@media (prefers-reduced-motion: reduce) {
    .preloader .loader-book-page { animation: none; }
}

.leadership-page { --leadership-accent: #14665f; --leadership-tint: #e0f6ec; --leadership-wash: #f2faf6; background: var(--leadership-wash); }
.leadership-page[data-role="director"] { --leadership-accent: #255b94; --leadership-tint: #deedff; --leadership-wash: #f2f6fc; }
.leadership-page[data-role="principal"] { --leadership-accent: #624583; --leadership-tint: #eee4fb; --leadership-wash: #f8f4fc; }
.leadership-page .site-breadcrumb { padding-block: clamp(1.5rem, 4vw, 2.65rem); background-image: linear-gradient(116deg, #0b2548 15%, var(--leadership-accent)); }
.leadership-page .site-breadcrumb::before { display: none; }
.leadership-content { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; max-width: 1100px; gap: 1.25rem; padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.leadership-profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem clamp(1rem, 5vw, 3rem); min-width: 0; padding: clamp(.85rem, 4vw, 2.4rem); border: 1px solid #fff; border-radius: 1.15rem; background: linear-gradient(115deg, #fff 25%, var(--leadership-tint)); box-shadow: 0 .8rem 2rem #122e531a; }
.leadership-role { display: inline-block; margin: 0 0 .55rem; padding: .18rem .75rem; border-radius: 2rem; color: #fff; background: var(--leadership-accent); font-size: .875rem; font-weight: 650; }
.leadership-identity h2 { margin: 0; color: #102a46; font-size: clamp(1.55rem, 4.5vw, 3.05rem); line-height: 1.13; overflow-wrap: anywhere; }
.leadership-institute, .leadership-credentials { margin: .45rem 0 0; color: #33495b; font-size: clamp(.95rem, 1.8vw, 1.12rem); }
.leadership-credentials { font-weight: 600; }
.leadership-portrait { display: grid; place-items: center; width: clamp(5.35rem, 23vw, 11.5rem); aspect-ratio: 1 / 1.1; padding: .4rem; border: 1px solid #e1e9ed; border-radius: .9rem; background: #fff; box-shadow: 0 .55rem 1.1rem #0d284522; }
.leadership-portrait img { display: block; width: 100%; height: 100%; min-height: 0; border-radius: .55rem; object-fit: contain; }
.leadership-emblem img { width: 67%; height: 67%; }
.leadership-message, .leadership-nav { min-width: 0; padding: clamp(1.1rem, 4vw, 2.4rem); border: 1px solid #e6ebf0; border-radius: .95rem; background: #fff; box-shadow: 0 .45rem 1.25rem #122e5310; }
.leadership-message h2 { margin: 0 0 1rem; color: #102a46; font-size: clamp(1.4rem, 3.15vw, 1.95rem); }
.leadership-message p { max-width: 67ch; margin: 0 0 1rem; color: #33495b; line-height: 1.75; }
.leadership-message p:last-child { margin-bottom: 0; }
.leadership-message .leadership-intro { padding: .8rem .95rem; border-inline-start: 3px solid var(--leadership-accent); border-radius: 0 .45rem .45rem 0; background: var(--leadership-wash); color: #163745; font-size: clamp(1rem, 1.8vw, 1.13rem); }
.leadership-nav { padding: 1.1rem; }
.leadership-nav h2 { margin: 0 0 .65rem; color: #102a46; font-size: 1.1rem; }
.leadership-nav ul { display: grid; gap: .3rem; padding: 0; margin: 0; list-style: none; }
.leadership-nav a { display: flex; align-items: center; min-height: 44px; padding: .45rem .65rem; border-radius: .45rem; color: #244355; font-weight: 600; }
.leadership-nav a:hover, .leadership-nav a:focus-visible, .leadership-nav a[aria-current="page"] { color: var(--leadership-accent); background: var(--leadership-tint); }
@media (min-width: 850px) {
    .leadership-content { grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 16rem); gap: 1.5rem; }
    .leadership-profile-card { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
    html:not(.site-is-loading) .leadership-profile-card,
    html:not(.site-is-loading) .leadership-message,
    html:not(.site-is-loading) .leadership-nav { animation: leadership-enter .4s ease both; }
    html:not(.site-is-loading) .leadership-message, html:not(.site-is-loading) .leadership-nav { animation-delay: .07s; }
    .leadership-nav a { transition: background-color .18s ease, color .18s ease; }
}
@keyframes leadership-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}
html.site-is-loading body > :not(#site-preloader) { visibility: hidden; }
