/* Hide the website header and navigation ONLY on the NESC App Home page */
body.page-id-7723 #masthead,
body.page-id-7723 .site-header,
body.page-id-7723 header,
body.page-id-7723 #header,
body.page-id-7723 .header,
body.page-id-7723 .header-wrap,
body.page-id-7723 nav,
body.page-id-7723 .main-navigation,
body.page-id-7723 .primary-navigation,
body.page-id-7723 .site-navigation {
    display: none !important;
}
/* NESC App Home logo and spacing */
body.page-id-7723 .wp-image-7405 {
    width: 260px !important;
    max-width: 70% !important;
    height: auto !important;
}

body.page-id-7723 figure.wp-block-image {
    margin: 20px auto 25px !important;
}

body.page-id-7723 .wp-block-group {
    padding: 15px 20px 40px;
}

body.page-id-7723 h2 {
    font-size: 30px;
    margin: 25px 0 15px;
}

body.page-id-7723 p {
    margin-top: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
}

body.page-id-7723 .wp-block-buttons {
    gap: 12px;
}

body.page-id-7723 .wp-block-button__link {
    min-width: 300px;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
}
/* NESC App bottom navigation */
body.page-id-7723 nav.nesc-app-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
    padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
}

body.page-id-7723 .nesc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #173e5e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
}

body.page-id-7723 .nesc-nav-icon {
    font-size: 23px;
    line-height: 1;
}

body.page-id-7723 .nesc-nav-enter {
    color: #c8103e;
}

body.page-id-7723 .nesc-nav-more {
    flex: 1;
    position: relative;
    text-align: center;
}

body.page-id-7723 .nesc-nav-more summary {
    list-style: none;
}

body.page-id-7723 .nesc-nav-more summary::-webkit-details-marker {
    display: none;
}

body.page-id-7723 .nesc-more-menu {
    position: absolute;
    bottom: 65px;
    right: 0;
    min-width: 190px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    padding: 8px;
    text-align: left;
}

body.page-id-7723 .nesc-more-menu a {
    display: block;
    padding: 12px;
    color: #173e5e;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

body.page-id-7723 .nesc-more-menu a:last-child {
    border-bottom: none;
}

body.page-id-7723 {
    padding-bottom: 85px !important;
}
/* Force NESC navigation labels to display */
body.page-id-7723 nav.nesc-app-nav small.nesc-nav-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #173e5e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    height: auto !important;
}

/* Hide the WordPress Edit link */
body.page-id-7723 a.post-edit-link,
body.page-id-7723 .edit-link {
    display: none !important;
}
/* Stronger NESC app navigation */
body.page-id-7723 nav.nesc-app-nav {
    background: #173E5E !important;
    border-top: 2px solid #C8103E !important;
    padding-top: 12px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
}

body.page-id-7723 nav.nesc-app-nav .nesc-nav-item,
body.page-id-7723 nav.nesc-app-nav .nesc-nav-label {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

body.page-id-7723 nav.nesc-app-nav .nesc-nav-icon {
    color: #FFFFFF !important;
    font-size: 25px !important;
}

body.page-id-7723 nav.nesc-app-nav .nesc-nav-enter {
    background: #C8103E !important;
    border-radius: 10px;
    padding: 7px 4px;
}

body.page-id-7723 nav.nesc-app-nav .nesc-nav-enter .nesc-nav-label,
body.page-id-7723 nav.nesc-app-nav .nesc-nav-enter .nesc-nav-icon {
    color: #FFFFFF !important;
}
/* Separate the four NESC navigation destinations */
body.page-id-7723 nav.nesc-app-nav .nesc-nav-item {
    flex: 1;
    min-height: 65px;
    box-sizing: border-box;
    padding: 8px 5px;
}

/* Thin white dividers */
body.page-id-7723 nav.nesc-app-nav .nesc-nav-item + .nesc-nav-item {
    border-left: 1px solid rgba(255,255,255,0.65);
}

/* Keep the Enter button distinct */
body.page-id-7723 nav.nesc-app-nav .nesc-nav-enter {
    border-left: 1px solid rgba(255,255,255,0.65);
}