@import url("https://use.typekit.net/zkr5hrj.css");

/* ============================================================
   CUSTOM.CSS (fixed for YOOtheme Pro 5.x / Joomla 6)
   - Removes dependency on duplicate IDs for theme toggle
   - Stabilizes custom mobile burger toggle
   ============================================================ */


/* === Hide YOOtheme's default burger icon (scoped) === */
/* Was: .uk-navbar-toggle-icon svg {display:none} (too broad) */
.uk-navbar-toggle .uk-navbar-toggle-icon svg { display: none !important; }


/* === Toggle button container (mobile menu toggle) === */
/* Keep your original target, but fix positioning issues */
a.uk-navbar-toggle[href="#tm-dialog-mobile"] {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  box-sizing: content-box;
  cursor: pointer;
}

/* === Reset pseudo elements === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"] *,
a.uk-navbar-toggle[href="#tm-dialog-mobile"] *::before,
a.uk-navbar-toggle[href="#tm-dialog-mobile"] *::after {
  box-sizing: border-box;
  line-height: 0;
}

/* === Top line === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"]::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  background-color: currentColor;
  top: 36px;                 /* FIX: was 37px (outside 36px height) */
  left: 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* === Bottom line === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"]::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  background-color: currentColor;
  bottom: 36px;              /* FIX: was 37px (outside 36px height) */
  right: 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* === Middle line (used for dots) === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"] .uk-navbar-toggle-icon::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: currentColor;
  transition: all 0.3s ease;
}

/* === Hover state (only when CLOSED) === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"]:not([aria-expanded="true"]):hover .uk-navbar-toggle-icon::before {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background-color: currentColor;
  box-shadow: 10px 0 0 currentColor, 20px 0 0 currentColor;
}

/* Hide top and bottom lines on hover (only when CLOSED) */
a.uk-navbar-toggle[href="#tm-dialog-mobile"]:not([aria-expanded="true"]):hover::before,
a.uk-navbar-toggle[href="#tm-dialog-mobile"]:not([aria-expanded="true"]):hover::after {
  opacity: 0;
  transform: scaleX(0.5);
}

/* === OPEN STATE: Show centered X icon === */
a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::before,
a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::after {
  top: 51%;
  left: 50%;
  width: 26px;
  height: 2px;
  margin-left: -13px;
  transform-origin: center;
  position: absolute;
  opacity: 1;
  display: block;            /* FIX: was display:none (X could never show) */
}

/* Top bar → \ */
a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::before {
  transform: translateY(-50%) rotate(45deg);
}

/* Bottom bar → / */
a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* Hide middle line (dots) when open */
a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"] .uk-navbar-toggle-icon::before {
  opacity: 0;
  transform: scale(0);
  box-shadow: none;
}


/* Desktop spacing */
@media (min-width: 1170px) {
  .uk-navbar-nav > li > a { padding: 0 15px; }
  .uk-navbar-left, .uk-navbar-right, [class*=uk-navbar-center] { gap: 10px; }
}

/*****************************************/

html[data-theme='dark'] .dual { color: #f9f9f9 !important; }
.greet { background: rgba(0,148,67,0.69); }

.uk-navbar-container:not(.uk-navbar-transparent) {
  border-bottom: 1px solid #faebd7;
  box-shadow: 1px 1px 13px 1px rgba(0,0,0,.27);
}

/* You had a second rule that removed border-bottom; keep your intent */
.uk-navbar-container:not(.uk-navbar-transparent) { border-bottom: none; }

.noh { font-weight: 700; color: #009443; text-transform: none; }
.now { font-weight: 700; color: #fff; text-transform: none; }
.tw { color: #fff; }
.tg { color: #009443; }

a.n-link:link,
a.n-link:visited,
a.n-link:hover,
a.n-link:active { color: #fff; }

.green { color: #009443; }
.red { color: red; }
.grey { color: #55595d; }

.cadre_inner_alert_cookies { background-color: rgba(65,65,65,.85) !important; }

#cadre_alert_cookies a,
#cadre_alert_cookies a:focus,
#cadre_alert_cookies a:hover {
  color: #5bb5f3;
  text-decoration: none;
}

.uk-logo { padding: 0; }
.uk-article-meta { font-size: 12px; }

.navbar .nav > li > .dropdown-menu,
.uk-navbar-dropdown { padding: 0; }

.uk-checkbox:not(:disabled),
.uk-radio:not(:disabled),
input[type=checkbox]:not([class*=uk-]):not(:disabled),
input[type=radio]:not([class*=uk-]):not(:disabled) {
  margin-right: 10px;
  margin-top: 5px;
}

.uk-navbar-dropdown-nav .uk-nav-sub a:focus,
.uk-navbar-dropdown-nav .uk-nav-sub a:hover {
  color: #fff;
  background-color: rgba(255,255,255,.3);
}

.uk-navbar-dropdown-nav { text-align: center; }

.dazzlinks { color: #000; padding-bottom: 1px; border-bottom: 2px solid #009443; }
.bazzlinks { font-weight: 600; color: #000; border-bottom: 2px solid #009443; }
.author { font-size: 13px; }
.date { color: #efefef; }

.category-list { display: none !important; }
.tm-box-decoration-default::before { transform: translate(30px,-30px) !important; }

.uk-position-top {
  border-bottom: 1px solid gray;
  box-shadow: 0 10px 9px -6px rgba(0,0,0,0.45);
}

@media (max-width: 640px) {
  .uk-notification-message { padding: 10px; margin-bottom: 60px; }
}

@media only screen and (max-width: 500px) {
  .convertforms .cf-control-group { width: 100%; }
}

#cf_1 {
  font-family: 'Sansation' !important;
  font-weight: 400 !important;
  max-width: 100%;
}

div.mod-languages li { margin-left: 0; margin-right: 0; }
div.mod-languages ul { justify-content: center; }
div.mod-languages li:not(:first-child) { position: relative; }
div.mod-languages li { margin: 0; padding: 0; font-size: 13px; }
div.mod-languages li:active { font-weight: bold !important; }

.uk-navbar-item .uk-subnav > * > :first-child { font-size: 13px; }

.choices__inner { max-width: 500px !important; width: 500px !important; }
.choices__list--dropdown .choices__list { width: 265px !important; }
.choices__list--dropdown { max-width: 500px !important; width: 500px !important; }
.choices__list--dropdown .choices__list { max-width: 100% !important; width: 100% !important; }

@-moz-document url-prefix() {
  div.mod-languages li:not(:first-child)::before {
    content: "/";
    position: absolute;
    top: 9px;
    left: -3px;
    padding-left: 0;
    display: inline-block;
  }
}

#member-registration > fieldset:nth-child(3) { display: none; }
.cpnb-m-cookies-floatButton-icon-img { max-width: 70px; max-height: 70px; }

._access { bottom: 50% !important; }
._access-menu { bottom: 0 !important; }
._access-menu ul li {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
._access-menu ul li a {
  color: #1a1a1a !important;
  text-decoration: none;
  display: block;
}
._access-menu ul li a:hover,
._access-menu ul li a:focus {
  background-color: #f0f0f0 !important;
  color: #000000 !important;
  outline: 2px solid #000000;
}
._access-menu { transition-duration: 0s !important; }

/* Custom language selector - circular buttons */
.la-la-lang li { display: inline-block; margin: 0 5px; }
.la-la-lang a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #11804c;
  color: #11804c;
  border-radius: 50%;
  font-family: 'Sansation';
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.la-la-lang a:hover,
.la-la-lang .active > a {
  border: 1px solid #0b643a;
  color: #0b643a;
  transform: scale(1.02);
}
.la-la-lang li a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 34px;
  border: 1px solid #11804c;
  color: #11804c;
  border-radius: 12%;
  text-transform: lowercase;
  font-family: 'Sansation';
  font-size: 16px !important;
  font-weight: 800 !important;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.uk-light ::selection { background: #ffffff; color: #000000; }
.uk-card-primary { box-shadow: none !important; }
.uk-section-muted { border-top: 1px solid green; border-bottom: 1px solid green; }

.artsec { color: grey !important; }

/* === Scroll progress bar === */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 8px;
  background-color: #0F6F3F;
  z-index: 99999;
  pointer-events: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  opacity: 0;
  transition: width 0.05s linear, opacity 0.3s ease;
}
#scroll-progress-bar.visible { opacity: 1; }

/* Hide preloader if skipped */
.skip-preloader #preloader { display: none !important; }

/* === Preloader dark-mode support === */
html[data-theme="dark"] #preloader { background: #000 !important; }



/**** CUSTOM CURSOR ****/
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
}
.custom-cursor .outer-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 6px solid white;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}
.custom-cursor .inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease;
}
.custom-cursor.hover .outer-circle { opacity: 0; }
.custom-cursor.hover .inner-circle { transform: translate(-50%, -50%) scale(3); }

@media (pointer: coarse) {
  .uk-background-fixed { background-attachment: fixed; }
}

.uk-modal-close-full > svg:nth-child(1) { width: 22px !important; height: 22px !important; }
.uk-modal-close-full { top: 30px; right: 20px; }
#tm-dialog-mobile > div > button > svg { width: 18px !important; height: 18px !important; }
[class*="uk-modal-close-"] { position: absolute; z-index: 1010; top: 35px; right: 12px; }
#tm-dialog-mobile > div > div { padding: 10px 15px; }


/**** Dark Mode Styles Only *****/
html[data-theme='dark'] {
  --background-color: #0D0D0F;
  --text-color: #e5e5e5;
  background-color: var(--background-color);
  color: var(--text-color);
}

html[data-theme='dark'] a { color: #009443; }
html[data-theme='dark'] a:hover { color: #4ADE80; }
html[data-theme='dark'] .bazzlinks:hover { border-bottom: 2px solid #4ADE80; }

html[data-theme='dark'] .uk-section { background-color: var(--background-color); color: var(--text-color); }
html[data-theme='dark'] .uk-section-primary { background-color: #1A1C1F; }
html[data-theme='dark'] .uk-section-secondary,
html[data-theme='dark'] .uk-section-muted,
html[data-theme='dark'] .uk-tile-muted { background-color: #2c2c2c; }

html[data-theme='dark'] .greet { background-color: #2c2c2c !important; }
html[data-theme='dark'] .uk-navbar-container:not(.uk-navbar-transparent) { background-color: #0D0D0F; }
html[data-theme='dark'] .uk-navbar-nav > li > a { color: #ffffff; }

html[data-theme='dark'] .uk-navbar-dropdown { background-color: #0D0D0F !important; }
html[data-theme='dark'] .uk-navbar-dropdown-nav > li > a { color: #fff !important; }

html[data-theme='dark'] .uk-card { background-color: #2c2c2c; color: var(--text-color); border: 1px solid #333333; }
html[data-theme='dark'] .uk-card-primary { background: #1A1C1F !important; border: 1px solid #28A96B !important; color: #28A96B !important; }
html[data-theme='dark'] .uk-card-default { background: #2A2D31 !important; border: 1px solid #28A96B !important; color: #fff !important; }

html[data-theme='dark'] .uk-button-primary { border: 1px solid #4ADE80 !important; background: #0D0D0F !important; color: #4ADE80 !important; }
html[data-theme='dark'] .uk-card-secondary { border: 1px solid #fff !important; }

html[data-theme='dark'] .uk-text-primary { color: #E4E6EB !important; }
html[data-theme='dark'] .uk-text-secondary { color: #f9f9f9 !important; }
html[data-theme='dark'] .uk-text-meta { color: #C9CCD1 !important; }
html[data-theme='dark'] .artsec { color: #C9CCD1 !important; }
html[data-theme='dark'] .dual { color: #f9f9f9 !important; }
html[data-theme='dark'] .uk-text-muted { color: #C9CCD1 !important; }

html[data-theme='dark'] .uk-logo svg { fill: #ffffff; }
html[data-theme='dark'] .uk-list-striped > :nth-of-type(2n+1) { background: #2c2c2c; }

html[data-theme='dark'] .la-la-lang a:hover,
html[data-theme='dark'] .la-la-lang .active > a,
html[data-theme='dark'] .la-la-lang a,
html[data-theme='dark'] .la-la-lang li a { border: 1px solid #fff; color: #fff; }

html[data-theme='dark'] .uk-modal-dialog { background: #000 !important; }
html[data-theme='dark'] .uk-nav-default > li > a { color: #fff !important; }

/* Fixed burger in dark mode */
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"]::before,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"]::after,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"] .uk-navbar-toggle-icon::before {
  background-color: #fff !important;
  color: #fff !important;
}

html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"]:hover .uk-navbar-toggle-icon::before,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"]:hover::before,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"]:hover::after,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::before,
html[data-theme='dark'] a.uk-navbar-toggle[href="#tm-dialog-mobile"][aria-expanded="true"]::after {
  background-color: #fff !important;
  color: #fff !important;
}

html[data-theme='dark'] .uk-navbar-toggle {
  background: transparent !important;
  color: #fff !important;
}

html[data-theme='dark'] .uk-icon-button { background: #2c2c2c !important; color: #fff !important; }

/* Logo switching */
.uk-logo img:not(.uk-logo-inverse) { display: inline-block; }
.uk-logo img.uk-logo-inverse { display: none; }
html[data-theme="dark"] .uk-logo img:not(.uk-logo-inverse) { display: none; }
html[data-theme="dark"] .uk-logo img.uk-logo-inverse { display: inline-block; }

/* Toggle icons (UPDATED: uses class, not #theme-toggle) */
html[data-theme="light"] .theme-switcher svg { color: #000; }
html[data-theme="dark"] .theme-switcher svg { color: #fff; }

/**************************************/

.dual { color: #0f6f3f !important; }
.artsec { color: #4D4949 !important; }

/* Default visibility */
.dzlm { display: block; }
.dzdm { display: none; }

/* When dark mode is active */
html[data-theme='dark'] .dzlm { display: none; }
html[data-theme='dark'] .dzdm { display: block; }

.uk-subnav > * > :first-child { color: #11804c !important; }

div.mod-languages ul {
  justify-content: center;
  margin-left: 1px !important;
}