/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* MSSA Tile Card */
.mssa-tile-card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 190px;
    background: #2b0054;
    cursor: pointer;
}

/* Elementor container inner wrapper */
.mssa-tile-card > .e-con-inner {
    position: static !important;
    min-height: 190px;
}

/* Image widget */
.mssa-tile-card .mssa-tile-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Image link wrapper */
.mssa-tile-card .mssa-tile-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Actual image */
.mssa-tile-card .mssa-tile-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.45s ease !important;
}

.mssa-tile-card .mssa-tile-image  .wp-image-698{
	  object-fit: contain !important;
}
/* Default bottom purple gradient */
.mssa-tile-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 65%;
    background: linear-gradient(
        to top,
        rgba(46, 14, 92, 0.95),
        rgba(46, 14, 92, 0.65),
        rgba(46, 14, 92, 0)
    );
    z-index: 2;
    pointer-events: none;
}

/* Full purple hover overlay like live site */
.mssa-tile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(46, 14, 92, 0.55);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* Hover effects */
.mssa-tile-card:hover::after {
    opacity: 1;
}

.mssa-tile-card:hover .mssa-tile-image img {
    transform: scale(1.08);
}

/* Title above overlay */
.mssa-tile-card .mssa-tile-title,
.mssa-tile-card .elementor-widget-theme-post-title,
.mssa-tile-card .elementor-widget-heading {
    position: absolute !important;
    left: 20px !important;
    bottom: 18px !important;
    z-index: 5 !important;
    margin: 0 !important;
}

/* Title text */
.mssa-tile-card .mssa-tile-title,
.mssa-tile-card .mssa-tile-title h1,
.mssa-tile-card .mssa-tile-title h2,
.mssa-tile-card .mssa-tile-title h3,
.mssa-tile-card .mssa-tile-title .elementor-heading-title,
.mssa-tile-card .mssa-tile-title a,
.mssa-tile-card .elementor-heading-title,
.mssa-tile-card .elementor-heading-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
    line-height: 1.25;
}

/**********/
/*Pop-up Search*/
.mssa-search-popup .asl_w,
.mssa-search-popup .asl_m {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
}


/* Result dropdown */
body .asl_r.vertical {
    max-width: 430px !important;
      z-index: 999999 !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

/* Result item */
body .asl_r .item {
    padding: 11px 13px !important;
    border-bottom: 1px solid #eeeeee !important;
}

/* Result title */
body .asl_r .item .asl_content h3,
body .asl_r .item .asl_content h3 a {
    font-size: 14px !important;
    color: #4f3f78 !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

/* Result excerpt */
body .asl_r .item .asl_content {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #555 !important;
}

/* Popup close button */
.elementor-popup-modal .dialog-close-button {
    top: 18px !important;
    right: 18px !important;
    font-size: 18px !important;
    color: #000000 !important;
    opacity: 1 !important;
}

.elementor-popup-modal .dialog-close-button:hover {
    color: #8b65bd !important;
}

/* Mobile */
@media (max-width: 767px) {
    .mssa-search-popup {
        width: 90vw;
        padding: 35px 24px 38px;
    }

    .mssa-search-popup .elementor-heading-title {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .mssa-search-popup .asl_w,
    .mssa-search-popup .asl_m,
    body .asl_r.vertical {
        max-width: 100% !important;
    }
}

/**********/
/* MSSA Header Layout */
.mssa-header-wrapper {
    width: 100%;
    background: #2b0054;
}

.mssa-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mssa-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
}

/* Logo */
.mssa-header-logo {
    background: #d9d9d9;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
}

.mssa-header-logo img {
    max-width: 165px;
    height: auto;
}

/* Menu */
.mssa-header-menu {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Phone + Search */
.mssa-header-utility {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
}

.mssa-header-phone,
.mssa-header-phone a,
.mssa-header-phone .elementor-icon-list-text {
    color: #ffd200 !important;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    white-space: nowrap;
}

/* Search icon under phone */
.mssa-header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
}

.mssa-header-search a,
.mssa-header-search .elementor-icon {
    width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #8b65bd !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    transition: all 0.25s ease;
}

.mssa-header-search svg,
.mssa-header-search svg path,
.mssa-header-search i {
    color: #ffffff !important;
    fill: #ffffff !important;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mssa-header-search a:hover,
.mssa-header-search .elementor-icon:hover,
.mssa-header-search a:hover .elementor-icon {
    background: #ffffff !important;
    color: #2b0054 !important;
    fill: #2b0054 !important;
}

.mssa-header-search a:hover svg,
.mssa-header-search a:hover svg path,
.mssa-header-search .elementor-icon:hover svg,
.mssa-header-search .elementor-icon:hover svg path,
.mssa-header-search a:hover i,
.mssa-header-search .elementor-icon:hover i {
    color: #2b0054 !important;
    fill: #2b0054 !important;
}

/* Center subtitle under main menu */
.mssa-header-subtitle {
    text-align: center;
    color: #ffffff;
    font-size: 25px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.2;
    padding: 8px 0 18px;
}

/* Tablet */
@media (max-width: 1024px) {
    .mssa-header-top {
        gap: 16px;
    }

    .mssa-header-logo img {
        max-width: 145px;
    }

    .mssa-header-subtitle {
        font-size: 22px;
    }

    .mssa-header-utility {
        min-width: 130px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mssa-header-top {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .mssa-header-logo {
        width: 100%;
        min-height: auto;
    }

    .mssa-header-logo img {
        max-width: 140px;
    }

    .mssa-header-menu {
        width: 100%;
        justify-content: center;
    }

    .mssa-header-utility {
        align-items: center;
        min-width: auto;
    }

    .mssa-header-subtitle {
        font-size: 19px;
        padding: 8px 18px 16px;
    }

    .mssa-header-search a,
    .mssa-header-search .elementor-icon {
        width: 38px;
        height: 38px;
    }
}

/* Search and Phone */
@media only screen and (max-width: 600px) {
    .mssa-header-utility >.e-con-inner{
        justify-content:center !important;
    }
}

/* Header phone hover - yellow underline only */
.mssa-header-phone a,
.mssa-header-phone .elementor-icon-list-text,
.mssa-header-phone .elementor-icon-list-icon i {
    color: #f4c400 !important;
    transition: all 0.25s ease;
}

.mssa-header-phone a:hover,
.mssa-header-phone a:hover .elementor-icon-list-text,
.mssa-header-phone a:hover .elementor-icon-list-icon i {
    color: #f4c400 !important;
    text-decoration: underline;
    text-decoration-color: #f4c400;
    text-underline-offset: 4px;
}

/**********/
/* MSSA Footer */
.mssa-footer-main {
    width: 100%;
    background: #2b0054;
    padding: 34px 0 28px;
}

.mssa-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 24px;
}

.mssa-footer-logo img {
    max-width: 165px;
    height: auto;
    display: block;
}

.mssa-footer-links {
    text-align: center;
	  justify-self: center;
}

/* Normal WordPress menu / Elementor nav menu */
.mssa-footer-links ul,
.mssa-footer-links .menu,
.mssa-footer-links .elementor-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.mssa-footer-links li,
.mssa-footer-links .menu-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mssa-footer-links li:not(:last-child)::after,
.mssa-footer-links .menu-item:not(:last-child)::after {
    content: "·";
    color: #bfa8dd;
    margin: 0 10px;
    font-size: 18px;
    line-height: 1;
}

.mssa-footer-links a {
    color: #bfa8dd !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    padding: 0 !important;
}

.mssa-footer-links a:hover {
    color: #ffffff !important;
}

.mssa-footer-social {
    display: flex;
    justify-content: flex-end;
}

.mssa-footer-social .elementor-social-icon {
    background: #bfa8dd !important;
    color: #2b0054 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mssa-footer-social .elementor-social-icon:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
}

.mssa-footer-bottom {
    width: 100%;
    background: #240044;
    padding: 13px 0;
    text-align: center;
}

.mssa-footer-bottom,
.mssa-footer-bottom p {
    color: #ffffff;
    font-size: 15px;
    margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .mssa-footer-main {
        padding: 30px 20px 26px;
    }

    .mssa-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .mssa-footer-logo img {
        max-width: 140px;
        margin: 0 auto;
    }

    .mssa-footer-social {
        justify-content: center;
    }
}
/* Keep footer at bottom on short pages, but not fixed */
html,
body {
    min-height: 100%;
}

body:not(.elementor-editor-active) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Elementor/page content should expand */
body:not(.elementor-editor-active) main,
body:not(.elementor-editor-active) #content,
body:not(.elementor-editor-active) .site-main,
body:not(.elementor-editor-active) [data-elementor-type="wp-page"] {
    flex: 1 0 auto;
}

/* Elementor footer stays at bottom */
body:not(.elementor-editor-active) .elementor-location-footer,
body:not(.elementor-editor-active) [data-elementor-type="footer"] {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

/**********/
/* MSSA Footer - Tablet/Mobile WordPress Menu Fix */

.mssa-footer-links .elementor-menu-toggle,
.mssa-footer-links .elementor-nav-menu--dropdown,
.mssa-footer-links .sub-arrow {
    display: none !important;
}

.mssa-footer-links .elementor-nav-menu--main {
    display: block !important;
}

.mssa-footer-links ul,
.mssa-footer-links .menu,
.mssa-footer-links .elementor-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mssa-footer-links li,
.mssa-footer-links .menu-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mssa-footer-links li:not(:last-child)::after,
.mssa-footer-links .menu-item:not(:last-child)::after {
    content: "·";
    color: #bfa8dd;
    margin: 0 10px;
    font-size: 18px;
    line-height: 1;
}

.mssa-footer-links a,
.mssa-footer-links .elementor-item {
    color: #bfa8dd !important;
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    padding: 0 !important;
}

.mssa-footer-links a:hover,
.mssa-footer-links .elementor-item:hover,
.mssa-footer-links .elementor-item-active {
    color: #ffffff !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .mssa-footer-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center !important;
        gap: 24px !important;
        padding: 0 24px;
    }

    .mssa-footer-logo {
        justify-self: start;
    }

    .mssa-footer-links {
        justify-self: center;
    }

    .mssa-footer-social {
        justify-self: end;
    }

    .mssa-footer-logo img {
        max-width: 140px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mssa-footer-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 18px !important;
        text-align: center;
        padding: 0 20px;
    }

    .mssa-footer-logo,
    .mssa-footer-links,
    .mssa-footer-social {
        width: 100%;
        justify-content: center !important;
        text-align: center;
    }

    .mssa-footer-logo img {
        max-width: 135px;
        margin: 0 auto;
    }

    .mssa-footer-links ul,
    .mssa-footer-links .menu,
    .mssa-footer-links .elementor-nav-menu {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .mssa-footer-links a,
    .mssa-footer-links .elementor-item {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .mssa-footer-social .elementor-social-icons-wrapper {
        justify-content: center !important;
    }

    .mssa-footer-bottom {
        text-align: center;
        padding: 12px 16px;
        font-size: 13px;
        line-height: 1.4;
    }
}
/**********/

/* Homepage quick application links */
.mssa-home-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    color: #5f3295;
    font-size: 16px;
    line-height: 1.5;
    margin: 12px auto 22px;
}

.mssa-home-quick-links a {
    color: #5f3295 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.mssa-home-quick-links a:hover {
    color: #2b0054 !important;
    text-decoration: underline !important;
}

.mssa-home-quick-links span {
    color: #5f3295;
    margin: 0 8px;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    position: relative;
    top: -1px;
}

/* Mobile */
@media (max-width: 767px) {
    .mssa-home-quick-links {
        font-size: 15px;
        padding: 0 18px;
        line-height: 1.7;
    }

    .mssa-home-quick-links span {
        margin: 0 5px;
        font-size: 18px;
        top: 1px;
    }
}
/**********/