/* ================================
   KADENCE THEME CUSTOM STYLING
   Navigation + Footer
   Safer for Pages and Posts
   ================================ */

/* ==== NAVIGATION MENU STYLING ==== */

.main-navigation .menu-item > a {
    color: #ffffff !important;
}

.main-navigation .menu-item > a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Active menu item - safer than border/padding */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_ancestor > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Sub-menu */
.main-navigation .sub-menu .menu-item > a {
    color: #ffffff !important;
}

.main-navigation .sub-menu .menu-item > a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Mobile menu */
.mobile-navigation .menu-item > a {
    color: #ffffff !important;
}

.mobile-navigation .menu-item > a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

.mobile-navigation .current-menu-item > a,
.mobile-navigation .current-menu-ancestor > a,
.mobile-navigation .current_page_item > a,
.mobile-navigation .current_page_ancestor > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ==== SINGLE POST SPACING FIX ==== */

.single-post .site-main {
    padding-top: 80px;
}

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

body .site-footer,
.site .site-footer,
#page .site-footer,
html body .site-footer {
    background: #131928 !important;
}

.site-footer,
body.wp-admin-bar .site-footer,
body .site .site-footer {
    background-color: #131928 !important;
    background-image: none !important;
}

/* ==== BLOG / SINGLE POST BRAND STYLING ==== */

.single-post {
    background: #131928;
}

.single-post .site-main {
    padding-top: 96px;
    padding-bottom: 64px;
}

.single-post .content-bg,
.single-post .entry.single-entry {
    background: #ffffff !important;
    color: var(--global-palette3, #1f2933);
    border-radius: 4px;
    box-shadow: none;
}

.single-post .entry-content,
.single-post .single-content {
    color: var(--global-palette3, #1f2933);
    font-family: var(--global-body-font-family, Montserrat, sans-serif);
    font-size: 18px;
    line-height: 1.65;
}

.single-post .entry-content > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: #ff6c2b;
    font-family: var(--global-heading-font-family, Montserrat, sans-serif);
    font-weight: 800;
    line-height: 1.18;
}

.single-post .entry-content h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-top: 0;
    margin-bottom: 24px;
}

.single-post .entry-content h3 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-top: 44px;
    margin-bottom: 16px;
}

.single-post .entry-content p,
.single-post .entry-content li {
    color: var(--global-palette3, #1f2933);
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content a {
    color: var(--global-palette1, #e47b02);
    font-weight: 700;
}

.single-post .entry-content img,
.single-post .entry-content figure {
    max-width: 100%;
}

.single-post .sharedaddy,
.single-post .jp-relatedposts {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--global-palette3, #1f2933);
}

@media (max-width: 767px) {
    .single-post .site-main {
        padding-top: 72px;
        padding-bottom: 40px;
    }

    .single-post .content-bg,
    .single-post .entry.single-entry {
        border-radius: 0;
    }

    .single-post .entry-content,
    .single-post .single-content {
        font-size: 17px;
    }
}

/* ==== BLOG BUTTON LINK FIX ==== */

.single-post .entry-content .wp-block-button__link,
.single-post .entry-content .wp-element-button {
    background: #ff6c2b;
    color: #ffffff !important;
    border-radius: 4px;
    font-family: var(--global-heading-font-family, Montserrat, sans-serif);
    font-weight: 800;
    text-decoration: none;
}

.single-post .entry-content .wp-block-button__link:hover,
.single-post .entry-content .wp-block-button__link:focus,
.single-post .entry-content .wp-element-button:hover,
.single-post .entry-content .wp-element-button:focus {
    background: #d9571f;
    color: #ffffff !important;
    text-decoration: none;
}

/* ==== BLOG EXTRA WIDGETS HIDDEN ==== */

.single-post .sharedaddy,
.single-post .sd-sharing-enabled,
.single-post .sd-like,
.single-post .jp-relatedposts,
.single-post .post-navigation,
.single-post .navigation.post-navigation,
.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond {
    display: none !important;
}

/* ==== BLOG H1 TITLE SCALE ==== */

.single-post .entry-content h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-top: 0;
    margin-bottom: 24px;
}
