/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */


@media (min-width: 1024px) {
  /* Hide dropdown toggle arrows (desktop), and collapse their footprint */
  .nav--toggle-sub .dropdown-nav-toggle {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
  }
  
  /* Normalize padding on items WITH children (arrows removed above) */
  .header-navigation .menu-item-has-children > a,
  span.nav-drop-down-title-wrap {
    padding-right: 0 !important;
  }
  
  /* Add right padding only to items WITHOUT children */
  .site-header .header-navigation .menu > li:not(.menu-item-has-children) > a {
    padding-right: 15px !important;
  }
  
  /*-------------------------------*/

/* Make footer widget areas match footer background */
.site-footer [class*="kadence-column"] .kt-inside-inner-col {
  background-color: #fff !important; /* whtie */
}


/* Liora demo: inline post layout - single post element*/
.bb-lio-bar-cats ul.wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bb-lio-bar-cats ul.wp-block-categories-list li.cat-item {
  line-height: 3em;
}

.bb-lio-bar-cats ul.wp-block-categories-list li a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--global-palette7);
  text-decoration: none;
}

.bb-lio-bar-cats ul.wp-block-categories-list li a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
}


/* end Liora demo: inline post layout - single post element*/

/* for Related Posts Card*/
/* Arrow size/shape used on the demo carousel */
:is(.bb-lio-post-grid, .bb-lio-caro-over) .splide__arrows .splide__arrow {
  border-radius: 0;
  height: 2em;
  width: 2em;
}

/* Pull the track wider than the content */
@media (min-width: 782px) {
  .bb-lio-caro-over .splide__track {
    margin-left: -45vw;
    margin-right: -45vw;
  }
}
@media (max-width: 781.98px) {
  .bb-lio-caro-over .splide__track {
    margin-right: -10vw;
  }
}
/* END for Related Posts Card*/


/* =========================
   Home page hero (overlay)
   ========================= */
/* Tablet (768–1024): put the MAIN column full-width on top, 
   and the other two columns side-by-side below it. */
@media (min-width: 768px) and (max-width: 1024px) {
  /* The Kadence Row Layout becomes a 2-col grid on tablet */
  .kt-row-column-wrap.kt-tab-layout-two-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: var(--wp--style--block-gap, 24px);
  }

  /* MAIN column goes first row, spans both columns */
  .kt-row-column-wrap.kt-tab-layout-two-grid
    > .wp-block-kadence-column.bb-lio-hero-main {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  /* All other hero columns drop to row 2 (browser will place them 1/2) */
  .kt-row-column-wrap.kt-tab-layout-two-grid
    > .wp-block-kadence-column:not(.bb-lio-hero-main) {
    grid-row: 2;
    /* grid-column auto; */
  }
}

/* Optional: if that row doesn’t carry Kadence’s tablet “Two Grid” setting,
   this fallback forces it anyway. Attach .bb-lio-hero-row on the Row Layout. */
@media (min-width: 768px) and (max-width: 1024px) {
  .bb-lio-hero-row .kt-row-column-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--style--block-gap, 24px);
  }
  .bb-lio-hero-row .wp-block-kadence-column.bb-lio-hero-main {
    grid-row: 1;
    grid-column: 1 / -1;
  }
  .bb-lio-hero-row .wp-block-kadence-column:not(.bb-lio-hero-main) {
    grid-row: 2;
  }
}



/* =========================
   End Home page hero (overlay)
   ========================= */

/* Make each article a positioned container */
.bb-lio-post-grad .kb-post-list-item {
  position: relative;
  overflow: hidden;
}

.bb-lio-post-grad article.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

/* Make the thumbnail link fill the container */
.bb-lio-post-grad .post-thumbnail {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.bb-lio-post-grad .post-thumbnail-inner {
  width: 100%;
  height: 100%;
}

.bb-lio-post-grad .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add gradient overlay */
.bb-lio-post-grad .post-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.6) 70%, 
    rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

/* Position content wrapper over image */
.bb-lio-post-grad .entry-content-wrap {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px;
  background: transparent;
}

/* Category pills at top */
.bb-lio-post-grad .entry-taxonomies {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 3;
  margin: 0;
}

.bb-lio-post-grad .category-links a {
  background: rgba(198, 175, 155, 0.95);
  color: white !important;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
}

/* Title styling */
.bb-lio-post-grad .entry-title {
  margin: 0;
}

.bb-lio-post-grad .entry-title a {
  color: white !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.bb-lio-post-grad .entry-title a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hide footer if empty */
.bb-lio-post-grad .entry-footer:empty {
  display: none;
}

/* Main/center post styling */
.bb-lio-post-grad-main article.entry {
  min-height: 632px;
}

.bb-lio-post-grad-main .entry-content-wrap {
  padding: 40px;
}

.bb-lio-post-grad-main .entry-taxonomies {
  top: 32px;
  left: 40px;
}

.bb-lio-post-grad-main .post-thumbnail::after {
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.7) 75%, 
    rgba(0,0,0,0.9) 100%);
}

/* Side columns - equal height posts */
.bb-lio-hero-left .kb-posts {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bb-lio-hero-left .kb-post-list-item {
  flex: 1;
  display: flex;
}

.bb-lio-hero-left article.entry {
  width: 100%;
  min-height: 0;
}

/* Gap between posts */
.bb-lio-post-gap .kb-post-list-item + .kb-post-list-item {
  margin-top: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .bb-lio-post-grad-main article.entry {
    min-height: 500px;
  }
  
  .bb-lio-hero-left article.entry {
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  .bb-lio-post-grad .entry-content-wrap {
    padding: 20px;
  }
  
  .bb-lio-post-grad .entry-taxonomies {
    top: 16px;
    left: 20px;
  }
  
  .bb-lio-post-grad-main article.entry {
    min-height: 400px;
  }
  
  .bb-lio-hero-left article.entry {
    min-height: 300px;
  }
}
	
 /* added 10/16 for responsiveness */
  .kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
  .kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
  .kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }
}

/* Space below posts on home page */
.grid-lg-col-1.item-image-style-beside article.loop-entry.has-post-thumbnail:not(.kb-post-no-image) {
  padding-bottom: 0px;
}

/* Home page events */

	/* =========================================================
   EVENTS GRID (Posts block)
   Use these classes on the Posts block:
   bb-lio-post-gap bb-lio-post-light
   (Do NOT add `bb-lio-post-line` for this grid section.)
   ========================================================= */

/* Card spacing in the grid */
.bb-lio-post-gap .kb-post-list-item {
  margin-bottom: 2rem;
}
@media (min-width: 992px) {
  .bb-lio-post-gap .kb-post-list-item {
    margin-bottom: 2.25rem;
  }
}

/* Light variant: title, tags, divider (matches demo styling minus black bg) */
.bb-lio-post-light .loop-entry {
  background: transparent;
  /*border-bottom: 1px solid var(--global-palette6);*/
	border-bottom: none !important;
}
.bb-lio-post-light .entry-title {
  margin: 0 0 .35rem;
  line-height: 1.15;
  color: var(--global-palette9);
}
.bb-lio-post-light .entry-taxonomies,
.bb-lio-post-light .entry-meta {
  color: var(--global-palette8);
}
.bb-lio-post-light .term-links a {
  background: transparent;
  border: 1px solid var(--global-palette7);
  color: var(--global-palette8);
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .02em;
}

/* --- GRID reset to prevent the “white band” under images --- */
.bb-lio-post-gap .entry.loop-entry .entry-content-wrap {
  display: block;
  padding: 1rem 0;
}
.bb-lio-post-gap .entry.loop-entry .post-thumbnail {
  min-width: auto;
  max-width: none;
}
.bb-lio-post-gap .entry.loop-entry .entry-header {
  display: block;
}


/* Safety: if `bb-lio-post-line` is accidentally present, neutralize it for multi-column grids */
.bb-lio-post-line.bb-lio-post-gap .kb-posts.grid-cols .entry.loop-entry {
  display: block;
}
.bb-lio-post-line.bb-lio-post-gap .kb-posts.grid-cols .entry.loop-entry .post-thumbnail,
.bb-lio-post-line.bb-lio-post-gap .kb-posts.grid-cols .entry.loop-entry .entry-content-wrap {
  width: 100%;
  min-width: auto;
  max-width: none;
}

	/* Remove the white card under each post in the Events grid */


.kb-posts-id-23315_bba038-5f .entry.content-bg::before,
.kb-posts-id-23315_bba038-5f .entry.content-bg::after {
  content: none !important;
  display: none !important;
}

/* If the inner wrapper carries a bg, clear it too */
.kb-posts-id-23315_bba038-5f .entry-content-wrap {
  background: transparent !important;
}
/*equal column heights*/
/* Remove white card fill */
.kb-posts.kadence-posts-list .loop-entry.content-bg{background:transparent}

/* Make each card a tidy vertical stack */
.bb-lio-post-line .loop-entry{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Thumbnail spacing */
.bb-lio-post-line .post-thumbnail{margin:0 0 16px}

/* Keep images covering the box (works with Kadence ratio classes) */
.bb-lio-post-line .post-thumbnail-inner{position:relative}
.bb-lio-post-line .post-thumbnail-inner img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}

/* Clamp long titles so rows stay even (adjust lines if you want) */
.bb-lio-post-line .entry-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;   /* change to 3 if you prefer */
  overflow:hidden;
  margin:0;
}

/* Light bottom rule (matches the demo “line” look) */
.bb-lio-post-light .loop-entry{
  padding-bottom:20px;
  /*border-bottom:1px solid rgba(255,255,255,.22); /* tweak color if needed */
}

/* Events Planning grid: remove the extra top margin Kadence adds */
.kb-posts-id-23315_bba038-5f .kb-post-list-item,
.kb-posts-id-23315_bba038-5f .kb-post-list-item:nth-child(n),
.kb-posts-id-23315_bba038-5f .loop-entry {
  margin-top: 0 !important;
}

/* Use only the grid gap for spacing */
.kb-posts-id-23315_bba038-5f {
  row-gap: 0 !important;      /* kill any row-gap hacks */
  gap: 32px !important;       /* your intended spacing */
}
/* Category pill style only inside lists that have:
   bb-lio-post-line bb-lio-post-gap bb-lio-post-light */
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .category-links.term-links a{
  /*background:#fff !important;
  color:#000 !important;*/
  background: var(--global-palette9) !important;   /* base brand color */
  color: var(--global-palette1) !important;        /* white */
  border-radius:2px !important;
  padding:.2rem .2rem .2rem .3rem!important;
  line-height:1 !important;
  display:inline-block !important;
  text-decoration:none !important;
}
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .category-links.term-links a:hover,
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .category-links.term-links a:focus{
  /*background:#000 !important;
  color:#fff !important;*/
  background: var(--global-palette7) !important;   /* base brand color */
  color: var(--global-palette1) !important;        /* white */
}
/* Add tracking to category links in this section only */
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .category-links.term-links a{
  letter-spacing: 1.5px !important;
}
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light h2.entry-title a {
	color: var(--global-palette3) !important;        /*  */
}
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light h2.entry-title a:hover {
	color: var(--global-palette4) !important;        /*  */
}

.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .loop-entry .entry-content-wrap {
	padding: 0 !important;
}
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .loop-entry {
	padding-bottom: 0px !important; 
}

/* Posts block (UL > LI items) */
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .kb-post-list-item{
  /*margin-bottom: .5rem !important;   /* tweak value */
}
.bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light .kb-post-list-item:last-child{
  margin-bottom: 0 !important;      /* no extra space after the last card */
}

/*.black-bg .bb-lio-post-line .loop-entry {
    border-bottom: 1px solid var(--global-palette9) !important;
}
.blue-bg .bb-lio-post-line .loop-entry {
    border-bottom: 1px solid var(--global-palette4) !important;
}
*/
.blue-bg .bb-lio-post-line.bb-lio-post-gap.bb-lio-post-light h2.entry-title a {
  color: #11100F !important;
  
}
	
/* END Home page events */

/* Home page Favors & Decor section */

/* === Favors & Decor – match hero font scale (scope to this one block) === */

.bb-lio-post-grad.bb-lio-post-line.bb-lio-post-gap h2.entry-title a {
  /*font-size: .6em;*/
}

.bb-lio-post-grad.bb-lio-post-line.bb-lio-post-gap div.kt-blocks-post-grid-item-inner {
  padding: 12px 18px;
}

/*.bb-lio-post-line .loop-entry {
    border-bottom: 1px solid var(--global-palette7) !important;
}
*/
.bb-lio-post-line .loop-entry {
	padding-bottom: 2rem;
}

.kb-posts.kb-posts-style-unboxed.grid-lg-col-1.item-image-style-beside article.loop-entry .post-thumbnail {
	margin-bottom: 2rem !important;
}


.bb-lio-post-gap .kb-post-list-item {
	margin-bottom: 0px;
}
.bb-lio-post-gap .kb-post-list-item + .kb-post-list-item {
	margin-top: 0px;
}


/* End Home page Favors & Decor section */


.bb-custom-border .bb-lio-post-line .loop-entry {
    border-bottom: 1px solid var(--global-palette7) !important;
}



/* -------------------------
   WPForms (#23166) styling
-------------------------- */
/* Flat beige panel, centered content — no borders, no shadows, no radius */
.optin-card{
  background: var(--global-palette7, #f0e7e0);
  padding: 32px 28px;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
}

/* Heading + subhead (colors from Kadence palette) */
.optin-card .optin-heading{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--global-palette3, #1d1d1d);
  margin: 12px 0 6px;
}
.optin-card .optin-sub{
  font-size: 18px;
  line-height: 1.5;
  color: var(--global-palette5, #625751);
  margin: 0 0 22px;
}

/* WPForms — form #23166 */
#wpforms-form-23166 .wpforms-field{ margin: 0 0 16px; }

/* Email input: single underline only (dynamic colors) */
#wpforms-form-23166 input[type="email"],
#wpforms-form-23166 input[type="text"]{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--global-palette5, #625751);
  border-radius: 0;
  padding: 12px 0 10px;
  font-size: 18px;
  color: var(--global-palette3, #1d1d1d);
  box-shadow: none;
}
#wpforms-form-23166 ::placeholder{ color: var(--global-palette5, #625751); }
#wpforms-form-23166 input:focus{
  outline: none;
  border-bottom-color: var(--global-palette-highlight, var(--global-palette1, #c6b0a2));
}

/* Button: solid block, uppercase — dynamic with Kadence button vars */
#wpforms-form-23166 .wpforms-submit-container{ margin-top: 18px; }
#wpforms-form-23166 .wpforms-submit{
  width: 100%;
  height: 56px;
  background: var(--global-palette-btn-bg, var(--global-palette2, #625751)) !important;
  color: var(--global-palette-btn, var(--global-palette9, #ffffff)) !important;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 16px;
  line-height: 56px; /* centers the label vertically */
  box-shadow: none;
}
#wpforms-form-23166 .wpforms-submit:hover{
  background: var(--global-palette-btn-bg-hover, var(--global-palette4, #302b27)) !important;
  color: var(--global-palette-btn-hover, var(--global-palette9, #ffffff)) !important;
}
/* Neutralize WPForms' global container padding, scoped to the opt-in only */
.optin-card .wpforms-container-full,
.optin-card .wpforms-container-full .wpforms-form,
.optin-card .wpforms-container-full .wpforms-field-container,
.optin-card .wpforms-container-full .wpforms-submit-container {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the card's own spacing and the input/button padding you set earlier */
#wpforms-form-23166 .wpforms-field { margin: 0 0 16px !important; }
#wpforms-form-23166 input[type="email"],
#wpforms-form-23166 input[type="text"] { padding: 12px 0 10px !important; }
#wpforms-form-23166 .wpforms-submit { line-height: 56px !important; }  /* your button “height” */


/* Remove the gap that forces the button to wrap */
.kb-search-form {
  gap: 0 !important;            /* kills column-gap:16px */
  column-gap: 0 !important;
  flex-wrap: nowrap !important; /* keep one line */
}

/* Let the input shrink; keep the button compact */
.kb-search-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}

.kb-search-icon-submit {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
}

/* --------------------------------------
   Ajax Search Results Container styling
----------------------------------------- */
/* Ajax Search Results Container */
.ajax-search-wrapper {
    position: relative;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.ajax-search-results.visible {
    display: block;
}

/* Individual Result Items */
.ajax-search-results .result-item {
    border-bottom: 1px solid #eee;
}

.ajax-search-results .result-item:last-child {
    border-bottom: none;
}

.ajax-search-results .result-item a {
    display: flex !important;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.ajax-search-results .result-item a:hover {
    background: #f5f5f5;
}

/* Thumbnail Images - More specific selectors */
.ajax-search-results .result-item img,
.ajax-search-results .result-item a img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    display: block !important;
}

.ajax-search-results .result-item span {
    flex: 1;
}

/* Loading Spinner */
.ajax-search-loading {
    display: none;
    padding: 10px;
    text-align: center;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Close Button */
.ajax-search-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    display: none;
    z-index: 1001;
}

.ajax-search-close:hover {
    color: #333;
}
/* Hide native browser clear button on search inputs */
.ajax-search-wrapper input[type="search"]::-webkit-search-cancel-button,
.ajax-search-wrapper input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Hide any Kadence theme clear buttons */
.ajax-search-wrapper .search-field::-ms-clear,
.ajax-search-wrapper .kb-search-input::-ms-clear {
    display: none !important;
}

/* Ensure only your custom close button shows */
.ajax-search-wrapper .kadence-search-icon-wrap,
.ajax-search-wrapper .kb-search-icon-wrap {
    display: none !important;
}
/* Target Kadence modal search specifically */
.popup-drawer.search-drawer.popup-drawer-layout-fullwidth .drawer-inner {
    align-items: flex-start !important;
    padding-top: 80px !important; /* Adjust this value */
}
.ajax-search-results .result-item a {
	line-height: 16px;
    font-size: 13px;
}
.ajax-search-results visible {
	width: 800px !important;
}

/*---Anchor post title to bottom of post image on post grids and queries---*/
/* Query card for the Category page */
/* Target cards with partial class match - catches all instances */
/* Target cards with partial class match - catches all instances */
/* Target cards with partial class match - catches all instances */
.category [class*="kadence-column23807_dd8f46"] {
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
}

/*.category [class*="kadence-column23807_dd8f46"] > .kt-inside-inner-col {
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  overflow: hidden !important;
  position: relative !important;
}*/
	
/* Position title at bottom with absolute positioning - like before */
.category [class*="kadence-column23807_b1616a"] {
  position: absolute !important;
  bottom: 20px !important;
  left: 0.7em !important;
  right: 0.7em !important;
  margin: 0 !important;
  z-index: 10 !important;
}

/* Ensure title doesn't overflow */
.category [class*="kadence-column23807_b1616a"] h2 {
  margin: 0 !important;
  overflow: hidden !important;
}

/* Make card cursor pointer */
.category [class*="kadence-column23807_dd8f46"] {
  cursor: pointer !important;
}

/* Ensure all links are clickable above the card background */
.category [class*="kadence-column23807_dd8f46"] a,
.category [class*="kadence-column23807_b1616a"] a {
  position: relative !important;
  z-index: 10 !important;
}
/*---home page hero section---*/
/* Make categories transparent in hero Post Grid blocks */
.kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
.kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
.kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* OR if you want to hide them completely */
.kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
.kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
.kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
  display: none !important;
}

/* Ensure it works on tablet and mobile too */
@media (max-width: 1024px) {
  .kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
  .kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
  .kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
    display: none !important;
	opacity: 0 !important;
  pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  .kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
  .kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
  .kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
    display: none !important;
	  opacity: 0 !important;
  pointer-events: none !important;
  }
}
	* Hide categories - super forceful version for all screen sizes */
.kt-post-loop23315_abc41a-2d .kt-blocks-above-categories *,
.kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories *,
.kt-post-loop23315_b981dd-6b .kt-blocks-above-categories *,
.kt-post-loop23315_abc41a-2d .kt-blocks-above-categories,
.kt-post-loop23315_94ec3a-0d .kt-blocks-above-categories,
.kt-post-loop23315_b981dd-6b .kt-blocks-above-categories {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}
/* ===================================
   HIDE CATEGORIES SITE-WIDE (transparent trick)
   =================================== */

/* Post Grid blocks */
.kt-blocks-post-grid-item .kt-blocks-above-categories {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Kadence Posts blocks */
.bb-lio-post-grad .entry-taxonomies,
.bb-lio-post-grad .kt-blocks-above-categories {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .kt-blocks-post-grid-item .kt-blocks-above-categories,
  .bb-lio-post-grad .entry-taxonomies,
  .bb-lio-post-grad .kt-blocks-above-categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .kt-blocks-post-grid-item .kt-blocks-above-categories,
  .bb-lio-post-grad .entry-taxonomies,
  .bb-lio-post-grad .kt-blocks-above-categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }
}
/*remove categories from category archive top post and posts below the headings*/
ul.wp-block-kadence-dynamiclist.kb-dynamic-list.kb-dynamic-list-id-23825_e6d6f9-ff.kb-dynamic-list-layout-horizontal.kb-dynamic-list-style-pill.kb-dynamic-list-alignment-left.kb-dynamic-list-divider-none.kb-dynamic-list-link-style-none {
  display: none;
}
ul.wp-block-kadence-dynamiclist.kb-dynamic-list.kb-dynamic-list-id-23793_01b392-fc.kb-dynamic-list-layout-horizontal.kb-dynamic-list-style-pill.kb-dynamic-list-alignment-left.kb-dynamic-list-divider-none.kb-dynamic-list-link-style-none.bb-lio-post-cats {
  display: none
}

div.kt-inside-inner-col {
  
}

/* Style the custom number display inside Kadence Info Box */
.top-list-number-box .kt-blocks-info-box-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.top-list-number-box .toplist-num {
  font-size: 2.8em;       /* large number */
  font-weight: 700;
  color: var(--global-palette3); /* main text color */
}

.top-list-number-box .toplist-of {
  display: block;
  font-size: 1em;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--global-palette6); /* lighter tone */
  margin-top: 0.2em;
}
/* Left-align the number stack */
.top-list-number-box .kt-blocks-info-box-number {
  text-align: left !important;
  align-items: flex-start !important;  /* in case the wrapper is flex */
  justify-content: flex-start !important;
}

/* If Kadence centers the media wrapper, nudge that too */
.top-list-number-box .kadence-info-box-media,
.top-list-number-box .kb-info-media {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.top-list-number-box .kt-blocks-info-box-number small,
.top-list-number-box .kb-info-box-number small {
  font-size: 0.68em !important;  /* was 0.85em */
  line-height: 1.5;
}
/* Center the Info Box button only inside this block */

.top-list-number-box .kt-blocks-info-box-learnmore-wrap  {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
}

/* End Style the custom number display inside Kadence Info Box */

/*List Group*/
/* Card wrapper */
.top-list-number-box {
  padding: 0.5rem 0;
}

/* Left number column */
.top-list-number-box .number-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Make the number visually strong but compact */
.top-list-number-box .number-col h3 {
  font-size: clamp(18px, 3.2vw, 28px);
  line-height: 1;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Center the button when desired (optional) */
.top-list-number-box .wp-block-buttons {
  display: flex !important;
  justify-content: flex-start; /* change to center if you prefer */
  width: 100% !important;
  text-align: center !important;
}

/* Mobile spacing polish */
@media (max-width: 768px) {
  .top-list-number-box .number-col {
    margin-bottom: .5rem;
  }
}
/*end List Post*/

/* Remove Kadence Row inner padding for these cards */
.top-list-row > .kt-row-column-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}