/*
 * DT Custom Header Styles
 * Mirrors the Next.js/React header — utility stripe, sticky header,
 * slide-out telescope sidebar, account card, CTAs.
 *
 * Design tokens match the edumint theme (--main-color: #c8b1e4, heading: #2f184b).
 */

/* ── Google Font (Cinzel) for logo text ──────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');

/* ── Fix position:sticky ─────────────────────────────────────── */
/* The theme sets overflow-x:hidden on html+body which creates a scroll
 * container and silently breaks position:sticky. overflow-x:clip has the
 * same visual effect but does NOT form a scroll container. */
html, body { overflow-x: clip; }

/* ── Fix excessive section padding on all inner pages ────────── */
/* The theme's pd-top/bottom utility classes were designed for the
 * full-screen Elementor landing page. On inner pages (page.php,
 * single.php, archive.php, etc.) they create large dead zones.
 * We scope the reduction to .site-content so the front-page hero
 * sections are unaffected. On Elementor pages the outer blog-area
 * wrapper (page.php) is zeroed so only widget-level padding applies. */
.elementor-page .site-content .blog-area { padding-top: 0 !important; }

/* ── Fix newsletter widget overlapping footer ─────────────────── */
/* The edumint-news-letter-widget is configured in Elementor with a
 * margin-bottom: -170px to "float" the CTA into the footer.
 * Our footer only has 90px padding-top, leaving 80px of overlap.
 * Reset the negative margin so the widget sits normally above footer. */
.elementor-widget-edumint-news-letter-widget > .elementor-widget-container {
  margin-bottom: 0 !important;
}

/* ── Tutor LMS course nav sticky offset ───────────────────────── */
/* tutor.min.css sets .tutor-is-sticky { top: 0 } which makes the
 * course tab nav (Informacije / Recenzije / …) slide under the fixed
 * site header. Override to push it down by our header height.
 * The sidebar widget has the same problem (top: 50px in tutor-front). */
/* Tutor course sticky nav: position below the site header.
 * --dt-header-rendered-h is the real measured px height (set each rAF by JS).
 * z-index is deliberately set BELOW the header (100) so that when the nav's
 * containing block ends at the bottom of the page and CSS pushes the sticky
 * element upward, the header always paints on top — no visible overlap. */
.tutor-course-details-page .tutor-course-details-tab .tutor-is-sticky {
  z-index: 99 !important;
}
@media (min-width: 800px) {
  .tutor-course-details-page .tutor-course-details-tab .tutor-is-sticky {
    top: var(--dt-header-rendered-h, 80px) !important;
  }
  .tutor-single-course-sidebar.tutor-sidebar-sticky {
    top: calc(var(--dt-header-rendered-h, 80px) + 16px) !important;
  }
}
/* When admin bar is present add its height on top */
.admin-bar .tutor-course-details-tab .tutor-is-sticky {
  top: calc(var(--dt-header-rendered-h, 80px) + 32px) !important;
}
.admin-bar .tutor-single-course-sidebar.tutor-sidebar-sticky {
  top: calc(var(--dt-header-rendered-h, 80px) + 32px + 16px) !important;
}

/* ── Fix 120px padding on Tutor LMS page wrappers ─────────────── */
/* The theme hardcodes padding-top/bottom:120px on all three tutor
 * page wrapper classes. Reduce to match inner-page rhythm.        */
.site-content .tutor-wrap,
.site-content .tutor-courses-wrap,
.site-content .tutor-page-wrap {
  padding-top:    32px !important;
  padding-bottom: 48px !important;
}

.site-content .pd-top-60  { padding-top:  32px !important; }
.site-content .pd-top-80  { padding-top:  40px !important; }
.site-content .pd-top-90  { padding-top:  44px !important; }
.site-content .pd-top-100 { padding-top:  48px !important; }
.site-content .pd-top-110 { padding-top:  48px !important; }
.site-content .pd-top-120 { padding-top:  48px !important; }
.site-content .pd-top-135 { padding-top:  56px !important; }
.site-content .pd-top-140 { padding-top:  56px !important; }
.site-content .pd-top-150 { padding-top:  64px !important; }
.site-content .pd-top-280 { padding-top:  80px !important; }
.site-content .pd-bottom-70  { padding-bottom: 36px !important; }
.site-content .pd-bottom-90  { padding-bottom: 44px !important; }
.site-content .pd-bottom-100 { padding-bottom: 48px !important; }
.site-content .pd-bottom-110 { padding-bottom: 48px !important; }
.site-content .pd-bottom-120 { padding-bottom: 56px !important; }
.site-content .pd-bottom-150 { padding-bottom: 64px !important; }


/* ── Override Elementor's prefers-reduced-motion blanket kill ──── */
/* Elementor frontend.css sets html * { transition-duration:0s!important }
 * when prefers-reduced-motion:reduce is active. We explicitly restore
 * transitions on our header elements so the sidebar animation works.  */
@media (prefers-reduced-motion: reduce) {
  /* Restore header/sidebar transitions */
  .dt-sidebar,
  .dt-sidebar-backdrop,
  .dt-sidebar-child,
  .dt-sidebar-primary,
  .dt-child-link,
  .dt-child-action-btn,
  .dt-nav-list > li,
  .dt-nav-link,
  .dt-nav-btn,
  .dt-header,
  .dt-header-inner,
  .dt-logo-img,
  .dt-logo-tagline,
  .dt-menu-toggle {
    transition-duration: revert !important;
    transition-delay: revert !important;
  }

  /* Restore Elementor entrance animations on all sections/widgets.
   * Elementor kills them with .animated{animation:none!important} and
   * leaves .elementor-invisible (visibility:hidden) permanently. */
  .animated {
    animation: revert !important;
  }
  .elementor-invisible {
    visibility: visible !important;
  }
  html * {
    transition-duration: revert !important;
    transition-delay: revert !important;
  }
}

/* ── Remove spurious top-padding from site-content ────────────── */
/* The theme added padding-top:100px to compensate for its original fixed header.
 * Our header is position:sticky (in flow), so that gap is now dead whitespace. */
.site-content { padding-top: 0 !important; }

/* ── Hero banner: header + banner fill 100vh ─────────────────── */
/* --dt-header-h keeps this in sync with the header token above.  */
.banner-area-1 {
  min-height: calc(100vh - var(--dt-header-h));
  display: flex !important;
  align-items: center;
  padding: var(--dt-header-h) 0 60px !important; /* top matches header height */
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .banner-area-1 {
    min-height: calc(100vh - var(--dt-header-h) - 36px); /* + utility stripe */
  }
}
.banner-area-1 > .container {
  width: 100%;
}

/* ── Tokens — mirrors frontend/src/app/globals.css design system ───── */
/* References Edumint theme CSS vars (set in assets/css/style.css :root)     *
 * so header colours always track the active theme palette.                  */
:root {
  --dt-primary:     var(--heading-color,   #2f184b);
  --dt-child-bg:    #3c1f5e;
  --dt-accent:      var(--main-color,      #c8b1e4);
  --dt-border:      #e2dde8;
  --dt-bg-alt:      #f5f3f8;
  --dt-heading:     var(--heading-color,   #2f184b);
  --dt-text:        var(--paragraph-color, #424242);
  --dt-sidebar-w:   352px;
  --dt-child-w:     256px;
  /* Header height token — used by banner calc to stay in sync */
  --dt-header-h:    64px;  /* mobile default */
}
@media (min-width: 640px) {
  :root { --dt-header-h: 80px; }
}

/* ── Utility stripe ──────────────────────────────────────────── */
.dt-utility-stripe {
  display: none;
  background: var(--dt-primary);
}
@media (min-width: 1024px) {
  .dt-utility-stripe { display: block; }
}
.dt-utility-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dt-utility-email {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.dt-utility-email:hover { color: var(--dt-accent); }
.dt-utility-right { display: flex; align-items: center; gap: 2px; }
.dt-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.dt-social-link:hover {
  background: rgba(255,255,255,.1);
  color: var(--dt-accent);
}

/* ── Main header ─────────────────────────────────────────────── */
/* --scroll-p (0→1) is set every rAF frame by dt-header.js lerp.
 * calc() maps it directly to each visual property — frame-perfect
 * continuous animation, zero CSS transition lag, zero class snap. */
.dt-header {
  --scroll-p: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--dt-header-h); /* fixed layout height — stops hero reflowing on shrink */
  overflow: hidden;           /* inner element shrinks within this fixed box */
  background: rgba(255,255,255, calc(var(--scroll-p) * .97));
  backdrop-filter: blur(calc(var(--scroll-p) * 14px));
  -webkit-backdrop-filter: blur(calc(var(--scroll-p) * 14px));
  border-bottom: 1px solid rgba(226,221,232, var(--scroll-p));
  box-shadow: 0 6px 24px rgba(47,24,75, calc(var(--scroll-p) * .09));
}
/* is-scrolled kept only for discrete JS hooks; visuals are driven by --scroll-p */
.dt-header-inner {
  max-width: 1170px; /* matches .container hero width */
  margin: 0 auto;
  padding: 0 15px;
  height: calc(var(--dt-header-h) - var(--scroll-p) * 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Logo ────────────────────────────────────────────────────── */
.dt-logo-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.dt-logo-img {
  width:  calc(56px - var(--scroll-p, 0) * 12px);
  height: calc(56px - var(--scroll-p, 0) * 12px);
  object-fit: contain;
  transition: transform .3s;
}
.dt-logo-link:hover .dt-logo-img { transform: scale(1.05); }
.dt-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.dt-logo-name {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .125em;
  color: var(--dt-heading);
}
.dt-logo-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #999;
  overflow: hidden;
  /* Fades and collapses continuously with scroll */
  max-height:  calc((1 - var(--scroll-p, 0)) * 1.4rem);
  margin-top:  calc((1 - var(--scroll-p, 0)) * .1rem);
  opacity:     calc(1 - min(1, var(--scroll-p, 0) * 2.5));
}

/* ── Mobile logo adjustments ─────────────────────────────────── */
/* On mobile the tagline wastes space — hide it unconditionally.  */
@media (max-width: 639px) {
  .dt-logo-tagline {
    display: none !important;
  }
  .dt-logo-name {
    font-size: 14px;
    letter-spacing: .08em;
  }
}
/* On very small screens keep only the logo image */
@media (max-width: 359px) {
  .dt-logo-text { display: none !important; }
  .dt-logo-link  { gap: 0; }
}
/* ── Mobile search: fixed full-width overlay over entire header ── */
/* position:fixed anchors to the viewport so nesting inside a flex  *
 * child doesn't clip the element — the overlay always covers the   *
 * whole header regardless of DOM depth.                            */
@media (max-width: 639px) {
  .dt-search-wrap.is-open {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--dt-header-h, 64px);
    width: 100% !important;
    z-index: 200;
    /* Flat background for the outer bar */
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--dt-border) !important;
    background: #fff !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(47,24,75,.10);
    overflow: visible !important;
  }
  /* Pill wrapper around the input — matches desktop oval shape */
  .dt-search-wrap.is-open .dt-search-form {
    display: flex !important;
    flex: 1;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--dt-heading);
    background: var(--dt-bg-alt);
    overflow: hidden;
    height: 40px;
    padding: 0 4px 0 16px;
  }
  .dt-search-wrap.is-open .dt-search-input {
    font-size: 15px;
    padding: 0;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
  }
  /* Offset for WP admin bar */
  body.admin-bar .dt-search-wrap.is-open { top: 46px; }
  @media screen and (min-width: 783px) {
    body.admin-bar .dt-search-wrap.is-open { top: 32px; }
  }
  /* Close button stays outside the pill */
  .dt-search-wrap.is-open .dt-search-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  /* On mobile the dropdown should be full-width below the fixed header bar */
  .dt-search-results {
    position: fixed;
    top: var(--dt-header-h, 64px);
    left: 0;
    right: 0;
    border-radius: 0 0 14px 14px;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* ── Controls row ────────────────────────────────────────────── */
.dt-header-controls { display: flex; align-items: center; gap: 8px; }
.dt-header-divider {
  display: none;
  width: 1px; height: 24px;
  background: var(--dt-border);
}
@media (min-width: 640px) { .dt-header-divider { display: block; } }

/* ── Search ──────────────────────────────────────────────────── */
.dt-search-wrap {
  display: flex; align-items: center;
  overflow: visible;          /* allow dropdown to escape */
  border-radius: 9999px;
  border: 1px solid transparent;
  width: 36px;
  position: relative;         /* anchor for the dropdown */
  transition: width .3s, border-color .3s, background .3s;
}
.dt-search-wrap.is-open {
  width: 420px;
  border-color: var(--dt-heading);
  background: var(--dt-bg-alt);
  overflow: visible;
}
.dt-search-form { flex: 1; display: none; }
.dt-search-wrap.is-open .dt-search-form { display: flex; }
.dt-search-input {
  flex: 1; width: 100%;
  background: transparent; border: none; outline: none;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  color: var(--dt-heading);
}
.dt-search-input::placeholder { color: #aaa; }
/* Hide browser-native clear (×) button on search inputs */
.dt-search-input::-webkit-search-cancel-button,
.dt-search-input::-webkit-search-decoration { display: none; }
.dt-search-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: none;
  background: transparent; cursor: pointer;
  color: rgba(47,24,75,.6);
  transition: background .2s, color .2s;
}
.dt-search-btn:hover {
  background: var(--dt-bg-alt);
  color: var(--dt-heading);
}
.dt-icon-close { display: none; }
.dt-search-wrap.is-open .dt-icon-search { display: none; }
.dt-search-wrap.is-open .dt-icon-close  { display: block; }

/* ── Search results overlay ──────────────────────────────────── */
.dt-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid rgba(47,24,75,.10);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(47,24,75,.13);
  overflow: hidden;
  z-index: 9999;
  /* Animate in */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.dt-search-results:not([hidden]) {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Loading shimmer row */
.dt-search-shimmer {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(47,24,75,.05);
}
.dt-search-shimmer-thumb {
  width: 48px; height: 36px; border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: dt-shimmer 1.2s infinite;
  flex-shrink: 0;
}
.dt-search-shimmer-lines { flex: 1; }
.dt-search-shimmer-line {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: dt-shimmer 1.2s infinite;
  margin-bottom: 6px;
}
.dt-search-shimmer-line:last-child { width: 60%; margin-bottom: 0; }
@keyframes dt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Result item */
.dt-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--dt-heading);
  border-bottom: 1px solid rgba(47,24,75,.05);
  transition: background .15s;
}
.dt-search-item:last-child { border-bottom: none; }
.dt-search-item:hover,
.dt-search-item:focus,
.dt-search-item[aria-selected="true"] {
  background: rgba(200,177,228,.12);
  outline: none;
}
.dt-search-thumb {
  width: 52px; height: 38px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
  background: var(--dt-bg-alt);
  display: block;
}
.dt-search-thumb-placeholder {
  width: 52px; height: 38px; border-radius: 6px;
  background: var(--dt-bg-alt);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(47,24,75,.25);
}
.dt-search-meta { flex: 1; min-width: 0; }
.dt-search-label {
  font-size: 10px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dt-primary, #c8b1e4);
  display: block; margin-bottom: 2px;
}
.dt-search-name {
  font-size: 13px; font-weight: 500;
  color: var(--dt-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Empty state */
.dt-search-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(47,24,75,.45);
}
/* "See all results" footer link */
.dt-search-all {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px; font-weight: 600;
  color: var(--dt-primary, #c8b1e4);
  border-top: 1px solid rgba(47,24,75,.07);
  text-decoration: none;
  transition: background .15s;
}
.dt-search-all:hover { background: rgba(200,177,228,.08); }

/* ── Menu toggle button ──────────────────────────────────────── */
.dt-menu-toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px;
  border-radius: 12px;
  /* Fades in with scroll — transparent over hero, solid when scrolled */
  border: 1px solid rgba(226,221,232, var(--scroll-p, 0));
  background: rgba(255,255,255, var(--scroll-p, 0));
  cursor: pointer;
  color: var(--dt-heading);
  position: relative; overflow: hidden;
  z-index: 0;
  transition: border-color .25s, color .25s;
}
/* The sweeping fill — matches the theme’s .btn::after behaviour */
.dt-menu-toggle::after {
  content: '';
  position: absolute;
  inset: 0; left: -35%;
  width: 0; height: 100%;
  background: var(--dt-primary);
  transform: skew(30deg);
  transform-origin: top left;
  transition: width .55s cubic-bezier(.22,1,.36,1);
  z-index: -1;
}
.dt-menu-toggle:hover::after  { width: 135%; }
.dt-menu-toggle:hover {
  border-color: var(--dt-primary);
  color: #fff;
}
.dt-menu-toggle:hover .dt-toggle-label-sub { color: rgba(255,255,255,.7); }
.dt-menu-toggle:hover .dt-toggle-avatar { border-color: rgba(255,255,255,.3); }
.dt-menu-toggle:hover .dt-toggle-status { border-color: var(--dt-primary); }
/* Keep the guest user-icon visible on hover — avatar circle goes dark so
 * white icon is readable, but we set it explicitly to avoid the flip */
.dt-toggle-avatar svg {
  color: var(--dt-heading);
  transition: color .25s;
}
.dt-menu-toggle:hover .dt-toggle-avatar {
  background: rgba(255,255,255,.15);
}
.dt-menu-toggle:hover .dt-toggle-avatar svg {
  color: #fff;
}
/* Avatar bubble */
.dt-toggle-avatar {
  position: relative;
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--dt-border);
  background: #fff; overflow: hidden;
}
.dt-toggle-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.dt-toggle-initials { font-size: 11px; font-weight: 600; color: var(--dt-heading); }
.dt-toggle-status {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; background: #bbbbc0;
}
.dt-toggle-status.is-online { background: #34d399; }
/* Label text (hidden on small screens) */
.dt-toggle-label {
  display: none; flex-direction: column; align-items: flex-start;
  min-width: 0; flex: 1;
}
@media (min-width: 640px) { .dt-toggle-label { display: flex; } }
.dt-toggle-label-sub {
  font-size: 11px; font-weight: 600; color: var(--dt-heading);
  max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .3s;
}
/* Hamburger lines */
.dt-hamburger { display: flex; flex-direction: column; gap: 5px; }
.dt-hamburger span {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: width .2s;
}
.dt-hamburger span:nth-child(1) { width: 20px; }
.dt-hamburger span:nth-child(2) { width: 14px; }
.dt-hamburger span:nth-child(3) { width: 20px; }
.dt-menu-toggle:hover .dt-hamburger span:nth-child(2) { width: 20px; }

/* ── Backdrop ────────────────────────────────────────────────── */
.dt-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .65s cubic-bezier(.22,1,.36,1);
}
.dt-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── Sidebar shell ───────────────────────────────────────────── */
.dt-sidebar {
  position: fixed; top: 0; right: 0;
  height: 100vh;
  z-index: 100001;
  display: flex; flex-direction: row-reverse;
  transform: translateX(100%);
  will-change: transform;
  transition: transform .72s cubic-bezier(.22,1,.36,1);
}
@supports (height: 100dvh) { .dt-sidebar { height: 100dvh; } }
.dt-sidebar.is-open { transform: translateX(0); }

/* ── WP Admin Bar offsets ────────────────────────────────────── */
body.admin-bar .dt-header {
  top: 32px;
}
body.admin-bar .dt-sidebar,
body.admin-bar .dt-sidebar-backdrop {
  top: 32px;
}
body.admin-bar .dt-sidebar {
  height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .dt-header { top: 46px; }
  body.admin-bar .dt-sidebar,
  body.admin-bar .dt-sidebar-backdrop { top: 46px; }
  body.admin-bar .dt-sidebar { height: calc(100vh - 46px); }
}

/* Primary column */
.dt-sidebar-primary {
  width: var(--dt-sidebar-w); flex-shrink: 0;
  background: var(--dt-primary);
  height: 100%; display: flex; flex-direction: column;
  overflow-y: auto;
}
@media (max-width: 480px) { .dt-sidebar-primary { width: 100vw; } }

/* Child panel */
.dt-sidebar-child {
  overflow: hidden; width: 0; height: 100%;
  background: var(--dt-child-bg);
  transition: width .65s cubic-bezier(.22,1,.36,1);
}
.dt-sidebar-child.is-open { width: var(--dt-child-w); }

.dt-child-inner {
  width: var(--dt-child-w); height: 100%;
  display: flex; flex-direction: column;
}

/* ── Mobile: child panel slides over primary as a full overlay ── */
@media (max-width: 480px) {
  /* Make sidebar a positioning context */
  .dt-sidebar { position: fixed; overflow: hidden; }
  /* Child panel becomes an absolute overlay instead of side-by-side */
  .dt-sidebar-child {
    position: absolute; inset: 0;
    width: 100% !important;       /* override is-open width */
    transform: translateX(100%);
    transition: transform .65s cubic-bezier(.22,1,.36,1);
  }
  .dt-sidebar-child.is-open {
    width: 100% !important;
    transform: translateX(0);
  }
  .dt-child-inner {
    width: 100%;
  }
}

/* Sidebar head */
.dt-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
  padding: 24px 28px; flex-shrink: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.dt-sidebar-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.dt-sidebar-logo-img {
  width: 36px; height: 36px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.dt-sidebar-logo-name {
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; color: #fff;
}
.dt-sidebar-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: transparent; cursor: pointer;
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s;
}
.dt-sidebar-close:hover { border-color: rgba(255,255,255,.3); color: #fff; }

/* Nav section */
.dt-sidebar-nav-wrap { padding: 16px 16px 0; flex: 1; min-height: 0; }
.dt-sidebar-nav-label {
  padding: 0 12px 12px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .24em;
  color: rgba(255,255,255,.35);
}
/* Reset wp_nav_menu default styles */
.dt-nav-list,
.dt-nav-list ul { list-style: none; margin: 0; padding: 0; }
.dt-nav-list > li { margin-bottom: 3px; }
/* Hide sub-menus — child panel handles them */
.dt-nav-list .sub-menu { display: none !important; }

/* ── Stagger: items slide in from right on sidebar open ──────── */
.dt-nav-list > li {
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity  .32s cubic-bezier(.22,1,.36,1),
    transform .32s cubic-bezier(.22,1,.36,1);
}
/* Instant reset when sidebar closes so re-open animates fresh */
.dt-sidebar:not(.is-open) .dt-nav-list > li { transition: none; }

.dt-sidebar.is-open .dt-nav-list > li                { opacity: 1; transform: none; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(1)   { transition-delay:  55ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(2)   { transition-delay:  95ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(3)   { transition-delay: 135ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(4)   { transition-delay: 175ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(5)   { transition-delay: 215ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(6)   { transition-delay: 255ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(7)   { transition-delay: 295ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(8)   { transition-delay: 335ms; }
.dt-sidebar.is-open .dt-nav-list > li:nth-child(n+9) { transition-delay: 370ms; }

/* Nav links / buttons (styled by JS, base styles here) */
.dt-nav-link,
.dt-nav-btn {
  display: grid;
  grid-template-columns: 0.625rem 1fr auto;
  align-items: center; gap: 14px;
  width: 100%; padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  text-align: left; text-decoration: none;
  color: rgba(255,255,255,.68);
  border: 1px solid transparent;
  background: transparent; cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, transform .2s;
}
/* Keep visited links the same colour as unvisited — prevents browser default dark */
.dt-sidebar .dt-nav-link,
.dt-sidebar .dt-nav-btn,
.dt-sidebar .dt-nav-link:link,
.dt-sidebar .dt-nav-link:visited,
.dt-sidebar .dt-nav-link:active,
.dt-sidebar .dt-nav-link:focus,
.dt-sidebar .dt-nav-btn:visited,
.dt-sidebar .dt-nav-btn:active,
.dt-sidebar .dt-nav-btn:focus {
  color: rgba(255,255,255,.68);
  outline: none;
}
.dt-nav-link:hover, .dt-nav-btn:hover,
.dt-sidebar .dt-nav-link:visited:hover,
.dt-sidebar .dt-nav-btn:visited:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.10);
  color: #fff;
  transform: translateX(-3px);
}
/* Press feedback */
.dt-nav-link:active, .dt-nav-btn:active {
  transform: scale(.97) translateX(-2px);
  background: rgba(200,177,228,.18);
  color: var(--dt-accent);
  transition-duration: .1s;
}
.dt-nav-link.current-menu-item,
.dt-nav-btn.is-active {
  color: var(--dt-accent);
  background: rgba(200,177,228,.13);
  border-color: rgba(200,177,228,.26);
}
/* Expanded parent item */
.dt-nav-btn[aria-expanded="true"] {
  background: rgba(200,177,228,.15);
  border-color: rgba(200,177,228,.28);
  color: var(--dt-accent);
}
.dt-nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dt-accent);
  opacity: 0; transform: scale(0);
  transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.dt-nav-link.current-menu-item .dt-nav-dot,
.dt-nav-btn.is-active .dt-nav-dot,
.dt-nav-btn[aria-expanded="true"] .dt-nav-dot { opacity: 1; transform: scale(1); }
.dt-nav-arrow {
  color: rgba(255,255,255,.25);
  transition: color .22s, transform .25s cubic-bezier(.22,1,.36,1);
  flex-shrink: 0;
}
.dt-nav-btn[aria-expanded="true"] .dt-nav-arrow {
  color: var(--dt-accent);
  transform: translateX(-4px);
}
.dt-nav-spacer { width: 14px; height: 14px; }

/* ── Child panel internals ───────────────────────────────────── */
.dt-child-header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
  padding: 24px 28px; flex-shrink: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.dt-child-title {
  font-size: 16px; font-weight: 700; color: #fff;
  font-family: 'Besley', Georgia, serif;
}
.dt-child-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: transparent; cursor: pointer;
  color: rgba(255,255,255,.5);
  transition: border-color .2s, color .2s;
}
.dt-child-close:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.dt-child-nav { flex: 1; padding: 16px; }
/* Child links / action buttons injected by JS */
.dt-child-link,
.dt-child-action-btn {
  display: grid; grid-template-columns: 1rem 1fr;
  align-items: center; gap: 16px;
  width: 100%; padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent; cursor: pointer; text-align: left;
  /* Start invisible — stagger-in when child panel opens */
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s cubic-bezier(.22,1,.36,1),
              transform .3s cubic-bezier(.22,1,.36,1),
              background .2s, color .2s, border-color .2s;
  margin-bottom: 4px;
}
/* Prevent browser default dark visited/active/focus color on child links */
.dt-sidebar-child .dt-child-link:link,
.dt-sidebar-child .dt-child-link:visited,
.dt-sidebar-child .dt-child-link:active,
.dt-sidebar-child .dt-child-link:focus {
  color: rgba(255,255,255,.62);
  outline: none;
}
/* Reveal items after panel has opened (.48s slide + stagger delay) */
.dt-sidebar-child.is-open .dt-child-link,
.dt-sidebar-child.is-open .dt-child-action-btn {
  opacity: 1;
  transform: none;
}
.dt-sidebar-child.is-open .dt-child-nav > :nth-child(1) { transition-delay: 60ms; }
.dt-sidebar-child.is-open .dt-child-nav > :nth-child(2) { transition-delay: 110ms; }
.dt-sidebar-child.is-open .dt-child-nav > :nth-child(3) { transition-delay: 155ms; }
.dt-sidebar-child.is-open .dt-child-nav > :nth-child(4) { transition-delay: 195ms; }
.dt-sidebar-child.is-open .dt-child-nav > :nth-child(n+5) { transition-delay: 230ms; }
.dt-child-link:hover,
.dt-child-action-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(-2px);
}
.dt-child-link:active,
.dt-child-action-btn:active {
  transform: scale(.97);
  background: rgba(200,177,228,.18);
  color: var(--dt-accent);
  transition-duration: .1s;
}
.dt-child-link.is-active {
  color: var(--dt-accent);
  background: rgba(200,177,228,.12);
  border-color: rgba(200,177,228,.22);
}
.dt-child-marker { display: block; border-radius: 50%; }
.dt-child-link.is-active .dt-child-marker {
  width: 6px; height: 6px; background: var(--dt-accent);
}
.dt-child-link:not(.is-active) .dt-child-marker,
.dt-child-action-btn .dt-child-marker {
  width: 16px; height: 1px; border-radius: 0;
  background: rgba(255,255,255,.25);
}

/* ── Account card ────────────────────────────────────────────── */
.dt-sidebar-account {
  padding: 16px; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: auto;
}
.dt-account-card {
  width: 100%; padding: 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.dt-account-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.dt-account-card[aria-expanded="true"] {
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.09);
}
.dt-account-avatar {
  position: relative;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
}
.dt-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dt-account-initials { font-size: 14px; font-weight: 600; color: #fff; }
.dt-account-status {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #34d399; border: 2px solid var(--dt-primary);
}
.dt-account-info { flex: 1; min-width: 0; }
.dt-account-label {
  display: block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: rgba(255,255,255,.35);
}
.dt-account-name {
  display: block; font-size: 15px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dt-account-email {
  display: block; font-size: 12px;
  color: rgba(255,255,255,.45);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dt-account-arrow { color: rgba(255,255,255,.3); flex-shrink: 0; }
.dt-account-card[aria-expanded="true"] .dt-account-arrow { color: var(--dt-accent); }

/* ── Login / Register CTAs ───────────────────────────────────── */
.dt-sidebar-ctas {
  padding: 16px; flex-shrink: 0; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-direction: column; gap: 12px;
}
.dt-btn-register,
.dt-btn-login {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; border-radius: 16px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, border-color .2s;
}
.dt-btn-register { background: var(--dt-accent); color: var(--dt-primary); }
.dt-btn-register:hover { opacity: .9; color: var(--dt-primary); }
.dt-btn-login {
  border: 1px solid rgba(255,255,255,.20); color: #fff;
}
.dt-btn-login:hover { border-color: rgba(255,255,255,.40); color: #fff; }

/* ── Body scroll lock ────────────────────────────────────────── */
/* Use overflow-y:hidden not overflow:hidden — the shorthand overrides
 * our overflow-x:clip and can clip position:fixed elements in some browsers */
body.dt-sidebar-open { overflow-y: hidden; }

/* ── Lesson page: Take Note button above Botpress FAB on mobile ── */
/* Tutor Pro fixes #tutor-lesson-nav-take-note-btn at bottom:16px right:16px
 * on ≤768px — same corner as the Botpress chat FAB (~60px tall).
 * Push Take Note up so the two icons don't overlap. */
@media screen and (max-width: 768px) {
  .single-lesson #tutor-lesson-nav-take-note-btn {
    bottom: 100px; /* Botpress FAB: 4rem(64px) + 1.5rem(24px) offset + 12px gap */
  }
}

/* ════════════════════════════════════════════════════════════
   Contact page  (/kontakt · body.page-id-48)
   Fixes alignment for edumint-Funfact-widget and
   edumint-contact-form-widget that cannot be edited in Elementor.
   ════════════════════════════════════════════════════════════ */

/* 1 ── Reduce the huge built-in 120px / 90px padding ──────── */
.page-id-48 .contact-list.pd-top-120    { padding-top:    60px; }
.page-id-48 .contact-list.pd-bottom-90 { padding-bottom: 40px; }

/* 2 ── Equal-height contact cards ─────────────────────────── */
/* Bootstrap row is already flex; make each col a flex child
   so contact-list-inner can stretch to 100 % of the tallest card. */
.page-id-48 .contact-list .col-lg-4 {
  display: flex;
}
.page-id-48 .contact-list-inner {
  display:        flex;
  align-items:    center;   /* icon + text vertically centred */
  width:          100%;
  margin-bottom:  0;        /* gap handled by the row below   */
}

/* Restore vertical gap between cards */
.page-id-48 .contact-list .row {
  row-gap: 24px;
}

/* 3 ── Info column / form column vertical alignment ────────── */
/* Bootstrap's default align-items: flex-start means the left
   info block won't stretch with the taller form. Centre both. */
.page-id-48 .counter-area .row {
  align-items: flex-start;
}

/* 4 ── Consistent form inputs ──────────────────────────────── */
.page-id-48 .single-input-inner {
  margin-bottom: 20px;
}
.page-id-48 .single-input-inner input,
.page-id-48 .single-input-inner textarea {
  width:         100%;
  border-radius: 6px;
  border:        1px solid #dde2ec;
  padding:       12px 16px;
  font-size:     15px;
  transition:    border-color .2s;
  background:    #fff;
}
.page-id-48 .single-input-inner input:focus,
.page-id-48 .single-input-inner textarea:focus {
  border-color: var(--main-color);
  outline:      none;
  box-shadow:   0 0 0 3px rgba(200,177,228,.25);
}
.page-id-48 .single-input-inner textarea {
  min-height: 140px;
  resize:     vertical;
}

/* 5 ── Submit button full-width on small screens ───────────── */
@media (max-width: 575px) {
  .page-id-48 .wpcf7-form .btn-base {
    width: 100%;
  }
}

/* ── My Courses widget: hide wrapper + parent column for guests ────────── */
body:not(.logged-in) .elementor-widget-dt-my-courses-widget,
body:not(.logged-in) .elementor-widget-dt-my-courses-widget + .elementor-widget-spacer {
  display: none !important;
}

/* ── Intro section (Živimo u punini) — mobile fixes ───────────────────── */
@media (max-width: 767px) {
  /* Inner black card: padding so content doesn't touch the edges */
  .intro-area-inner {
    padding: 28px 16px !important;
  }
  /* Title block: centre and add bottom gap before items */
  .intro-area-inner .intro-title {
    padding-bottom: 24px;
    text-align: center;
  }
  /* Items list: stack vertically, one per row */
  .intro-area-inner ul.row li.col-md-4 {
    width: 100%;
  }
  /* Each item: horizontal row (icon left, text right) instead of stacked */
  .intro-area-inner ul li .single-intro-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 12px 0;
  }
  .intro-area-inner ul li .single-intro-inner .thumb {
    flex-shrink: 0;
    width: 52px;
  }
  .intro-area-inner ul li .single-intro-inner .thumb img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }
  /* Remove the vertical divider lines between items on mobile */
  .intro-area-inner ul li .single-intro-inner:after {
    display: none;
  }
}

/* ── Video section ─────────────────────────────────────────────────────── */
.dt-video-section {
  position: relative;
  overflow: hidden;
}

/* ── Row container ──────────────────────────────────────────── */
/* stack on mobile */
@media (max-width: 767px) {
  .dt-video-section .e-con[data-id="bfb4832"] {
    flex-direction: column !important;
  }
  #dt_vc_left  { width: 100% !important; }
  #dt_vc_right { width: 100% !important; }
}

/* ── Columns ────────────────────────────────────────────────── */
#dt_vc_left, #dt_vc_right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Left: video fills its column exactly via aspect-ratio */
#dt_vc_left {
  align-self: stretch;
}
#dt_vc_left .elementor-widget-container,
#dt_vc_left .elementor-widget-video {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The video container uses aspect-ratio as a fallback but also fills parent */
#dt_vc_left .elementor-video-container,
#dt_vc_left .elementor-custom-embed-image-overlay {
  flex: 1;
  height: 100%;
  min-height: 280px;
}

/* Video glow treatment */
.dt-video-glow .elementor-video-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200,177,228,.2),
    0 20px 60px rgba(0,0,0,.15);
}
.dt-video-glow .elementor-custom-embed-image-overlay {
  border-radius: 8px;
  overflow: hidden;
  /* No scale on hover to prevent play button jumping */
  transition: box-shadow .35s ease;
}
.dt-video-glow .elementor-custom-embed-image-overlay:hover {
  box-shadow:
    0 0 0 1px rgba(200,177,228,.3),
    0 28px 80px rgba(0,0,0,.22);
}
/* overlay thumbnail fills full height */
.dt-video-glow .elementor-custom-embed-image-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* scale only the image on hover, not the play button */
  transition: transform .4s ease;
}
.dt-video-glow .elementor-custom-embed-image-overlay:hover img {
  transform: scale(1.04);
}
/* play button — isolated from image scale */
.dt-video-glow .elementor-custom-embed-image-overlay .elementor-custom-embed-play {
  background: rgba(47,24,75,.55);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(200,177,228,.6);
  transition: background .3s, border-color .3s;
  /* prevent play button from moving with image scale */
  position: relative;
  z-index: 1;
}
.dt-video-glow .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
  background: rgba(200,177,228,.3);
  border-color: rgba(200,177,228,.95);
}

/* ── CTA card ───────────────────────────────────────────────── */
#dt_vc_right .elementor-widget-container,
#dt_vc_right .elementor-widget-html {
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dt-vc-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--heading-color, #2f184b);
  border-radius: 8px;
  padding: 44px 40px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(47,24,75,.3);
}
/* subtle inner shimmer */
.dt-vc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,177,228,.06) 0%, transparent 60%);
  pointer-events: none;
}
.dt-vc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--main-color, #c8b1e4);
  margin-bottom: 18px;
}
.dt-vc-kicker::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--main-color, #c8b1e4);
  border-radius: 2px;
}
.dt-vc-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800; line-height: 1.1;
  color: #fff;
  margin: 0 0 18px;
}
.dt-vc-desc {
  font-size: .93rem; line-height: 1.75;
  color: rgba(255,255,255,.65);
  margin: 0 0 28px;
}
/* divider */
.dt-vc-card hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 0 0 24px;
}
.dt-vc-perks {
  list-style: none; padding: 0; margin: 0 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.dt-vc-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.8);
}
.dt-vc-perks li svg {
  flex-shrink: 0;
  background: rgba(200,177,228,.2);
  border-radius: 50%;
  padding: 3px;
  width: 20px; height: 20px;
  color: var(--main-color, #c8b1e4);
}
.dt-vc-btn {
  display: block;
  background: var(--main-color, #c8b1e4);
  color: var(--heading-color, #2f184b);
  font-weight: 700; font-size: .95rem;
  padding: 0 28px;
  height: 55px;
  line-height: 55px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .5s ease;
  border: 0;
}
.dt-vc-btn::after {
  content: '';
  background: #fff;
  position: absolute;
  z-index: -1;
  height: 100%;
  left: -35%;
  top: 0;
  transform: skew(30deg);
  transition: width .6s ease-in;
  transform-origin: top left;
  width: 0;
}
.dt-vc-btn:hover {
  color: var(--heading-color, #2f184b);
}
.dt-vc-btn:hover::after {
  width: 135%;
}
.dt-vc-note {
  font-size: .78rem; color: rgba(255,255,255,.4);
  text-align: center; margin: 0;
  letter-spacing: .04em;
}
/* Caption beneath video */
.dt-vc-caption {
  font-size: .88rem;
  color: var(--paragraph-color, #55585b);
  line-height: 1.6;
  margin: 14px 0 0;
  padding: 0 2px;
  opacity: .8;
}

/* ── Events ──────────────────────────────────────────────────────────── */

/* Event list widget — cleaner card */
.single-event-inner {
  border: none !important;
  background: #fff;
  box-shadow: 0 2px 16px rgba(47,24,75,.07);
  transition: box-shadow .25s, transform .25s;
  border-left: 3px solid var(--main-color) !important;
}
.single-event-inner:hover {
  background: #fff !important;
  box-shadow: 0 6px 28px rgba(47,24,75,.14);
  transform: translateY(-2px);
}
.single-event-inner .date {
  background: var(--heading-color, #2f184b) !important;
  color: var(--main-color, #f4c754) !important;
  font-weight: 700;
  border-radius: 8px !important;
  flex-shrink: 0;
}
.single-event-inner .date span {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.single-event-inner .details h5 a {
  color: var(--heading-color, #2f184b);
  transition: color .2s;
}
.single-event-inner .details h5 a:hover {
  color: var(--main-color, #f4c754);
}
.single-event-inner .details .blog-meta li {
  font-size: 13px;
  color: #777;
}
.single-event-inner .details .blog-meta li i {
  color: var(--heading-color, #2f184b);
}

/* Upcoming events widget — date badge */
.single-blog-list-inner .date {
  background: rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  font-weight: 700;
}
.single-blog-list-inner .date span {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--main-color, #f4c754) !important;
}
.single-blog-list-wrap.style-white .details .blog-meta li i {
  color: rgba(255,255,255,.5);
  margin-right: 4px;
}
.single-blog-list-wrap.style-white .details h5 a:hover {
  opacity: .8;
}

/* Single event page — sidebar widget */
.widget_event {
  border-radius: 10px;
  overflow: hidden;
}
.widget_event ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  line-height: 1.5;
}
.widget_event ul li:last-child {
  border-bottom: none;
}
.widget_event ul li i {
  width: 16px;
  margin-top: 3px;
  color: var(--main-color, #f4c754);
  flex-shrink: 0;
}
.widget_event .widget-title {
  font-size: 1rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px !important;
}

/* Event single meta strip */
.event-detaila-inner .event-meta {
  background: #f7f4fb;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 28px;
}
.event-detaila-inner .event-meta li {
  font-size: 14px;
  color: var(--heading-color, #2f184b);
}
.event-detaila-inner .event-meta li i {
  color: var(--main-color, #f4c754);
}

/* ═══════════════════════════════════════════════════════════════════
   Homepage blog section — visual redesign to match Next.js showcase
   Left sidebar:  .elementor-element-46e7fd2  (layout_three, 3 posts list)
   Right cards:   .elementor-element-dbceb8f  (layout_four,  2 post cards)
═══════════════════════════════════════════════════════════════════ */

/* ── Left sidebar: lavender card container ─────────────────────── */
.elementor-element-46e7fd2 .blog-area {
  height: 100%;
}
.elementor-element-46e7fd2 .single-blog-list-wrap {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #f6f1fb 0%, #efe7f8 100%);
  border: 1px solid #ddd2ea;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(76, 29, 149, 0.08);
}

/* "Pregled vijesti" heading via pseudo-element */
.elementor-element-46e7fd2 .single-blog-list-wrap::before {
  content: "Pregled vijesti";
  display: block;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color, #2f184b);
  padding: 16px 16px 12px;
  line-height: 1.2;
}

/* List items — no divider borders, just spacing */
.elementor-element-46e7fd2 .single-blog-list-wrap > li {
  padding: 1px 8px;
  position: relative;
  z-index: 1;
}
.elementor-element-46e7fd2 .single-blog-list-wrap > li:last-child {
  padding-bottom: 6px;
}

/* Tab-style inner media object */
.elementor-element-46e7fd2 .single-blog-list-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
  min-height: 60px;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Date badge */
.elementor-element-46e7fd2 .single-blog-list-inner .date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-basis: 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  background: var(--main-color, #c8b1e4) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(47, 24, 75, 0.08);
  box-shadow: 0 8px 18px rgba(47, 24, 75, 0.12), inset 0 1px 0 rgba(255,255,255,0.24);
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--heading-color, #2f184b) !important;
  text-align: center;
  text-shadow: none;
  overflow: hidden;
  transition: box-shadow 200ms ease, background 200ms ease, transform 200ms ease, opacity 200ms ease;
}
.elementor-element-46e7fd2 .single-blog-list-inner .date span {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47, 24, 75, 0.72) !important;
  line-height: 1;
  margin-bottom: 2px;
}

/* Details area */
.elementor-element-46e7fd2 .single-blog-list-inner .details {
  flex: 1;
  min-width: 0;
}
.elementor-element-46e7fd2 .details .blog-meta {
  display: none;
}
.elementor-element-46e7fd2 .details .blog-meta li,
.elementor-element-46e7fd2 .details .blog-meta li a {
  font-size: 0.68rem;
  color: #9a8faa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.elementor-element-46e7fd2 .details .blog-meta li i {
  margin-right: 3px;
  color: #b89fd0;
}
.elementor-element-46e7fd2 .details h5 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
.elementor-element-46e7fd2 .details h5 a {
  color: var(--heading-color, #2f184b);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  opacity: 0.94;
}
.elementor-element-46e7fd2 .details h5 a:hover {
  color: var(--main-color, #7c54b4);
}

/* ── Right featured cards: .elementor-element-dbceb8f ─────────── */
.elementor-element-dbceb8f .blog-area > .container {
  padding: 0;
}
.elementor-element-dbceb8f .blog-area > .container > .row > .row {
  margin: 0;
}
.elementor-element-dbceb8f .col-md-6 {
  padding: 0;
  margin-bottom: 0;
  flex: 0 0 100%;
  max-width: 100%;
}

/* Card shell */
.elementor-element-dbceb8f .single-blog-inner {
  border-radius: 20px !important;
  overflow: hidden;
  border: 1px solid #e6ddf0 !important;
  box-shadow: 0 4px 20px rgba(47, 24, 75, 0.07) !important;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Thumbnail — force 16:9 */
.elementor-element-dbceb8f .single-blog-inner .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.elementor-element-dbceb8f .single-blog-inner .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Date overlay badge */
.elementor-element-dbceb8f .single-blog-inner .thumb .date {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--heading-color, #2f184b);
  border: 1px solid rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Details */
.elementor-element-dbceb8f .single-blog-inner .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px !important;
}
.elementor-element-dbceb8f .details .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 0;
  margin-bottom: 10px;
  list-style: none;
}
.elementor-element-dbceb8f .details .blog-meta li,
.elementor-element-dbceb8f .details .blog-meta li a {
  font-size: 0.7rem;
  color: #9a8faa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.elementor-element-dbceb8f .details .blog-meta li i {
  margin-right: 3px;
  color: #b89fd0;
}
.elementor-element-dbceb8f .details h5 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}
.elementor-element-dbceb8f .details h5 a {
  color: var(--heading-color, #2f184b);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.elementor-element-dbceb8f .details h5 a:hover {
  color: #7c54b4;
}
.elementor-element-dbceb8f .details .read-more-text {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--heading-color, #2f184b);
  transition: color 180ms ease;
}
.elementor-element-dbceb8f .details .read-more-text:hover {
  color: #7c54b4;
}

/* ── Blog slider: animated marker ──────────────────────────────── */
.elementor-element-46e7fd2 .dt-blog-marker {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 14px;
  border: 1px solid #d3c3e3;
  background: #fff;
  box-shadow: 0 6px 20px rgba(47, 24, 75, 0.10);
  pointer-events: none;
  transition:
    top  520ms cubic-bezier(0.23, 1, 0.32, 1),
    height 320ms cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

/* Active tab: stronger title weight + lifted circle */
.elementor-element-46e7fd2 .dt-blog-tab--active .details h5 a {
  font-weight: 700;
  opacity: 1;
}
.elementor-element-46e7fd2 .dt-blog-tab--active .date {
  background: var(--heading-color, #2f184b) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(47, 24, 75, 0.22), inset 0 1px 0 rgba(255,255,255,0.14) !important;
  transform: translateY(-1px);
}
.elementor-element-46e7fd2 .dt-blog-tab--active .date span {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* ── Blog slider: nav row (counter + arrows) ────────────────────── */
.elementor-element-46e7fd2 .dt-blog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px;
  flex-shrink: 0;
  margin-top: auto;
}
.elementor-element-46e7fd2 .dt-blog-counter {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9a8faa;
  text-transform: uppercase;
  line-height: 1;
}
.elementor-element-46e7fd2 .dt-blog-arrows {
  display: flex;
  gap: 8px;
}
.elementor-element-46e7fd2 .dt-blog-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d3c3e3;
  background: rgba(255, 255, 255, 0.8);
  color: var(--heading-color, #2f184b);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  padding: 0;
  line-height: 1;
}
.elementor-element-46e7fd2 .dt-blog-arrow:hover {
  background: #fff;
  border-color: #b89fd0;
}

/* ── Blog slider: right-card fade transition ────────────────────── */
@keyframes dtCardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.elementor-element-dbceb8f .col-md-6.dt-card-in {
  animation: dtCardFadeIn 480ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* ── Blog slider – skeleton loader ─────────────────────────── */
.elementor-element-46e7fd2 li.dt-blog-skeleton-li {
  pointer-events: none;
}

/* hide real content; visibility:hidden keeps the li at its natural height = no layout shift */
.elementor-element-46e7fd2 li.dt-blog-skeleton-li .single-blog-list-inner {
  visibility: hidden;
}

/* single absolutely-positioned overlay — shapes drawn with layered backgrounds.
   ::after sits on top of the li's padding box (inset = li's 1px 8px padding).
   Inside, .single-blog-list-inner has padding: 7px 10px, gap: 12px.
  Date badge: 48px circle, starts at 10px from ::after left.
  Text lines start at: 10px (pad) + 48px (badge) + 12px (gap) = 70px. */
.elementor-element-46e7fd2 li.dt-blog-skeleton-li::after {
  content: '';
  position: absolute;
  inset: 1px 8px;
  border-radius: 11px;
  background-color: #ede8f6;
  background-image:
    linear-gradient(#cdc4e4 0 100%),   /* date circle */
    linear-gradient(#cdc4e4 0 100%),   /* title line */
    linear-gradient(#cdc4e4 0 100%);   /* subtitle line */
  background-size:
    48px 48px,
    calc(100% - 80px) 11px,
    calc(50% - 42px)   9px;
  background-position:
    10px center,
    70px calc(50% - 9px),
    70px calc(50% + 8px);
  background-repeat: no-repeat;
  animation: dtSkeletonPulse 1.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes dtSkeletonPulse {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.45; }
}
