/*!
Theme Name: MCHIS
Theme URI:  
Author: Sanoop George
Author URI:  
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mchis
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 
*/
@media (min-width: 769px) {
    .inner-banner {
        height: 350px;
    }
}

@media (max-width: 991px) {
    header .head-right .mobile-menu-icon {
        top: 20px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: 1px solid #00498d;
        background: transparent;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        appearance: none;
        -webkit-appearance: none;
        z-index: 20;
    }

    header .head-right .mobile-menu-icon span,
    header .head-right .mobile-menu-icon .line {
        width: 22px;
        height: 2px;
        margin: 0;
        background-color: #00498d;
        display: block;
        flex-shrink: 0;
    }

    header .head-right nav.active {
        display: block !important;
    }

    header .head-right nav ul {
        overflow: visible;
    }

    /* Main mobile menu items — always white */
    header .head-right nav ul > li.dropdown > a,
    header .head-right nav ul > li.dropdown > button.menu-parent-toggle,
    header .head-right nav ul > li.dropdown > span.menu-item-text {
        color: #ffffff !important;
        width: 100%;
        display: block;
        text-align: left;
        background: transparent;
        border: 0;
        padding-right: 28px;
        position: relative;
    }

    header .head-right nav ul > li.dropdown > a:hover,
    header .head-right nav ul > li.dropdown > button.menu-parent-toggle:hover,
    header .head-right nav ul > li.dropdown > a:focus,
    header .head-right nav ul > li.dropdown > button.menu-parent-toggle:focus {
        color: #ffffff !important;
    }

    header .head-right nav ul > li.dropdown .arrow {
        border-color: #ffffff;
        top: 50%;
        margin-top: -4px;
        right: 5px;
    }

    /*
     * Mobile submenu / megamenu:
     * class-based only — do not fight jQuery slide animations.
     */
    header .head-right nav ul li.dropdown > ul.submenu,
    header .head-right nav ul li.dropdown > ul.megamenu,
    header .head-right nav ul li.dropdown > .megamenu {
        display: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px 15px !important;
        background: #024384 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        height: auto !important;
        overflow: visible !important;
        z-index: 1;
        float: none !important;
    }

    /* Keep open panels visible even if :hover state drops on mobile */
    header .head-right nav ul li.dropdown.open > ul.submenu,
    header .head-right nav ul li.dropdown.open > ul.megamenu,
    header .head-right nav ul li.dropdown.open > .megamenu,
    header .head-right nav ul li.dropdown:hover.open > ul.submenu,
    header .head-right nav ul li.dropdown:hover.open > ul.megamenu,
    header .head-right nav ul li.dropdown:hover.open > .megamenu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Neutralize desktop hover open on mobile (closed items stay closed) */
    header .head-right nav ul li.dropdown:hover > ul.submenu:not(.open),
    header .head-right nav ul li.dropdown:hover > ul.megamenu:not(.open),
    header .head-right nav ul li.dropdown:hover > .megamenu:not(.open) {
        display: none !important;
    }

    header .head-right nav ul li.dropdown > ul.submenu li a,
    header .head-right nav ul li.dropdown .megamenu li a,
    header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown li a {
        color: #ffffff !important;
        padding: 8px 0;
    }

    header .head-right nav ul li.dropdown > ul.submenu li a:hover,
    header .head-right nav ul li.dropdown .megamenu li a:hover,
    header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown li a:hover {
        color: #e3ddd2 !important;
    }

    header .head-right nav ul li.dropdown .megamenu li.col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0;
        padding: 0;
        display: block !important;
    }

    header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: static !important;
        padding: 0;
        margin: 0;
        opacity: 1 !important;
        visibility: visible !important;
    }

    header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown li {
        padding-left: 15px;
        line-height: 1.4;
    }

    header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown li:before {
        top: 14px;
    }
}

@media (min-width: 992px) {
    header .head-right nav ul li.dropdown button.menu-parent-toggle {
        color: #333;
        font-size: 14px;
        font-weight: 500;
        padding-right: 20px;
        position: relative;
        background: transparent;
        border: 0;
        outline: 0;
    }
}

header .top-bar ul li button.menu-parent-toggle {
    color: #104c90;
    font-weight: 600;
    font-size: 13px;
    transition: all 400ms;
    border: 0px;
    background: transparent;
    outline: none;
}

@media (max-width: 767px) {
    header .top-bar {
        padding: 8px 0;
    }

    header .top-bar ul {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 14px;
        row-gap: 6px;
    }

    header .top-bar ul > li {
        flex: 0 0 auto;
        text-align: center;
    }

    header .top-bar ul > li > a,
    header .top-bar ul > li > button.menu-parent-toggle {
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.3;
        display: inline-block;
        padding: 2px 0;
    }
}

@media (max-width: 768px) {
    .inner-banner {
        height: 250px;
    }
}

.w-100 img {
    width: 100%;
}

@media (min-width: 991px) {
    header .head-right nav ul li.dropdown .megamenu li h5 {
        display: none;
    }

    header .head-right {
        position: relative;
    }

    header .head-right nav ul li.dropdown .megamenu {
        max-width: 600px;
    }
}

@media (min-width: 1400px) {
    .inner-banner {
        height: 450px;
    }
}

header .head-right nav ul li.dropdown .megamenu li ul.sub-dropdown li:before {
    display: none;
}

@media (max-width: 768px) {
    .menu-item-has-children>ul.sub-menu {
        display: block !important;
    }
}

/* Banner Quick Links */
.quick-links-bar {
    background-color: #0b4a8a;
    padding: 20px 0;
}

.quick-links-bar .quick-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.1;
}

.quick-links-bar .quick-link-item:hover {
    color: #e0e0e0;
}

.quick-links-bar .quick-link-item img {
    max-height: 50px;
    margin-right: 15px;
    object-fit: contain;
}
.quick-links-bar .quick-link-item img:hover {
	opacity: .8;
}
.quick-links-bar .quick-link-item a:hover {
	opacity: .8;
}

@media (max-width: 991px) {
    .quick-links-bar .quick-link-item {
        margin-bottom: 20px;
    }
	
	.news .news-slider .owl-news-slider .item {
    width: calc(50% - 30px);
}

.news .news-slider .owl-news-slider {
    flex-wrap: wrap;
}  

.news .news-slider .owl-news-slider .item:last-child {
     width: calc(100% - 30px);
}
}

/* News Section Image Grayscale Transition */
.news .item figure img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    transition: filter 0.4s ease, -webkit-filter 0.4s ease;
}

.news .item:hover figure img,
.news .item figure a:hover img {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}

.mission h2 {
    font-size: 30px;
}

/* Contact Form Section (Cognito Forms overrides) */
.contact-form-section {
    display: none;
    background-color: #999999;
    padding: 60px 0;
    margin-bottom: 0;
}

.contact-form-section h2 {
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 40px;
    font-size: 36px;
    letter-spacing: 1px;
}

.contact-form-section .form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-section .c-label {
    display: none !important;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea,
.contact-form-section select {
    background-color: #f0f0f0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    color: #666666 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.contact-form-section input::placeholder,
.contact-form-section textarea::placeholder {
    color: #888888 !important;
    text-transform: uppercase;
}

.contact-form-section textarea {
    height: 150px !important;
    resize: vertical;
}

.contact-form-section .c-button-section {
    text-align: right !important;
}

.contact-form-section button,
.contact-form-section input[type="submit"] {
    background-color: #0b4a8a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: "Montserrat", sans-serif !important;
    transition: background-color 0.3s ease !important;
}

.contact-form-section button:hover,
.contact-form-section input[type="submit"]:hover {
    background-color: #08386a !important;
}

.banner .owl-item .item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner .owl-item .item figure {
    height: 550px; 
    background-position: top center !important;
}

.banner .owl-item .item .det {
    top: auto;
    bottom: 0;
    justify-content: flex-end;
    padding: 0 30px 80px;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 991px) {
    .banner .owl-item .item .det {
        padding: 0 30px 70px;
    }
}

@media (max-width: 767px) {
    .banner .owl-item .item figure.has-mobile-banner {
        background-image: var(--banner-mobile-bg) !important;
    }
}
.news .news-slider .owl-news-slider {
    align-items: stretch;
}

.news .news-slider .owl-news-slider .item {
    display: flex;
    flex-direction: column;
}

.news .news-slider .owl-news-slider .item figure img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news .news-slider .owl-news-slider .item .det {
    background-color: #e5e5e5;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    box-sizing: border-box;
}

.news .news-slider .owl-news-slider .item .det > a:last-child {
    margin-top: auto;
}

.mission ul li img {
    max-width: 200px;
}

/* Footer */
footer {
    background-color: #e5e5e5;
    padding-top: 50px;
}

footer .foot-bg-btm {
    margin-top: 50px;
}

/* Subpage right sidebar list → button style */
.patient-information .right .box-sec > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.patient-information .right .box-sec > ul > li {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #e5e5e5;
    transition: background-color 0.3s ease;
}

.patient-information .right .box-sec > ul > li h1,
.patient-information .right .box-sec > ul > li h2,
.patient-information .right .box-sec > ul > li h3,
.patient-information .right .box-sec > ul > li h4,
.patient-information .right .box-sec > ul > li h5,
.patient-information .right .box-sec > ul > li h6,
.patient-information .right .box-sec > ul > li p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.patient-information .right .box-sec > ul > li a {
    display: block;
    padding: 22px 25px;
    color: #004a91;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.patient-information .right .box-sec > ul > li:not(:has(a)) {
    padding: 22px 25px;
    color: #004a91;
    font-size: 16px;
    font-weight: 500;
}

.patient-information .right .box-sec > ul > li:hover,
.patient-information .right .box-sec > ul > li:focus-within {
    background-color: #004a91;
}

.patient-information .right .box-sec > ul > li:hover a,
.patient-information .right .box-sec > ul > li:focus-within a,
.patient-information .right .box-sec > ul > li:hover,
.patient-information .right .box-sec > ul > li:focus-within {
    color: #fff;
}

@media(max-width: 768px){
	.news .news-slider .owl-news-slider .item {
    width: calc(100% - 30px);
}

.news .news-slider .owl-news-slider {
    flex-wrap: wrap;
}  

.news .news-slider .owl-news-slider .item:last-child {
     width: calc(100% - 30px);
}
}