/* Desktop header alignment: nav row shares the logo row container width */
@media (min-width: 922px) {
    #ast-desktop-header .site-below-header-wrap {
        width: 100% !important;
        max-width: 1240px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    #ast-desktop-header #ast-hf-menu-1.main-header-menu {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    #ast-desktop-header #ast-hf-menu-1.main-header-menu > .menu-item:first-child > .menu-link {
        padding-left: 0 !important;
    }

    #ast-desktop-header #ast-hf-menu-1.main-header-menu > .menu-item:last-child > .menu-link {
        padding-right: 0 !important;
    }
}

/* Narrow desktop: tighten the nav so it never wraps next to the CTA */
@media (min-width: 922px) and (max-width: 1000px) {
    #ast-desktop-header #ast-hf-menu-1.main-header-menu > .menu-item > .menu-link {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 13.5px !important;
    }

    #ast-desktop-header #ast-hf-menu-1.main-header-menu > .menu-item:first-child > .menu-link {
        padding-left: 0 !important;
    }

    #ast-desktop-header #ast-hf-menu-1.main-header-menu > .menu-item:last-child > .menu-link {
        padding-right: 0 !important;
    }

    #ast-desktop-header .ast-header-button-1 .ast-custom-button {
        padding-left: 18px !important;
        padding-right: 18px !important;
        font-size: 13px !important;
    }
}

/* Responsive Header Fix for Desktop and Mobile */
@media (min-width: 922px) {
    #ast-desktop-header {
        display: block !important;
    }
    #ast-mobile-header,
    .ast-mobile-header-wrap,
    .ast-mobile-header-content {
        display: none !important;
    }
    .ast-header-break-point #ast-desktop-header {
        display: block !important;
    }
    .ast-header-break-point #ast-mobile-header {
        display: none !important;
    }
}

@media (max-width: 921px) {
    #ast-desktop-header {
        display: none !important;
    }
    #ast-mobile-header,
    .ast-mobile-header-wrap {
        display: block !important;
    }
}

/* Accessibility & Elementor page title hide */
.screen-reader-text,
.skip-link.screen-reader-text {
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    word-wrap: normal !important;
}

.ast-header-without-markup,
.entry-header.ast-header-without-markup {
    display: none !important;
}

/* Ensure smooth image rendering */
img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------
   Hand-written Elementor-style containers
   elementor frontend.min.css does `display: var(--display)` on
   `.e-con` and `.e-con > .e-con-inner`, but `--display` is normally
   injected per element by Elementor's generated CSS. The hand coded
   subpages (oem-services, production-capability, private-label,
   products) never got that variable, so every container computed to
   `display: inline` and its background/gradient only painted behind
   the text. Only flex containers (`.e-con.e-flex`) are affected, and
   Elementor sets exactly this value for them, so this cannot break
   generated pages.
   ------------------------------------------------------------------ */
.e-con.e-flex {
    --display: flex;
}

.e-con.e-flex > .e-con-inner {
    --display: flex;
}

/* ------------------------------------------------------------------
   Product category filter chips (products.html)
   The markup shipped without any styling, so the links inherited the
   white hero colour and were invisible on the light gallery.
   ------------------------------------------------------------------ */
.products-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 34px;
    padding: 0;
}

.products-filter-bar .product-filter-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(33, 45, 69, 0.16);
    border-radius: 999px;
    background: #f7f4ef;
    color: #212d45;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.products-filter-bar .product-filter-btn:hover,
.products-filter-bar .product-filter-btn:focus {
    background: #ffffff;
    border-color: #76b852;
    color: #b9793a;
    text-decoration: none;
}

.products-filter-bar .product-filter-btn.active {
    background: #212d45;
    border-color: #212d45;
    color: #ffffff;
}

@media (max-width: 767px) {
    .products-filter-bar {
        gap: 8px;
        margin-bottom: 26px;
    }

    .products-filter-bar .product-filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------
   Product gallery grid
   WordPress gallery CSS applies `margin: 0 -54px -54px 0` on .gallery
   and `padding: 0 54px 54px 0` on .gallery-item, which pushes the last
   column 44px past the container and adds a horizontal scrollbar.
   Switch to a real grid so the gutters stay inside the container.
   ------------------------------------------------------------------ */
.elementor-image-gallery .gallery.gallery-columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

.elementor-image-gallery .gallery.gallery-columns-4 .gallery-item {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-image-gallery .gallery.gallery-columns-4 .gallery-icon {
    margin: 0 !important;
}

.elementor-image-gallery .gallery.gallery-columns-4 .gallery-icon img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .elementor-image-gallery .gallery.gallery-columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .elementor-image-gallery .gallery.gallery-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .elementor-image-gallery .gallery.gallery-columns-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------
   Footer gutters
   The builder footer row ships with zero horizontal padding, so the
   first column sits flush against the viewport edge and its first
   characters look clipped.
   ------------------------------------------------------------------ */
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {

    .site-footer .site-primary-footer-wrap,
    .site-footer .site-below-footer-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ------------------------------------------------------------------
   Products: empty trailing container
   #2ed7ec6 is a leftover builder row between the catalog block and
   the footer. Its inner child only carries `min-height: 223px`, so it
   renders as 243px of nothing. Drop it and give the catalog block the
   page's usual 100px bottom rhythm instead.
   ------------------------------------------------------------------ */
.elementor-element-2ed7ec6 {
    display: none !important;
}

.elementor-element-b66f7e1 {
    padding-bottom: 100px !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .elementor-element-b66f7e1 {
        padding-bottom: 60px !important;
    }
}

/* ------------------------------------------------------------------
   Products: "Our Clients" carousel dots
   Elementor ships `elementor-pagination-position-outside`, which keeps
   the bullets absolutely positioned inside the 30px padding-bottom of
   a `overflow: hidden` swiper, so they sit half-clipped under the logos.
   Put them back in flow, below the slides, and make them legible.
   ------------------------------------------------------------------ */
.elementor-element-dc88d2a .elementor-image-carousel-wrapper.swiper {
    padding-bottom: 0 !important;
}

.elementor-element-dc88d2a .swiper-pagination {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin-top: 14px !important;
    line-height: 0 !important;
}

.elementor-element-dc88d2a .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    margin: 0 5px !important;
    opacity: 0.35 !important;
}

.elementor-element-dc88d2a .swiper-pagination-bullet-active {
    opacity: 1 !important;
}


/* Full Width & Alignment Fix for Elementor Pages */
.elementor-page .site-content,
.elementor-page .site-content > .ast-container,
.elementor-page .site-content > .ast-container > #primary,
.elementor-page .site-content > .ast-container > .elementor,
.ast-page-builder-template .site-content,
.ast-page-builder-template .site-content > .ast-container,
.ast-page-builder-template .site-content > .ast-container > #primary,
.ast-page-builder-template .site-content > .ast-container > .elementor {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex: 1 1 100% !important;
}
.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    display: block !important;
}
.elementor-element.e-con-boxed.e-parent {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.elementor-element.e-con-boxed.e-parent > .e-con-inner {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Balanced Single Row Desktop Header */
@media (min-width: 922px) {
    #ast-desktop-header .site-primary-header-wrap {
        max-width: 1400px !important;
        padding: 0 30px !important;
    }
    #ast-desktop-header .ast-builder-grid-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    #ast-desktop-header .site-header-primary-section-left {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }
    #ast-desktop-header .site-header-primary-section-center {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #ast-desktop-header .site-header-primary-section-right {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }
    #ast-desktop-header .main-header-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    #ast-desktop-header .main-header-menu > .menu-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        padding: 0 11px !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        color: #ffffff !important;
        transition: color 0.2s ease !important;
    }
    #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover {
        color: #314a22 !important;
    }
    #ast-desktop-header .ast-custom-button {
        background-color: #314a22 !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        font-size: 13.5px !important;
        padding: 12px 24px !important;
        border-radius: 4px !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        transition: background-color 0.2s ease !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
    #ast-desktop-header .ast-custom-button:hover {
        background-color: #243918 !important;
    }
}

@media (max-width: 1150px) and (min-width: 922px) {
    #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        padding: 0 7px !important;
        font-size: 13px !important;
    }
    #ast-desktop-header .site-primary-header-wrap {
        padding: 0 15px !important;
    }
    #ast-desktop-header .ast-custom-button {
        padding: 9px 15px !important;
        font-size: 12px !important;
    }
}


/* Viet Artisan Brand Green Theme */
:root {
    --ast-global-color-0: #314a22 !important;
    --ast-global-color-1: #243918 !important;
    --e-global-color-astglobalcolor0: #314a22 !important;
    --e-global-color-astglobalcolor1: #243918 !important;
}

#ast-desktop-header .ast-custom-button {
    background-color: #314a22 !important;
    color: #ffffff !important;
}
#ast-desktop-header .ast-custom-button:hover {
    background-color: #243918 !important;
    color: #ffffff !important;
}
#ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
#ast-desktop-header .main-header-menu > .current-menu-item > .menu-link {
    color: #76b852 !important;
}
.main-header-menu .sub-menu .menu-link:hover {
    background: #edf4eb !important;
    color: #314a22 !important;
}
.elementor-button,
.b2b-btn,
.ast-custom-button {
    background-color: #314a22 !important;
    color: #ffffff !important;
}
.elementor-button:hover,
.b2b-btn:hover,
.ast-custom-button:hover {
    background-color: #243918 !important;
    color: #ffffff !important;
}
.elementor-element-1ea2315 .elementor-button {
    background-color: #314a22 !important;
    color: #ffffff !important;
    border: 2px solid #527e38 !important;
}
.elementor-element-1ea2315 .elementor-button:hover {
    background-color: #243918 !important;
    border-color: #243918 !important;
}
.elementor-308 .elementor-element.elementor-element-b81be35 {
    background-color: #314a22 !important;
}
.elementor-308 .elementor-element.elementor-element-b81be35 .elementor-heading-title {
    color: #ffffff !important;
}
.elementor-308 .elementor-element.elementor-element-b81be35 p {
    color: #e0ece0 !important;
}
.elementor-308 .elementor-element.elementor-element-ce79d14 .elementor-heading-title {
    color: #a8d58c !important;
}
.elementor-308 .elementor-element.elementor-element-b164ba8 .elementor-button {
    background-color: #ffffff !important;
    border-radius: 4px !important;
}
.elementor-308 .elementor-element.elementor-element-b164ba8 .elementor-button .elementor-button-text {
    color: #314a22 !important;
    font-weight: 700 !important;
}
.elementor-308 .elementor-element.elementor-element-b164ba8 .elementor-button:hover {
    background-color: #edf4eb !important;
}
.elementor-308 .elementor-element.elementor-element-b164ba8 .elementor-button:hover .elementor-button-text {
    color: #243918 !important;
}

/* ============================================================
   Font Awesome font-path repair
   all.min.css / solid.css / brands.css point at ../webfonts/,
   which is NOT present in the deployment (404). The real font
   binaries live in assets/fonts/. Declaring the faces again
   here (last stylesheet wins) makes the browser use the
   deployed files instead of the missing ones.
   ============================================================ */
@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fa-regular-400.woff2') format("woff2"),
         url('../fonts/fa-regular-400.woff') format("woff"),
         url('../fonts/fa-regular-400.ttf') format("truetype");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/fa-solid-900.woff2') format("woff2"),
         url('../fonts/fa-solid-900.woff') format("woff"),
         url('../fonts/fa-solid-900.ttf') format("truetype");
}

@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fa-brands-400.woff2') format("woff2"),
         url('../fonts/fa-brands-400.woff') format("woff"),
         url('../fonts/fa-brands-400.ttf') format("truetype");
}


/* ============================================================
   Header: drop the baked-in 1920x90 banner PNG
   Every page carries an inline `wp-custom-css` rule that paints
   .ast-primary-header-bar with banner-for-candle-website.png.
   That PNG is 1920x90 and has the headline
   "Candle Manufacturer in Vietnam / Professional & Reliable"
   burned into the middle of the pixels. The bar is only 80px
   tall with `background-size: cover`, so on any viewport width
   the cropped image puts that burned-in text underneath the
   live logo, nav links and GET A QUOTE button (reported on
   blogs-insights.html).

   Pages that use Astra's transparent header (index, products,
   about-us, ...) already compute `background-image: none` and
   place the masthead over the hero, so they must stay
   transparent. Only the opaque pages (blog archive + article
   templates) get the solid brand bar, keeping the white nav
   links readable.
   ============================================================ */
.ast-primary-header-bar,
.ast-primary-header-bar.ast-primary-header {
    background-image: none !important;
    background-repeat: no-repeat !important;
}

body:not(.ast-theme-transparent-header) .ast-primary-header-bar {
    background-color: #314a22 !important;
    /* A real border would grow the bar from 80px to 81px and shift
       every page down by a pixel; an inset shadow draws the same
       hairline without changing the box model. */
    border-bottom: 0 !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14) !important;
}

body:not(.ast-theme-transparent-header) #masthead .site-title a {
    color: #ffffff !important;
}

/* The header CTA is #314a22 on a #314a22 bar, i.e. invisible once the
   banner PNG is gone. It is a <div> whose label colour is an INLINE
   `color: #ffffff !important` (Astra header builder), so the text can
   never be re-coloured from a stylesheet. Instead keep the white label
   and draw the button with a white ring: a ghost button that reads
   clearly on the dark bar, using an inset shadow so the 80px header
   geometry does not move. */
body:not(.ast-theme-transparent-header) #masthead .ast-custom-button {
    background-color: transparent !important;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.78) !important;
}

body:not(.ast-theme-transparent-header) #masthead .ast-custom-button:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 0 0 1.5px #ffffff !important;
}

/* Below 922px the header collapses to logo + hamburger. Astra colours the
   trigger with the theme's dark-green link colour, which disappears on the
   dark bar, so force the trigger white.
   The SVG carries fill="currentColor", but the page's inline wp-custom-css
   also pins `fill: var(--ast-global-color-0)` (#314a22) directly on
   .ast-mobile-svg with an attribute-selector rule, so `color` alone is not
   enough: the fill has to be overridden as well. */
body:not(.ast-theme-transparent-header) #masthead .menu-toggle,
body:not(.ast-theme-transparent-header) #masthead .menu-toggle .mobile-menu-toggle-icon {
    color: #ffffff !important;
}

body:not(.ast-theme-transparent-header) #masthead .menu-toggle svg,
body:not(.ast-theme-transparent-header) #masthead .menu-toggle .ast-mobile-svg,
body:not(.ast-theme-transparent-header) #masthead .menu-toggle svg path {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Opened mobile drawer. Astra paints the panel #f9f9f9 (sub-menus slightly
   darker), and the page's inline wp-custom-css sets the sub-menu links to
   #ffffff in the same breakpoint, so the second-level items were white on
   white. Keep the panel light and darken the labels to the brand green,
   matching the hover state that the inline block already defines. */
@media (max-width: 921px) {
    #ast-mobile-header .main-header-menu .sub-menu .menu-link,
    #ast-mobile-header .sub-menu a {
        color: #24391a !important;
    }
}

/* ============================================================
   Homepage collections gallery: four equal tiles on one row
   (Seasonal Bloom / Jar Candle / Artistic Candle / VN Collection)
   ============================================================
   Elementor sized the original three tiles with `flex: 0 1 auto` and
   10px margins, which leaves a fourth tile without a share of the row.
   Forcing `flex: 1 1 0` with `min-width: 0` makes all four divide the
   row evenly, whatever images they carry. */
.elementor-element-80ac6da {
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.elementor-element-80ac6da > .e-con {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    /* The first three tiles get 10px margins from their generated
       Elementor CSS; the cloned fourth has no entry, so without this
       it grows 20px taller than its siblings and its label sits at the
       top instead of the bottom. */
    margin: 10px !important;
    justify-content: flex-end !important;
    /* 350px of top padding was tuned for ~334px wide tiles; at ~247px
       the same padding makes a very tall slot, so trim it and even out
       the side padding that used to be 50/100 for the wide layout. */
    --padding-top: 300px !important;
    --padding-left: 20px !important;
    --padding-right: 20px !important;
    --padding-bottom: 34px !important;
}

/* The tile overlay was the navy --e-global-color-astglobalcolor7
   (#212d45) at 0-33% opacity, i.e. barely there, so white labels sat
   on pale product photography. Replace it with a solid brand-green
   fade that is fully opaque under the label, which puts white text at
   ~14:1 instead of ~1.4:1 on a light candle shot. */
.elementor-element-80ac6da > .e-con::before {
    /* frontend.min.css sets `content: var(--background-overlay)`. The
       original three tiles inherit a value; the cloned fourth tile has
       none, so `content` is invalid and its pseudo-element never paints.
       An explicit empty string makes the overlay render on all four. */
    content: "" !important;
    opacity: 1 !important;
    background-image: linear-gradient(0deg,
            #24391a 0%,
            rgba(36, 57, 26, 0.95) 24%,
            rgba(36, 57, 26, 0.58) 45%,
            rgba(36, 57, 26, 0) 70%) !important;
}

/* The fourth tile is a clone, so it has no generated rule for its own
   widget id: its title would keep the theme navy (#212d45) on the dark
   green overlay. Pin all four labels to white at one size. */
.elementor-element-80ac6da .elementor-icon-box-title,
.elementor-element-80ac6da .elementor-icon-box-title span {
    color: #ffffff !important;
    font-size: 24px !important;
}

/* The fourth tile has no generated Elementor stylesheet entry of its
   own, so its photograph is declared here. url() resolves against this
   stylesheet, hence ../images/ rather than assets/images/. */
.elementor-element-b7c4e21:not(.elementor-motion-effects-element-type-background) {
    background-image: url('../images/scented-candle-cozy-family-1-768x450.png') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Two tiles per row on tablets, one per row on phones. */
@media (max-width: 1024px) {
    .elementor-element-80ac6da {
        flex-wrap: wrap !important;
    }

    .elementor-element-80ac6da > .e-con {
        flex: 1 1 calc(50% - 20px) !important;
        --padding-top: 260px !important;
    }
}

@media (max-width: 767px) {
    .elementor-element-80ac6da > .e-con {
        flex: 1 1 calc(100% - 20px) !important;
        --padding-top: 240px !important;
    }
}

/* ============================================================
   Footer "Our Products" heading
   ============================================================
   The block editor paints this <mark> with --ast-global-color-1
   (#243918), which is ~1.4:1 on the navy footer (rgb(33,45,69)) and
   therefore nearly invisible. The light brand green below reads at
   roughly 8:1 on the same background. */
.site-footer .has-ast-global-color-1-color {
    color: #a8d98a !important;
}

/* ============================================================
   Navy surfaces (#212d45) → brand green
   ============================================================
   The two navy tokens — --ast-global-color-2 (headings, .site-footer)
   and --ast-global-color-7 (footer builder rows, testimonial cards,
   catalogue panel), plus their --e-global-color-* twins — are remapped
   to the dark brand green inside every page's :root, so all of those
   blocks turn green together. The rules below only repair the contrast
   that the swap broke or exposed. */

/* Testimonial cards. The panel is now #243918; their 6px bottom rule
   was #314a22, which would read as the same green and vanish. */
.elementor-element-b6f515f:not(.elementor-motion-effects-element-type-background),
.elementor-element-b6f515f > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-58468af:not(.elementor-motion-effects-element-type-background),
.elementor-element-58468af > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-a87a177:not(.elementor-motion-effects-element-type-background),
.elementor-element-a87a177 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-a70c4c7:not(.elementor-motion-effects-element-type-background),
.elementor-element-a70c4c7 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #243918 !important;
}

.elementor-element-b6f515f,
.elementor-element-58468af,
.elementor-element-a87a177,
.elementor-element-a70c4c7 {
    border-bottom-color: #7fb35c !important;
}

/* Card headings inherit --e-global-color-astglobalcolor0 (#314a22),
   about 1.4:1 on the panel. The lighter green reads at ~9:1. */
.elementor-element-b6f515f .elementor-heading-title,
.elementor-element-58468af .elementor-heading-title,
.elementor-element-a87a177 .elementor-heading-title,
.elementor-element-a70c4c7 .elementor-heading-title {
    color: #c3e6a8 !important;
}

/* Catalogue panel kept explicit so it does not depend on the token. */
.elementor-element-7671b54:not(.elementor-motion-effects-element-type-background),
.elementor-element-7671b54 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #243918 !important;
}

/* WPForms submit was #314a22 with a navy label. Light green plate,
   dark green label: ~5.5:1. */
#wpforms-submit-154 {
    background-color: #7fb35c !important;
    border-color: #7fb35c !important;
    color: #1f3316 !important;
}

#wpforms-submit-154:hover,
#wpforms-submit-154:focus {
    background-color: #a8d98a !important;
    border-color: #a8d98a !important;
    color: #1f3316 !important;
}

/* ==========================================================================
   Blog, Single Post, Archive & Sidebar Layout
   ========================================================================== */
body.ast-right-sidebar .site-content,
body.blog .site-content,
body.archive .site-content,
body.search .site-content,
body.single-post .site-content {
    background-color: #f8fafc;
    min-height: 60vh;
}

body.ast-right-sidebar .site-content > .ast-container,
body.blog .site-content > .ast-container,
body.archive .site-content > .ast-container,
body.search .site-content > .ast-container,
body.single-post .site-content > .ast-container {
    max-width: 1240px !important;
    margin: 40px auto 60px auto !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

@media (min-width: 922px) {
    body.ast-right-sidebar .site-content > .ast-container > #primary,
    body.blog .site-content > .ast-container > #primary,
    body.archive .site-content > .ast-container > #primary,
    body.search .site-content > .ast-container > #primary,
    body.single-post .site-content > .ast-container > #primary {
        flex: 0 0 70% !important;
        max-width: 70% !important;
        width: 70% !important;
        padding-right: 35px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    body.ast-right-sidebar .site-content > .ast-container > #secondary,
    body.blog .site-content > .ast-container > #secondary,
    body.archive .site-content > .ast-container > #secondary,
    body.search .site-content > .ast-container > #secondary,
    body.single-post .site-content > .ast-container > #secondary {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        width: 30% !important;
        padding-left: 10px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}

@media (max-width: 921px) {
    body.ast-right-sidebar .site-content > .ast-container > #primary,
    body.blog .site-content > .ast-container > #primary,
    body.archive .site-content > .ast-container > #primary,
    body.search .site-content > .ast-container > #primary,
    body.single-post .site-content > .ast-container > #primary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.ast-right-sidebar .site-content > .ast-container > #secondary,
    body.blog .site-content > .ast-container > #secondary,
    body.archive .site-content > .ast-container > #secondary,
    body.search .site-content > .ast-container > #secondary,
    body.single-post .site-content > .ast-container > #secondary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: 40px !important;
        box-sizing: border-box !important;
    }
}

/* Post Cards in Grid */
.ast-blog-layout-5-grid .ast-article-post {
    margin-bottom: 30px !important;
    background: transparent !important;
    border: none !important;
}

.ast-blog-layout-5-grid .ast-article-inner {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    border: 1px solid #eef0f2 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ast-blog-layout-5-grid .ast-article-inner:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.ast-blog-layout-5-grid .ast-blog-featured-section {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    margin-bottom: 0 !important;
}

.ast-blog-layout-5-grid .ast-blog-featured-section .post-thumb-img-content,
.ast-blog-layout-5-grid .ast-blog-featured-section a,
.ast-blog-layout-5-grid .ast-blog-featured-section img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.ast-blog-layout-5-grid .post-content {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    padding: 30px 35px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.ast-blog-layout-5-grid .ast-no-thumb .post-content,
.ast-blog-layout-5-grid .post-content.ast-full-width {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    .ast-blog-layout-5-grid .ast-blog-featured-section {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .ast-blog-layout-5-grid .post-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
}

.ast-blog-layout-5-grid .entry-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.ast-blog-layout-5-grid .entry-title a {
    color: #1a2e12 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ast-blog-layout-5-grid .entry-title a:hover {
    color: #4b6e34 !important;
}

.ast-blog-layout-5-grid .entry-meta {
    font-size: 13px !important;
    color: #718096 !important;
    margin-bottom: 15px !important;
}

.ast-blog-layout-5-grid .entry-meta a {
    color: #4b6e34 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.ast-blog-layout-5-grid .ast-excerpt-container p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #4a5568 !important;
    margin-bottom: 16px !important;
}

.ast-blog-layout-5-grid .read-more a {
    display: inline-block !important;
    color: #314a22 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.ast-blog-layout-5-grid .read-more a:hover {
    color: #557d3c !important;
}

/* Sidebar Widgets */
#secondary .widget,
#secondary .sidebar-main aside.widget {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 26px 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #eef0f2 !important;
}

#secondary .widget-title,
#secondary .wp-block-heading {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a2e12 !important;
    margin-bottom: 18px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: relative !important;
    text-transform: capitalize !important;
}

#secondary .widget-title::after,
#secondary .wp-block-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 36px !important;
    height: 2px !important;
    background-color: #314a22 !important;
}

#secondary .wp-block-search__inside-wrapper {
    display: flex !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

#secondary .wp-block-search__input {
    border: none !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
}

#secondary .wp-block-search__button {
    background: #314a22 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

#secondary .wp-block-search__button:hover {
    background: #446430 !important;
}

#secondary ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

#secondary ul li {
    padding: 9px 0 !important;
    border-bottom: 1px dashed #e5e7eb !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

#secondary ul li:last-child {
    border-bottom: none !important;
}

#secondary ul li a {
    color: #374151 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, padding-left 0.15s ease !important;
}

#secondary ul li a:hover {
    color: #314a22 !important;
    padding-left: 4px !important;
}

/* Single Post Specifics */
body.single-post .ast-article-single {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eef0f2 !important;
}

body.single-post .entry-title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    color: #1a2e12 !important;
    margin-bottom: 12px !important;
}

body.single-post .entry-meta {
    font-size: 14px !important;
    color: #718096 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

body.single-post .entry-meta a {
    color: #314a22 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.single-post .post-thumb-img-content {
    margin-bottom: 28px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.single-post .post-thumb-img-content img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

body.single-post .entry-content {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #2d3748 !important;
}

body.single-post .entry-content p {
    margin-bottom: 20px !important;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    color: #1a2e12 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

body.single-post .post-navigation {
    margin-top: 40px !important;
    padding-top: 24px !important;
    border-top: 1px solid #edf2f7 !important;
}

body.single-post .post-navigation a {
    color: #314a22 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Category Archive Banner / Header */
.ast-archive-description {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 24px 30px !important;
    margin-bottom: 28px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
}

.ast-archive-description .page-title {
    font-size: 24px !important;
    color: #1a2e12 !important;
    margin: 0 !important;
}

/* Contact Us email link contrast fix (Astra sets default `a` to white --ast-global-color-5) */
.elementor-image-box-description a {
    color: #314a22 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.elementor-image-box-description a:hover {
    color: #4b6e34 !important;
    text-decoration: underline !important;
}
