/* Hide the homepage title and displayed featured image.
   The featured image remains available for social sharing and SEO metadata. */
.home .page-header-image,
.home .page-header-image-single,
.home .entry-header {
    display: none;
}
/* Desktop Book a Demo navigation button */
@media (min-width: 769px) {
    .main-navigation li.menu-cta > a {
        background-color: #2f7fa8 !important;
        color: #ffffff !important;
        border-radius: 5px;
        font-weight: 700;
        line-height: 42px !important;
        margin: 9px 0 9px 14px;
        padding: 0 20px !important;
        box-shadow: 0 2px 5px rgba(18, 56, 76, 0.18);
    }

    .main-navigation li.menu-cta > a:hover,
    .main-navigation li.menu-cta > a:focus {
        background-color: #173f56 !important;
        color: #ffffff !important;
    }
}
/* Hide the automatically displayed featured image on regular pages.
   The featured image remains assigned for SEO and social sharing. */
.page:not(.home) .page-header-image,
.page:not(.home) .page-header-image-single {
    display: none;
}
/* Hide the theme-generated page title */
.page:not(.home) .entry-header {
    display: none;
}
/* Clean desktop dropdown menus */
@media (min-width: 769px) {
    .main-navigation .main-nav ul ul {
        width: 250px;
        padding: 8px 0;
        background-color: #ffffff;
        border: 1px solid #d7e2e9;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 12px 28px rgba(21, 56, 95, 0.16);
    }

    .main-navigation .main-nav ul ul li a {
        padding: 11px 18px;
        background-color: #ffffff;
        color: #243746;
        line-height: 1.35;
    }

    .main-navigation .main-nav ul ul li:hover > a,
    .main-navigation .main-nav ul ul li:focus-within > a {
        background-color: #eef6fb;
        color: #176ea6;
    }

    .main-navigation .main-nav ul ul .current-menu-item > a {
        background-color: #eef6fb;
        color: #176ea6;
        font-weight: 700;
    }
}
/* TQMS founder contact panel above the footer */
.footer-widgets {
    padding: 0;
    background-color: #17384a;
}

.footer-widgets-container {
    padding: 0 !important;
}

.footer-widgets .widget {
    margin-bottom: 0;
}

.cis-founder-panel {
    background:
        radial-gradient(circle at 85% 15%,
            rgba(95, 164, 211, 0.28),
            transparent 30%),
        linear-gradient(125deg, #39779a, #17384a);
    color: #ffffff;
}

.cis-founder-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 60px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 55px 24px;
}

.cis-founder-kicker {
    margin: 0 0 10px;
    color: #b9e2f7;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cis-founder-panel h2 {
    max-width: 720px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.cis-founder-copy > p:not(.cis-founder-kicker) {
    max-width: 720px;
    margin-bottom: 22px;
    color: #e4f0f6;
    font-size: 1.05rem;
    line-height: 1.65;
}

.cis-founder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.cis-founder-button {
    display: inline-block;
    padding: 12px 21px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #17384a !important;
    font-weight: 700;
    text-decoration: none;
}

.cis-founder-button:hover,
.cis-founder-button:focus {
    background-color: #eef6fa;
}

.cis-founder-phone {
    color: #ffffff !important;
    font-size: 1.08rem;
    font-weight: 700;
}

.cis-founder-photo {
    margin: 0;
    text-align: center;
}

.cis-founder-photo img {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.24);
}

.cis-founder-photo figcaption {
    margin-top: 10px;
    color: #e4f0f6;
    font-size: 0.9rem;
    line-height: 1.35;
}

.cis-founder-photo strong {
    display: block;
    color: #ffffff;
}

@media (max-width: 700px) {
    .cis-founder-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 42px 20px;
    }

    .cis-founder-photo {
        width: min(260px, 100%);
        margin: 0 auto;
    }

    .cis-founder-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cis-founder-button,
    .cis-founder-phone {
        text-align: center;
    }
}
/* Compact bottom footer */
.site-info {
    padding: 0;
    background-color: #102e3d;
}

.inside-site-info {
    display: block;
    max-width: none;
    padding: 0;
}

.footer-bar {
    float: none !important;
    width: 100%;
    margin: 0 !important;
}

.cis-bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    color: #dce9ef;
    font-size: 0.88rem;
}

.cis-bottom-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.cis-bottom-copy strong {
    color: #ffffff;
}

.cis-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}

.cis-bottom-links a {
    color: #dce9ef;
    text-decoration: none;
}

.cis-bottom-links a:hover,
.cis-bottom-links a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Remove the original GeneratePress credit */
.copyright-bar {
    display: none;
}

@media (max-width: 768px) {
    .cis-bottom-footer,
    .cis-bottom-copy {
        align-items: center;
        text-align: center;
    }

    .cis-bottom-footer {
        flex-direction: column;
    }

    .cis-bottom-links {
        justify-content: center;
    }
}
/* Remove excess space above the mobile homepage */
@media (max-width: 768px) {
    body.home .site-main {
        margin-top: 0;
    }

    body.home .inside-article {
        padding-top: 0;
    }

    body.home .entry-content {
        margin-top: 0;
    }
}
/* Enlarge sticky navigation logo */
@media (min-width: 769px) {
    .navigation-stick .sticky-navigation-logo {
        width: 150px !important;
    }

    .navigation-stick .sticky-navigation-logo img {
        width: 150px !important;
        height: auto !important;
        max-height: none !important;
    }
}
/* Dynamic latest articles section */
.cis-latest-wrap,
.cis-latest-posts {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.cis-latest-wrap {
    padding-top: 82px;
}

.cis-latest-head {
    max-width: 800px;
    margin-bottom: 38px;
}

.cis-latest-head .cis-kicker {
    color: #39779a;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .11em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.cis-latest-head h2 {
    color: #17384a;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
}

.cis-latest-posts {
    padding-bottom: 82px;
}

/* Three article cards */
.cis-latest-posts .wp-block-post-template {
    gap: 20px;
}

.cis-latest-posts .wp-block-post {
    background: #ffffff;
    border: 1px solid #d8e5ec;
    border-radius: 10px;
    padding: 27px;
}

/* Post title */
.cis-latest-posts .wp-block-post-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.18rem;
    line-height: 1.15;
}

.cis-latest-posts .wp-block-post-title a {
    color: #17384a;
    text-decoration: none;
}

.cis-latest-posts .wp-block-post-title a:hover,
.cis-latest-posts .wp-block-post-title a:focus {
    color: #39779a;
}

/* Excerpt */
.cis-latest-posts .wp-block-post-excerpt {
    color: #5c6b73;
    font-size: .94rem;
}

.cis-latest-posts .wp-block-post-excerpt__more-link {
    color: #39779a;
    font-weight: 800;
}

/* Mobile */
@media (max-width: 680px) {
    .cis-latest-wrap,
    .cis-latest-posts {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cis-latest-wrap {
        padding-top: 58px;
    }

    .cis-latest-posts {
        padding-bottom: 58px;
    }
}
/* Latest article category labels */
.cis-latest-posts .wp-block-post-terms {
    margin-bottom: 14px;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cis-latest-posts .wp-block-post-terms a {
    color: #39779a;
    text-decoration: none;
}

.cis-latest-posts .wp-block-post-terms a:hover,
.cis-latest-posts .wp-block-post-terms a:focus {
    color: #17384a;
    text-decoration: underline;
}
/* Final desktop homepage spacing before founder panel */
@media (min-width: 769px) {

    body.home .site-content {
        padding-bottom: 0 !important;
    }

    body.home .site-main,
    body.home .inside-article,
    body.home .entry-content {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.home .entry-content > .wp-block-columns:last-child {
        margin-bottom: 35px !important;
        padding-bottom: 0 !important;
    }

    body.home .cis-latest-posts {
        margin-bottom: 0 !important;
    }
}