/* ============================================================
   QB — Elementor Widgets v1.0.0  |  qb-widgets.css
   Scope: all classes prefixed .qbas- (about-split)
   No resets. No global overrides. Zero conflict guarantee.
   ============================================================ */

/* ── ENTRY ANIMATION BASE ───────────────────────────────── */
.qbas-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1),
                transform .7s cubic-bezier(.16,1,.3,1);
}
.qbas-anim.qbas-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .qbas-anim {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── WRAP ───────────────────────────────────────────────── */
.qbas-wrap {
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
}
.qbas-wrap *,
.qbas-wrap *::before,
.qbas-wrap *::after {
    box-sizing: border-box;
}

/* Background modes */
.qbas-bg-light { background: #f7f7f5; }
.qbas-bg-dark  { background: #080E2E; }

/* ── GRID ───────────────────────────────────────────────── */
.qbas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Image position: right (default) = text left, image right */
.qbas-img-right .qbas-col-text  { order: 1; }
.qbas-img-right .qbas-col-image { order: 2; }

/* Image position: left = image left, text right */
.qbas-img-left .qbas-col-text  { order: 2; }
.qbas-img-left .qbas-col-image { order: 1; }

/* RTL: flip order naturally */
[dir="rtl"] .qbas-img-right .qbas-col-text  { order: 2; }
[dir="rtl"] .qbas-img-right .qbas-col-image { order: 1; }
[dir="rtl"] .qbas-img-left  .qbas-col-text  { order: 1; }
[dir="rtl"] .qbas-img-left  .qbas-col-image { order: 2; }

/* ── EYEBROW ────────────────────────────────────────────── */
.qbas-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.qbas-eyebrow-line {
    display: block;
    width: 32px;
    height: 1px;
    background: #7ED0DC;
    flex-shrink: 0;
}
.qbas-eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: #7ED0DC;
    white-space: nowrap;
}

/* ── HEADLINE ───────────────────────────────────────────── */
.qbas-headline {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.022em;
    margin: 0 0 10px;
    color: #080E2E;
}
.qbas-bg-dark .qbas-headline { color: #ffffff; }

.qbas-headline-hl { color: #7ED0DC; }

.qbas-subline {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 26px;
}

/* ── BODY ───────────────────────────────────────────────── */
.qbas-body {
    font-size: 15px;
    line-height: 1.9;
    font-weight: 300;
    color: #555;
    max-width: 440px;
    margin-bottom: 36px;
}
.qbas-bg-dark .qbas-body { color: rgba(255,255,255,.55); }

/* ── PILLARS ────────────────────────────────────────────── */
.qbas-pillars {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}
.qbas-pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 0.5px solid #e8e8e4;
    transition: background .22s ease;
}
.qbas-bg-dark .qbas-pillar {
    border-bottom-color: rgba(255,255,255,.07);
}
.qbas-pillars .qbas-pillar:first-child {
    border-top: 0.5px solid #e8e8e4;
}
.qbas-bg-dark .qbas-pillars .qbas-pillar:first-child {
    border-top-color: rgba(255,255,255,.07);
}

/* Icon box */
.qbas-pillar-icon {
    width: 36px;
    height: 36px;
    border: 0.5px solid rgba(126,208,220,.45);
    background: rgba(126,208,220,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background .22s ease, border-color .22s ease;
}
.qbas-pillar-icon i,
.qbas-pillar-icon svg {
    font-size: 15px;
    color: #7ED0DC;
    fill: none;
    width: 15px;
    height: 15px;
}

/* Pillar hover */
.qbas-pillar:hover .qbas-pillar-icon {
    background: rgba(126,208,220,.14);
    border-color: #7ED0DC;
}

.qbas-pillar-title {
    font-size: 13px;
    font-weight: 600;
    color: #080E2E;
    letter-spacing: .02em;
    margin-bottom: 5px;
}
.qbas-bg-dark .qbas-pillar-title { color: #fff; }

.qbas-pillar-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.7;
    font-weight: 300;
}
.qbas-bg-dark .qbas-pillar-desc { color: rgba(255,255,255,.4); }

/* ── BUTTONS ────────────────────────────────────────────── */
.qbas-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.qbas-btn-primary {
    display: inline-flex;
    align-items: center;
    background: #080E2E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                box-shadow .22s ease,
                background .22s ease;
    cursor: pointer;
}
.qbas-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(8,14,46,.22);
}
.qbas-btn-primary:active { transform: scale(.97); }

.qbas-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #080E2E;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid #080E2E;
    padding-bottom: 2px;
    transition: gap .22s ease, opacity .22s ease;
}
.qbas-bg-dark .qbas-btn-ghost {
    color: #7ED0DC;
    border-bottom-color: #7ED0DC;
}
.qbas-btn-ghost:hover { gap: 14px; }
.qbas-btn-arrow { transition: transform .22s ease; }
.qbas-btn-ghost:hover .qbas-btn-arrow { transform: translateX(4px); }

/* ── IMAGE COLUMN ───────────────────────────────────────── */
.qbas-col-image { position: relative; }

.qbas-img-wrap {
    position: relative;
    padding-top: 20px;
    padding-right: 20px;
}
[dir="rtl"] .qbas-img-wrap {
    padding-right: 0;
    padding-left: 20px;
}

/* Corner accents */
.qbas-corner-tl,
.qbas-corner-br {
    position: absolute;
    width: 44px;
    height: 44px;
    pointer-events: none;
}
.qbas-corner-tl {
    top: -1px;
    right: -1px;
    border-top: 2.5px solid #7ED0DC;
    border-right: 2.5px solid #7ED0DC;
}
[dir="rtl"] .qbas-corner-tl {
    right: auto;
    left: -1px;
    border-right: none;
    border-left: 2.5px solid #7ED0DC;
}
.qbas-corner-br {
    bottom: -1px;
    left: -1px;
    border-bottom: 2.5px solid #080E2E;
    border-left: 2.5px solid #080E2E;
    opacity: .18;
}
[dir="rtl"] .qbas-corner-br {
    left: auto;
    right: -1px;
    border-left: none;
    border-right: 2.5px solid #080E2E;
}

/* Image frame */
.qbas-img-frame {
    width: 100%;
    height: 460px;
    overflow: hidden;
    position: relative;
}
.qbas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.qbas-img-wrap:hover .qbas-img {
    transform: scale(1.04);
}
.qbas-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dde8ea 0%, #c8d8dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qbas-bg-dark .qbas-img-placeholder {
    background: linear-gradient(135deg, rgba(36,36,102,.8) 0%, rgba(8,14,46,.95) 100%);
}

/* ── BADGE 1 — years, bottom-left ───────────────────────── */
.qbas-badge1 {
    position: absolute;
    bottom: 0;
    left: -28px;
    background: #7ED0DC;
    padding: 20px 24px;
    min-width: 120px;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
[dir="rtl"] .qbas-badge1 {
    left: auto;
    right: -28px;
}
.qbas-badge1:hover { transform: translateY(-4px); }
.qbas-badge1-num {
    font-size: 36px;
    font-weight: 700;
    color: #080E2E;
    line-height: 1;
}
.qbas-badge1-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #080E2E;
    opacity: .6;
    margin-top: 5px;
}

/* ── BADGE 2 — stat, top-right ──────────────────────────── */
.qbas-badge2 {
    position: absolute;
    top: 8px;
    right: -2px;
    background: #fff;
    border: 0.5px solid #e2e2de;
    padding: 14px 18px;
    min-width: 120px;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.qbas-bg-dark .qbas-badge2 {
    background: #080E2E;
    border-color: rgba(126,208,220,.2);
}
[dir="rtl"] .qbas-badge2 {
    right: auto;
    left: -2px;
}
.qbas-badge2:hover { transform: translateY(-4px); }
.qbas-badge2-dot {
    width: 5px;
    height: 5px;
    background: #7ED0DC;
    border-radius: 50%;
    margin-bottom: 8px;
}
.qbas-badge2-num {
    font-size: 22px;
    font-weight: 700;
    color: #7ED0DC;
    line-height: 1;
}
.qbas-badge2-label {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    margin-top: 4px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .qbas-grid { gap: 48px; padding: 0 24px; }
    .qbas-headline { font-size: clamp(22px, 3vw, 34px); }
}

@media (max-width: 768px) {
    .qbas-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 20px;
    }
    .qbas-wrap { padding: 56px 0; }

    /* Always: text on top, image below on mobile */
    .qbas-col-text  { order: 1 !important; }
    .qbas-col-image { order: 2 !important; }

    .qbas-body { max-width: 100%; }
    .qbas-badge1 { left: 0; }
    .qbas-badge2 { right: 0; top: 0; }
    .qbas-img-wrap { padding-right: 0; padding-top: 0; }
    .qbas-img-frame { height: 280px; }
    .qbas-cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .qbas-grid { padding: 0 16px; }
    .qbas-wrap { padding: 40px 0; }
    .qbas-headline { font-size: 24px; }
    .qbas-badge1 { position: relative; left: 0; bottom: 0; display: inline-block; margin-top: 16px; }
    .qbas-badge2 { position: relative; right: 0; top: 0; display: inline-block; margin-top: 8px; }
}
