/* Socrates homepage only: remove Kadence's empty page-title hero */
  body.page-id-260 .entry-hero.page-hero-section {
    display: none !important;
  }

  /* Remove theme spacing surrounding the custom page content */
  body.page-id-260 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

/* Remove the default Kadence title area from XP & Rewards */
body.page-id-658 .entry-hero.page-hero-section {
    display: none !important;
}

/* Remove the space Kadence leaves around the page content */
body.page-id-658 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove the default Kadence title area from Privacy Policy */
body.page-id-667 .entry-hero.page-hero-section {
    display: none !important;
}

/* Remove spacing around the custom Privacy Policy block */
body.page-id-667 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove top/bottom theme spacing from Terms & Conditions */
body.page-id-672 .entry-hero.page-hero-section {
    display: none !important;
}

/* Remove theme spacing from Cookie Policy */
body.page-id-677 .entry-hero.page-hero-section {
    display: none !important;
}

body.page-id-677 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-id-672 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove the default page hero and spacing from Blog page */
body.page-id-685 .entry-hero.page-hero-section {
    display: none !important;
}

body.page-id-685 #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Fluent Forms — Socrates styling */
.fluentform .ff-el-form-control {
    background: #f5f3ed !important;
    border: 1px solid #cfcfc8 !important;
    color: #080a09 !important;
    border-radius: 7px !important;
}

.fluentform .ff-el-form-control:focus {
    border-color: #ffbe00 !important;
    box-shadow: 0 0 0 2px rgba(255, 190, 0, 0.18) !important;
}

.fluentform .ff-el-form-control::placeholder {
    color: #858780 !important;
    opacity: 1;
}

.fluentform label {
    color: #080a09 !important;
    font-weight: 600;
}

.fluentform a {
    color: #9a7200;
}

.fluentform a:hover {
    color: #6f5200;
}

/* Submit button */
.fluentform .ff-btn-submit {
    background: #ffbe00 !important;
    border: 1px solid #ffbe00 !important;
    color: #080a09 !important;
    border-radius: 7px !important;
    font-weight: 700 !important;
    padding: 13px 24px !important;
    box-shadow: none !important;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
    background: #dfa600 !important;
    border-color: #dfa600 !important;
    color: #080a09 !important;
}

/* Main CookieYes banner */
.cky-consent-container .cky-consent-bar {
    background: #141614 !important;
    border: 1px solid #282b27 !important;
    border-top: 2px solid #ffbe00 !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45) !important;
}

/* Banner heading */
.cky-consent-container .cky-title {
    color: #f5f3ed !important;
    font-weight: 700 !important;
}

/* Banner description and links */
.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-des p {
    color: #b5b8b2 !important;
}

.cky-consent-container .cky-notice-des a {
    color: #ffbe00 !important;
}

/* All banner buttons */
.cky-consent-container .cky-btn {
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Accept */
.cky-consent-container .cky-btn-accept {
    background: #ffbe00 !important;
    border-color: #ffbe00 !important;
    color: #080a09 !important;
}

/* Reject */
.cky-consent-container .cky-btn-reject {
    background: transparent !important;
    border-color: #ffbe00 !important;
    color: #f5f3ed !important;
}

/* Customize */
.cky-consent-container .cky-btn-customize {
    background: transparent !important;
    border-color: #9fa29c !important;
    color: #f5f3ed !important;
}

/* Button hover states */
.cky-consent-container .cky-btn-accept:hover {
    background: #dfa600 !important;
    border-color: #dfa600 !important;
}

.cky-consent-container .cky-btn-reject:hover,
.cky-consent-container .cky-btn-customize:hover {
    background: #282b27 !important;
}

/* Preference center */
.cky-preference-center {
    background: #141614 !important;
    border: 1px solid #282b27 !important;
    color: #b5b8b2 !important;
}

.cky-preference-header,
.cky-preference-body-wrapper,
.cky-accordion-wrapper,
.cky-footer-wrapper {
    background: #141614 !important;
}

.cky-preference-title,
.cky-accordion-btn,
.cky-accordion-header-des {
    color: #f5f3ed !important;
}

.cky-preference-content-wrapper,
.cky-accordion-header-des p {
    color: #b5b8b2 !important;
}

/* Revisit-consent button */
.cky-revisit-bottom-left,
.cky-revisit-bottom-right {
    background: #ffbe00 !important;
    border-color: #ffbe00 !important;
}

/* SOCRATES BLOG GRID */
.si-blog-query {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.si-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.si-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #141614;
    border: 1px solid #282b27;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(8, 10, 9, 0.12);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.si-post-card:hover {
    transform: translateY(-4px);
    border-color: #dfa600;
    box-shadow: 0 20px 48px rgba(8, 10, 9, 0.2);
}

.si-post-image {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #0d0f0d;
    aspect-ratio: 16 / 9;
}

.si-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.si-post-card:hover .si-post-image img {
    transform: scale(1.025);
}

.si-post-title {
    margin: 0;
    padding: 26px 28px 0;
    color: #f5f3ed;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.12;
}

.si-post-title a {
    color: inherit;
    text-decoration: none;
}

.si-post-title a:hover {
    color: #ffbe00;
}

.si-post-date {
    margin: 0;
    padding: 12px 28px 0;
    color: #ffbe00;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.si-post-excerpt {
    margin: 0;
    padding: 18px 28px 30px;
    color: #b5b8b2;
    font-size: 1rem;
    line-height: 1.7;
}

.si-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.si-blog-pagination a,
.si-blog-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    color: #f5f3ed;
    background: #141614;
    border: 1px solid #282b27;
    border-radius: 7px;
    text-decoration: none;
}

.si-blog-pagination a:hover,
.si-blog-pagination .current {
    color: #080a09;
    background: #ffbe00;
    border-color: #ffbe00;
}

@media (max-width: 767px) {
    .si-blog-query {
        padding: 42px 18px 56px;
    }

    .si-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .si-post-title {
        padding: 22px 22px 0;
    }

    .si-post-date {
        padding: 10px 22px 0;
    }

    .si-post-excerpt {
        padding: 16px 22px 26px;
    }
}


/* SOCRATES CATEGORY ARCHIVES */
body.category {
    background: #080a09;
}

body.category .entry-hero {
    background: #0d0f0d;
    border-bottom: 1px solid rgba(255, 190, 0, 0.3);
}

body.category .entry-hero h1 {
    color: #f5f3ed;
}

body.category .entry-hero .archive-description {
    color: #b5b8b2;
}

body.category #primary {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

body.category .grid-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

body.category article.entry {
    overflow: hidden;
    margin: 0;
    background: #141614;
    border: 1px solid #282b27;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition:
        transform 180ms ease,
        border-color 180ms ease;
}

body.category article.entry:hover {
    transform: translateY(-4px);
    border-color: #dfa600;
}

body.category .post-thumbnail,
body.category .post-thumbnail-inner {
    background: #0d0f0d;
}

body.category .post-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

body.category .entry-content-wrap {
    padding: 26px 28px 30px;
    background: #141614;
}

body.category .entry-taxonomies,
body.category .entry-taxonomies a {
    color: #ffbe00;
}

body.category .entry-title,
body.category .entry-title a {
    color: #f5f3ed;
    text-decoration: none;
}

body.category .entry-title a:hover {
    color: #ffbe00;
}

body.category .entry-meta,
body.category .entry-summary {
    color: #b5b8b2;
}

body.category .more-link {
    color: #ffbe00;
    text-decoration: none;
}

body.category .more-link:hover {
    color: #dfa600;
}

@media (max-width: 767px) {
    body.category #primary {
        padding: 42px 18px 56px;
    }

    body.category .grid-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.category .entry-content-wrap {
        padding: 22px;
    }
}

/* CATEGORY ARCHIVE CORRECTIONS */

/* Keep the archive heading area light and restore readable text */
body.category .entry-hero,
body.category .archive-title,
body.category .page-title {
    background: #f5f3ed !important;
}

body.category .entry-hero h1,
body.category .archive-title h1,
body.category .page-title h1 {
    color: #101210 !important;
}

body.category .entry-hero .archive-description,
body.category .archive-title .archive-description,
body.category .page-title .archive-description {
    color: #555a53 !important;
}

/* Correct the nearly invisible Read More link */
body.category article.entry .more-link,
body.category article.entry .post-more-link,
body.category article.entry a.post-more-link {
    color: #ffbe00 !important;
    font-weight: 700;
    text-decoration: none;
}

body.category article.entry .more-link:hover,
body.category article.entry .post-more-link:hover {
    color: #dfa600 !important;
}

/* SOCRATES INDIVIDUAL BLOG POSTS */
body.single-post {
    background: #080a09;
}

/* Main post region */
body.single-post #primary {
    max-width: 1040px;
    margin: 0 auto;
    padding: 54px 24px 84px;
}

/* Featured image */
body.single-post .post-thumbnail {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    background: #0d0f0d;
    border: 1px solid #282b27;
    border-radius: 16px 16px 0 0;
}

body.single-post .post-thumbnail-inner {
    background: #0d0f0d;
}

body.single-post .post-thumbnail img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

/* Article body */
body.single-post article.entry {
    overflow: hidden;
    margin: 0;
    background: #f5f3ed;
    border: 1px solid #282b27;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Join image and article when the image appears above it */
body.single-post .post-thumbnail + article.entry,
body.single-post article.entry:has(.post-thumbnail) {
    border-radius: 0 0 16px 16px;
}

body.single-post .entry-content-wrap {
    padding: clamp(34px, 6vw, 72px);
}

/* Category */
body.single-post .entry-taxonomies,
body.single-post .entry-taxonomies a {
    color: #b88400;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Post title */
body.single-post .entry-title {
    max-width: 820px;
    margin: 16px 0;
    color: #101210;
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

/* Metadata */
body.single-post .entry-meta {
    color: #666b64;
    font-size: 0.83rem;
}

body.single-post .entry-meta a {
    color: #555a53;
}

/* Written content */
body.single-post .entry-content {
    max-width: 760px;
    margin: 46px auto 0;
    color: #252822;
    font-size: 1.08rem;
    line-height: 1.85;
}

body.single-post .entry-content p {
    margin-bottom: 1.5em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    margin-top: 1.7em;
    color: #101210;
    line-height: 1.15;
}

body.single-post .entry-content a {
    color: #9a7100;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.single-post .entry-content blockquote {
    margin: 2em 0;
    padding: 20px 26px;
    background: #ebe7dc;
    border-left: 4px solid #ffbe00;
}

/* Images placed inside an article */
body.single-post .entry-content img {
    border-radius: 10px;
}

/* Ensure comments disappear once disabled */
body.single-post #comments:empty {
    display: none;
}

@media (max-width: 767px) {
    body.single-post #primary {
        padding: 28px 16px 54px;
    }

    body.single-post .entry-content-wrap {
        padding: 28px 22px 38px;
    }

    body.single-post .entry-title {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    body.single-post .entry-content {
        margin-top: 32px;
        font-size: 1rem;
        line-height: 1.75;
    }

    body.single-post .post-thumbnail img {
        max-height: 360px;
    }
}

/* Hide author attribution on individual posts */
body.single-post .entry-meta .posted-by,
body.single-post .entry-meta .author,
body.single-post .entry-meta .byline {
    display: none !important;
}

/* Remove separators left behind by the hidden author */
body.single-post .entry-meta {
    display: flex;
    gap: 0;
}

body.single-post .entry-meta > *:empty {
    display: none;
}

body.single-post .entry-meta .posted-by {
    display: none !important;
}

/* DESKTOP RESOURCES DROPDOWN */
@media (min-width: 1025px) {
    header .kb-navigation .kb-nav-sub-menu {
        min-width: 210px !important;
        padding: 8px 0 !important;
        overflow: hidden;
        background: #141614 !important;
        border: 1px solid #282b27 !important;
        border-top: 2px solid #ffbe00 !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38) !important;
    }

    header .kb-navigation .kb-nav-sub-menu > li {
        margin: 0 !important;
        background: transparent !important;
    }

    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content {
        display: block !important;
        width: 100% !important;
        padding: 12px 16px !important;
        color: #f5f3ed !important;
        background: transparent !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
        border: 0 !important;
    }

    header .kb-navigation .kb-nav-sub-menu > li + li {
        border-top: 1px solid #282b27 !important;
    }

    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content:hover,
    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content:focus {
        color: #ffbe00 !important;
        background: #0d0f0d !important;
    }

    header .kb-navigation .kb-nav-sub-menu .current-menu-item > .kb-link-wrap > .kb-nav-link-content {
        color: #ffbe00 !important;
        background: #0d0f0d !important;
    }
}

/* FOOTER NAVIGATION */
#footer-navigation a {
    color: #b5b8b2 !important;
    text-decoration: none !important;
    transition: color 160ms ease;
}

#footer-navigation a:hover,
#footer-navigation a:focus,
#footer-navigation .current-menu-item > a,
#footer-navigation .current_page_item > a {
    color: #ffbe00 !important;
}

/* Footer social heading */
.site-footer h2,
.site-footer .widget-title {
    color: #f5f3ed !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Mobile Resources submenu */
@media (max-width: 1024px) {
    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content,
    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content:visited {
        color: #f5f3ed !important;
        background: transparent !important;
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content:hover,
    header .kb-navigation .kb-nav-sub-menu .kb-nav-link-content:focus,
    header .kb-navigation .kb-nav-sub-menu .current-menu-item > .kb-link-wrap > .kb-nav-link-content {
        color: #ffbe00 !important;
    }
}