/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@import url("menu.css");
@import url("menu-mobile.css");

/********** BODY **********/

:root {
  font-size:100%;
}

:root.size120 {
  font-size:115%; 
}

:root.size150 {
  font-size:130%; 
}

:root {
  --lh-tight: 1.2;   /* for headings / menus */
  --lh-normal: 1.5;  /* for body text */
  --lh-loose: 1.6;   /* for long paragraphs */
  --border: 2px;
  --header-height: 4em;
  --content-side-padding: 50px;
}

/* For tablets */ 
@media (max-width: 1024px) {
  :root {
    --content-side-padding: 30px;
  }
}


@media (max-width: 767px) {
  :root {
    --content-side-padding: 20px;
  }
}

body {
  line-height: var(--lh-normal);
  color: var(--text-color);
  background-color: var(--bg-color);
  font-family: var( --e-global-typography-d0bcb92-font-family ), Sans-serif;
}

h1, h2, h3 {
  line-height: var(--lh-tight) !important;
}

.div-post-content h2 {
  font-size: var( --e-global-typography-2e03158-font-size );
}

.div-post-content h3 {
  font-size: var( --e-global-typography-e87a82c-font-size );
}

.div-post-content a { 
  text-decoration: underline;
}

.div-post-content p {
  /*margin-block-end: 0;*/
}

html[class*="elementor-kit-"],
body[class*="elementor-kit-"] {
  --kit-bg:     var(--e-global-color-d23d091, #FFFF96);
  --kit-text:   var(--e-global-color-264b4e1, #000000);
  --kit-accent: var(--e-global-color-b9942b1, #FAFAFA);
}

html {
  /* Give html its own concrete defaults (safe first-paint palette) */
  --bg-color:     #FFFF96;
  --bg-color-content: #FAFAFA;
  --text-color:   #000000;
  --text-color-alternative:   #FFFF96;
  --text-color-alternative2:   #FFFF96;
  --accent-color: #FAFAFA;
  --accent-hover-color: #000000;
  --exh-heading-bgcolor: #FFFF96;
  --exh-text-color-alternative:   #FFFF96;

  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--e-global-typography-d0bcb92-font-family);
}

/* White bg / black text */
html.contrast-1 {
  --bg-color: #FFFF96;
  --bg-color-content: #FAFAFA;
  --text-color: #000000;
  --text-color-alternative:   #FFFF96;
  --text-color-alternative2:   #FFFF96;
  --accent-color: #FAFAFA;
  --accent-hover-color: #000000;
  --exh-heading-bgcolor: #FFFF96;
  --exh-text-color-alternative:   #FFFF96;
}

/* Black bg / white text */
html.contrast-2 {
  --bg-color: #000000;
  --bg-color-content: #000000;
  --text-color: #FFFF96;
  --text-color-alternative:   #FFFF96;
  --text-color-alternative2:   #FFFF96;
  --accent-color: #FAFAFA;
  --accent-hover-color: #000000;
  --exh-heading-bgcolor: #000000;
  --exh-text-color-alternative:   #FFFF96;
}

/* Yellow bg / black text */
html.contrast-3 {
  --bg-color: #FAFAFA;
  /*--bg-color-content: #FFFF96;*/
  --bg-color-content: #FAFAFA;
  --text-color: #000000;
  --text-color-alternative:   #FAFAFA;
  --text-color-alternative2:   #FAFAFA;
  --accent-color: #FFFF96;
  --accent-hover-color: #000000;
  --exh-heading-bgcolor: #FAFAFA;
  --exh-text-color-alternative:   #000000;
}

/* Black bg / yellow text */
html.contrast-4 {
  --bg-color: #000000;
  --bg-color-content: #000000;
  --text-color: #FAFAFA;
  --text-color-alternative:   #FAFAFA;
  --text-color-alternative2:   #000000;
  --accent-color: #FFFF96;
  --accent-hover-color: #000000;
  --exh-heading-bgcolor: #000000;
  --exh-text-color-alternative:   #FAFAFA;
}

.bg-color {
  background: var(--bg-color);
}

.bg-color-content {
  background: var(--bg-color-content);
}

.text-color {
  color: var(--text-color);
}

/********** HEADER **********/

.div-wrapper-header {

}

.div-header {
  border-bottom: var(--border) solid var(--text-color);
}

.div-header a, .div-header h2 {
  line-height: var(--lh-normal) !important;
}

.div-header h2 {
  font-weight: 400 !important;
  color: var(--text-color);
}

.div-header {
  height: var(--header-height);
}

@media (min-width:1025px) {
  .div-main-head-nav .elementor-nav-menu {
    height: var(--header-height);
  }
}


/********** SOCIAL ROTATOR **********/

.div-social-rotator .elementor-icon-list-item:nth-child(odd)::after {
  content: "/" !important;
  font-size: var(--e-global-typography-d0bcb92-font-size);
  margin-top: 0;
  padding: 0 5px;
}

.div-social-rotator .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item::after {
  border: none !important;
}

/* viewport + track */
.div-social-rotator .social-rotator .rotator-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.div-social-rotator .social-rotator .rotator-track {
  display: flex;
  will-change: transform;
  transform: translateX(0);
}

.div-social-rotator .social-rotator .rotator-track.anim {
  transition: transform 600ms ease;
}

/* each panel holds 2 list items */
.div-social-rotator .social-rotator .rotator-panel {
  flex: 0 0 auto;
  display: flex;
}
.div-social-rotator .social-rotator .rotator-panel > ul.elementor-icon-list-items {
  display: flex;
  align-items: center;
}

/* keep clickable targets tidy */
.div-social-rotator .social-rotator .elementor-icon-list-item a {
  display: inline-flex;
  align-items: center;
  color: var(--text-color);
}

/* add space between the two panels (pairs) */
.div-social-rotator .social-rotator .rotator-track {
  gap: 1rem; /* or whatever looks good — try 1rem–3rem */
}


/* ===========================================================
   SITE TITLE BEHAVIOR (LONG / SHORT / RESPONSIVE)
   =========================================================== */

/* Base: keep title stable */
.elementor-widget-theme-site-title .elementor-heading-title a {
  line-height: var(--lh-tight);
  white-space: nowrap;
  overflow: hidden; /* avoids Safari diacritic ghosts when hiding text */
}

/* Non-home and scroll-short mode: hide long text */
body:not(.home) .elementor-widget-theme-site-title .elementor-heading-title a,
body.title--short .elementor-widget-theme-site-title .elementor-heading-title a {
  font-size: 0; /* hide long text, keep link accessible */
}

/* LV short text (non-home or scroll-short) */
html[lang="lv"] body:not(.home) .elementor-widget-theme-site-title .elementor-heading-title a::after,
html[lang="lv"] body.title--short .elementor-widget-theme-site-title .elementor-heading-title a::after {
  content: "RLMT";
  font-size: var(--e-global-typography-d0bcb92-font-size);
  line-height: var(--lh-tight);
}

/* EN short text (non-home or scroll-short) */
html[lang^="en"] body:not(.home) .elementor-widget-theme-site-title .elementor-heading-title a::after,
html[lang^="en"] body.title--short .elementor-widget-theme-site-title .elementor-heading-title a::after {
  content: "RCAS";
  font-size: var(--e-global-typography-d0bcb92-font-size);
  line-height: var(--lh-tight);
}

/* ---- Home page responsive thresholds ---- */
@media (max-width: 1070px) {
  html.size100 body.home .elementor-widget-theme-site-title .elementor-heading-title a {
    font-size: 0;
  }
}
@media (max-width: 1160px) {
  html.size120 body.home .elementor-widget-theme-site-title .elementor-heading-title a {
    font-size: 0;
  }
}
@media (max-width: 1250px) {
  html.size150 body.home .elementor-widget-theme-site-title .elementor-heading-title a {
    font-size: 0;
  }
}

/* Home short text by language for each threshold */
@media (max-width: 1070px) {
  html.size100[lang="lv"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RLMT";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
  html.size100[lang^="en"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RCAS";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
}
@media (max-width: 1160px) {
  html.size120[lang="lv"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RLMT";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
  html.size120[lang^="en"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RCAS";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
}
@media (max-width: 1250px) {
  html.size150[lang="lv"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RLMT";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
  html.size150[lang^="en"] body.home .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "RCAS";
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
}

/* Mobile portrait: always show "(R)" */
@media (orientation: portrait) and (max-width: 768px) {
  .elementor-widget-theme-site-title .elementor-heading-title a {
    font-size: 0 !important;
  }
  html[lang] body .elementor-widget-theme-site-title .elementor-heading-title a::after {
    content: "(R)" !important;
    font-size: var(--e-global-typography-d0bcb92-font-size);
    line-height: var(--lh-tight);
  }
}

/* Safari-only paint fix */
/*@supports (-webkit-touch-callout: none) {
  body:not(.home) .elementor-widget-theme-site-title .elementor-heading-title a,
  html.size100 body.home .elementor-widget-theme-site-title .elementor-heading-title a,
  html.size120 body.home .elementor-widget-theme-site-title .elementor-heading-title a,
  html.size150 body.home .elementor-widget-theme-site-title .elementor-heading-title a,
  body.title--short .elementor-widget-theme-site-title .elementor-heading-title a {
    -webkit-text-fill-color: transparent;
  }
}*/


/********** LANG MENU**********/

.elementor-474 .elementor-element.elementor-element-25f9d80 .cpel-switcher__code {
  padding-left: 0 !important;
}

.cpel-switcher__lang a,
.cpel-switcher__lang a:hover {
  color: var(--text-color);
}

.cpel-switcher__code {
  font-size: 0; /* or visibility:hidden with positioned pseudo-element */
}

/* EN → ENG */
.cpel-switcher__lang a[lang="en-GB"] .cpel-switcher__code::after {
  content: "ENG";
  font-size: var(--e-global-typography-d0bcb92-font-size);
}

/* LV → LAT */
.cpel-switcher__lang a[lang="lv"] .cpel-switcher__code::after {
  content: "LAT";
  font-size: var(--e-global-typography-d0bcb92-font-size);
}

/********** accessibility button **********/

.button-accessibility a {
  fill: var(--text-color) !important;
  color: var(--text-color) !important;
  font-size: 3.5rem !important;
  /*padding: 7px 0;*/
  padding: 14px 0;
}

.button-accessibility .elementor-button-icon svg {
  width: 0.8em;
}

/*@media (max-width: 1024px){
  .button-accessibility a {
    padding: 0.24em 0.1em;
  }
}*/

/*@-moz-document url-prefix() {
  .button-accessibility a {
    padding-top: 0.5rem !important;
  }
}*/

/********** accessibility popup **********/

/*@media (max-width: 1024px) and (min-width: 768px) {
  .elementor-474 .elementor-element.elementor-element-8414ea2 {
    --lang-access-pad-right: 35px;
    --width: calc( 35% - var(--lang-access-pad-right)) !important;
  }
}
*/

.div-popup-accessability-outer .dialog-widget-content {
  background-color: var(--bg-color) !important;
  border: 2px solid var(--text-color);
}

.div-popup-accessability-outer .dialog-close-button {
  border: none !important;
  outline: none !important;
}

.div-popup-accessability-outer .dialog-close-button:focus,
.div-popup-accessability-outer .dialog-close-button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.div-popup-accessability-outer .dialog-close-button svg {
  fill: var(--text-color);
}

.div-popup-accessability p {
  color: var(--text-color) !important;
  font-size: var(--e-global-typography-bce06e3-font-size);
}

.div-font-size :is(a, a:hover), .button-easy-read :is(a, a:hover), .button-reset :is(a, a:hover) {
  color: var(--text-color);
  border: 2px solid var(--text-color);
    border-radius: initial;
    font-size: var(--e-global-typography-bce06e3-font-size);
    /*background-color:var(--accent-color) !important;*/
  padding:12px 24px;
}

.div-font-size .is-active {
  background-color:var(--accent-color) !important;
  color: var(--accent-hover-color) !important;
}

.div-contrasts :is(a, a:hover) {
  font-size: var(--e-global-typography-0584bdb-font-size) !important;
  color: var(--accent-hover-color);
  fill: var(--text-color);
  border: 2px solid var(--text-color);
    border-radius: initial;
}


/* make the button anchors a positioning context */
.div-contrasts a.elementor-button,
.div-contrasts a.elementor-button-link {
  position: relative;
}

/* the dot for the active one */
.div-contrasts a.is-active::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 6px;          /* tweak to taste */
  left: 6px;         /* tweak to taste */
  border-radius: 50%;
  background: var(--text-color);                 /* inherits the button's color */
  box-shadow: 0 0 0 2px var(--bg-color, #fff); /* thin ring to keep it visible on any bg */
  pointer-events: none;                     /* never blocks clicks */
}

#contrast-1 {
  background-color:var(--e-global-color-d23d091);
  fill: var(--e-global-color-264b4e1);
}

#contrast-2 {
  background-color:var(--e-global-color-8ef2bfb);
  fill: var(--e-global-color-6396207);
}

#contrast-3 {
  background-color:var(--e-global-color-4879bbf);
  fill: var(--e-global-color-a4d6699);
}

#contrast-4 {
  background-color:var(--e-global-color-4b2b41c);
  fill: var(--e-global-color-1016dfb);
}





/********** FOOTER **********/

.div-wrapper-footer, .div-wrapper-partners {
  border-top: var(--border) solid var(--text-color);
}

@media (max-width: 767px) {
  .div-wrapper-footer {
    border-bottom: var(--border) solid var(--text-color);
  }
}

/*.div-footer .elementor-nav-menu--main, .div-footer .sub-menu {
  display: inline-flex !important;
}*/

.div-footer .social-inline {
  display: flex;
}

.div-footer .social-inline a {
  /*text-decoration: none;*/
  color: var(--text-color);
}

.div-footer .social-inline .sep  {
  font-size: var( --e-global-typography-c349ffb-font-size );
  padding: 0 10px;
  color: var(--text-color);
}

/* FOOTER SITEMAP STYLE
/* Scope to your footer menu widget */
.footer-sitemap .elementor-nav-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Each top-level item becomes a row with: [Parent][—][children…] */
.footer-sitemap .elementor-nav-menu > li {
  display: flex;                 /* keep everything on one line */
  align-items: baseline;         /* nicer diacritics alignment */
  flex-wrap: wrap;               /* allows wrapping on narrow widths */
  gap: 0;                        /* we'll control gaps below */
  margin: .35em 0;
  list-style: none;
}

/* Explicit piece ordering: link (0), dash (1), children (2) */
.footer-sitemap .elementor-nav-menu > li > a { order: 0; color: var(--text-color); }
.footer-sitemap .elementor-nav-menu > li > .sub-menu { order: 2; }

.div-footer .social-inline a:hover,
.footer-sitemap .elementor-nav-menu > li > a:hover,
.footer-sitemap .elementor-nav-menu .elementor-item-active,
.footer-sitemap .elementor-nav-menu > li > .sub-menu > li > a:hover,
.footer-sitemap .elementor-nav-menu > li > .sub-menu > li > a.elementor-item-active { 
  text-decoration: underline;
}

/* Always-visible dash between parent and children (only when there are children) */
.footer-sitemap .elementor-nav-menu > li.menu-item-has-children::after {
  content: " —";
  order: 1;

  /* --- visual fine tuning --- */
  position: relative;
  top: -0.2em;          /* raise dash slightly (~2–3px, adjust as needed) */
  margin: 0 .55ch 0 1.5ch; /* make spacing more even between parent & first child */
  
  font-weight: 400;
  text-transform: none;
  line-height: 1;        /* keeps vertical centering consistent */
  color: var(--text-color);
}


/* Kill Elementor’s link underline pseudo-element in this widget so it can’t override */
.footer-sitemap .elementor-nav-menu a.elementor-item::after{
  content: none !important;
  display: none !important;
}

/* Make the submenu live inline and horizontal */
.footer-sitemap .elementor-nav-menu > li > .sub-menu {
  /* kill dropdown behavior */
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: transparent;

  display: flex !important;
  flex-wrap: wrap;
  /* width behavior */
  flex: 1 1 auto;                /* take remaining space next to the parent label */
  width: auto !important;
  min-width: 0;                  /* allow flexbox to shrink without overflow */
  max-width: 100%;
  padding: 0;
  margin: 0; 
  border: 0;
  gap: 0;
}

/* Submenu items render inline naturally with the flex above */
.footer-sitemap .elementor-nav-menu > li > .sub-menu > li {
  display: inline;               /* harmless with flex; keeps anchors inline */
}

/* Sub-item links */
.footer-sitemap .elementor-nav-menu > li > .sub-menu > li > a {
  font-weight: 400;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  color: var(--text-color);
}

.footer-sitemap .elementor-nav-menu > li > .sub-menu > li > a:first-child {
  padding-left: 0 !important;
}

.footer-sitemap .elementor-nav-menu > li > .sub-menu > li > a:focus {
  color: var(--text-color);
}

/* Hide Elementor’s dropdown arrows if they exist */
.footer-sitemap .sub-arrow { display: none !important; }

/* (Old rule removed) — we no longer need to hide a link-based dash,
   because the dash now lives on the LI and only appears when there are children. */

/* Mobile: stack children under the parent for readability */
@media (max-width: 1024px){
  .footer-sitemap .elementor-nav-menu > li, .foot-menu .elementor-nav-menu > li {
    flex-wrap: wrap;
  }
  /* remove the dash on mobile if you want it cleaner */
  .footer-sitemap .elementor-nav-menu > li.menu-item-has-children::after {
    content: none;
  }
  .footer-sitemap .elementor-nav-menu > li > .sub-menu {
    width: 100%;
    margin-top: .25em;
    gap: .5em .75ch;             /* rows × columns spacing */
  }

  .foot-menu .elementor-nav-menu {
    padding-bottom: 20px;
  }
}

/* Safety: nuke list bullets anyplace Elementor sneaks them in */
.footer-sitemap .elementor-nav-menu,
.footer-sitemap .elementor-nav-menu .sub-menu { list-style: none; }


@media (max-width: 767px) {
  .footer-sitemap ul.elementor-nav-menu > li:not(:first-child) {
    display: none !important;
  }
}

.foot-menu .elementor-nav-menu > li > a, 
.foot-menu .elementor-nav-menu > li > a:hover,
.foot-menu .elementor-nav-menu > li > a:focus { 
  color: var(--text-color);
  background-color: initial;
}

.foot-menu .elementor-nav-menu > li > a:hover,
.foot-menu .elementor-nav-menu .elementor-item-active { 
  text-decoration: underline;
}

@media (max-width: 767px) {
  .foot-menu nav {
    padding-top:13px;
    z-index: 0 !important;
  }
}


/* ========= Partners icons (Elementor social list) ========= */
.div-partners {
  /* Make all icons/text inside inherit the site text color */
  color: var(--text-color);

  /* Tweakables for crisp look */
  --partner-stroke-w: .1;          /* thinner outline; try 0.6–0.85 */
  --partner-fill-opacity: 1;     /* lighten fill if it feels heavy */
}

/* Ensure links and wrappers inherit color */
.div-partners .elementor-icon-list-items a,
.div-partners .elementor-icon-list-items .elementor-icon-list-icon,
.div-partners .elementor-icon-list-text {
  color: inherit;
}

/* Size & alignment (optional; adjust as you like) */
.div-partners .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: .6em 1.2em;
}
.div-partners .elementor-icon-list-icon svg {
  display: inline-block;
  vertical-align: -.125em;
}

/* ===== Core: fill + thin outline, using currentColor (== var(--text-color)) ===== */
.div-partners .elementor-icon-list-icon svg *,
.div-partners .elementor-icon-list-items a svg * {
  fill: currentColor;
  fill-opacity: var(--partner-fill-opacity);
  stroke: currentColor;
  stroke-width: var(--partner-stroke-w);
  vector-effect: non-scaling-stroke;  /* keeps stroke crispy at any size */
  paint-order: stroke fill;           /* draw outline on top of fill */
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

/* Respect explicit no-fill shapes authored in the SVGs */
.div-partners .elementor-icon-list-icon svg [fill="none"],
.div-partners .elementor-icon-list-items a svg [fill="none"] {
  fill: none !important;
}

/* If some paths were exported with hardcoded colors, force them to inherit */
.div-partners .elementor-icon-list-icon svg [fill]:not([fill="none"]),
.div-partners .elementor-icon-list-items a svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}
.div-partners .elementor-icon-list-icon svg [stroke],
.div-partners .elementor-icon-list-items a svg [stroke] {
  stroke: currentColor !important;
}

/* Set one place to tweak the logo height */
.div-partners { --partner-logo-h: 74px; }

/* Make the list behave nicely */
.div-partners .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;                 /* spacing between logos */
  align-items: center;
}

/* Ensure each item/anchor is a flex row */
.div-partners .elementor-icon-list-item,
.div-partners .elementor-icon-list-item > a,
.div-partners .elementor-icon-list-icon {
  display: flex;
  align-items: center;
  line-height: 0;            /* kill extra baseline space around SVGs */
}

/* The key bit: equalize logo height, keep aspect ratio */
.div-partners .elementor-icon-list-icon svg {
  height: var(--partner-logo-h);
  width: auto;               /* keep proportions */
  display: block;            /* no baseline gaps */
  vertical-align: middle;
  max-width: 100%;           /* don’t overflow their container */
}

/* If any SVGs come with hardcoded width/height attributes, override them */
.div-partners .elementor-icon-list-icon svg[width],
.div-partners .elementor-icon-list-icon svg[height] {
  width: auto !important;
  height: var(--partner-logo-h) !important;
}

/* Optional: different size on mobile */
/*@media (max-width: 767px) {
  .div-partners { --partner-logo-h: 28px; }
}*/

@media (min-width: 768px) and (max-width: 809px) {
  .div-partners { --partner-logo-h: 38px; }
}

@media (min-width: 810px) and (max-width: 1000px) {
  .div-partners { --partner-logo-h: 57px; }
}

@media (min-width: 1160px){
  .elementor-795 .elementor-element.elementor-element-2b611b8e .elementor-icon-list-icon {
    padding-inline-end: 39px !important;
  }
}






/* ===== Mobile: partners slider / marquee ===== */
@media (max-width: 809px) {
  /* Keep your logo size already defined; you can tweak if needed */
  .div-partners {
    --partner-logo-h: 57px;   /* you already set this – ok to keep or adjust */
    overflow: hidden;         /* hide scrolling overflow */
    position: relative;
  }

  /* The track that we animate (wrapper created by JS) */
  .div-partners .partners-track {
    display: flex;
    width: max-content;              /* as wide as the two ULs combined */
    animation: partners-marquee 40s linear infinite;
  }

  /* Allow users to stop motion (a11y-friendlier) */
  .div-partners .partners-track:hover,
  .div-partners .partners-track:focus-within {
    animation-play-state: paused;
  }

  /* The UL itself becomes a non-wrapping horizontal row */
  .div-partners .partners-track .elementor-icon-list-items {
    display: flex;
    flex-wrap: nowrap;              /* no line breaks */
    gap: 20px;                      /* spacing between logos */
    padding: 0;
    margin: 0;
  }

  /* Each logo item is a "slide" – keep them from shrinking too tiny */
  .div-partners .elementor-icon-list-item {
    flex: 0 0 auto;                 /* don't shrink */
    /* If you *really* want ~2 per view, uncomment this line: */
    /* flex-basis: 50%; */
    justify-content: center;
  }
}

/* Infinite horizontal loop:
   We duplicated the list, so shifting by -50% brings the clone
   into exactly the same position -> seamless loop. */
@keyframes partners-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Desktop & tablet: hide the cloned UL that we only need for the mobile marquee */
@media (min-width: 810px) {
  .div-partners .partners-track-clone {
    display: none !important;
  }
}





/* Make the partner loop carousel scroll smoothly & linearly */
/*.div-partner-loop .swiper-wrapper {
    transition-timing-function: linear !important;
}*/


/********** HOMEPAGE **********/

.logo-text-mobile {
  border-bottom: var(--border) solid currentColor;
}

.div-home-slider .elementor-slide-heading {
  /*width: 950px;*/
}

.div-home-slider .elementor-slide-heading,
.div-home-slider .elementor-slide-button {
  color: var(--text-color-alternative) !important;
  /*color: var(--text-color-alternative2) !important;*/
}

/* keep your existing positioning/sizing */
.div-home-slider .elementor-slide-button {
  position: absolute;
  top: 1.7em;
  right: 50px;
  padding: 0.2em 0 0 0;
  width: 9.5em;
  height: 1.5em;
  overflow: hidden;
}


/* --- 1) HIDE BUTTON WHEN SLIDE HAS NO LINK --- */

/* A slide WITHOUT a link always has:
   <div class="swiper-slide-inner">
*/
.div-home-slider .swiper-slide-inner:not(a) .elementor-slide-button {
  display: none !important;
}

/* A slide WITH a link has:
   <a class="swiper-slide-inner" href="...">
   but if href is empty: hide also
*/
.div-home-slider a.swiper-slide-inner[href=""],
.div-home-slider a.swiper-slide-inner[href="#"],
.div-home-slider a.swiper-slide-inner:not([href]) {
  pointer-events: none;
}

.div-home-slider a.swiper-slide-inner[href=""] .elementor-slide-button,
.div-home-slider a.swiper-slide-inner[href="#"] .elementor-slide-button,
.div-home-slider a.swiper-slide-inner:not([href]) .elementor-slide-button {
  display: none !important;
}


/* --- 2) ADD ARROW ONLY WHEN LINK EXISTS --- */


/*.div-home-slider .elementor-slide-button::after {*/
.div-home-slider a.swiper-slide-inner[href]:not([href=""]):not([href="#"]) 
  .elementor-slide-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;                   /* keep it on the right edge */
  width: 2.0em;               /* arrow box width — tweak */
  height: 100%;
  background-color: var(--text-color-alternative); /* <-- your color */
  -webkit-mask: url('/wp-content/uploads/2025/10/bulta-new.svg') center/contain no-repeat;
  mask: url('/wp-content/uploads/2025/10/bulta-new.svg') center/contain no-repeat;
  pointer-events: none;       /* click passes to the button */
}


@media (max-width: 1024px){
  .div-home-slider .elementor-slide-button {
    right: 27px;
  }
}



/***** The logo overlay that sits above the slides *****/

.slider-logo{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none; z-index: 50;
  transform: translateY(-4%);
}

/* Size the logo responsively */
.slider-logo .logo-svg {
  width: clamp(150px, 18vw, 420px) !important;
  height: auto;
  display: block;
}

/* Recolor */
.slider-logo .logo-svg .cls-1 {
  fill: var(--text-color-alternative) !important;
}

/* If you want the logo to be clickable, wrap it in <a>,
   then re-enable events only for the anchor: */
.slider-logo a { pointer-events: auto; }



/********** EXHIBITIONS **********/

/* Lazy load */
.exhibitions-year-placeholder { 
  padding: 1rem 50px; 
  opacity: .6; 
}
@media (max-width: 767px) {
  .exhibitions-year-placeholder { 
    padding: 1rem 20px;
  }
}
.year-lazy-box.is-loading { opacity: .7; transition: opacity .2s; }

.exhibitions-heading {
  font-size: var( --e-global-typography-d0bcb92-font-size );
  text-transform: var( --e-global-typography-d0bcb92-text-transform );
  padding: 13px var(--content-side-padding);
  margin: 0;
  background: var(--exh-heading-bgcolor);
}



/* Fallbacks */
:root {
  /* If you have this already set via JS elsewhere, this fallback is ignored */
  --headerH: 190px;
}

/* 1) Full-width stacking */
.exhibitions-grid { display: block; }
.exhibition-card  { 
  position: relative; 
  display: block;

    width: 100%;
  min-height: 80vh;          /* default */
  max-height: 90vh;          /* safety */
  overflow: hidden;
}

/* 2) Clickable area + image */
.exh-card {
  position: absolute;
  inset: 0;
  display: block;
}

.exh-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop instead of shrinking */
  object-position: center;
  display: block;
}

/*@media (min-width: 1024px) {
  .exh-card img {
    height: auto !important;
  }
}*/

/* 3) Black overlay on IMAGE only */
.exh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.45) 0%,   /* was .55 */
      rgba(0,0,0,0.25) 40%,  /* was .35 */
      rgba(0,0,0,0.12) 70%,  /* was .20 */
      rgba(0,0,0,0.05) 100%  /* was .10 */
    ),
    rgba(0,0,0,0.15);        /* was .25 */
  pointer-events: none;
  transition: opacity .25s ease;
}
.exh-card:hover::after { opacity: .95; }

/* 4) In-image text elements (use side padding var) */
.exh-badge-author,
.exh-cta,
.exh-title {
  position: absolute;
  z-index: 2;
  color: #fff;
}

/* Author (top-left, plain text) */

.exh-badge-author, .exh-cta {
  font-size: var( --e-global-typography-9fa93e5-font-size );
  text-transform: var( --e-global-typography-9fa93e5-text-transform );
  line-height: var(--lh-tight) !important;
}

.exh-badge-author, .exh-cta, .exh-title {
  /*color: var(--exh-text-color-alternative);*/
  color: var(--text-color-alternative) !important;
}

.exh-badge-author {
  top: var(--content-side-padding);
  left: var(--content-side-padding);
  /*padding: 6px 10px;*/
  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
}

.exh-badge-author { display: inline-block; }
.exh-badge-author .exh-sub {
  display: block;
  margin-top: 2px;
  font-size: 1.4rem;
  text-transform: lowercase;
  opacity: .95;
}

/* CTA (top-right) with masked arrow like your slider */
.exh-cta {
  top: var(--content-side-padding);
  right: var(--content-side-padding);
  display: inline-flex;
  align-items: center;
  padding: 6px 2.9em 6px 12px; /* space for arrow box */


  letter-spacing: .01em;
}

.exh-cta::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 2.0em; 
  height: 100%;
  /*background-color: var(--exh-text-color-alternative);*/
  background-color: var(--text-color-alternative);
  -webkit-mask: url('/wp-content/uploads/2025/10/bulta-new.svg') center/contain no-repeat;
          mask: url('/wp-content/uploads/2025/10/bulta-new.svg') center/contain no-repeat;
  pointer-events: none;
}

@media (max-width: 767px) {
  .exh-cta {
    display:none;
  }
}

/* Title (bottom-left) */
.exh-title {
  left: var(--content-side-padding);
  right: var(--content-side-padding);
  bottom: calc(var(--content-side-padding) + 1rem);
  margin: 0;
  font-size: var( --e-global-typography-a3ef4f8-font-size );
  font-weight: var( --e-global-typography-a3ef4f8-font-weight );
  text-transform: var( --e-global-typography-a3ef4f8-text-transform );
  line-height: var( --e-global-typography-a3ef4f8-line-height );
}

/* 6) HERO: first "Current" card fills the viewport (minus header) */
.div-exhibitions-page-all .exhibitions-current .exhibition-card:first-child {
  /*height: calc(100vh - var(--headerH));*/
  /*display: flex;*/
  align-items: stretch;
  min-height: 80vh;         /* full screen hero */
}
.exhibitions-current .exhibition-card:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* (Optional) mobile tweak: slightly smaller hero on small screens */

@media (max-width: 767px) {

  .home .exhibitions-current .exhibition-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home .exhibition-card, .home .exh-card {
    height: 42vh;
    min-height: 42vh;
  }

  .div-exhibitions-page-all .exhibitions-current .exhibition-card:first-child {
    min-height: 42vh;         /* full screen hero */
  }

  .exhibition-card  { 
    min-height: 42vh;          /* default */
    max-height: 42vh;          /* safety */
  }

}



/********** EXHIBITIONS DETAIL VIEW **********/

/* Header */
.exh-top { }
.exh-top__wrap {  }

.exh-top__author { 
  font-size: var( --e-global-typography-d0bcb92-font-size );
  text-transform: var( --e-global-typography-d0bcb92-text-transform );
}
.exh-top__title  {
  font-size: var( --e-global-typography-6170d28-font-size );
  font-weight: var(--e-global-typography-6170d28-font-weight);
  text-transform: var(--e-global-typography-6170d28-text-transform);
  margin: 0;
}
.exh-top__dates {
  font-size: var( --e-global-typography-d0bcb92-font-size );
  text-transform: var( --e-global-typography-d0bcb92-text-transform );
}
.exh-top__type {
  /*font-size: var( --e-global-typography-c349ffb-font-size );*/
  font-size: var( --e-global-typography-d0bcb92-font-size );
}
.exh-top__intro {  }

/* Content */

/*.div-exh-right-side {
  margin-top: ;
}*/

.div-exh-right-side figcaption {
  font-size: var( --e-global-typography-57cc804-font-size );
  font-style: unset;
  width: 300px;
  padding-top: 20px;
  padding-bottom: 45px;
  color: var(--text-color);
}

.div-post-content, .div-exh-right-side p {
  font-size: var( --e-global-typography-c349ffb-font-size );
}

.div-post-content blockquote {
  font-size: var( --e-global-typography-d0bcb92-font-size );
}

@media (min-width: 768px) {
  .div-exh-right-side img.is-portrait {
      width: 70%;
      max-width: 70%;
  }
}

.div-exh-right-side img {
    padding-bottom: 20px;
}


/********** PRESS RELEASES **********/

.press-releases { width: 100%; }

.press-releases__year {
  font-size: var( --e-global-typography-d0bcb92-font-size );
}

.press-releases__meta, .press-releases__download {
  font-size: var( --e-global-typography-e87a82c-font-size );
}

.press-releases__year, .press-releases__item {
  padding-left: 50px;
  padding-right: 50px;
}

.press-releases__item:hover {
  background: var(--e-global-color-secondary);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .press-releases__year, .press-releases__item {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 767px) {
  .press-releases__year, .press-releases__item {
    padding-left: 20px;
    padding-right: 20px;
  }

.press-releases__list { 
  margin: 0 0 61px !important;
 }

}

.press-releases__list { 
  /*margin: 0 0 3rem;*/
  margin: 0 0 55px;
  padding:0;
   list-style: none; 
 }

.press-releases__item-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-color) !important;
}

.press-releases__item-link:hover {
  /*color: var(--accent-hover-color) !important;*/
}

.press-releases__item:hover .press-releases__item-link {
  color: var(--accent-hover-color) !important;
}

.press-releases__item:first-child {
  border-top: var(--border) solid currentColor;
}

.press-releases__item:last-child {
  border-bottom: var(--border) solid currentColor;
}

.press-releases__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
  border-bottom: var(--border) solid currentColor;
}

@media (max-width: 767px) {
  .press-releases__item {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  .press-releases__download {
    justify-self: start; /* keep it left-aligned (optional: center) */
    margin-top: .3rem;
    display: inline-block;
  }
}

/*.press-releases__year-block:last-child .press-releases__item {
  border-bottom: none !important;
}*/

.press-releases__meta { 
  white-space: normal; 
  padding-right:50px;
}
.press-releases__title {
  text-transform: uppercase;
}
.press-releases__download { 
  text-decoration: underline;
}


/********** CONTACT **********/

@media (min-width: 1350px) {
  .bw-map {
    margin-left: -250px;
  }
}

@media (max-width: 767px) {
  .bw-map {
    margin: 43px 0 61px 0 !important;
  }
}

.bw-map-info {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}


/********** ABOUT US **********/

.wp-block-media-text__content p {
  margin-block-end:0;
}

/********** VIZIJA **********/
@media (max-width: 767px) {
  .img-stairs-logo-vizija {
    max-width: 60% !important;
    padding-bottom: 90px !important;
    padding-top: 20px !important;
  }
}