/*!
Theme Name: Atomicdust Child
Theme URI: https://atomicdust.com
Template: kadence
Author: Atomicdust
Author URI: https://atomicdust.com
Description: A child theme used by Atomicdust.
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: atmdst-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */
/* Modifying the highlight effect to the underline */
mark, .kt-highlight, .text-highlight {
    color: inherit; /* Keep the original text color */
    background: transparent !important; /* Remove background highlight */
    border-bottom: 4px solid var(--global-palette1, #3182CE) !important; /* Thick underline */
    box-decoration-break: clone;
    padding-top: 5px;
    padding-right: 4px;
    padding-bottom: 8px !important; /* Remove space to allow overlap */
    padding-left: 4px;
    position: relative;
    display: inline-block;
    line-height: 0.7; /* Bring the underline closer to overlap text */
}

/*Advanced slider arrow */
/* Base styling for both arrows */
.kb-splide .splide__arrow {
    /* Remove default styling */
    background: transparent !important;
    border: none !important;    
    opacity: 1 !important;
    /* Set dimensions */
    width: 25px !important;
    height: 25px !important;   
    /* Position at bottom */
    top: auto !important;
    bottom: 20px !important;  /* Adjust this value to control distance from bottom */
    /* Remove default text/content */
    font-size: 0 !important;
    text-indent: -9999px !important;
    /* Add custom arrow image */
    background-image: url(https://tarlton1.wpenginepowered.com/wp-content/uploads/2025/06/icon.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    /* Smooth transitions */
    transition: all 0.3s ease !important;
}

/* Left arrow (previous) */
.kb-splide .splide__arrow--prev {
    left: calc(50% - 30px) !important;  /* Adjusted to center from 50% */
    transform: rotate(0deg) !important;
}

/* Right arrow (next) */
.kb-splide .splide__arrow--next {
    left: calc(50% + 5px) !important;  /* Adjusted to center from 50% */
    transform: rotate(180deg) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .kb-splide .splide__arrow--prev {
        left: calc(50% - 30px) !important;
    }
    .kb-splide .splide__arrow--next {
        left: calc(50% + 5px) !important;
    }
}

@media (max-width: 768px) {
    /* More specific - targets slides in market carousel */
    .market-carousel.splide__slide {
        width: calc(25% + 0px) !important;
    }
}

/*Heading styling for queries*/
li.kb-query-item .kb-dynamic-list-item,
li.kb-query-block-post .kb-dynamic-list-item {
    background-color: #439539;
    border-radius: 20px;
    padding: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.pillme {
  width: auto;
  height: auto;
  border-radius: 20px;
  padding: 5px 10px 5px 10px;
  background: #439539;
display: inline-block;
  align-items: center;
  justify-content: center;
}

/*Home Slider Services section arrow placement*/
.kb-splide.kb-slider-arrow-position-bottom-left .splide__arrows {
	top:29rem;
}

/*Hover state for nav items*/


/* Animated underline with pseudo-element - isolated to text width */
.kb-link-wrap {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.kb-link-wrap::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 5px;
    background-color: white;
    transition: width 0.3s ease;
}

.kb-link-wrap:hover::after {
    width: 100%;
}

/* ONLY for links inside the mega menu dropdowns */
.kadence-menu-mega-enabled > ul .kb-link-wrap::after,
.menu-item-has-children > ul .kb-link-wrap::after {
    background-color: #005953 !important; /* dark color for sub-menu links */
}

.kadence-sticky-header .hide-on-sticky {
    display: none !important;
}

.site-header.item-is-sticky .hide-on-sticky {
    display: none !important;
}

/* For scroll-up sticky headers specifically */
.header-scroll-up .kt-row-layout-item {
    display: none !important;
}

.kb-header-container.item-is-stuck .hide-on-sticky {
    display: none !important;
}

/* Custom hover effects for specific Kadence sections */
/* Usage: Add the class "hover-overlay-effect" to any section you want this effect on */

/* Target only sections with your custom class */
.hover-overlay-effect {
  position: relative;
  overflow: hidden;
}

/* ORIGINAL STRUCTURE - for single sections (non-query) */
.hover-overlay-effect .wp-block-kadence-column:first-child {
  position: relative;
  overflow: hidden;
}

.hover-overlay-effect .wp-block-kadence-column:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

/* ONLY for non-query sections - when the main container is hovered */
.hover-overlay-effect:not(:has(.kb-query-item)):hover .wp-block-kadence-column:first-child::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.hover-overlay-effect:not(:has(.kb-query-item)) h5 {
  position: relative;
  transition: all 0.3s ease;
  display: inline;
  text-decoration: none;
}

.hover-overlay-effect:not(:has(.kb-query-item)):hover h5 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.hover-overlay-effect:not(:has(.kb-query-item)):hover {
  transform: translateY(-3px);
  transition: all 0.4s ease;
}

/* QUERY CARDS - Minimal styling to preserve original spacing */
.hover-overlay-effect .kb-query-item figure {
  position: relative;
  overflow: hidden;
}

.hover-overlay-effect .kb-query-item figure::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.hover-overlay-effect .kb-query-item h2 {
  transition: text-decoration 0.3s ease;
  text-decoration: none;
}

/* INDIVIDUAL ITEM HOVER EFFECTS - ONLY the hovered item */
.hover-overlay-effect .kb-query-item:hover figure::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.hover-overlay-effect .kb-query-item:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.hover-overlay-effect .kb-query-item:hover {
  transform: translateY(-3px);
  transition: transform 0.4s ease;
}

/* Alternative class name */
.section-hover-effects {
  position: relative;
  overflow: hidden;
}

.section-hover-effects .wp-block-kadence-column:first-child {
  position: relative;
  overflow: hidden;
}

.section-hover-effects .wp-block-kadence-column:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.section-hover-effects:not(:has(.kb-query-item)):hover .wp-block-kadence-column:first-child::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.section-hover-effects:not(:has(.kb-query-item)) h5 {
  position: relative;
  transition: all 0.3s ease;
  display: inline;
  text-decoration: none;
}

.section-hover-effects:not(:has(.kb-query-item)):hover h5 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.section-hover-effects:not(:has(.kb-query-item)):hover {
  transform: translateY(-3px);
  transition: all 0.4s ease;
}

.section-hover-effects .kb-query-item figure {
  position: relative;
  overflow: hidden;
}

.section-hover-effects .kb-query-item figure::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.section-hover-effects .kb-query-item h2 {
  transition: text-decoration 0.3s ease;
  text-decoration: none;
}

.section-hover-effects .kb-query-item:hover figure::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.section-hover-effects .kb-query-item:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.section-hover-effects .kb-query-item:hover {
  transform: translateY(-3px);
  transition: transform 0.4s ease;
}

.unstyleme {
	background-color: none !important;
}