/* ElementorBuilder — public content styles (frontend render) */

.elementor-content-root,
.elementor-section {
    box-sizing: border-box;
}

.elementor-section {
    width: 100%;
    padding-top: var(--section-padding-top, 20px);
    padding-bottom: var(--section-padding-bottom, 20px);
}

.elementor-columns {
    display: grid;
    gap: var(--section-gap, 20px);
    align-items: start;
    grid-template-columns: var(--grid-cols-desktop, 1fr);
}

.elementor-column {
    min-width: 0;
    box-sizing: border-box;
}

.elementor-section[data-reverse-mobile="1"] .elementor-columns {
    direction: rtl;
}

/* Widget spacing */
.elementor-widget {
    margin-bottom: 1rem;
}

.elementor-widget:last-child {
    margin-bottom: 0;
}

/* Widget types */
.widget-heading h1,
.widget-heading h2,
.widget-heading h3,
.widget-heading h4,
.widget-heading h5,
.widget-heading h6 {
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.widget-text {
    line-height: 1.75;
}

.widget-text p {
    margin: 0 0 0.75em;
    line-height: 1.75;
}

.widget-text p:last-child {
    margin-bottom: 0;
}

.widget-text ul,
.widget-text ol {
    margin: 0 0 0.75em;
    padding-right: 1.25rem;
}

.widget-text a {
    color: #1a56db;
    text-decoration: underline;
}

.widget-text strong,
.widget-text b {
    font-weight: 700;
}

.widget-text .ql-align-center,
.widget-text [style*="text-align: center"] { text-align: center !important; }
.widget-text .ql-align-left,
.widget-text [style*="text-align: left"] { text-align: left !important; }
.widget-text .ql-align-right,
.widget-text [style*="text-align: right"] { text-align: right !important; }
.widget-text .ql-align-justify,
.widget-text [style*="text-align: justify"] { text-align: justify !important; }

.widget-text blockquote {
    margin: 0.65em 0;
    padding: 0.65em 1em;
    border: none;
    border-right: 4px solid #1a56db;
    background: #f3f4f6;
    border-radius: 0 10px 10px 0;
}

.widget-text .ql-indent-1 { padding-right: 3em; }
.widget-text .ql-indent-2 { padding-right: 6em; }
.widget-text .ql-indent-3 { padding-right: 9em; }
.widget-text .ql-indent-4 { padding-right: 12em; }
.widget-text .ql-indent-5 { padding-right: 15em; }
.widget-text .ql-indent-6 { padding-right: 18em; }
.widget-text .ql-indent-7 { padding-right: 21em; }
.widget-text .ql-indent-8 { padding-right: 24em; }

.widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.widget-button .btn-widget {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: #1a56db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.widget-divider hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 0.5rem 0;
}

.widget-spacer {
    height: 50px;
}

.widget-icon {
    text-align: center;
}

.widget-icon i {
    font-size: 2.5rem;
    color: #1a56db;
}

.widget-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.widget-video iframe,
.widget-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.widget-audio {
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.widget-audio-meta {
    margin-bottom: 0.75rem;
}

.widget-audio-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.widget-audio-desc {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.widget-audio-player {
    width: 100%;
    height: 42px;
    border-radius: 8px;
}

.widget-list ul,
.widget-list ol {
    margin: 0;
    padding-right: 1.25rem;
}

.widget-list li {
    margin-bottom: 0.35rem;
}

.widget-quote blockquote {
    margin: 0;
    padding: 0.75rem 1rem;
    border-right: 4px solid #1a56db;
    background: #f3f4f6;
}

.widget-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.widget-alert.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.widget-alert.alert-success {
    background: #ecfdf3;
    border: 1px solid #abeFC6;
    color: #065f46;
}

.widget-alert.alert-warning {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #92400e;
}

.widget-alert.alert-danger {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #912018;
}

.widget-alert p {
    margin: 0;
}

/* Tablet — !important overrides inline desktop grid saved before sanitize fix */
@media (max-width: 1024px) {
    .elementor-columns {
        grid-template-columns: var(--grid-cols-tablet, var(--grid-cols-desktop, 1fr)) !important;
    }

    .elementor-column[data-hide-tablet="1"] {
        display: none !important;
    }
}

/* Mobile — !important overrides inline desktop grid saved before sanitize fix */
@media (max-width: 767px) {
    .elementor-columns {
        grid-template-columns: var(--grid-cols-mobile, var(--grid-cols-tablet, 1fr)) !important;
    }

    .elementor-column[data-hide-mobile="1"] {
        display: none !important;
    }

    .elementor-section[data-reverse-mobile="1"] .elementor-columns {
        direction: rtl;
    }
}

/* ===== Extended widgets (theme-neutral) ===== */
.widget-alert { position: relative; }
.widget-alert-inner { display: flex; gap: 0.75rem; align-items: flex-start; }
.widget-alert-icon { flex-shrink: 0; font-size: 1.25rem; line-height: 1.4; display: inline-flex; }
.widget-alert-icon[hidden] { display: none !important; }
.widget-alert-title { display: block; margin-bottom: 0.25rem; font-weight: 700; }
.widget-alert-title[hidden] { display: none !important; }
.widget-alert-text { flex: 1; min-width: 0; }
.widget-alert-text p { margin: 0; }
.widget-alert[data-dismissible="1"] { padding-inline-start: 2rem; }
.widget-alert-close {
    position: absolute;
    inset-inline-start: 0.45rem;
    top: 0.4rem;
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    cursor: pointer;
    opacity: 0.65;
    line-height: 1;
    padding: 0.15rem;
    color: inherit;
    z-index: 2;
}
.widget-alert-close:hover { opacity: 1; }

.widget-progress-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.9rem; }
.widget-progress-bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.widget-progress-fill { height: 100%; background: #4b5563; border-radius: inherit; transition: width 0.4s ease; }

.widget-counter { text-align: center; padding: 0.5rem; }
.widget-counter-number { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #111827; line-height: 1.2; }
.widget-counter-title { margin-top: 0.35rem; color: #6b7280; font-size: 0.95rem; }

.widget-testimonial { background: #f9fafb; border-radius: 12px; padding: 1.25rem; }
.widget-testimonial-stars { color: #f59e0b; letter-spacing: 0.08em; margin-bottom: 0.65rem; }
.widget-testimonial-text { margin: 0 0 1rem; font-style: italic; color: #374151; line-height: 1.7; }
.widget-testimonial-author { display: flex; align-items: center; gap: 0.65rem; }
.widget-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.widget-testimonial-name { display: block; color: #111827; }
.widget-testimonial-role { display: block; font-size: 0.8rem; color: #6b7280; }

.widget-pricing { position: relative; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.5rem 1.25rem; background: #fff; text-align: center; }
.widget-pricing-badge { position: absolute; top: 0.75rem; inset-inline-end: 0.75rem; background: #4b5563; color: #fff; font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 999px; }
.widget-pricing-title { margin: 0 0 0.75rem; font-size: 1.15rem; }
.widget-pricing-price { margin-bottom: 1rem; }
.widget-pricing-amount { font-size: 2rem; font-weight: 800; }
.widget-pricing-currency, .widget-pricing-period { opacity: 0.7; margin-inline-start: 0.25rem; }
.widget-pricing-features { list-style: none; padding: 0; margin: 0 0 1.25rem; text-align: inherit; }
.widget-pricing-features li { padding: 0.35rem 0; border-bottom: 1px solid #f3f4f6; color: inherit; font-size: 0.9rem; }
.widget-pricing-features li[data-included="0"] { opacity: 0.45; text-decoration: line-through; }
.widget-pricing-cta { display: inline-block; }

.widget-tabs { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.widget-tabs[data-orientation="vertical"] { display: flex; }
.widget-tabs-nav { display: flex; gap: 0; background: #f9fafb; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.widget-tabs[data-orientation="vertical"] .widget-tabs-nav { flex-direction: column; border-bottom: 0; border-inline-end: 1px solid #e5e7eb; min-width: 8rem; }
.widget-tabs-tab { border: 0; background: transparent; padding: 0.7rem 1rem; cursor: pointer; color: #6b7280; font: inherit; }
.widget-tabs-tab.is-active { color: #111827; background: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 #4b5563; }
.widget-tabs-panels { padding: 1rem; }
.widget-tabs-panel { display: none; }
.widget-tabs-panel.is-active { display: block; }

.widget-slider { position: relative; overflow: hidden; border-radius: 12px; min-height: 280px; background: #111827; }
.widget-slider-slide { display: none; min-height: 280px; background-size: cover; background-position: center; position: relative; }
.widget-slider-slide.is-active { display: block; }
.widget-slider-overlay { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.widget-slider-overlay h3 { margin: 0 0 0.35rem; }
.widget-slider-overlay p { margin: 0; opacity: 0.9; }
.widget-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85); cursor: pointer; z-index: 2; }
.widget-slider-arrow.prev { left: 0.75rem; right: auto; }
.widget-slider-arrow.next { right: 0.75rem; left: auto; }
.widget-slider-dots { position: absolute; inset-inline: 0; bottom: 0.6rem; display: flex; justify-content: center; gap: 0.35rem; z-index: 2; }
.widget-slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; }
.widget-slider-dots button.is-active { background: #fff; }

.widget-gallery {
    position: relative;
    width: 100%;
    max-width: min(100%, var(--gallery-max-width, 100%));
    margin-inline: auto;
    box-sizing: border-box;
}
.widget-gallery[data-mode="grid"],
.widget-gallery[data-mode="masonry"] {
    width: 100% !important; /* override leftover slider inline width */
    max-width: 100%;
}
.widget-gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.widget-gallery[data-mode="grid"] .widget-gallery-viewport,
.widget-gallery[data-mode="masonry"] .widget-gallery-viewport {
    overflow: visible;
    height: auto;
    border-radius: 0;
    background: transparent;
}
.widget-gallery-items {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.widget-gallery[data-mode="masonry"] .widget-gallery-items {
    columns: var(--gallery-cols, 3);
    display: block;
    column-gap: 0.75rem;
}
.widget-gallery[data-mode="masonry"] .widget-gallery-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
}
.widget-gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f6;
    position: relative;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    min-width: 0;
}
.widget-gallery[data-mode="grid"] .widget-gallery-item {
    aspect-ratio: 4 / 3;
}
.widget-gallery-item img {
    width: 100%;
    display: block;
    height: auto;
    vertical-align: middle;
    max-height: var(--gallery-max-height, none);
    object-fit: cover;
    transition: transform 0.35s ease;
    cursor: zoom-in;
}
.widget-gallery[data-mode="grid"] .widget-gallery-item img,
.widget-gallery[data-mode="masonry"] .widget-gallery-item img {
    height: 100%;
    max-height: none;
    object-fit: cover;
}
.widget-gallery-item:hover img {
    transform: scale(1.03);
}
.widget-gallery-item figcaption:empty {
    display: none;
}

/* Captions overlay on image (grid / masonry / slider) + RTL */
.widget-gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    margin: 0;
    padding: 1.1rem 0.85rem 0.85rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
    color: #fff;
    text-align: right;
    direction: rtl;
    pointer-events: none;
}
.widget-gallery-caption-title:empty,
.widget-gallery-caption-desc:empty {
    display: none;
}
.widget-gallery-caption:not(:has(.widget-gallery-caption-title:not(:empty), .widget-gallery-caption-desc:not(:empty))) {
    display: none;
}
.widget-gallery-caption-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
    text-align: right;
}
.widget-gallery-caption-desc {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
    text-align: right;
}

.widget-gallery[data-mode="slider"] .widget-gallery-caption {
    padding: 1.35rem 1rem 2.4rem;
}
.widget-gallery[data-mode="slider"] .widget-gallery-caption-title {
    font-size: 1.05rem;
}

/* Slider: consistent frame from typical image size; outliers ignored */
.widget-gallery[data-mode="slider"] {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}
.widget-gallery[data-mode="slider"] .widget-gallery-viewport {
    height: var(--gallery-slide-height, 320px);
    border-radius: 16px;
    background: #0f172a;
    overflow: hidden;
}
.widget-gallery[data-mode="slider"] .widget-gallery-items {
    display: flex;
    direction: ltr; /* predictable scrollLeft math even on RTL pages */
    height: 100%;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.widget-gallery[data-mode="slider"] .widget-gallery-items::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.widget-gallery[data-mode="slider"] .widget-gallery-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
    background: #0f172a;
}
.widget-gallery[data-mode="slider"] .widget-gallery-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: zoom-in;
}
.widget-gallery[data-mode="slider"] .widget-gallery-item:hover img {
    transform: none;
}
.widget-gallery-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1d2939;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    place-items: center;
}
.widget-gallery[data-mode="slider"] .widget-gallery-nav {
    display: grid;
}
.widget-gallery-nav.prev { left: 0.85rem; right: auto; }
.widget-gallery-nav.next { right: 0.85rem; left: auto; }
.widget-gallery-nav:hover { background: #fff; }
.widget-gallery-dots {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    gap: 0.4rem;
    z-index: 5;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
}
.widget-gallery[data-mode="slider"] .widget-gallery-dots:not([hidden]) {
    display: flex;
}
.widget-gallery-dots button {
    appearance: none;
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 99px;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    flex: 0 0 auto;
}
.widget-gallery-dots button.is-active {
    width: 18px;
    background: #fff;
}

.widget-accordion { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.widget-accordion-item + .widget-accordion-item { border-top: 1px solid #e5e7eb; }
.widget-accordion-head-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #f9fafb;
}
.widget-accordion-head {
    flex: 1;
    min-width: 0;
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font: inherit;
    text-align: right;
    color: inherit;
}
.widget-accordion-title { flex: 1; min-width: 0; text-align: right; }
.widget-accordion-title p { display: inline; margin: 0; }
.widget-accordion-head > i { flex-shrink: 0; transition: transform 0.3s ease; }
.widget-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}
.widget-accordion-body-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.25s ease, padding 0.35s ease;
}
.widget-accordion-body-inner p:first-child { margin-top: 0; }
.widget-accordion-body-inner p:last-child { margin-bottom: 0; }
.widget-accordion-item.is-open .widget-accordion-body {
    grid-template-rows: 1fr;
}
.widget-accordion-item.is-open .widget-accordion-body-inner {
    padding: 0.85rem 1rem;
    opacity: 1;
}
.widget-accordion-item.is-open .widget-accordion-head > i { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
    .widget-accordion-body,
    .widget-accordion-body-inner,
    .widget-accordion-head > i {
        transition: none;
    }
}

.widget-map { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #e5e7eb; }
.widget-map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: inherit; }
.widget-map-neshan { position: absolute; inset-inline-start: 0.75rem; bottom: 0.75rem; background: #111827; color: #fff; text-decoration: none; font-size: 0.8rem; padding: 0.4rem 0.7rem; border-radius: 8px; }
.widget-map-neshan[hidden] { display: none !important; }

.widget-social { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }
.widget-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f3f4f6; color: #374151; text-decoration: none; }
.widget-social a:hover { background: #e5e7eb; }

.widget-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
    padding: 0.35rem 0.25rem;
}
.widget-countdown-message {
    margin: 0;
    width: 100%;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
}
.widget-countdown-message:empty,
.widget-countdown-message[hidden] { display: none !important; }
.widget-countdown-units {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    direction: ltr; /* روز چپ → ثانیه راست */
    unicode-bidi: isolate;
}
.widget-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: 0.45rem;
    min-width: 0;
    width: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.widget-countdown-item[hidden] { display: none !important; }

/* Flip clock card — two-phase top/bottom flaps (no mirrored back-face) */
.widget-countdown-flip {
    --cd-w: 4.6rem;
    --cd-h: 3.55rem;
    --cd-radius: 0.7rem;
    --cd-face: #111827;
    --cd-face-2: #1f2937;
    --cd-line: rgba(255, 255, 255, 0.14);
    --cd-text: #f8fafc;
    position: relative;
    width: var(--cd-w);
    height: var(--cd-h);
    perspective: 640px;
    perspective-origin: 50% 50%;
}
.widget-countdown-flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--cd-radius);
    background: var(--cd-face);
    transform-style: preserve-3d;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 14px rgba(15, 23, 42, 0.2);
}
.widget-countdown-flip-piece,
.widget-countdown-flip-flap {
    position: absolute;
    inset-inline: 0;
    height: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #243044 0%, #111827 100%);
}
.widget-countdown-flip-piece.top,
.widget-countdown-flip-flap.top {
    top: 0;
    border-radius: var(--cd-radius) var(--cd-radius) 0 0;
    background: linear-gradient(180deg, #2a364a 0%, #1a2233 100%);
}
.widget-countdown-flip-piece.bottom,
.widget-countdown-flip-flap.bottom {
    bottom: 0;
    border-radius: 0 0 var(--cd-radius) var(--cd-radius);
    background: linear-gradient(180deg, #0d1420 0%, #151c2b 100%);
}
.widget-countdown-flip-piece span,
.widget-countdown-flip-flap span {
    position: absolute;
    inset-inline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--cd-h);
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--cd-text);
    line-height: 1;
    user-select: none;
}
.widget-countdown-flip-piece.top span,
.widget-countdown-flip-flap.top span { top: 0; }
.widget-countdown-flip-piece.bottom span,
.widget-countdown-flip-flap.bottom span { bottom: 0; }

.widget-countdown-flip-flap {
    z-index: 4;
    visibility: hidden;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}
.widget-countdown-flip-flap.top {
    transform-origin: center bottom;
    z-index: 5;
}
.widget-countdown-flip-flap.bottom {
    transform-origin: center top;
    transform: rotateX(90deg);
    z-index: 4;
}
.widget-countdown-flip.is-flipping .widget-countdown-flip-flap {
    visibility: visible;
}
.widget-countdown-flip.is-flipping .widget-countdown-flip-flap.top {
    animation: cdFlipTop 0.3s cubic-bezier(0.4, 0.0, 0.7, 0.2) forwards;
}
.widget-countdown-flip.is-flipping .widget-countdown-flip-flap.bottom {
    animation: cdFlipBottom 0.3s cubic-bezier(0.3, 0.7, 0.4, 1) 0.3s forwards;
}

/* Soft shade while flaps move — not a reflection */
.widget-countdown-flip-flap.top::after,
.widget-countdown-flip-flap.bottom::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.widget-countdown-flip.is-flipping .widget-countdown-flip-flap.top::after {
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.35));
    animation: cdShadeTop 0.3s ease-in forwards;
}
.widget-countdown-flip.is-flipping .widget-countdown-flip-flap.bottom::after {
    background: linear-gradient(to top, transparent 40%, rgba(0, 0, 0, 0.4));
    animation: cdShadeBottom 0.3s ease-out 0.3s forwards;
}

.widget-countdown-flip-divider {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    margin-top: -0.5px;
    background: var(--cd-line);
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

@keyframes cdFlipTop {
    from { transform: rotateX(0deg); }
    to { transform: rotateX(-90deg); }
}
@keyframes cdFlipBottom {
    from { transform: rotateX(90deg); }
    to { transform: rotateX(0deg); }
}
@keyframes cdShadeTop {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cdShadeBottom {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .widget-countdown-flip.is-flipping .widget-countdown-flip-flap.top,
    .widget-countdown-flip.is-flipping .widget-countdown-flip-flap.bottom {
        animation: none;
    }
}

.widget-countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.widget-countdown-expired {
    margin: 0;
    width: 100%;
    color: #b42318;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}
.widget-countdown-expired[hidden] { display: none !important; }
.widget-countdown.is-hidden-expired { display: none !important; }

@media (max-width: 520px) {
    .widget-countdown-flip {
        --cd-w: 3.7rem;
        --cd-h: 2.95rem;
    }
    .widget-countdown-flip-piece span,
    .widget-countdown-flip-flap span { font-size: 1.3rem; }
    .widget-countdown-units { gap: 0.5rem; }
}

.widget-table-wrap { overflow-x: auto; border-radius: 10px; }
.widget-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.widget-table th, .widget-table td {
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.7rem;
    text-align: right;
    vertical-align: middle;
    word-break: break-word;
    min-width: 2.5rem;
    position: relative;
}
.widget-table-wrap[data-bordered="0"] .widget-table th,
.widget-table-wrap[data-bordered="0"] .widget-table td {
    border: 0;
    border-bottom: 1px solid #f3f4f6;
}
.widget-table thead th {
    background: #f3f4f6;
    font-weight: 700;
}
.widget-table-wrap.is-striped tbody tr:nth-child(even) td:not([data-cell-custom="1"]),
.widget-table-wrap[data-striped="1"] tbody tr:nth-child(even) td:not([data-cell-custom="1"]) { background: #f9fafb; }
.widget-table th.is-selected,
.widget-table td.is-selected {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
    z-index: 1;
}

/* Excel-like resize handles (editor only; stripped on save) */
.widget-table-wrap.is-editing-table .widget-table-resizer {
    position: absolute;
    z-index: 5;
    background: transparent;
}
.widget-table-wrap.is-editing-table .widget-table-resizer-col {
    top: 0;
    bottom: 0;
    inset-inline-end: -3px;
    width: 6px;
    cursor: col-resize;
}
.widget-table-wrap.is-editing-table .widget-table-resizer-col:hover,
.widget-table-wrap.is-resizing .widget-table-resizer-col {
    background: rgba(75, 85, 99, 0.35);
}
.widget-table-wrap.is-editing-table .widget-table-resizer-row {
    left: 0;
    right: 0;
    bottom: -3px;
    height: 6px;
    cursor: row-resize;
}
.widget-table-wrap.is-editing-table .widget-table-resizer-row:hover,
.widget-table-wrap.is-resizing .widget-table-resizer-row {
    background: rgba(75, 85, 99, 0.35);
}
.widget-table-wrap.is-resizing {
    user-select: none;
    cursor: inherit;
}

.widget-form-field { margin-bottom: 0.75rem; }
.widget-form-field label { display: block; margin-bottom: 0.3rem; font-size: 0.85rem; color: #374151; }
.widget-form-field input, .widget-form-field textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 0.55rem 0.7rem; font: inherit; }
.widget-form-success { margin-top: 0.75rem; color: #065f46; }

.elementor-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200000;
    padding: 1rem;
}
.elementor-lightbox.is-open { display: flex; }
.elementor-lightbox-figure {
    margin: 0;
    max-width: min(96vw, 1100px);
    text-align: center;
}
.elementor-lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 78vh;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.elementor-lightbox-caption {
    margin-top: 0.85rem;
    color: #fff;
    text-align: right;
    direction: rtl;
    max-width: 40rem;
    margin-inline: auto;
}
.elementor-lightbox-caption[hidden] { display: none !important; }
.elementor-lightbox-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: right;
}
.elementor-lightbox-title:empty { display: none; }
.elementor-lightbox-desc {
    display: block;
    font-size: 0.92rem;
    opacity: 0.88;
    line-height: 1.5;
    text-align: right;
}
.elementor-lightbox-desc:empty { display: none; }
.elementor-lightbox-close { position: absolute; top: 1rem; inset-inline-start: 1rem; border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }

/* Visibility */
@media (min-width: 1025px) {
    .elementor-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .elementor-hide-mobile { display: none !important; }
    .widget-gallery-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widget-gallery[data-mode="slider"] .widget-gallery-viewport {
        height: var(--gallery-slide-height, 240px);
    }
    .widget-tabs[data-orientation="vertical"] { flex-direction: column; }
}

/* Entrance animations — hide only until play; keep editor canvas visible */
.elementor-widget[data-anim]:not([data-anim="none"]):not(.elementor-anim-play) { opacity: 0; }
.elementor-canvas-inner .elementor-widget[data-anim]:not([data-anim="none"]):not(.elementor-anim-play) { opacity: 1; }
.elementor-widget.elementor-anim-play {
    opacity: 1;
    animation-duration: var(--elementor-anim-duration, 500ms);
    animation-delay: var(--elementor-anim-delay, 0ms);
    animation-fill-mode: both;
    animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
    .elementor-widget[data-anim] {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}
.elementor-anim-play.elementor-anim-fadeIn { animation-name: elFadeIn; }
.elementor-anim-play.elementor-anim-fadeInUp { animation-name: elFadeInUp; }
.elementor-anim-play.elementor-anim-fadeInDown { animation-name: elFadeInDown; }
.elementor-anim-play.elementor-anim-fadeInRight { animation-name: elFadeInRight; }
.elementor-anim-play.elementor-anim-fadeInLeft { animation-name: elFadeInLeft; }
.elementor-anim-play.elementor-anim-slideInUp { animation-name: elSlideInUp; }
.elementor-anim-play.elementor-anim-slideInDown { animation-name: elSlideInDown; }
.elementor-anim-play.elementor-anim-slideInRight { animation-name: elSlideInRight; }
.elementor-anim-play.elementor-anim-slideInLeft { animation-name: elSlideInLeft; }
.elementor-anim-play.elementor-anim-zoomIn { animation-name: elZoomIn; }
.elementor-anim-play.elementor-anim-zoomOut { animation-name: elZoomOut; }
.elementor-anim-play.elementor-anim-rotateIn { animation-name: elRotateIn; }
.elementor-anim-play.elementor-anim-flipInX { animation-name: elFlipInX; }
.elementor-anim-play.elementor-anim-flipInY { animation-name: elFlipInY; }
.elementor-anim-play.elementor-anim-bounceIn { animation-name: elBounceIn; }
.elementor-anim-play.elementor-anim-bounce { animation-name: elBounce; }
.elementor-anim-play.elementor-anim-pulse { animation-name: elPulse; }

@keyframes elFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes elFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes elFadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes elFadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes elFadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes elSlideInUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes elSlideInDown { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes elSlideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes elSlideInLeft { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes elZoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes elZoomOut { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes elRotateIn { from { opacity: 0; transform: rotate(-12deg) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes elFlipInX { from { opacity: 0; transform: perspective(400px) rotateX(40deg); } to { opacity: 1; transform: none; } }
@keyframes elFlipInY { from { opacity: 0; transform: perspective(400px) rotateY(40deg); } to { opacity: 1; transform: none; } }
@keyframes elBounceIn { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: none; } }
@keyframes elBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes elPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
