/* =========================================================
   FEDERAL PSYCHIATRIC HOSPITAL, CALABAR
   MAIN WEBSITE STYLESHEET
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --primary: #0b5d5e;

    --primary-dark: #083f40;

    --primary-light: #168080;

    --accent: #d7a63d;

    --soft: #f4f9f9;

    --ink: #173333;

    --muted: #0a0a0a;

    --white: #ffffff;

    --border: #dce8e8;

    --shadow:
        0 12px 35px rgba(8, 63, 64, 0.11);

    --radius: 18px;

    --transition:
        all 0.3s ease;

}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--ink);

    background: var(--white);

    line-height: 1.7;

    overflow-x: hidden;

}


img {

    max-width: 100%;

    display: block;

}


a {

    text-decoration: none;

}


p {

    color: var(--muted);

}


h1,
h2,
h3,
h4,
h5,
h6 {

    color: var(--ink);

    font-weight: 700;

    line-height: 1.25;

}


::selection {

    background: var(--primary);

    color: var(--white);

}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {

    background: var(--primary-dark);

    color: var(--white);

    font-size: 13px;

    padding: 8px 0;

}


.top-bar span,
.top-bar i {

    color: var(--white);

}


.top-bar i {

    margin-right: 5px;

}


/* =========================================================
   NAVBAR
========================================================= */

.main-navbar {

    background: var(--primary);

    padding: 12px 0;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

}


.navbar-brand {

    color: var(--white) !important;

}


.brand-logo {

    width: 46px;

    height: 46px;

    border-radius: 12px;

    background: var(--white);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 12px;

    font-size: 24px;

}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.15;

}


.brand-text strong {

    font-size: 15px;

}


.brand-text small {

    font-size: 11px;

    letter-spacing: 3px;

    color: rgba(255,255,255,.75);

}


.navbar-nav {

    gap: 3px;

}


.nav-link {

    color:
        rgba(255,255,255,.9) !important;

    font-size: 14px;

    padding:
        9px 10px !important;

    border-radius: 8px;

    transition: var(--transition);

}


.nav-link:hover,
.nav-link.active {

    background:
        rgba(255,255,255,.12);

    color:
        var(--white) !important;

}


.contact-nav {

    border:
        1px solid rgba(255,255,255,.4);

}


.dropdown-menu {

    border: 0;

    border-radius: 12px;

    box-shadow: var(--shadow);

    padding: 8px;

}


.dropdown-item {

    border-radius: 8px;

    padding: 9px 12px;

}


.dropdown-item:hover,
.dropdown-item.active {

    background: var(--soft);

    color: var(--primary);

}


/* =========================================================
   HERO
========================================================= */

.hero-section {

    position: relative;

}


.hero-slide {

    min-height: 650px;

    background-size: cover;

    background-position: center;

    position: relative;

    display: flex;

    align-items: center;

}


.hero-slide-one {

    background-image:
        url("images/drone\ 1.jpg");

}


.hero-slide-two {

    background-image:
        url("images/drone\ 3.jpg");

}


.hero-slide-three {

    background-image:
        url("images/drone\ 2.jpg");

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,63,64,.9),
            rgba(8,63,64,.55),
            rgba(8,63,64,.15)
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 760px;

    color: #0a0a0a;

}


.hero-label {

    display: inline-block;

    padding:
        6px 14px;

    border-radius: 30px;

    background:
        rgba(255,255,255,.13);

    border:
        1px solid rgba(255,255,255,.25);

    color: var(--white);

    font-size: 13px;

    margin-bottom: 18px;

}


.hero-content h1 {

    color: var(--white);

    font-size:
        clamp(40px, 5vw, 70px);

    margin-bottom: 22px;

}


.hero-content p {

    color:
        rgba(255,255,255,.9);

    font-size: 18px;

    max-width: 650px;

}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom {

    background:
        var(--primary);

    border:
        1px solid var(--primary);

    color:
        var(--white);

    border-radius:
        10px;

    padding:
        11px 20px;

    transition:
        var(--transition);

}


.btn-primary-custom:hover {

    background:
        var(--primary-dark);

    border-color:
        var(--primary-dark);

    color:
        var(--white);

    transform:
        translateY(-2px);

}


.btn-outline-primary {

    border-color:
        var(--primary);

    color:
        var(--primary);

}


.btn-outline-primary:hover {

    background:
        var(--primary);

    border-color:
        var(--primary);

    color:
        var(--white);

}


/* =========================================================
   SECTIONS
========================================================= */

.section-padding {

    padding:
        90px 0;

}


.bg-light-custom {

    background:
        var(--soft);

}


.section-label {

    color:
        var(--primary);

    text-transform:
        uppercase;

    letter-spacing:
        2px;

    font-size:
        12px;

    font-weight:
        700;

    display:
        inline-block;

    margin-bottom:
        12px;

}


.light-label {

    color:
        rgba(255,255,255,.85);

}


.section-heading {

    margin-bottom:
        45px;

}


.section-heading h2 {

    font-size:
        clamp(30px,4vw,45px);

    margin-bottom:
        14px;

}


.section-heading p {

    max-width:
        700px;

}


.section-heading.text-center p {

    margin-left:
        auto;

    margin-right:
        auto;

}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-access {

    margin-top:
        -50px;

    position:
        relative;

    z-index:
        5;

}


.quick-card {

    display:
        block;

    background:
        var(--white);

    padding:
        28px;

    border-radius:
        var(--radius);

    height:
        100%;

    box-shadow:
        var(--shadow);

    transition:
        var(--transition);

}


.quick-card:hover {

    transform:
        translateY(-8px);

}


.quick-icon {

    width:
        55px;

    height:
        55px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        14px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    font-size:
        25px;

    margin-bottom:
        18px;

}


.quick-card h4 {

    margin-bottom:
        10px;

}


.quick-card p {

    font-size:
        14px;

}


.quick-card span {

    color:
        var(--primary);

    font-weight:
        700;

    font-size:
        14px;

}


/* =========================================================
   IMAGES
========================================================= */

.welcome-image img,
.about-image img {

    width:
        100%;

    min-height:
        380px;

    object-fit:
        cover;

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

}


.rounded-image {

    border-radius:
        var(--radius);

}


/* =========================================================
   DIRECTOR
========================================================= */

.director-card {

    background:
        var(--white);

    border-radius:
        25px;

    padding:
        45px;

    box-shadow:
        var(--shadow);

}


.director-image {

    width:
        270px;

    height:
        320px;

    object-fit:
        cover;

    margin:
        auto;

    border-radius:
        20px;

}


.director-subtitle {

    color:
        var(--primary);

    margin-top:
        25px;

}


.photo-placeholder {

    width:
        270px;

    height:
        320px;

    margin:
        auto;

    border-radius:
        20px;

    background:
        var(--soft);

    border:
        2px dashed var(--primary);

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--primary);

}


.photo-placeholder i {

    font-size:
        60px;

    margin-bottom:
        10px;

}


/* Compact Management Team Layout */
.staff-card {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

/* Reduce space between Bootstrap columns */
.row.g-4 {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

/* Smaller image area */
.staff-image-placeholder {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    overflow: hidden;
}

.staff-image-placeholder img {
    width: 150px;
    height: 170px;
    object-fit: cover;
    object-position: center top;
    border-radius: 7px;
}

/* Tight text section */
.staff-content {
    padding: 10px 8px;
    text-align: center;
}

.staff-content h4 {
    font-size: 16px;
    margin: 0 0 3px;
    line-height: 1.3;
}

.staff-content p {
    font-size: 13px;
    margin: 0 0 3px;
    line-height: 1.3;
}

.staff-content small {
    font-size: 11px;
    line-height: 1.2;
    display: block;
}

/* Placeholder icon */
.staff-image-placeholder i {
    font-size: 50px;
}

/* Mobile */
@media (max-width: 575px) {
    .row.g-4 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 10px;
    }

    .staff-card {
        max-width: 260px;
    }

    .staff-image-placeholder {
        height: 180px;
    }

    .staff-image-placeholder img {
        width: 140px;
        height: 160px;
    }
}

/* =========================================================
   STATISTICS
========================================================= */

.statistics-section {

    background:
        var(--primary);

    padding:
        70px 0;

}


.stat-card {

    text-align:
        center;

    color:
        var(--white);

    padding:
        20px;

}


.stat-card i {

    font-size:
        35px;

    color:
        var(--accent);

}


.stat-card h3 {

    color:
        var(--white);

    font-size:
        42px;

    margin:
        10px 0 0;

}


.stat-card p {

    color:
        rgba(255,255,255,.85);

    margin:
        0;

}


.stat-card small {

    color:
        rgba(255,255,255,.55);

    font-size:
        9px;

}


/* =========================================================
   SERVICE CARDS
========================================================= */

.service-card,
.service-card-large {

    height:
        100%;

    background:
        var(--white);

    padding:
        30px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    transition:
        var(--transition);

}


.service-card:hover,
.service-card-large:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);

    border-color:
        transparent;

}


.service-card-large {

    padding:
        38px;

}


.service-icon {

    width:
        60px;

    height:
        60px;

    border-radius:
        15px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        27px;

    margin-bottom:
        20px;

}


.service-card a,
.service-card-large a {

    color:
        var(--primary);

    font-weight:
        700;

}


/* =========================================================
   DEPARTMENT CARDS
========================================================= */

.department-card,
.department-card-large {

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        30px;

    height:
        100%;

    transition:
        var(--transition);

}


.department-card:hover,
.department-card-large:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);

}


.department-card-large {

    padding:
        38px;

}


.department-icon {

    width:
        60px;

    height:
        60px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    border-radius:
        15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        28px;

    margin-bottom:
        20px;

}


.department-modal-icon {

    width:
        65px;

    height:
        65px;

    border-radius:
        15px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        30px;

    margin-bottom:
        20px;

}


/* =========================================================
   FEATURES
========================================================= */

.feature-box {

    padding:
        28px;

    background:
        var(--white);

    border-radius:
        var(--radius);

    border:
        1px solid var(--border);

    height:
        100%;

}


.feature-box i {

    font-size:
        35px;

    color:
        var(--primary);

    margin-bottom:
        15px;

}


/* =========================================================
   MENTAL HEALTH SECTION
========================================================= */

.mental-health-section {

    background:
        var(--primary-dark);

    padding:
        90px 0;

}


.mental-health-section h2 {

    color:
        var(--white);

    font-size:
        clamp(30px,4vw,48px);

}


.mental-health-section p {

    color:
        rgba(255,255,255,.8);

}


.mental-icon {

    width:
        180px;

    height:
        180px;

    border-radius:
        50%;

    border:
        1px solid rgba(255,255,255,.2);

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        70px;

    color:
        var(--white);

}


.mental-large-icon {

    font-size:
        100px;

    color:
        rgba(255,255,255,.85);

}


/* =========================================================
   NEWS
========================================================= */

.news-card {

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    overflow:
        hidden;

    height:
        100%;

    transition:
        var(--transition);

}


.news-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow);

}


.news-image {

    height:
        230px;

    overflow:
        hidden;

}


.news-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

}


.news-content {

    padding:
        25px;

}


.news-date {

    font-size:
        11px;

    letter-spacing:
        1.5px;

    color:
        var(--primary);

    font-weight:
        700;

}


/* =========================================================
   GALLERY
========================================================= */

.gallery-preview {

    width:
        100%;

    height:
        220px;

    object-fit:
        cover;

    border-radius:
        14px;

    transition:
        var(--transition);

}


.gallery-preview:hover {

    transform:
        scale(1.03);

}


.gallery-item {

    position:
        relative;

    overflow:
        hidden;

    border-radius:
        16px;

    cursor:
        pointer;

}


.gallery-item img {

    width:
        100%;

    height:
        270px;

    object-fit:
        cover;

    transition:
        var(--transition);

}


.gallery-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(8,63,64,.55);

    color:
        var(--white);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        35px;

    opacity:
        0;

    transition:
        var(--transition);

}


.gallery-item:hover img {

    transform:
        scale(1.08);

}


.gallery-item:hover .gallery-overlay {

    opacity:
        1;

}


.gallery-filters {

    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    padding:
        100px 0;

    color:
        var(--white);

}


.page-header h1 {

    color:
        var(--white);

    font-size:
        clamp(40px,5vw,60px);

    margin-bottom:
        15px;

}


.page-header p {

    color:
        rgba(255,255,255,.8);

    max-width:
        700px;

}


/* =========================================================
   INFO CARDS
========================================================= */

.info-card {

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        35px;

    height:
        100%;

    transition:
        var(--transition);

}


.info-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow);

}


.info-card-icon {

    width:
        60px;

    height:
        60px;

    border-radius:
        15px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        27px;

    margin-bottom:
        20px;

}


/* =========================================================
   CHECK LIST
========================================================= */

.check-list {

    display:
        grid;

    gap:
        14px;

}


.check-list div {

    padding:
        14px 18px;

    border-radius:
        12px;

    background:
        var(--soft);

}


.check-list i {

    color:
        var(--primary);

    margin-right:
        10px;

}


/* =========================================================
   NOTICE
========================================================= */

.notice-box {

    display:
        flex;

    gap:
        15px;

    padding:
        20px;

    border-radius:
        15px;

    background:
        #eef7f7;

    border-left:
        4px solid var(--primary);

}


.notice-box > i {

    color:
        var(--primary);

    font-size:
        24px;

}


/* =========================================================
   SEARCH
========================================================= */

.search-box-large {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        14px;

    padding:
        5px 18px;

    box-shadow:
        var(--shadow);

}


.search-box-large i {

    color:
        var(--primary);

}


.search-box-large input {

    border:
        0;

    outline:
        0;

    width:
        100%;

    padding:
        14px;

    font-size:
        16px;

}


/* =========================================================
   CONTACT
========================================================= */

.contact-info-list {

    margin-top:
        35px;

}


.contact-info-item {

    display:
        flex;

    gap:
        16px;

    margin-bottom:
        25px;

}


.contact-info-icon {

    min-width:
        50px;

    height:
        50px;

    border-radius:
        12px;

    background:
        rgba(11,93,94,.1);

    color:
        var(--primary);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        22px;

}


.contact-info-item h5 {

    margin:
        0 0 4px;

}


.contact-info-item p {

    margin:
        0;

}


.contact-form-card {

    padding:
        35px;

    border-radius:
        var(--radius);

    background:
        var(--white);

    box-shadow:
        var(--shadow);

}


.form-control {

    border:
        1px solid var(--border);

    padding:
        12px 14px;

    border-radius:
        10px;

}


.form-control:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px rgba(11,93,94,.1);

}


.form-message {

    margin-top:
        10px;

}


/* =========================================================
   MAP
========================================================= */

.map-container {

    overflow:
        hidden;

    border-radius:
        18px;

    box-shadow:
        var(--shadow);

}


.map-container iframe {

    display:
        block;

}


/* =========================================================
   CONTACT CTA
========================================================= */

.contact-cta {

    background:
        var(--primary);

    padding:
        70px 0;

}


.contact-cta span {

    color:
        var(--accent);

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        2px;

    font-size:
        12px;

}


.contact-cta h2 {

    color:
        var(--white);

    margin:
        8px 0 12px;

}


.contact-cta p {

    color:
        rgba(255,255,255,.8);

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background:
        #062f30;

    color:
        var(--white);

    padding:
        70px 0 20px;

}


.site-footer h4,
.site-footer h5 {

    color:
        var(--white);

}


.site-footer p {

    color:
        rgba(255,255,255,.65);

    font-size:
        14px;

}


.site-footer ul {

    list-style:
        none;

    margin:
        0;

    padding:
        0;

}


.site-footer li {

    margin-bottom:
        9px;

}


.site-footer a {

    color:
        rgba(255,255,255,.7);

    transition:
        var(--transition);

}


.site-footer a:hover {

    color:
        var(--white);

}


.site-footer hr {

    border-color:
        rgba(255,255,255,.12);

    margin:
        35px 0 20px;

}


.footer-bottom {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    flex-wrap:
        wrap;

}


.social-links {

    display:
        flex;

    gap:
        8px;

}


.social-links a {

    width:
        38px;

    height:
        38px;

    border-radius:
        50%;

    background:
        rgba(255,255,255,.08);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {

    position:
        fixed;

    right:
        22px;

    bottom:
        22px;

    width:
        46px;

    height:
        46px;

    border:
        0;

    border-radius:
        50%;

    background:
        var(--primary);

    color:
        var(--white);

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    z-index:
        1000;

    box-shadow:
        var(--shadow);

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.accessibility-panel {

    position:
        fixed;

    left:
        20px;

    bottom:
        20px;

    z-index:
        1100;

}


#accessibilityToggle {

    width:
        48px;

    height:
        48px;

    border:
        0;

    border-radius:
        50%;

    background:
        var(--primary);

    color:
        var(--white);

    font-size:
        22px;

}


.accessibility-menu {

    display:
        none;

    position:
        absolute;

    bottom:
        58px;

    left:
        0;

    width:
        190px;

    padding:
        15px;

    background:
        var(--white);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);

}


.accessibility-menu.show {

    display:
        block;

}


.accessibility-menu h6 {

    margin-bottom:
        10px;

}


.accessibility-menu button {

    display:
        block;

    width:
        100%;

    border:
        0;

    background:
        var(--soft);

    padding:
        9px;

    margin:
        5px 0;

    border-radius:
        8px;

}


.accessibility-menu button:hover {

    background:
        var(--primary);

    color:
        var(--white);

}


/* HIGH CONTRAST */

body.high-contrast {

    background:
        #000;

    color:
        #fff;

}


body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {

    color:
        #fff;

}


body.high-contrast .quick-card,
body.high-contrast .service-card,
body.high-contrast .service-card-large,
body.high-contrast .department-card,
body.high-contrast .department-card-large,
body.high-contrast .info-card,
body.high-contrast .feature-box,
body.high-contrast .news-card,
body.high-contrast .contact-form-card {

    background:
        #111;

    color:
        #fff;

    border-color:
        #fff;

}


/* TEXT SIZE */

body.text-large {

    font-size:
        18px;

}


body.text-large h1 {

    font-size:
        clamp(44px,6vw,76px);

}


body.text-small {

    font-size:
        14px;

}


/* =========================================================
   CHATBOT
========================================================= */

.chatbot-button {

    position:
        fixed;

    right:
        20px;

    bottom:
        82px;

    z-index:
        1050;

    border:
        0;

    border-radius:
        30px;

    padding:
        12px 18px;

    background:
        var(--primary);

    color:
        var(--white);

    font-weight:
        700;

    box-shadow:
        var(--shadow);

}


.chatbot-window {

    position:
        fixed;

    right:
        20px;

    bottom:
        140px;

    width:
        370px;

    max-width:
        calc(100vw - 30px);

    height:
        550px;

    background:
        var(--white);

    border-radius:
        18px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.2);

    z-index:
        1060;

    display:
        none;

    flex-direction:
        column;

    overflow:
        hidden;

}


.chatbot-window.show {

    display:
        flex;

}


.chatbot-header {

    background:
        var(--primary);

    color:
        var(--white);

    padding:
        15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

}


.chatbot-header strong {

    display:
        block;

    color:
        var(--white);

}


.chatbot-header small {

    opacity:
        .75;

}


.chatbot-header button {

    border:
        0;

    background:
        transparent;

    color:
        var(--white);

    font-size:
        26px;

}


.chatbot-messages {

    flex:
        1;

    padding:
        15px;

    overflow-y:
        auto;

    background:
        #f6fafa;

}


.bot-message,
.user-message {

    max-width:
        88%;

    padding:
        10px 13px;

    border-radius:
        13px;

    margin-bottom:
        10px;

    font-size:
        14px;

}


.bot-message {

    background:
        var(--white);

    border:
        1px solid var(--border);

    margin-right:
        auto;

}


.user-message {

    background:
        var(--primary);

    color:
        var(--white);

    margin-left:
        auto;

}


.chatbot-suggestions {

    padding:
        10px;

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        6px;

    border-top:
        1px solid var(--border);

    max-height:
        135px;

    overflow-y:
        auto;

}


.chatbot-suggestions button {

    border:
        1px solid var(--border);

    background:
        var(--soft);

    color:
        var(--primary);

    border-radius:
        20px;

    padding:
        6px 10px;

    font-size:
        11px;

}


.chatbot-input {

    display:
        flex;

    border-top:
        1px solid var(--border);

}


.chatbot-input input {

    flex:
        1;

    border:
        0;

    padding:
        13px;

    outline:
        0;

}


.chatbot-input button {

    width:
        55px;

    border:
        0;

    background:
        var(--primary);

    color:
        var(--white);

}


/* =========================================================
   COOKIE NOTICE
========================================================= */

.cookie-notice {

    position:
        fixed;

    left:
        20px;

    right:
        20px;

    bottom:
        20px;

    max-width:
        760px;

    margin:
        auto;

    background:
        var(--white);

    padding:
        18px 20px;

    border-radius:
        15px;

    box-shadow:
        0 15px 50px rgba(0,0,0,.18);

    display:
        none;

    align-items:
        center;

    gap:
        20px;

    z-index:
        1200;

}


.cookie-notice.show {

    display:
        flex;

}


.cookie-notice p {

    margin:
        4px 0 0;

    font-size:
        13px;

}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {

    text-align:
        center;

    padding:
        60px 20px;

}


.no-results i {

    font-size:
        45px;

    color:
        var(--primary);

}


/* =========================================================
   ACCORDION
========================================================= */

.accordion-item {

    border:
        1px solid var(--border);

    margin-bottom:
        10px;

    border-radius:
        10px !important;

    overflow:
        hidden;

}


.accordion-button {

    font-weight:
        600;

}


.accordion-button:not(.collapsed) {

    color:
        var(--primary);

    background:
        var(--soft);

    box-shadow:
        none;

}


.accordion-button:focus {

    box-shadow:
        none;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .navbar-nav {

        padding-top:
            15px;

    }


    .hero-slide {

        min-height:
            570px;

    }


    .quick-access {

        margin-top:
            0;

        padding:
            30px 0;

        background:
            var(--soft);

    }


    .section-padding {

        padding:
            70px 0;

    }

}


@media (max-width: 767px) {

    .top-bar {

        text-align:
            center;

    }


    .top-bar .text-md-end {

        text-align:
            center !important;

        margin-top:
            5px;

    }


    .hero-slide {

        min-height:
            620px;

    }


    .hero-content h1 {

        font-size:
            39px;

    }


    .hero-content p {

        font-size:
            16px;

    }


    .director-card {

        padding:
            25px;

    }


    .page-header {

        padding:
            70px 0;

    }


    .page-header h1 {

        font-size:
            42px;

    }


    .footer-bottom {

        flex-direction:
            column;

    }


    .chatbot-button {

        right:
            15px;

        bottom:
            78px;

        font-size:
            13px;

    }


    .chatbot-window {

        right:
            15px;

        bottom:
            130px;

        width:
            calc(100vw - 30px);

        height:
            500px;

    }


    .cookie-notice {

        flex-direction:
            column;

        align-items:
            flex-start;

    }

}


@media (max-width: 480px) {

    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .hero-buttons .btn {

        text-align:
            center;

    }


    .brand-text strong {

        font-size:
            12px;

    }


    .brand-logo {

        width:
            40px;

        height:
            40px;

    }

}

/* Medical Director Message Slider */
.director-message-slider {
    height: 300px;
    overflow: hidden;
    position: relative;
}

/* Moving content */
.director-message-content {
    animation: rollUp 25s linear infinite;
}

/* Paragraph styling */
.director-message-content p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Motto */
.director-motto {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Director name */
.director-name {
    font-weight: 600;
}

/* Roll upward */
@keyframes rollUp {

    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }

}

.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}


/* Psychology Department Head */
.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}


.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}

.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}

.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}
.department-head-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.department-head-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.department-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.department-head-info {
    padding: 20px 15px;
}

.department-head-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body .list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}

/* ==========================================
   VERTICAL ROLLING TEXT
========================================== */

.about-text-slider {
    position: relative;
    height: 470px;
    overflow: hidden;
    margin-top: 20px;
}

/* Individual text slides */
.about-text-slide {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;

    opacity: 0;
    visibility: hidden;

    transform: translateY(100%);
    
    transition:
        transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.7s ease,
        visibility 0.9s ease;
}

/* Current slide */
.about-text-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Previous slide moves upward */
.about-text-slide.previous {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

/* Next slide starts below */
.about-text-slide.next {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}


/* Heading */
.about-text-slide h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Paragraph */
.about-text-slide p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
}


/* ==========================================
   CONTROLS
========================================== */

.about-slider-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.about-slider-controls button {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #0d6efd;
    color: #fff;

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

    cursor: pointer;

    transition: all 0.3s ease;
}

.about-slider-controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-slide-counter {
    font-size: 14px;
    font-weight: 600;
    color: #777;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 991px) {

    .about-text-slider {
        height: 500px;
    }

}

@media (max-width: 575px) 
{}
.about-text-slider {
        height: 600px;
    }

    .about-text-slide h2 {
        font-size: 26px;
    }

    .about-text-slide p {
        font-size: 15px;
        line-height: 1.8;
    }


    /* Extra reliability for the management profile modal */
    #managementProfileModal.show {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.modal-open {
        overflow: hidden;
    }

    .profile-btn {
        cursor: pointer;
        pointer-events: auto !important;
    }
    .profile-card {
        cursor: pointer;
        height: 100%;
        transition: transform .25s ease, box-shadow .25s ease;
        position: relative;
    }

    .profile-card:hover,
    .profile-card:focus-within {
        transform: translateY(-7px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

    .profile-card:focus {
        outline: 3px solid rgba(13,110,253,.25);
        outline-offset: 3px;
    }

    .profile-btn {
        pointer-events: none;
    }

    .profile-modal-image-wrap {
        width: 210px;
        height: 250px;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
        background: #eef2f6;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .management-profile-modal {
        border: 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 25px 70px rgba(0,0,0,.22);
    }

    .management-profile-modal .modal-header {
        background: #0b3d62;
        color: #fff;
        border-bottom: 0;
    }

    .management-profile-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

    .profile-qualification {
        color: #64748b;
        font-weight: 600;
    }

    .profile-bio {
        line-height: 1.8;
        color: #475569;
    }

    @media (max-width: 767px) {
        .profile-modal-image-wrap {
            width: 180px;
            height: 215px;
        }

        .management-profile-modal .modal-body {
            padding: 1.25rem;
        }
    }

    .department-modal-body {
    overflow: hidden;
    padding: 2rem;
}

/* HOD profile */
.department-profile {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(55px);
}

.hod-image-wrap {
    position: relative;
    width: 170px;
    margin: 0 auto;
}

.hod-image {
    width: 170px;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 5px solid #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.hod-badge {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: max-content;
    max-width: 180px;
    padding: 7px 12px;
    border-radius: 30px;
    background: #0d6efd;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,.18);
    text-align: center;
}

.hod-badge i {
    margin-right: 4px;
}

.department-intro {
    min-width: 0;
}

.department-label {
    display: inline-block;
    margin-bottom: .4rem;
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.department-intro h4 {
    margin-bottom: .8rem;
    font-weight: 700;
}

.department-intro p {
    margin-bottom: 0;
    line-height: 1.8;
    color: #606770;
}

/* Animated content */
.department-content-roll {
    display: grid;
    gap: 1.25rem;
}

.department-info-block {
    padding: 1.25rem 1.4rem;
    background: #f8fafc;
    border-left: 4px solid #0d6efd;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(45px);
}

.department-info-block h5 {
    margin-bottom: .8rem;
    font-weight: 700;
}

.department-info-block h5 i {
    color: #0d6efd;
    margin-right: .45rem;
}

.department-info-block p {
    margin-bottom: 0;
    line-height: 1.75;
}

#departmentServices {
    margin: 0;
    padding: 0;
    list-style: none;
}

#departmentServices li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .65rem;
    opacity: 0;
    transform: translateY(25px);
}

#departmentServices li:last-child {
    margin-bottom: 0;
}

#departmentServices li i {
    flex: 0 0 auto;
    color: #198754;
    font-weight: 700;
    margin-top: 2px;
}

/* Roll-on animation */
.roll-on {
    animation: departmentRollOn .75s cubic-bezier(.22,.61,.36,1) forwards;
}

.department-profile.roll-on {
    animation-delay: .05s;
}

.department-info-block:nth-child(1).roll-on {
    animation-delay: .18s;
}

.department-info-block:nth-child(2).roll-on {
    animation-delay: .32s;
}

.department-info-block:nth-child(3).roll-on {
    animation-delay: .46s;
}

#departmentServices li.roll-on:nth-child(1) { animation-delay: .25s; }
#departmentServices li.roll-on:nth-child(2) { animation-delay: .32s; }
#departmentServices li.roll-on:nth-child(3) { animation-delay: .39s; }
#departmentServices li.roll-on:nth-child(4) { animation-delay: .46s; }
#departmentServices li.roll-on:nth-child(5) { animation-delay: .53s; }

@keyframes departmentRollOn {
    from {
        opacity: 0;
        transform: translateY(55px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 575.98px) {

    .department-modal-body {
        padding: 1.25rem;
    }

    .department-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hod-image-wrap {
        margin: 0 auto;
    }

    .department-info-block {
        padding: 1rem;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .department-profile,
    .department-info-block,
    #departmentServices li {
        opacity: 1;
        transform: none;
    }

    .roll-on {
        animation: none !important;
    }
}

  /* ================================
           DEPARTMENT GALLERY
           ================================ */

        .department-gallery-section {

            margin-top: 35px;

            padding-top: 30px;

            border-top: 1px solid rgba(0, 0, 0, 0.08);

        }


        .gallery-heading {

            display: flex;

            align-items: center;

            justify-content: space-between;

            margin-bottom: 20px;

            gap: 15px;

        }


        .gallery-heading h5 {

            margin: 5px 0 0;

            font-weight: 700;

            color: #173f5f;

        }


        .gallery-heading h5 i {

            margin-right: 8px;

        }


        .gallery-count {

            background: #eef5f8;

            color: #173f5f;

            padding: 6px 13px;

            border-radius: 30px;

            font-size: 13px;

            font-weight: 600;

            white-space: nowrap;

        }


        /* GALLERY IMAGE */

        .department-gallery-item {

            position: relative;

            height: 180px;

            overflow: hidden;

            border-radius: 12px;

            background: #f2f5f7;

            cursor: pointer;

            box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);

        }


        .department-gallery-item img {

            width: 100%;

            height: 100%;

            object-fit: cover;

            display: block;

            transition: transform 0.5s ease;

        }


        .department-gallery-item:hover img {

            transform: scale(1.08);

        }


        /* IMAGE OVERLAY */

        .gallery-overlay {

            position: absolute;

            inset: 0;

            display: flex;

            align-items: center;

            justify-content: center;

            background: rgba(0, 55, 85, 0.50);

            opacity: 0;

            transition: opacity 0.3s ease;

        }


        .department-gallery-item:hover .gallery-overlay {

            opacity: 1;

        }


        .gallery-overlay i {

            width: 50px;

            height: 50px;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 50%;

            background: rgba(255, 255, 255, 0.95);

            color: #173f5f;

            font-size: 20px;

        }


        /* EMPTY GALLERY */

        .gallery-empty {

            text-align: center;

            padding: 35px 20px;

            border: 1px dashed #ccd7dd;

            border-radius: 12px;

            background: #f8fafb;

        }


        .gallery-empty i {

            font-size: 38px;

            color: #78909c;

        }


        .gallery-empty p {

            margin: 10px 0 0;

            color: #687780;

        }


        /* ================================
           IMAGE LIGHTBOX
           ================================ */

        .department-lightbox {

            position: fixed;

            inset: 0;

            z-index: 99999;

            display: flex;

            align-items: center;

            justify-content: center;

            flex-direction: column;

            padding: 30px;

            background: rgba(0, 0, 0, 0.93);

            opacity: 0;

            visibility: hidden;

            transition:

                opacity 0.3s ease,

                visibility 0.3s ease;

        }


        .department-lightbox.active {

            opacity: 1;

            visibility: visible;

        }


        .department-lightbox img {

            max-width: 90%;

            max-height: 80vh;

            object-fit: contain;

            border-radius: 10px;

            box-shadow:

                0 20px 60px rgba(0, 0, 0, 0.5);

            transform: scale(0.92);

            transition: transform 0.35s ease;

        }


        .department-lightbox.active img {

            transform: scale(1);

        }


        .lightbox-close {

            position: absolute;

            top: 25px;

            right: 30px;

            width: 45px;

            height: 45px;

            border: none;

            border-radius: 50%;

            background: rgba(255, 255, 255, 0.15);

            color: white;

            font-size: 20px;

            cursor: pointer;

            transition: 0.3s;

        }


        .lightbox-close:hover {

            background: rgba(255, 255, 255, 0.3);

            transform: rotate(90deg);

        }


        .lightbox-caption {

            color: white;

            margin-top: 15px;

            font-size: 16px;

            font-weight: 600;

            text-align: center;

        }


        body.lightbox-open {

            overflow: hidden;

        }


        /* ================================
           MOBILE
           ================================ */

        @media (max-width: 576px) {

            .department-gallery-item {

                height: 130px;

            }


            .gallery-heading {

                align-items: flex-start;

            }


            .gallery-count {

                font-size: 11px;

            }


            .department-lightbox {

                padding: 15px;

            }


            .department-lightbox img {

                max-width: 96%;

                max-height: 75vh;

            }

        }


   HERO SLIDER


.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#hospitalHero {
    width: 100%;
    position: relative;
}

/* Each slide */
.hero-slide {
    position: relative;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* IMPORTANT:
   Do not use position:absolute on .carousel-item
   unless you know exactly why.
*/

.carousel-item {
    min-height: 650px;
}


   SLIDE BACKGROUNDS

.hero-slide-one {
    background-image: url("images/drone\ 2.jpg");
}

.hero-slide-two {
    background-image: url("images/drone\ 3.jpg");
}

.hero-slide-three {
    background-image: url("images/Ocupational.jpg");
}


/* 
   OVERLAY
 */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}


/* 
   CONTENT
*/

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 170px;
    padding-bottom: 120px;
    max-width: 800px;
    color: #fff;
}


/* 
   FADE TRANSITION
 */

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}


/* 
   CONTROLS
 */

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
}


/* 
   INDICATORS
 */

.carousel-indicators {
    z-index: 10;
    bottom: 25px;
}

.carousel-indicators button {
    width: 35px;
    height: 4px;
    margin: 0 5px;
}


/* 
   MOBILE
 */

@media (max-width: 768px) {

    .hero-slide,
    .carousel-item {
        min-height: 600px;
    }

    .hero-content {
        padding-top: 130px;
        padding-bottom: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

}
/* FNPH AI: support the JS open state */
.chatbot-window.open { display: flex; }
.chatbot-button { cursor: pointer; }
.chatbot-suggestions button { cursor: pointer; }

/* =========================================================
   FNPH AI — PROFESSIONAL CHAT WIDGET
========================================================= */
#fnphAiWidget{position:fixed;right:24px;bottom:24px;z-index:1080;font-family:inherit}
.fnph-ai-fab{border:0;border-radius:999px;background:var(--primary,#0b5d5e);color:#fff;box-shadow:0 12px 35px rgba(0,0,0,.2);display:flex;align-items:center;gap:10px;padding:10px 17px 10px 10px;font-weight:700;transition:.25s;cursor:pointer}
.fnph-ai-fab:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.25)}
.fnph-ai-fab-icon,.fnph-ai-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.15);font-size:19px}
.fnph-ai-panel{position:absolute;right:0;bottom:64px;width:min(390px,calc(100vw - 30px));height:590px;max-height:calc(100vh - 105px);background:#fff;border-radius:20px;box-shadow:0 22px 70px rgba(0,0,0,.22);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);transition:.2s}
.fnph-ai-panel.show{opacity:1;visibility:visible;transform:none}
.fnph-ai-header{background:linear-gradient(135deg,#0b5d5e,#08494a);color:#fff;padding:15px 16px;display:flex;align-items:center;justify-content:space-between}
.fnph-ai-brand{display:flex;align-items:center;gap:10px}.fnph-ai-brand strong{display:block;font-size:15px}.fnph-ai-brand small{display:block;opacity:.82;font-size:11px;margin-top:2px}
.fnph-ai-close{border:0;background:transparent;color:#fff;font-size:17px;padding:6px;cursor:pointer}
.fnph-ai-notice{font-size:11px;line-height:1.45;padding:9px 13px;background:#f2f8f8;color:#496364;border-bottom:1px solid #e4eeee}
.fnph-ai-messages{flex:1;overflow:auto;padding:16px;background:#f8fafb}
.fnph-ai-msg{max-width:86%;padding:11px 13px;border-radius:15px;margin:0 0 10px;font-size:13px;line-height:1.55;word-break:break-word}
.fnph-ai-msg.bot{background:#fff;border:1px solid #e5eded;border-top-left-radius:5px;color:#263b3c}
.fnph-ai-msg.user{margin-left:auto;background:#0b5d5e;color:#fff;border-top-right-radius:5px}
.fnph-ai-suggestions{display:flex;gap:7px;overflow-x:auto;padding:9px 12px;border-top:1px solid #e7eeee;background:#fff}
.fnph-ai-suggestions button{white-space:nowrap;border:1px solid #cfe0e0;background:#fff;color:#0b5d5e;border-radius:999px;padding:6px 9px;font-size:11px;cursor:pointer}
.fnph-ai-suggestions button:hover{background:#edf7f7}
.fnph-ai-input{display:flex;padding:10px;background:#fff;border-top:1px solid #e7eeee;gap:8px}
.fnph-ai-input input{min-width:0;flex:1;border:1px solid #d7e1e1;border-radius:12px;padding:10px 12px;outline:0;font-size:13px}
.fnph-ai-input input:focus{border-color:#0b5d5e;box-shadow:0 0 0 3px rgba(11,93,94,.1)}
.fnph-ai-input button{width:42px;border:0;border-radius:12px;background:#0b5d5e;color:#fff}
@media(max-width:575px){#fnphAiWidget{right:12px;bottom:12px}.fnph-ai-fab-label{display:none}.fnph-ai-fab{padding:7px}.fnph-ai-panel{bottom:57px;width:calc(100vw - 24px);height:min(600px,calc(100vh - 85px))}}
/* Better mobile navigation */
@media(max-width:991.98px){.main-navbar .navbar-nav{padding:12px 0}.main-navbar .dropdown-menu{border:0;box-shadow:none;background:rgba(255,255,255,.06)}.main-navbar .dropdown-item{color:#fff}.main-navbar .dropdown-item:hover{color:#0b5d5e}.main-navbar .nav-link{padding:10px 4px}}


/* =========================================================
   FNPH AI — LOCAL JAVASCRIPT ASSISTANT
========================================================= */
#fnphAiWidget .fnph-ai-fab{position:fixed;right:22px;bottom:28px;z-index:1080;border:0;border-radius:50px;padding:11px 18px 11px 12px;background:var(--primary,#0d6efd);color:#fff;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.18);display:flex;align-items:center;gap:9px;cursor:pointer;transition:.25s}
#fnphAiWidget .fnph-ai-fab:hover{transform:translateY(-2px)}
#fnphAiWidget .fnph-ai-fab-icon{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:18px}
#fnphAiWidget .fnph-ai-panel{position:fixed;right:22px;bottom:88px;width:390px;max-width:calc(100vw - 30px);height:570px;max-height:calc(100vh - 110px);z-index:1081;background:#fff;border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.22);overflow:hidden;display:none;flex-direction:column}
#fnphAiWidget .fnph-ai-panel.show{display:flex}
#fnphAiWidget .fnph-ai-header{background:var(--primary,#0d6efd);color:#fff;padding:15px 16px;display:flex;align-items:center;justify-content:space-between}
#fnphAiWidget .fnph-ai-brand{display:flex;align-items:center;gap:10px}.fnph-ai-brand strong,.fnph-ai-brand small{display:block}.fnph-ai-brand small{font-size:11px;opacity:.85}
#fnphAiWidget .fnph-ai-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:20px}
#fnphAiWidget .fnph-ai-close{border:0;background:transparent;color:#fff;font-size:20px}
#fnphAiWidget .fnph-ai-notice{font-size:11px;line-height:1.45;padding:9px 13px;background:#f1f8ff;color:#355b77;border-bottom:1px solid #e5edf3}
#fnphAiWidget .fnph-ai-messages{flex:1;padding:14px;overflow-y:auto;background:#f7fafc}
#fnphAiWidget .fnph-ai-msg{max-width:88%;padding:10px 12px;border-radius:13px;margin-bottom:10px;font-size:13px;line-height:1.55;white-space:normal}.fnph-ai-msg.bot{background:#fff;border:1px solid #e4e9ed;margin-right:auto}.fnph-ai-msg.user{background:var(--primary,#0d6efd);color:#fff;margin-left:auto}
#fnphAiWidget .fnph-ai-suggestions{padding:9px;display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #e5e9ed;max-height:105px;overflow:auto}
#fnphAiWidget .fnph-ai-suggestions button{border:1px solid #d8e2ea;background:#f8fbfd;color:#075b8c;border-radius:20px;padding:6px 9px;font-size:11px;cursor:pointer}
#fnphAiWidget .fnph-ai-input{display:flex;border-top:1px solid #e5e9ed}.fnph-ai-input input{flex:1;border:0;outline:0;padding:13px}.fnph-ai-input button{width:55px;border:0;background:var(--primary,#0d6efd);color:#fff}
@media(max-width:575px){#fnphAiWidget .fnph-ai-fab{right:15px;bottom:18px}#fnphAiWidget .fnph-ai-panel{right:10px;bottom:75px;width:calc(100vw - 20px);height:calc(100vh - 95px)}}

/* =========================================================
   STAFF PORTAL
========================================================= */
.staff-portal{min-height:100vh;background:#f3f7f7;color:#173333;display:flex;flex-direction:column}
.staff-header{min-height:78px;padding:12px max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dce8e8}
.staff-brand{display:flex;align-items:center;gap:12px;color:#173333}
.staff-brand img{width:48px;height:48px;object-fit:contain}
.staff-brand strong,.staff-brand small{display:block}
.staff-brand strong{font-size:15px}
.staff-brand small{font-size:12px;color:#638080}
.staff-home-link{font-size:13px;font-weight:600;color:#0b5d5e}
.staff-main{width:min(100% - 32px,1000px);margin:54px auto;flex:1}
.staff-card{width:min(100%,520px);margin:0 auto;padding:38px;background:#fff;border:1px solid #dce8e8;border-radius:20px;box-shadow:0 16px 40px rgba(8,63,64,.08)}
.staff-card h1,.staff-dashboard h1{margin:8px 0 12px;color:#173333;font-size:clamp(26px,4vw,34px);font-weight:700;letter-spacing:-.03em}
.staff-kicker{color:#0b6968;text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.09em}
.staff-intro{margin-bottom:26px;color:#5c7171;font-size:15px}
.staff-form .form-control,.staff-form input,.staff-form select{min-height:46px;border:1px solid #cedddd;border-radius:10px;padding:10px 12px}
.staff-form .form-control:focus,.staff-form input:focus,.staff-form select:focus{border-color:#168080;box-shadow:0 0 0 3px rgba(11,93,94,.12)}
.staff-form label,.staff-form .form-label{font-size:13px;font-weight:700;color:#294646}
.staff-primary{min-height:46px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:#0b5d5e;color:#fff;font-weight:700;padding:11px 18px}
.staff-primary:hover,.staff-primary:focus{background:#083f40;color:#fff}
.staff-switch{margin:20px 0 0;text-align:center;color:#617575;font-size:13px}
.staff-switch a{font-weight:700;color:#0b5d5e}
.staff-confirmation{text-align:center}
.staff-success-icon{width:58px;height:58px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#e8f5ef;color:#168354;font-size:26px}
.staff-confirmation p{color:#5c7171;margin:0 auto 24px;max-width:390px}
.staff-dashboard{padding:38px;background:#fff;border:1px solid #dce8e8;border-radius:20px;box-shadow:0 16px 40px rgba(8,63,64,.08)}
.staff-dashboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.staff-dashboard-heading h1{margin-top:10px}
.staff-logout{border:1px solid #d3e0e0;border-radius:10px;color:#294646;font-weight:600}
.staff-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}
.staff-info-card{padding:20px;border:1px solid #e0eaea;border-radius:14px;background:#fbfdfd}
.staff-info-card span,.staff-info-card strong{display:block}
.staff-info-card span{margin-bottom:8px;color:#6a8080;font-size:12px}
.staff-info-card strong{overflow-wrap:anywhere;color:#183e3e;font-size:15px}
.staff-note{display:flex;gap:12px;padding:16px;border-radius:12px;background:#eef7f7;color:#486767}
.staff-note i{color:#0b6968}
.staff-note p{margin:0;color:inherit;font-size:14px}
.staff-footer{padding:20px 24px;background:#fff;border-top:1px solid #dce8e8;text-align:center;color:#577070;font-size:12px}
.staff-footer span{display:block;margin-top:3px;color:#789090}
.staff-portal-link{white-space:nowrap}
@media(max-width:700px){.staff-header{padding:12px 16px}.staff-main{margin:28px auto}.staff-card,.staff-dashboard{padding:25px 20px}.staff-dashboard-heading{display:block}.staff-dashboard-heading form{margin-top:18px}.staff-info-grid{grid-template-columns:1fr}}

/* ===== 2026 cleanup additions ===== */

/* Links in the top bar */
.top-bar a { color: inherit; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.top-social a { margin-left: 12px; }

/* Navigation collapses below 1200px (more menu items) */
@media (max-width: 1199.98px) {
  .main-navbar .navbar-nav { padding: 12px 0; }
  .main-navbar .dropdown-menu { border: 0; box-shadow: none; background: rgba(255,255,255,.06); }
  .main-navbar .dropdown-item { color: #fff; white-space: normal; }
  .main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus { color: #0b5d5e; }
  .main-navbar .nav-link { padding: 10px 4px; }
}
@media (min-width: 1200px) {
  .main-navbar .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .95rem; white-space: nowrap; }
}

/* Footer */
.footer-logo { width: 75px; height: 75px; object-fit: contain; border-radius: 10px; background: #fff; }
.site-footer .footer-about { opacity: .85; font-size: .95rem; }
.site-footer a { color: inherit; }

/* Breadcrumbs on the page header */
.page-breadcrumb { background: transparent; padding: 0; margin-bottom: 14px; font-size: .9rem; }
.page-breadcrumb .breadcrumb-item, .page-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-breadcrumb .breadcrumb-item.active { color: var(--accent); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* Medical Director's message: readable, not rolling */
.director-message-slider { height: auto; overflow: visible; }
.director-message-content { animation: none; }

/* Departments and units */
.unit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.unit-card h3 { font-size: 1.3rem; margin: 14px 0 12px; color: var(--primary-dark); }
.unit-card h4 { font-size: 1rem; margin: 16px 0 6px; color: var(--primary); font-weight: 700; }
.unit-card .check-list { margin-bottom: 0; }
.unit-card .check-list li { padding: 3px 0; }
.college-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 30px 34px; }
.college-strip h3 { color: #fff; margin: 4px 0 6px; }
.college-strip .section-label { color: var(--accent); }

/* Cards used on rewritten pages */
.quick-card .card-link-more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--primary); text-decoration: none; }
.quick-card .card-link-more:hover { color: var(--primary-dark); text-decoration: underline; }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px; box-shadow: var(--shadow); height: 100%; }
.stat-tile strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1.1; }
.stat-tile span { font-size: .92rem; }
.notice-box { display: flex; gap: 14px; align-items: flex-start; background: #fff8e6; border: 1px solid #f0d58f; border-radius: 14px; padding: 18px 20px; }
.notice-box > i { font-size: 1.6rem; color: #a87508; }
.news-card .news-image img { width: 100%; height: 190px; object-fit: cover; }

/* Footer gutters fit small screens */
@media (max-width: 575.98px) { .site-footer .row, .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }

/* No sideways scrolling on phones */
html, body { overflow-x: hidden; }
