/* Tighten Baskerville 2 menu bar */
.main-navigation li > a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
}

.search-icon {
    height: 34px !important;
}

.search-icon:before {
    line-height: 36px !important;
}
/* Pull page content upward */
.wrapper {
    margin-top: 0 !important;
    padding-top: 35px !important;
}

.page .post-container {
    margin-top: 0 !important;
}
/* Keep dropdown menus connected to parent items */
.main-navigation ul ul,
.main-menu ul ul {
    margin-top: 0 !important;
    top: 100% !important;
}

/* Prevent tiny hover gap between parent and submenu */
.main-navigation li,
.main-menu li {
    position: relative;
}

.main-navigation ul ul:before,
.main-menu ul ul:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}
/* Baskerville 2 custom header image */
.header.section.bg-image {
    min-height: 221px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-size: 1440px 221px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #111 !important;
}
/* Center Baskerville 2 desktop menu */
#primary-menu {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

#primary-menu > li {
    float: none !important;
}
/* Keep second-level flyout menus connected */
.main-navigation ul ul li {
    position: relative;
}

.main-navigation ul ul ul {
    top: 0 !important;
    left: 100% !important;
    margin-left: 0 !important;
}

/* Invisible hover bridge between submenu levels */
.main-navigation ul ul ul:before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}
/* Modernize page background */
body {
    background:
        radial-gradient(circle at 15% 20%, rgba(120, 20, 20, 0.18), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(120, 20, 20, 0.12), transparent 28%),
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.018) 0px,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(255,0,0,0.015) 0px,
            rgba(255,0,0,0.015) 1px,
            transparent 1px,
            transparent 6px
        ),
      radial-gradient(
    ellipse at center,
    rgba(42, 10, 10, 0.20) 0%,
    rgba(12, 6, 6, 0.80) 58%,
    rgba(2, 2, 2, 0.985) 100%
) !important;
}

/* Keep the main content panel clean and readable */
.post-container,
.page .post,
.page .post-container {
    background: #ffffff !important;
}

/* Slightly soften the edge between content and background */
.post-container,
.page .post {
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.28);
}
/* Tablet/mobile menu: keep submenus collapsed until tapped */
@media only screen and (max-width: 1000px) {

    /* Let Baskerville control opening/closing the main menu */
    #primary-menu {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #primary-menu > li {
        float: none !important;
    }

    /* Hide submenu items by default */
    #primary-menu .sub-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
    }

    /* Show submenu only when theme opens that parent item */
    #primary-menu li.focus > .sub-menu,
    #primary-menu li:hover > .sub-menu,
    #primary-menu li.toggled-on > .sub-menu {
        display: block !important;
    }
}
/* =========================================================
   SITE-WIDE CONTENT STYLE
   Remove white content cards and let pages sit on background
   ========================================================= */

/* Main page/post containers */
.wrapper,
.page .post-container,
.single .post-container,
.page .post,
.single .post,
.page .entry-content,
.single .entry-content {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove white article/card backgrounds */
.page .post,
.single .post,
.page article,
.single article {
    background: transparent !important;
}

/* Remove borders that made the white card shape obvious */
.page .post-header,
.single .post-header,
.page .post-content,
.single .post-content {
    background: transparent !important;
    border-color: transparent !important;
}

/* Keep content readable and centered */
.page .post-container,
.single .post-container {
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Give all page content breathing room */
.page .post-content,
.single .post-content,
.page .entry-content,
.single .entry-content {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
}

/* Text colors for the textured background */
.page .post-content,
.single .post-content,
.page .entry-content,
.single .entry-content,
.page .post-content p,
.single .post-content p,
.page .entry-content p,
.single .entry-content p,
.page .post-content li,
.single .post-content li {
    color: #111 !important;
}

/* Headings */
.page h1,
.page h2,
.page h3,
.single h1,
.single h2,
.single h3 {
    color: #111 !important;
}

/* Images: clean presentation, no forced white card */
.page .wp-block-image img,
.single .wp-block-image img,
.page img.aligncenter,
.single img.aligncenter {
    box-shadow: none !important;
}

/* Optional: subtle light backing behind text-heavy blocks only */
.page .wp-block-group.has-background,
.single .wp-block-group.has-background {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Keep mobile/tablet spacing sane */
@media only screen and (max-width: 1000px) {
    .page .post-container,
    .single .post-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}
/* Readability without bringing back the white box */
.page .post-content,
.single .post-content,
.page .entry-content,
.single .entry-content {
    background: transparent !important;
    color: #f2f2f2 !important;
    padding: 24px !important;
}

/* Paragraphs and lists */
.page .post-content p,
.single .post-content p,
.page .entry-content p,
.single .entry-content p,
.page .post-content li,
.single .post-content li {
    color: #f2f2f2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}

/* Headings */
.page h1,
.page h2,
.page h3,
.single h1,
.single h2,
.single h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}

/* Mobile/tablet */
@media only screen and (max-width: 1000px) {
    .page .post-content,
    .single .post-content,
    .page .entry-content,
    .single .entry-content {
        background: transparent !important;
        padding: 18px !important;
    }
}
.home .wp-block-cover h2,
.home .wp-block-cover h3,
.home .wp-block-cover p {
    color: #e31b23 !important;
    text-shadow: none !important;
}
/* Restore WordPress red text where explicitly selected */
.page .post-content p.has-vivid-red-color,
.single .post-content p.has-vivid-red-color {
    color: #e31b23 !important;
    text-shadow: none !important;
}
/* Center page/post headers */
.page .post-header,
.single .post-header {
    text-align: center !important;
}

/* Center the actual title text */
.page .post-title,
.single .post-title,
.page .entry-title,
.single .entry-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Remove Baskerville page-header arrow /* Remove Baskerville 2 decorative arrow from page headers */
.page .post-header::before,
.page .post-header::after,
.single .post-header::before,
.single .post-header::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
}