/* ==========================================================================
   Webian Elementor Pack v1.3.0
   ========================================================================== */

/* ==========================================================================
   1. TICKER
   ========================================================================== */
.webian-ticker-wrap { overflow: hidden; width: 100%; position: relative; }

.webian-ticker-wrap[data-fade="1"]::before,
.webian-ticker-wrap[data-fade="1"]::after { content: ''; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
.webian-ticker-wrap[data-fade="1"]::before { left: 0; background: linear-gradient(to right, var(--webian-ticker-bg, #fff), transparent); }
.webian-ticker-wrap[data-fade="1"]::after  { right: 0; background: linear-gradient(to left,  var(--webian-ticker-bg, #fff), transparent); }

.webian-ticker-track { display: flex; align-items: center; width: max-content; animation-timing-function: linear; animation-iteration-count: infinite; }
.webian-ticker-pause-hover .webian-ticker-track:hover { animation-play-state: paused; }

@keyframes webian-ticker-scroll     { 0% { transform: translateX(0); }    100% { transform: translateX(-50%); } }
@keyframes webian-ticker-scroll-rev { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.webian-ticker-item { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; color: inherit; cursor: default; padding: 0 32px; gap: 10px; }
a.webian-ticker-item { cursor: pointer; }
a.webian-ticker-item:hover .webian-ticker-label { text-decoration: underline; text-underline-offset: 3px; }
.webian-ticker-icon { display: flex; align-items: center; justify-content: center; }
.webian-ticker-icon i   { font-size: 20px; line-height: 1; }
.webian-ticker-icon svg { width: 20px; height: 20px; }
.webian-ticker-img  { height: 20px; width: auto; object-fit: contain; display: block; }
.webian-ticker-label { font-size: 15px; font-weight: 500; line-height: 1; }
.webian-ticker-sep { display: inline-flex; align-items: center; line-height: 1; user-select: none; }


/* ==========================================================================
   2. ACCORDION
   ========================================================================== */
.webian-accordion { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* Item */
.webian-accordion-item { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; transition: box-shadow 0.25s ease; }

/* Header */
.webian-accordion-header { display: block; width: 100%; padding: 16px 20px; background: #fff; cursor: pointer; user-select: none; transition: background 0.25s ease; margin: 0; font-size: inherit; font-weight: inherit; }
.webian-accordion-header:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.webian-accordion-header-inner { display: flex; align-items: stretch; gap: 12px; width: 100%; }
.webian-accordion-header-inner.icon-right { justify-content: space-between; }

/* Title area */
.webian-accordion-title-wrap { display: flex; align-items: center; gap: 12px; flex: 1; }
.webian-accordion-title-text { display: flex; flex-direction: column; gap: 4px; }
.webian-accordion-title    { font-weight: 600; font-size: 15px; line-height: 1.4; color: #1a1a1a; }
.webian-accordion-subtitle { font-weight: 400; font-size: 13px; line-height: 1.4; color: #777; }

/* Per-item icon */
.webian-accordion-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.webian-accordion-item-icon i   { font-size: 20px; line-height: 1; transition: color 0.25s ease; }
.webian-accordion-item-icon svg { width: 20px; height: 20px; display: block; transition: fill 0.25s ease; }
.webian-accordion-item-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* Toggle icon */
.webian-accordion-toggle-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.webian-acc-icon-closed,
.webian-acc-icon-open { display: flex; align-items: center; justify-content: center; }

/* inner span wraps the actual icon element */
.webian-acc-icon-inner { display: flex; align-items: center; justify-content: center; }
.webian-acc-icon-inner i   { font-size: 14px; line-height: 1; }
.webian-acc-icon-inner svg { width: 14px; height: 14px; display: block; }
.webian-acc-icon-inner img { width: 14px; height: 14px; object-fit: contain; display: block; }

/* Show/hide open vs closed toggle icons */
.webian-acc-icon-open  { display: none; }
.webian-acc-icon-closed { display: flex; }
.webian-accordion-item.is-open .webian-acc-icon-open   { display: flex; }
.webian-accordion-item.is-open .webian-acc-icon-closed { display: none; }

/* Body */
.webian-accordion-body { overflow: hidden; border-top: 1px solid #e5e5e5; font-size: 15px; line-height: 1.7; color: #444; }
.webian-accordion-body-inner { padding: 16px 20px 20px; }
.webian-accordion-body-inner > *:first-child { margin-top: 0; }
.webian-accordion-body-inner > *:last-child  { margin-bottom: 0; }

/* Template mode — remove inner padding, let the template control its own spacing */
.webian-accordion-body-inner.is-template { padding: 0; }
.webian-accordion-body-inner.is-template > *:first-child { margin-top: 0; }
.webian-accordion-body-inner.is-template > *:last-child  { margin-bottom: 0; }

/* Active */
.webian-accordion-item.is-open .webian-accordion-header { background: #fafafa; }


/* ==========================================================================
   3. BUTTON
   ========================================================================== */
.webian-button-wrap { display: flex; width: 100%; }
.webian-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: none; background: #3b5cf5; color: #fff; padding: 14px 28px; border-radius: 6px; font-family: inherit; line-height: 1.3; transition-property: background, color, border-color, box-shadow, transform; transition-duration: 250ms; transition-timing-function: ease; box-sizing: border-box; }
.webian-button:hover { text-decoration: none; }
.webian-button-text { line-height: 1; }
.webian-button-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 250ms ease; }
.webian-button-icon i   { font-size: 18px; line-height: 1; }
.webian-button-icon svg { width: 18px; height: 18px; display: block; }
.webian-button-icon img { width: 18px; height: 18px; display: block; object-fit: contain; }


/* ==========================================================================
   4. TERMS LOOP WIDGET
   ========================================================================== */

.webian-terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 24px;
    width: 100%;
}

.webian-terms-item {
    position: relative;
    min-width: 0; /* prevent grid blowout */
    /* Ensure Elementor template content fills the grid cell */
    display: flex;
    flex-direction: column;
}

/* Make Elementor template wrappers fill the item height */
.webian-terms-item > .elementor,
.webian-terms-item > .webian-terms-item-link > .elementor {
    flex: 1;
    width: 100%;
}

.webian-terms-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.webian-terms-item-link > * {
    pointer-events: none; /* clicks pass through to the <a> */
}

.webian-terms-no-results {
    color: #999;
    text-align: center;
    padding: 2rem 0;
}


/* ==========================================================================
   5. GALLERY CAROUSEL WIDGET — Owl Carousel 2
   ========================================================================== */

.webian-gallery-carousel {
    width: 100%;
    overflow: hidden;
}

/* ── Main Carousel ── */
.webian-gallery-main {
    width: 100%;
}

.webian-gallery-main .webian-gallery-slide {
    position: relative;
    overflow: hidden;
    height: 560px;
}

.webian-gallery-main .webian-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webian-gallery-main .webian-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Custom navigation buttons — rendered outside Owl, wired via events */
.webian-gallery-main-wrap .webian-gallery-nav {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: background 0.25s ease, color 0.25s ease;
    line-height: 1;
}
.webian-gallery-main-wrap .webian-gallery-nav:hover { background: rgba(0,0,0,0.7); }
.webian-gallery-main-wrap .webian-gallery-nav-prev { left: 12px; }
.webian-gallery-main-wrap .webian-gallery-nav-next { right: 12px; }
.webian-gallery-main-wrap .webian-gallery-nav i   { font-size: inherit; line-height: 1; }
.webian-gallery-main-wrap .webian-gallery-nav svg { width: 1em; height: 1em; fill: currentColor; }

/* Caption */
.webian-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
}

/* ── Thumbs Carousel ── */
.webian-gallery-thumbs {
    margin-top: 12px;
}

.webian-gallery-thumbs .owl-item {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.webian-gallery-thumbs .owl-item.is-active-thumb {
    opacity: 1;
}

.webian-gallery-thumbs .webian-gallery-thumb-slide {
    height: 80px;
    overflow: hidden;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

.webian-gallery-thumbs .owl-item.is-active-thumb .webian-gallery-thumb-slide {
    border-color: #000;
}

.webian-gallery-thumbs .webian-gallery-thumb-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
/* Hidden lightbox bank — off-screen so jQuery :visible returns true
   (display:none would make Elementor skip them when counting gallery items) */
.webian-gallery-lightbox-bank {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}
.webian-gallery-lightbox-bank a {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Main wrap — position:relative so counter overlays it correctly */
.webian-gallery-main-wrap {
    position: relative;
    width: 100%;
}

/* Slide counter */
.webian-gallery-counter {
    position: absolute;
    z-index: 10;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    line-height: 1.4;
    white-space: nowrap;
}
.webian-gallery-counter.pos-top-left     { top: 12px;    left: 12px;   }
.webian-gallery-counter.pos-top-right    { top: 12px;    right: 12px;  }
.webian-gallery-counter.pos-bottom-left  { bottom: 12px; left: 12px;   }
.webian-gallery-counter.pos-bottom-right { bottom: 12px; right: 12px;  }

/* After-thumbs: in normal document flow, centered */
.webian-gallery-counter.pos-after-thumbs {
    position: static;
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    text-align: center;
}

/* ==========================================================================
   ELEMENTOR LIGHTBOX — Force navigation arrows visible
   Properties confirmed working via browser console testing.
   ========================================================================== */
.elementor-lightbox .swiper-button-prev,
.elementor-lightbox .swiper-button-next,
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next,
.elementor-lightbox-slideshow__arrow {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
    position: absolute;
    top: 0px;
}

.elementor-swiper-button.elementor-swiper-button-next.elementor-lightbox-prevent-close svg,
.elementor-swiper-button.elementor-swiper-button-prev.elementor-lightbox-prevent-close svg {
    width: 30px;
    height: auto;
}


/* ==========================================================================
   6. ADVANCED TABS WIDGET
   ========================================================================== */

.webian-tabs { display: flex; flex-direction: column; width: 100%; transition: background-color 300ms ease; }
.webian-tabs.pos-bottom  { flex-direction: column-reverse; }
.webian-tabs.pos-left    { flex-direction: row; }
.webian-tabs.pos-right   { flex-direction: row-reverse; }

/* Nav wrap */
.webian-tabs-nav-wrap {
    display: flex; align-items: center; flex-shrink: 0; overflow: hidden; position: relative;
}
.webian-tabs.pos-left  .webian-tabs-nav-wrap,
.webian-tabs.pos-right .webian-tabs-nav-wrap {
    flex-direction: column; align-items: stretch; width: 200px; min-width: 200px;
}

/* Nav scroll */
.webian-tabs-nav-scroll { flex: 1; overflow: hidden; position: relative; }

/* Nav track */
.webian-tabs-nav {
    display: flex; flex-direction: row; gap: 4px;
    will-change: transform; transition: transform 0.3s ease;
    cursor: default; user-select: none; -webkit-user-select: none;
}
.webian-tabs-nav.is-dragging { cursor: grabbing; transition: none; }
.webian-tabs.pos-left  .webian-tabs-nav,
.webian-tabs.pos-right .webian-tabs-nav { flex-direction: column; }

/* Arrow buttons */
.webian-tabs-nav-arrow {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; font-size: 20px; line-height: 1;
    background: transparent; border: none; cursor: pointer; color: inherit;
    transition: opacity 0.2s ease; padding: 0;
}
.webian-tabs-nav-arrow.is-at-start,
.webian-tabs-nav-arrow.is-at-end { opacity: 0.25; pointer-events: none; }
/* Vertical arrows show ↑ ↓ via JS class */
.webian-tabs.is-vertical .webian-tabs-nav-prev span::before { content: '↑'; }
.webian-tabs.is-vertical .webian-tabs-nav-next span::before { content: '↓'; }
.webian-tabs:not(.is-vertical) .webian-tabs-nav-prev span::before { content: '‹'; }
.webian-tabs:not(.is-vertical) .webian-tabs-nav-next span::before { content: '›'; }
.webian-tabs-nav-arrow span { display: block; line-height: 1; }

/* Tab items */
.webian-tabs-tab {
    display: flex; align-items: center; gap: 8px; padding: 12px 20px;
    white-space: nowrap; cursor: pointer; border-radius: 4px;
    border: 1px solid transparent; font-size: inherit; line-height: 1.4;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}
.webian-tabs.pos-left  .webian-tabs-tab,
.webian-tabs.pos-right .webian-tabs-tab { white-space: normal; }
.webian-tabs-tab-icon { display: flex; align-items: center; flex-shrink: 0; }
.webian-tabs-tab-icon i   { font-size: 18px; line-height: 1; }
.webian-tabs-tab-icon svg { width: 18px; height: 18px; display: block; }

/* Per-tab icon colour: the [style] guard ensures !important only fires when
   a custom colour is explicitly set on this tab, leaving global controls intact. */
.webian-tabs-tab-icon[style] i,
.webian-tabs-tab-icon[style] svg { fill: currentColor !important; color: inherit !important; }

/* Content wrap */
.webian-tabs-content-wrap { flex: 1; overflow: hidden; min-width: 0; }

/* Panels */
.webian-tabs-panel { display: none; }
.webian-tabs-panel.is-active { display: block; }

/* ── Feature Block ── */
.webian-tabs-feature-image { margin-bottom: 16px; }
.webian-tabs-feature-image img { display: block; max-width: 100%; height: auto; }

.webian-tabs-feature-title { margin-top: 0; margin-bottom: 12px; }

/* Side layouts */
.webian-tabs-feature.layout-image-left,
.webian-tabs-feature.layout-image-right {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.webian-tabs-feature.layout-image-right { flex-direction: row-reverse; }

.webian-tabs-feature.layout-image-left  .webian-tabs-feature-image,
.webian-tabs-feature.layout-image-right .webian-tabs-feature-image {
    flex-shrink: 0;
    margin-bottom: 0;
}

.webian-tabs-feature-body { flex: 1; min-width: 0; }


/* ==========================================================================
   7. IMAGE BOX WIDGET
   ========================================================================== */

.webian-image-box {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 400px;
}

/* ── Image ── */
.webian-image-box-image {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}

.webian-image-box-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 500ms ease;
    will-change: transform;
}

.webian-image-box:hover .webian-image-box-image img {
    transform: scale(1.1);
}

/* ── Overlay — covers full box ── */
.webian-image-box-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    transition-property: background-color, background;
    transition-duration: 400ms;
    transition-timing-function: ease;
    padding: 20px;
    pointer-events: none;
    z-index: 1;
}

/* ── Spacer — flex-grow transitions for smooth vertical alignment ── */
.webian-image-box-spacer {
    flex-grow: 1; /* default: bottom */
    flex-shrink: 0;
    width: 100%;
    transition-property: flex-grow;
    transition-duration: 400ms;
    transition-timing-function: ease;
}

/* ── Content wrapper ── */
.webian-image-box-content {
    pointer-events: all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    gap: 8px;
}

.webian-image-box-content.icon-above {
    flex-direction: column;
    align-items: flex-start;
}

/* ── Title ── */
.webian-image-box-title {
    margin: 0;
    color: #fff;
}

.webian-image-box-title a {
    color: inherit;
    text-decoration: none;
}

/* ── Icon ── */
.webian-image-box-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
    line-height: 1;
}

.webian-image-box-icon i   { font-size: 24px; line-height: 1; }
.webian-image-box-icon svg { width: 24px; height: 24px; fill: currentColor; display: block; }
