/*
Theme Name:     Portalmar
Theme URI:      n/a
Template:       kadence
Author:         Yunke Inc
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
/* Optional: adjust where the switcher sits in your header */
.site-header-section-right {
  margin-top: -28px;
  line-height: 1;
}

/* UL pill container */
ul#secondary-menu.menu{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 28px !important;

  margin: 0 !important;
  padding: 0 !important;
  list-style: none;

  border-radius: 999px;
  background: #DCD6CD;

  line-height: 0;
  overflow: hidden;
}

/* The "drop/blob" highlight */
ul#secondary-menu.menu::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 28px;
  height: 28px;
  border-radius: 999px;

  background: #53443D;
  box-shadow: 0 10px 22px rgba(17,24,39,.20);

  /* Always visible now */
  opacity: 1;

  /* Smooth, liquid-ish movement */
  transition: transform 520ms cubic-bezier(.22,1,.36,1);
  z-index: 0;
}

/* LI reset */
ul#secondary-menu.menu > li{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;

  display: flex;
  align-items: center;
  line-height: 0;

  position: relative;
  z-index: 1;
}

/* Buttons */
ul#secondary-menu.menu > li > a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 28px;
  width: 28px;
  min-width: 28px;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;

  color: #111827;
  text-decoration: none;
  line-height: 1;

  transition: color 220ms ease;
}

/* Text colors: active (on blob) and hover */
ul#secondary-menu .wpml-ls-current-language > a{
  color: #fff !important;
}

ul#secondary-menu.menu > li:hover > a{
  color: #fff !important;
}

/* Hide WPML original label (English/Spanish) */
ul#secondary-menu .wpml-ls-display{
  font-size: 0 !important;
  line-height: 0 !important;
  display: block;
}

/* Render EN / ES centered */
ul#secondary-menu .wpml-ls-display::before{
  display: block;
  font-size: 12px;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
}

/* Set labels */
ul#secondary-menu .wpml-ls-item-en .wpml-ls-display::before{ content: "EN"; }
ul#secondary-menu .wpml-ls-item-es .wpml-ls-display::before{ content: "ES"; }

/* ---------------------------------------------------------
   POSITIONING (requires :has)
   Default = current language
   Hover = hovered language
   --------------------------------------------------------- */

/* Default blob position based on current language */
ul#secondary-menu.menu:has(> li.wpml-ls-current-language.wpml-ls-item-en)::before{
  transform: translateX(0);
}
ul#secondary-menu.menu:has(> li.wpml-ls-current-language.wpml-ls-item-es)::before{
  transform: translateX(28px);
}

/* Hover overrides default */
ul#secondary-menu.menu:has(> li.wpml-ls-item-en:hover)::before{
  transform: translateX(0);
}
ul#secondary-menu.menu:has(> li.wpml-ls-item-es:hover)::before{
  transform: translateX(28px);
}

/* ---------------------------------------------------------
   FALLBACK (no :has support)
   Blob removed; simple hover/active fill
   --------------------------------------------------------- */
@supports not selector(:has(*)) {
  ul#secondary-menu.menu::before{ display: none; }

  ul#secondary-menu.menu > li > a{
    transition: background-color 220ms ease, color 220ms ease;
  }
  ul#secondary-menu .wpml-ls-current-language > a{
    background: #53443D;
    color: #fff !important;
  }
  ul#secondary-menu.menu > li:not(.wpml-ls-current-language) > a:hover{
    background: #53443D;
    color: #fff !important;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  ul#secondary-menu.menu::before{
    transition: none !important;
  }
  ul#secondary-menu.menu > li > a{
    transition: none !important;
  }
}

.kb-row-layout-wrap.negative-columns{
  position: relative;
  z-index: 5;
  transform: translateY(-100px);
  margin-bottom: -100px; /* cancels the leftover space */
}

@media (max-width: 1024px){
  .kb-row-layout-wrap.negative-columns{
    transform: translateY(-60px);
    margin-bottom: -60px;
  }
}

@media (max-width: 767px){
  .kb-row-layout-wrap.negative-columns{
    transform: translateY(-30px);
    margin-bottom: -30px;
  }
}



/* Remove 1px seams between consecutive Kadence rows */
.kb-row-layout-wrap + .kb-row-layout-wrap{
  margin-top: -1px;
}

/* 1) Make the Splide root a positioning context */
.splide{
  position: relative;
}

/* 2) Overlay pagination at bottom-center */
.splide__pagination{
  position: absolute !important;
  left: 50% !important;
  bottom: 25px !important;          /* adjust to taste */
  transform: translateX(-50%) !important;

  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  z-index: 20;
  pointer-events: auto;
}

/* 3) Ensure slides don't hide it */
.splide__track{
  overflow: hidden; /* keep as default; ok */
}

/* Optional: if dots get clipped in some setups, allow pagination to sit outside track */
.splide__track{
  overflow: visible;
}

/* Optional: spacing between dots */
.splide__pagination__page{
  margin: 0 6px !important;
}

/* ============================================================
   Kadence Advanced Slider (Splide) — Arrows Outside
   Applies only when the block (or any parent) has .arrows-outside
   ============================================================ */

/* 1) Create space for the arrows outside the slider */
.arrows-outside{
  padding-left: 90px;   /* enough for a 48px button + breathing room */
  padding-right: 90px;
}

/* 2) Let arrows render outside without being clipped */
.arrows-outside .kb-blocks-advanced-slider-init.splide,
.arrows-outside .splide__track,
.arrows-outside .splide__list{
 
}

/* 3) Anchor arrows to the slider root */
.arrows-outside .kb-blocks-advanced-slider-init.splide{
  position: relative;
}

/* 4) Keep arrows vertically centered (and stable) */
.arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrows{
  position: absolute;
  inset: 0;            /* same box as slider */
  pointer-events: none;/* only buttons should capture clicks */
  z-index: 50;
}

.arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrow{
  pointer-events: auto;
  top: 50%;
  transform: translateY(-50%);
}

/* 5) Move them OUTSIDE */
.arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrow--prev{
  left: -80px;         /* adjust to taste */
}

.arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrow--next{
  right: -80px;        /* adjust to taste */
}

/* 6) Mobile: reduce outside offset + padding */
@media (max-width: 767px){
  .arrows-outside{
    padding-left: 56px;
    padding-right: 56px;
  }

  .arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrow--prev{
    left: -48px;
  }

  .arrows-outside .kb-blocks-advanced-slider-init.splide .splide__arrow--next{
    right: -48px;
  }
}

/* 7) Safety: if a Kadence container above clips, force visible */
.arrows-outside .kb-advanced-slider,
.arrows-outside .kb-advanced-slider-inner-contain,
.arrows-outside .kb-blocks-advanced-carousel{
 
}


  .btntest {
    /*
      All of the base styles have
      moved to the “CSS” tab above.
    */
    transition: transform 250ms;
  }
  
  .btntest:hover {
    transform: translateY(-10px);
  }



